/* ==========================================================================
 * 元铂创作者推广工作台 — 主样式表 (Mobile-First + Desktop shadcn/sidebar-08)
 * ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--canvas);
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--fg);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  max-width: 100%;
}

::selection {
  background: rgba(30, 58, 110, 0.16);
  color: var(--fg);
}

input,
button,
select,
textarea {
  font-family: inherit;
  color: inherit;
  caret-color: var(--brand-navy);
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

a {
  color: var(--brand-navy);
  text-decoration: none;
}

/* 精致自定义滚动条（桌面端） */
@media (hover: hover) {
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: #C7CDD8;
    border-radius: 99px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #9FA8B8;
  }
}

/* ==========================================================================
 * 排版与通用工具类
 * ========================================================================== */

.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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;
}

/* SVG 线性图标与 26x26 边框图标底盒 */
svg.ic {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

svg.ic.ic-sm {
  width: 14px;
  height: 14px;
}

svg.ic.ic-lg {
  width: 20px;
  height: 20px;
}

.ic-box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ic-bg);
  border: 1px solid var(--ic-border);
  box-shadow: var(--shadow-xs);
  display: inline-grid;
  place-items: center;
  color: var(--brand-navy);
  flex-shrink: 0;
}

.ic-box.gold {
  background: var(--brand-gold-soft);
  border-color: var(--brand-gold-border);
  color: var(--brand-gold-fg);
}

.ic-box.ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok-fg);
}

.ic-box.warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-fg);
}

.ic-box.danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-fg);
}

.ic-box.navy {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #FFFFFF;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand-navy);
  display: inline-grid;
  place-items: center;
  box-shadow: var(--pri-shadow);
  flex-shrink: 0;
}

.brand-mark-lg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

/* ==========================================================================
 * 启动页骨架
 * ========================================================================== */

.boot-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.boot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 32px;
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}

.boot-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.boot-sub {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ==========================================================================
 * 按钮体系 (Mobile >= 44px 触控热区)
 * ========================================================================== */

.btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--sec-border);
  background: var(--sec-bg);
  color: var(--fg);
  box-shadow: var(--shadow-xs);
  transition: background-color 140ms var(--ease-out), border-color 140ms var(--ease-out), transform 90ms ease, box-shadow 140ms var(--ease-out);
}

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-pri {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #FFFFFF;
  box-shadow: var(--pri-shadow);
  font-weight: 600;
}

.btn-pri:hover:not(:disabled) {
  background: var(--brand-navy-hover);
  border-color: var(--brand-navy-hover);
}

.btn-gold {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(200, 150, 46, 0.28);
}

.btn-gold:hover:not(:disabled) {
  background: #B48422;
  border-color: #B48422;
}

.btn-sec:hover:not(:disabled) {
  background: var(--panel-2);
  border-color: var(--brand-navy);
}

.btn-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-fg);
  font-weight: 500;
}

.btn-danger:hover:not(:disabled) {
  background: #FEE2E2;
  border-color: #EF4444;
}

.btn-danger-solid {
  background: var(--danger-fg);
  border-color: var(--danger-fg);
  color: #FFFFFF;
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--fg-2);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--muted-bg);
  color: var(--fg);
}

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 7px;
}

.btn-xs {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  min-width: 40px;
  width: 40px;
  min-height: 40px;
  height: 40px;
  padding: 0;
  border-radius: 9px;
}

@media (min-width: 960px) {
  .btn {
    min-height: 38px;
    font-size: 13.5px;
  }
  .btn-sm {
    min-height: 32px;
    font-size: 12.5px;
  }
  .btn-xs {
    min-height: 28px;
    font-size: 12px;
  }
}

/* ==========================================================================
 * 徽章 / 状态胶囊
 * ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--muted-bg);
  color: var(--fg-2);
  border: 1px solid transparent;
}

.badge-ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
  border-color: var(--ok-border);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
  border-color: var(--warn-border);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info-fg);
  border-color: var(--info-border);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger-fg);
  border-color: var(--danger-border);
}

.badge-navy {
  background: var(--brand-navy-soft);
  color: var(--brand-navy);
  border-color: var(--brand-navy-border);
}

.badge-gold {
  background: var(--brand-gold-soft);
  color: var(--brand-gold-fg);
  border-color: var(--brand-gold-border);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
 * 表单控件（移动端 16px 防 iOS 缩放 + >= 44px 触控）
 * ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.field-error {
  font-size: 12px;
  color: var(--danger-fg);
  line-height: 1.4;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--input-border);
  background: var(--card);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  appearance: none;
}

.textarea {
  min-height: 84px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #8D96A6;
  font-family: var(--font-sans);
  font-size: 14px;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-focus);
}

.input:disabled,
.select:disabled {
  background: var(--panel-2);
  color: var(--muted);
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .input,
  .select,
  .textarea {
    font-size: 14px;
    min-height: 40px;
  }
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .input {
  padding-right: 44px;
}

.input-suffix-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.input-suffix-btn:hover {
  color: var(--fg);
  background: var(--panel-2);
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 122px;
  gap: 10px;
  align-items: stretch;
}

.captcha-box {
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--panel-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: border-color 140ms ease, opacity 140ms ease;
}

.captcha-box:hover {
  border-color: var(--brand-navy);
}

.captcha-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.captcha-box.is-loading {
  opacity: 0.5;
}

/* Switch 开关 */
.ui-switch {
  width: 44px;
  height: 24px;
  border-radius: 99px;
  padding: 2px;
  background: #CBD1DC;
  border: 1px solid #B8C0CE;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.ui-switch .ui-switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 180ms var(--ease-out);
}

.ui-switch[aria-checked="true"] {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.ui-switch[aria-checked="true"] .ui-switch-thumb {
  transform: translateX(20px);
}

/* ==========================================================================
 * 闭门登录 / 注册页 (Closed Enterprise Auth Gate)
 * ========================================================================== */

.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(20px, var(--safe-top)) 16px max(28px, var(--safe-bottom));
  background:
    radial-gradient(circle at 18% 12%, rgba(30, 58, 110, 0.06), transparent 40%),
    radial-gradient(circle at 86% 88%, rgba(200, 150, 46, 0.06), transparent 36%),
    var(--canvas);
}

.auth-card {
  width: 100%;
  max-width: 416px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-shell);
  overflow: hidden;
}

.auth-head {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border-inner);
  background: var(--panel-2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-head.is-admin {
  background: var(--brand-navy);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.auth-head.is-admin .auth-title {
  color: #FFFFFF;
}

.auth-head.is-admin .auth-sub {
  color: rgba(255, 255, 255, 0.78);
}

.auth-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.auth-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.auth-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--sidebar);
  border: 1px solid var(--border);
}

.seg-tab {
  min-height: 38px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.seg-tab.active {
  background: var(--card);
  color: var(--brand-navy);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--border);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-alert {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-fg);
  font-size: 12.5px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.auth-footnote {
  margin-top: 2px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.auth-footer-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
 * 响应式主工作台外壳：Mobile Native App <-> Desktop shadcn/sidebar-08
 * ========================================================================== */

.workspace-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
}

/* 桌面端侧边栏（手机端隐藏） */
.app-sidebar {
  display: none;
}

/* 移动端粘性毛玻璃顶栏 */
.mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: var(--safe-top);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-strong);
}

.mobile-topbar-inner {
  height: var(--topbar-h);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-title-wrap {
  min-width: 0;
}

.topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 9px 0 5px;
  border-radius: var(--r-pill);
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  max-width: 112px;
}

.user-chip-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.user-chip-avatar.is-admin {
  background: var(--brand-gold);
}

/* 桌面端主区顶栏（手机端隐藏） */
.desktop-header {
  display: none;
}

/* 内容画布 */
.workspace-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page-content {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 14px calc(var(--tabbar-h) + var(--safe-bottom) + 22px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 移动端底部 4-Tab 固定导航栏 */
.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-strong);
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.04);
}

.mobile-tabbar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: var(--tabbar-h);
}

.tabbar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  position: relative;
  min-height: 48px;
  transition: color 140ms ease;
}

.tabbar-btn .tabbar-ic {
  width: 38px;
  height: 26px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  position: relative;
  transition: background-color 140ms ease;
}

.tabbar-btn.active {
  color: var(--brand-navy);
  font-weight: 600;
}

.tabbar-btn.active .tabbar-ic {
  background: var(--brand-navy-soft);
}

.tabbar-badge {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--danger-fg);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 1.5px solid #FFFFFF;
}

.tabbar-badge.gold {
  background: var(--brand-gold);
}

/* Desktop shadcn/sidebar-08 断点 (>= 960px) */
@media (min-width: 960px) {
  .workspace-shell {
    flex-direction: row;
    background: var(--sidebar);
    padding: 10px 10px 10px 0;
  }

  .mobile-topbar,
  .mobile-tabbar {
    display: none;
  }

  .app-sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-w);
    flex-shrink: 0;
    padding: 8px 12px 10px;
    position: sticky;
    top: 0;
    height: calc(100dvh - 20px);
    gap: 16px;
  }

  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 10px;
    border-radius: 10px;
  }

  .sidebar-brand-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.25;
  }

  .sidebar-brand-sub {
    font-size: 11.5px;
    color: var(--sidebar-muted);
    margin-top: 2px;
  }

  .sidebar-group-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--sidebar-muted);
    padding: 0 10px 6px;
    letter-spacing: 0.02em;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }

  .sidebar-item {
    width: 100%;
    min-height: 40px;
    padding: 7px 10px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--sidebar-foreground);
    border: 1px solid transparent;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    text-align: left;
  }

  .sidebar-item:hover {
    background: rgba(255, 255, 255, 0.65);
  }

  .sidebar-item.active {
    background: var(--card);
    border-color: var(--border-strong);
    color: var(--brand-navy);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
  }

  .sidebar-item.active .ic-box {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #FFFFFF;
  }

  .sidebar-item-count {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
    background: var(--danger-fg);
    color: #FFFFFF;
  }

  .sidebar-item-count.gold {
    background: var(--brand-gold);
  }

  .sidebar-footer {
    margin-top: auto;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }

  .sidebar-user-meta {
    min-width: 0;
    flex: 1;
  }

  .sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
  }

  .sidebar-user-sub {
    font-size: 11.5px;
    color: var(--muted);
  }

  .sidebar-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  /* SidebarInset 主画布容器 */
  .workspace-main {
    background: var(--canvas);
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-shell);
    overflow: clip;
    min-height: calc(100dvh - 20px);
  }

  .desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 58px;
    padding: 0 24px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .desktop-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .desktop-page-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.01em;
  }

  .desktop-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .page-content {
    padding: 22px 24px 36px;
    gap: 18px;
  }
}

/* ==========================================================================
 * 卡片与内嵌容器 (Tier 2 纯白强边框 + Tier 3 内嵌槽)
 * ========================================================================== */

.card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.card-head {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border-inner);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.card-title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

.card-sub {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.card-body {
  padding: 15px;
}

.panel-inset {
  background: var(--box-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
}

/* ==========================================================================
 * 推广员 Hero 专属推广码卡片
 * ========================================================================== */

.hero-code-card {
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  border: 1px solid #132549;
  color: #FFFFFF;
  padding: 18px 16px;
  box-shadow: 0 10px 26px -10px rgba(30, 58, 110, 0.45);
  position: relative;
  overflow: hidden;
}

.hero-code-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.45;
}

.hero-code-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-gold-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(200, 150, 46, 0.22);
  border: 1px solid rgba(232, 207, 150, 0.45);
  color: #F7DF9E;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-benefit-pill {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-code-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-wrap: wrap;
}

.hero-code-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  line-height: 1.15;
  word-break: break-all;
}

.hero-copy-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  background: #FFFFFF;
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
  transition: transform 90ms ease, background-color 140ms ease;
}

.hero-copy-btn:active {
  transform: scale(0.97);
}

.hero-copy-btn.copied {
  background: #ECFDF3;
  color: #067647;
}

.hero-rates-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-rate-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-rate-chip strong {
  color: #F7DF9E;
  font-weight: 600;
}

/* 未领码卡片 */
.claim-card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.claim-card-banner {
  background: linear-gradient(155deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  color: #FFFFFF;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.claim-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

.claim-card-desc {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.claim-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.claim-input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .claim-input-row {
    flex-direction: row;
    align-items: flex-start;
  }
  .claim-input-row .input {
    flex: 1;
  }
}

/* ==========================================================================
 * 2x2 移动端 KPI 宫格 -> 4 列桌面端
 * ========================================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 960px) {
  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
  .kpi-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kpi-card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 13px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  text-align: left;
  transition: border-color 140ms ease, transform 90ms ease;
}

.kpi-card.is-clickable {
  cursor: pointer;
}

.kpi-card.is-clickable:hover {
  border-color: var(--brand-navy);
}

.kpi-card.is-clickable:active {
  transform: scale(0.988);
}

.kpi-card.is-gold {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF9F0 100%);
  border-color: var(--brand-gold-border);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.kpi-card.is-gold .kpi-val {
  color: var(--brand-navy);
}

.kpi-foot {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.kpi-link {
  color: var(--brand-navy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
 * 合规话术模板卡片
 * ========================================================================== */

.tpl-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.tpl-tabs::-webkit-scrollbar {
  display: none;
}

.pill-tab {
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--fg-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 140ms ease;
}

.pill-tab:hover {
  border-color: var(--brand-navy);
  color: var(--fg);
}

.pill-tab.active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #FFFFFF;
  font-weight: 600;
}

.tpl-preview {
  margin-top: 10px;
  padding: 12px 13px;
  border-radius: var(--r-md);
  background: var(--box-bg);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-word;
}

.tpl-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
 * 规则说明列表
 * ========================================================================== */

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  background: var(--box-bg);
  border: 1px solid var(--border-inner);
  font-size: 13px;
}

.rule-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-weight: 500;
}

.rule-row-val {
  font-weight: 700;
  color: var(--brand-navy);
  white-space: nowrap;
}

.rule-row-val.muted {
  color: var(--muted);
  font-weight: 500;
}

/* ==========================================================================
 * 筛选栏与搜索工具条
 * ========================================================================== */

.toolbar-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
  max-width: 100%;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-box .search-ic {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-box .input {
  padding-left: 36px;
}

/* ==========================================================================
 * 列表卡片 (用户 / 明细 / 提现 / 合作伙伴)
 * ========================================================================== */

.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 13px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.item-card.is-urgent {
  border-color: var(--brand-gold-border);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF7 100%);
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.item-row-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-navy-soft);
  border: 1px solid var(--brand-navy-border);
  color: var(--brand-navy);
  font-size: 13.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  word-break: break-word;
}

.item-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  word-break: break-word;
}

.item-amount {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
  flex-shrink: 0;
}

.item-amount.ok {
  color: var(--ok-fg);
}

.item-amount.navy {
  color: var(--brand-navy);
}

.item-amount.reversed {
  color: var(--muted);
  text-decoration: line-through;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--box-bg);
  border: 1px solid var(--border-inner);
  font-size: 12px;
  color: var(--fg-2);
}

.meta-kv {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-kv strong {
  color: var(--fg);
  font-weight: 600;
}

.mini-stats-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 9px 8px;
  border-radius: var(--r-md);
  background: var(--box-bg);
  border: 1px solid var(--border-inner);
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.mini-stat-label {
  font-size: 11px;
  color: var(--muted);
}

.mini-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
}

.item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border-inner);
  font-size: 12px;
  color: var(--muted);
}

.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

/* ==========================================================================
 * 提现与银行卡模块 (双栏桌面自适应)
 * ========================================================================== */

.two-col-desktop {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

@media (min-width: 960px) {
  .two-col-desktop {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.balance-hero {
  background: linear-gradient(155deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  border: 1px solid #132549;
  border-radius: var(--r-xl);
  color: #FFFFFF;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.balance-amount {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.balance-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.balance-sub-box {
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.balance-sub-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.76);
}

.balance-sub-val {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.bank-display {
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--box-bg);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-card-no {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg);
  word-break: break-all;
}

.quick-banks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.quick-bank-chip {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--box-bg);
  font-size: 11.5px;
  color: var(--fg-2);
  transition: all 120ms ease;
}

.quick-bank-chip:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  background: var(--brand-navy-soft);
}

/* 提示横幅 */
.notice-banner {
  padding: 12px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.notice-banner.gold {
  background: var(--brand-gold-soft);
  border-color: var(--brand-gold-border);
  color: var(--brand-gold-fg);
}

.notice-banner.info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-fg);
}

.notice-banner.danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-fg);
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.notice-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.notice-sub {
  font-size: 12px;
  opacity: 0.88;
  margin-top: 2px;
}

/* ==========================================================================
 * 老板端解密打款核对卡片
 * ========================================================================== */

.decrypt-box {
  border-radius: var(--r-lg);
  border: 1px solid var(--brand-navy-border);
  background: var(--brand-navy-soft);
  overflow: hidden;
}

.decrypt-head {
  padding: 10px 13px;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.decrypt-rows {
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.decrypt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
}

.decrypt-label {
  font-size: 11.5px;
  color: var(--muted);
}

.decrypt-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  word-break: break-all;
  margin-top: 1px;
}

.decrypt-val.mono {
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.decrypt-val.amount {
  font-size: 18px;
  color: var(--brand-navy);
}

/* ==========================================================================
 * 设置表单行与双栏输入
 * ========================================================================== */

.form-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 520px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--box-bg);
  border: 1px solid var(--border);
}

/* ==========================================================================
 * 分页 / 空态 / 错误重试 / 骨架屏
 * ========================================================================== */

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 2px;
}

.pager-info {
  font-size: 12.5px;
  color: var(--muted);
}

.state-box {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.state-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
}

.state-desc {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.5;
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skel {
  background: linear-gradient(90deg, #E8ECF2 25%, #F2F4F8 50%, #E8ECF2 75%);
  background-size: 200% 100%;
  animation: skel-pulse 1.3s ease-in-out infinite;
  border-radius: var(--r-md);
}

.skel-hero {
  height: 158px;
  border-radius: var(--r-xl);
}

.skel-card {
  height: 92px;
  border-radius: var(--r-lg);
}

@keyframes skel-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
 * 移动端 Bottom Sheet <-> 桌面端居中 Modal
 * ========================================================================== */

.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.sheet-root.open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 28, 0.48);
  backdrop-filter: blur(2px);
  animation: fade-in 180ms var(--ease-out);
}

.sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 90dvh;
  background: var(--card);
  border-top: 1px solid var(--border-strong);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-direction: column;
  animation: sheet-up 240ms var(--ease-out);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: #CBD1DC;
  margin: 9px auto 2px;
  flex-shrink: 0;
}

.sheet-head {
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--border-inner);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.sheet-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.sheet-body {
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.sheet-body > * {
  flex-shrink: 0;
}

.sheet-foot {
  padding: 12px 16px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--border-inner);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.sheet-foot-row {
  display: flex;
  gap: 8px;
}

.sheet-foot-row .btn {
  flex: 1;
}

@media (min-width: 768px) {
  .sheet-root.open {
    align-items: center;
    padding: 20px;
  }

  .sheet-panel {
    max-width: 520px;
    max-height: 85dvh;
    border-radius: var(--r-xl);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-modal);
    animation: modal-in 200ms var(--ease-out);
  }

  .sheet-handle {
    display: none;
  }

  .sheet-head {
    padding: 16px 20px 14px;
  }

  .sheet-body {
    padding: 18px 20px;
  }

  .sheet-foot {
    padding: 14px 20px;
    border-radius: 0 0 var(--r-xl) var(--r-xl);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheet-up {
  from { transform: translateY(28px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes modal-in {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ==========================================================================
 * Toast 轻提示
 * ========================================================================== */

.toast-root {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 380px;
}

@media (min-width: 960px) {
  .toast-root {
    bottom: auto;
    top: 20px;
  }
}

.toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #11141C;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  animation: toast-in 200ms var(--ease-out);
  max-width: 100%;
  word-break: break-word;
}

.toast.ok {
  background: #065F46;
}

.toast.error {
  background: #991B1B;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 小工具间距 */
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 12px; }
.divider { height: 1px; background: var(--border-inner); margin: 4px 0; }
.text-muted { color: var(--muted); }
.text-fg2 { color: var(--fg-2); }
.text-danger { color: var(--danger-fg); }
.text-ok { color: var(--ok-fg); }
.text-navy { color: var(--brand-navy); }
.fw-600 { font-weight: 600; }

@media (min-width: 960px) {
  .mobile-only {
    display: none !important;
  }
}
