:root {
  --bg: #f5f5f5;
  --panel: #ffffff;
  --text: #000000;
  --muted: #666666;
  --primary: #22c55e;
  --danger: #ef4444;
  --link: #0066cc;
  --login-accent: #1d4ed8;
  --login-accent-soft: #67a3ff;
  --auth-bg-image: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.app-header, .app-footer {
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid #eeeeee;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-footer { border-top: 1px solid #eeeeee; border-bottom: none; }
.app-header h1 { margin: 0 0 8px; font-size: 20px; }
.app-header #admin-login-status { margin: 0; font-size: 12px; }
.app-header #admin-login-status a { color: var(--link); text-decoration: none; margin-left: 8px; }
.user-info { margin-top: 6px; text-align: right; }
.user-info a { color: var(--link); text-decoration: none; margin-left: 8px; }

.nav a {
  color: var(--link);
  text-decoration: none;
  margin-right: 12px;
}
.nav a.active { font-weight: 600; text-decoration: underline; }

.container { max-width: 920px; margin: 18px auto; padding: 0 12px; }

.panel { background: var(--panel); border: 1px solid #dddddd; border-radius: 8px; padding: 16px; }
.panel.active-panel { background: #f0f0f0; }
.panel + .panel { margin-top: 12px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input, select, button, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: var(--text);
}
input[type="checkbox"] {
  width: auto;
  height: 16px;
  padding: 0;
}
button { cursor: pointer; }
button.primary { background: #1d4ed8; border-color: #2563eb; color: #ffffff; }
button.danger { background: #cc3333; border-color: #dd4444; color: #ffffff; }

.list { width: 100%; border-collapse: collapse; }
.list { /* restore original */ }
.list th, .list td { border-bottom: 1px solid #eeeeee; padding: 10px; text-align: left; }
.list th { color: var(--muted); font-weight: 600; }
/* 列名居中显示（仅表头） */
.list thead th { text-align: center; }
/* 数据单元格居中显示 */
.list tbody td { text-align: center; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.tag.income { background: rgba(34,197,94,0.15); color: var(--primary); }
.tag.expense { background: rgba(239,68,68,0.15); color: var(--danger); }

.flex { display: flex; align-items: center; gap: 8px; }
.space-between { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--muted); }
.right { text-align: right; }

.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.totals .card { background: #ffffff; border: 1px solid #dddddd; border-radius: 8px; padding: 12px; }
.totals .value { font-size: 20px; font-weight: 700; }
/* 管理页标题居中与小图标按钮 */
.panel-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.panel-title {
  grid-column: 2;
  justify-self: center;
  margin: 0;
}
.panel-header #open-entry {
  grid-column: 3;
  justify-self: end;
}
.panel-header #ann-create {
  grid-column: 3;
  justify-self: end;
}
.small-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  border-radius: 6px;
}
.admin-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex: 1 1 auto;
}
/* 右侧按钮组与左侧筛选同样的对齐与间距 */
.toolbar-buttons { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }

/* 紧凑字段最小宽度，防止被挤压不可见 */
.field-compact { min-width: 140px; }
/* 两行紧凑字段：标签在上，输入在下，整体更矮更紧凑 */
.field-compact { display: flex; flex-direction: column; gap: 2px; }
.field-compact label { margin: 0; font-size: 12px; }
.compact-small { height: 28px; padding: 3px 8px; font-size: 12px; }

/* 工具栏紧凑按钮，和紧凑输入等高、宽度自动 */
.compact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 4px 10px;
  font-size: 13px;
  width: auto;
}

/* 提现列表：开始/结束时间标签更紧凑，降低占用高度 */
label[for="wd-start-input"],
label[for="wd-end-input"] {
  margin-bottom: 2px;
  font-size: 11px;
  line-height: 1;
}
#admin-user-info {
  font-size: 12px;
}
.compact-input {
  height: 32px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.rt-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.rt-btn { width: auto; padding: 6px 10px; font-size: 12px; }
.rt-editor {
  min-height: 160px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  line-height: 1.7;
  overflow: auto;
}
.rt-editor:focus {
  outline: 2px solid rgba(59,130,246,0.45);
  outline-offset: 2px;
}
.rt-editor[contenteditable="true"]:empty:before {
  content: attr(data-placeholder);
  color: #9ca3af;
}
.rt-editor img,
.rt-editor video {
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 10px auto;
}

/* 表格操作按钮区域 */
.table-actions { display: flex; align-items: center; gap: 8px; }
.table-actions button { width: auto; padding: 6px 10px; font-size: 12px; }
/* 操作列居中显示按钮 */
.table-actions { justify-content: center; }

/* 底部分页按钮更紧凑，避免过长 */
.pager button { width: auto; padding: 6px 10px; font-size: 12px; }

.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal.show { display: flex; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1; }
.modal-dialog { position: relative; z-index: 2; background: #ffffff; color: inherit; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); width: 640px; max-width: calc(100% - 40px); }
.modal-header { position: relative; padding: 12px 16px; border-bottom: 1px solid #eeeeee; text-align: center; }
.modal-header h3 { margin: 0; }
.modal-body { padding: 16px; }
.modal-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent; color: inherit; cursor: pointer; font-size: 20px; line-height: 1; padding: 0; border-radius: 6px; }
.modal-close:hover { background: rgba(0,0,0,0.06); }

/* 管理页用户表头居中 */
.table thead th { text-align: center; }
/* 管理页用户表体居中 */
.table tbody td { text-align: center; }

/* 用户表列宽与对齐优化 */
.user-table { table-layout: fixed; }
.user-table th,
.user-table td { vertical-align: middle; }
.user-table .col-username {
  text-align: center;
  width: 24%;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-table .col-role,
.user-table .col-created,
.user-table .col-actions { text-align: center; }
.user-table .col-role { width: 16%; }
.user-table .col-created { white-space: nowrap; width: 29%; }
.user-table .col-actions { width: 31%; }
/* 默认账户高亮（深色主题友好）：淡绿色背景 + 左侧强调线 */
.default-row {
  background-color: rgba(34,197,94,0.10);
  border-left: 3px solid var(--primary);
}
.default-row td {
  font-weight: 500;
  color: var(--text);
}
.published-row {
  background-color: rgba(34,197,94,0.15);
  border-left: 3px solid var(--primary);
}
.badge-published {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 12px;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: rgba(34,197,94,0.12);
}

/* 账户列文本截断，避免过长影响其它列 */
.truncate-account {
  display: inline-block;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ann-wrap { overflow-x: hidden; }
.truncate-content {
  display: inline-block;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.table { width: 100%; }
.tab-active { background: #f0f0f0; border-radius: 8px; }

/* App home layout */
.app-page {
  min-height: 100vh;
  background: #f3f4f6;
  display: flex;
  justify-content: center;
}
.app-shell {
  position: relative;
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}
.app-view {
  position: absolute;
  inset: 0;
  padding: 12px 12px calc(96px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}
.app-view-active {
  opacity: 1;
  pointer-events: auto;
}
.app-tabbar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  width: min(480px, calc(100% - 24px));
  height: 62px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15,23,42,0.12);
  z-index: 1000;
  transform: translate3d(-50%, 0, 0);
  -webkit-transform: translate3d(-50%, 0, 0);
  backface-visibility: hidden;
  contain: layout paint;
}
@supports (padding: max(0px)) {
  .app-tabbar {
    padding-bottom: max(calc(8px + env(safe-area-inset-bottom, 0px)), 8px);
  }
  .app-shell {
    padding-bottom: max(calc(78px + env(safe-area-inset-bottom, 0px)), 78px);
  }
  .app-view {
    padding-bottom: max(calc(96px + env(safe-area-inset-bottom, 0px)), 96px);
  }
}
.app-tabbar::before {
  content: none;
}
.app-tab {
  position: relative;
  flex: 1;
  height: 100%;
  margin: 0;
  border-radius: 16px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: color 0.18s ease, transform 0.12s ease;
}
.app-tab::before {
  content: "";
  position: absolute;
  inset: 6px 10px;
  border-radius: 16px;
  background: rgba(59,130,246,0.10);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.app-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}
.app-tab-icon svg { display: block; }
.app-tab-label {
  line-height: 1;
  position: relative;
  z-index: 1;
}
.app-tab-active {
  color: #2563eb;
}
.app-tab-active::before {
  opacity: 1;
}
.app-tab:active {
  transform: scale(0.98);
}
.app-tab:focus-visible {
  outline: 2px solid rgba(59,130,246,0.55);
  outline-offset: 2px;
}

.hp-root {
  padding-top: 8px;
}
.hp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.hp-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}
.hp-header-text {
  font-size: 13px;
  color: #6b7280;
}
.hp-hero {
  position: relative;
  margin-bottom: 20px;
  padding: 22px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 45%, #2563eb 100%);
  box-shadow: 0 20px 40px rgba(37,99,235,0.35);
  overflow: hidden;
}
.hp-hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hp-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.hp-hero-btn {
  width: auto;
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.92);
  color: #2563eb;
  font-weight: 700;
  font-size: 13px;
}
.hp-hero-decor {
  position: absolute;
  border-radius: 20px;
}
.hp-hero-decor-left {
  width: 44px;
  height: 44px;
  left: 18px;
  bottom: 18px;
  background: #facc15;
  box-shadow: 0 14px 26px rgba(234,179,8,0.55);
}
.hp-hero-decor-right {
  width: 32px;
  height: 32px;
  right: 24px;
  top: 22px;
  border-radius: 999px;
  background: rgba(191,219,254,0.9);
  box-shadow: 0 12px 20px rgba(59,130,246,0.45);
}
.hp-section {
  margin-bottom: 16px;
}
.hp-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #2563eb;
}
.hp-section-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hp-section-text {
  font-size: 14px;
  font-weight: 700;
}
.hp-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hp-card {
  padding: 14px 10px 10px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(148,163,184,0.28);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.hp-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hp-card-icon-lightning {
  background: rgba(216,180,254,0.30);
}
.hp-card-icon-money {
  background: rgba(187,247,208,0.40);
}
.hp-card-icon-chart {
  background: rgba(254,215,170,0.55);
}
.hp-card-icon-puzzle {
  background: rgba(199,210,254,0.55);
}
.hp-card-icon-music {
  background: rgba(251,207,232,0.55);
}
.hp-card-icon-video {
  background: rgba(191,219,254,0.7);
}
.hp-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.hp-card-sub {
  font-size: 12px;
  color: #9ca3af;
}
.hp-card-pill {
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  background: #e0edff;
  color: #2563eb;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hp-card-date {
  font-weight: 600;
}

.dp-root {
  padding: 10px 10px 24px;
}
#view-data {
  background: #f6f8fe;
}
.dp-header {
  margin-bottom: 14px;
}
.dp-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #1d4ed8;
  letter-spacing: 0.2px;
}
.dp-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dp-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 44px rgba(15,23,42,0.08);
  padding: 18px 18px 14px;
  border: 1px solid rgba(226,232,240,0.8);
}
.dp-card > * {
  position: relative;
  z-index: 1;
}
.dp-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  top: -120px;
  right: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(219,234,254,0.92), rgba(219,234,254,0.20) 58%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.dp-card-blue::before {
  background: radial-gradient(circle at 30% 30%, rgba(219,234,254,0.92), rgba(219,234,254,0.20) 58%, rgba(255,255,255,0) 70%);
}
.dp-card-gold::before {
  background: radial-gradient(circle at 30% 30%, rgba(255,237,213,0.92), rgba(255,237,213,0.18) 58%, rgba(255,255,255,0) 70%);
}
.dp-card-red::before {
  background: radial-gradient(circle at 30% 30%, rgba(254,226,226,0.92), rgba(254,226,226,0.18) 58%, rgba(255,255,255,0) 70%);
}
.dp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.dp-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dp-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(15,23,42,0.16);
}
.dp-icon-blue {
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
}
.dp-icon-gold {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 55%, #ef4444 120%);
}
.dp-icon-red {
  background: linear-gradient(135deg, #fb7185 0%, #ef4444 55%, #f43f5e 120%);
}
.dp-card-title {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}
.dp-detail-btn {
  width: auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(59,130,246,0.65);
  background: rgba(255,255,255,0.98);
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dp-detail-btn span[aria-hidden="true"] {
  font-size: 16px;
  line-height: 1;
  margin-left: 2px;
}
.dp-detail-btn:active { transform: scale(0.98); }
.dp-card-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.dp-stat {
  border-radius: 18px;
  padding: 14px 10px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.dp-stat-label {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}
.dp-stat-value {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.1px;
}
.dp-stat-orange {
  background: rgba(255,237,213,0.92);
}
.dp-stat-mint {
  background: rgba(209,250,229,0.92);
}
.dp-stat-blue {
  background: rgba(219,234,254,0.92);
}
.dp-stat-orange .dp-stat-label,
.dp-stat-orange .dp-stat-value {
  color: #f97316;
}
.dp-stat-mint .dp-stat-label,
.dp-stat-mint .dp-stat-value {
  color: #059669;
}
.dp-stat-blue .dp-stat-label,
.dp-stat-blue .dp-stat-value {
  color: #2563eb;
}
.dp-card-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(226,232,240,0.95);
}
.dp-foot-label {
  white-space: nowrap;
}
.m-card { background: #ffffff; border: 1px solid #dddddd; border-radius: 12px; padding: 14px; line-height: 1.5; }
.m-card-title { font-size: 20px; }
.m-card-row { margin-top: 6px; }
.badge-status { display: inline-block; padding: 2px 6px; font-size: 12px; border-radius: 6px; border: 1px solid #cccccc; color: #666666; background: #f5f5f5; }
.badge-status.pending { color: #b45309; border-color: #f59e0b; background: rgba(245,158,11,0.12); }
.badge-status.completed { color: var(--primary); border-color: var(--primary); background: rgba(34,197,94,0.12); }
.badge-status.rejected { color: var(--danger); border-color: var(--danger); background: rgba(239,68,68,0.12); }

.combo-option { padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.combo-option:hover { background: #e6f0ff; }

.login-page { display: grid; grid-template-columns: 1fr; gap: 12px; }
.login-hero { width: 100%; height: 220px; border: 1px solid #dddddd; border-radius: 12px; background-color: #ffffff; background-repeat: no-repeat; background-position: center; background-size: cover; }
.login-card { max-width: 520px; margin: 0 auto; }
.login-card h2 { text-align: center; }
.login-card button.primary { background: var(--login-accent); border-color: var(--login-accent); color: #ffffff; }
.login-screen { background-size: cover; background-position: center; background-repeat: no-repeat; }
.login-screen .app-header, .login-screen .app-footer { display: none; }
.login-screen .container { max-width: none; margin: 0; padding: 0; }
.login-screen-layout { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 36px 16px 24px; background: #f3f4f6; position: relative; overflow: hidden; z-index: 0; gap: 18px; }
.login-dialog { width: 392px; max-width: 92vw; background: rgba(255,255,255,0.96); border-radius: 24px; box-shadow: 0 18px 46px rgba(15,23,42,0.16); padding: 22px 22px 26px; border: 1px solid rgba(226,232,240,0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.login-brand { text-align: center; font-size: clamp(30px, 4.4vw, 40px); font-weight: 900; font-style: italic; letter-spacing: 1.6px; color: #ffffff; margin: 0; text-shadow: 0 18px 36px rgba(15,23,42,0.42); }
.login-screen-layout::before { content: ""; position: absolute; inset: 0; background-image: var(--auth-bg-image); background-size: cover; background-position: center; opacity: 0.26; pointer-events: none; z-index: 0; }
.login-screen-layout::after { content: ""; position: absolute; left: 50%; top: -4vh; transform: translateX(-50%); width: 120%; height: 40vh; background: linear-gradient(135deg, var(--login-accent-soft) 0%, var(--login-accent) 100%); border-bottom-left-radius: 120% 100%; border-bottom-right-radius: 120% 100%; opacity: 1; pointer-events: none; z-index: 0; }
.login-screen.auth-has-bg .login-screen-layout::after { opacity: 0.55; }
.login-brand, .login-dialog { position: relative; z-index: 1; }
.login-dialog h3 { font-size: 20px; font-weight: 800; margin: 0 0 14px 0; color: rgba(15,23,42,0.92); letter-spacing: 0.2px; }
.login-dialog .muted { color: rgba(15,23,42,0.58); }
.login-dialog label { color: rgba(15,23,42,0.70); font-weight: 600; font-size: 13px; margin-bottom: 6px; letter-spacing: 0.1px; }
.login-dialog .auth-form { gap: 14px; }
.login-dialog .auth-field { display: grid; gap: 6px; }
.login-dialog input:not([type="checkbox"]) { padding: 0 14px; }
.login-dialog input:not([type="checkbox"]):hover:not(:disabled) { border-color: rgba(37,99,235,0.45); }
.login-dialog input:not([type="checkbox"]):disabled { opacity: 0.7; background: rgba(241,245,249,0.95); cursor: not-allowed; }
.login-dialog .grid { grid-template-columns: 1fr; }
.login-dialog input:not([type="checkbox"]) { height: 46px; border-radius: 12px; background: #f2f6ff; border: 1px solid #e6ecff; outline: none; transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out; }
.login-dialog input:not([type="checkbox"])::placeholder { color: #9aa4b2; }
.login-dialog input:not([type="checkbox"]):focus { border-color: rgba(37,99,235,0.65); box-shadow: 0 0 0 4px rgba(37,99,235,0.16); }
.login-dialog .auth-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  border: 2px solid rgba(148,163,184,0.9);
  border-radius: 0;
  background: rgba(255,255,255,0.95);
  display: inline-grid;
  place-content: center;
  flex: 0 0 16px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.16s ease-out, background 0.16s ease-out, box-shadow 0.16s ease-out, opacity 0.16s ease-out;
}
.login-dialog .auth-checkbox::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity 0.12s ease-out;
}
.login-dialog .auth-checkbox:hover:not(:disabled) { border-color: rgba(37,99,235,0.9); box-shadow: 0 0 0 3px rgba(37,99,235,0.14); }
.login-dialog .auth-checkbox:focus-visible { outline: none; border-color: rgba(37,99,235,0.95); box-shadow: 0 0 0 4px rgba(37,99,235,0.18); }
.login-dialog .auth-checkbox:checked { background: var(--login-accent); border-color: var(--login-accent); }
.login-dialog .auth-checkbox:checked::after { opacity: 1; }
.login-dialog .auth-checkbox:disabled { cursor: not-allowed; opacity: 0.55; background: rgba(241,245,249,0.95); border-color: rgba(148,163,184,0.7); }
.login-dialog .code-row { display: grid; grid-template-columns: 1fr 92px; gap: 8px; align-items: start; }
.login-dialog .code-wrap { display: grid; grid-template-rows: auto 46px; }
.login-dialog .code-wrap label { grid-row: 1; margin: 0 0 6px 0; }
.login-dialog .code-wrap input { grid-row: 2; height: 46px; }
.login-dialog button.primary { background: linear-gradient(180deg, var(--login-accent-soft) 0%, var(--login-accent) 100%); border: none; color: #ffffff; height: 52px; border-radius: 16px; font-size: 16px; font-weight: 800; box-shadow: 0 14px 28px rgba(37,99,235,0.28); padding: 0 18px; transition: transform 0.12s ease-out, box-shadow 0.18s ease-out, opacity 0.18s ease-out, filter 0.18s ease-out; }
.login-dialog button.primary:hover:not(:disabled) { box-shadow: 0 16px 34px rgba(37,99,235,0.34); filter: brightness(1.02); }
.login-dialog button.primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(37,99,235,0.18), 0 16px 34px rgba(37,99,235,0.30); }
.login-dialog button.primary:active { transform: scale(0.98); }
.login-dialog button[data-loading="1"] { pointer-events: none; opacity: 0.85; }
.login-dialog button.primary[data-loading="1"]::after { content: ""; width: 16px; height: 16px; margin-left: 10px; border-radius: 999px; border: 2px solid rgba(255,255,255,0.45); border-top-color: rgba(255,255,255,1); display: inline-block; vertical-align: -3px; animation: auth-spin 0.9s linear infinite; }
.login-dialog button.code-btn { position: static; height: 46px; line-height: 46px; width: 92px; padding: 0 8px; border-radius: 12px; font-size: 14px; white-space: nowrap; box-shadow: 0 6px 12px rgba(37,99,235,0.25); align-self: end; }
.login-dialog a { color: rgba(37,99,235,0.95); text-decoration: none; font-weight: 600; }
.login-dialog a:hover { text-decoration: underline; }
.login-dialog a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.18); border-radius: 8px; }
.login-dialog .auth-row { grid-column: 1 / -1; display: flex; gap: 8px; }
.login-dialog .auth-links { justify-content: space-between; align-items: center; font-size: 14px; margin-top: 6px; }
.login-dialog .auth-agree { align-items: center; gap: 10px; user-select: none; }
.login-dialog .auth-actions { justify-content: center; }
.login-dialog .auth-footer { margin-top: 12px; text-align: center; }
.login-dialog .auth-feedback { display: none; margin: 6px 0 10px; padding: 8px 10px; border-radius: 12px; font-size: 13px; line-height: 1.35; }
.login-dialog .auth-feedback.is-error { display: block; background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.25); color: #b91c1c; }
.login-dialog .auth-feedback.is-success { display: block; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.28); color: #166534; }
.login-dialog .auth-dev-controls { margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(226,232,240,0.95); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 420px) {
  .login-screen-layout { padding-top: 22px; gap: 14px; }
  .login-dialog { width: 100%; max-width: 94vw; padding: 18px 16px 20px; border-radius: 18px; }
  .login-dialog .code-row { grid-template-columns: 1fr 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-dialog button.primary,
  .login-dialog input:not([type="checkbox"]),
  .login-dialog .auth-checkbox { transition: none; }
  .login-dialog button.primary[data-loading="1"]::after { animation: none; }
}

body.login-ab-b .login-screen-layout { padding-top: 44px; background: #f8fafc; }
body.login-ab-b .login-dialog { border-radius: 18px; box-shadow: 0 16px 40px rgba(15,23,42,0.12); }
body.login-ab-b .login-brand { font-size: clamp(26px, 4vw, 36px); letter-spacing: 1.2px; }

.my-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 18px 12px 28px;
  background-color: #f4f7ff;
  background-image:
    linear-gradient(135deg, rgba(37,99,235,0.06) 0, rgba(37,99,235,0.06) 1px, transparent 1px, transparent 14px),
    linear-gradient(45deg, rgba(37,99,235,0.06) 0, rgba(37,99,235,0.06) 1px, transparent 1px, transparent 14px);
  background-size: 18px 18px;
}
.my-shell { max-width: 420px; margin: 0 auto; }

.my-user-row { display: flex; align-items: center; gap: 12px; padding: 4px 2px 10px; }
.my-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #b7ccff 0%, #5b7cff 52%, #2f4bff 100%);
  box-shadow: 0 10px 22px rgba(15,23,42,0.12);
}
.my-user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.my-chevron { font-size: 20px; color: rgba(15,23,42,0.55); }

.my-card {
  background: rgba(255,255,255,0.88);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(15,23,42,0.10);
  border: 1px solid rgba(226,232,240,0.9);
}
.my-balance-wrap { padding: 14px; }
.my-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(59,130,246,0.10);
  color: #2563eb;
  font-weight: 700;
  width: fit-content;
}
.my-pill-dot { width: 10px; height: 10px; border-radius: 50%; background: #3b82f6; }
.my-pill-chevron { margin-left: 2px; color: rgba(37,99,235,0.85); }

.my-balance-card {
  margin-top: 12px;
  border-radius: 16px;
  padding: 18px 16px;
  background: linear-gradient(135deg, #4ea0ff 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 16px 30px rgba(37,99,235,0.30);
}
.my-balance-label { font-size: 14px; opacity: 0.92; }
.my-balance-value { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: 0.5px; margin-top: 6px; }
.my-settle-btn {
  width: auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.95);
  color: #2563eb;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(15,23,42,0.10);
}

.my-row-card {
  margin-top: 14px;
  padding: 14px 14px;
  text-decoration: none;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.my-row-left { display: flex; align-items: center; gap: 12px; }
.my-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.my-row-icon-warn { background: rgba(249,115,22,0.15); color: #f97316; }
.my-row-text { font-weight: 700; font-size: 16px; color: rgba(15,23,42,0.75); }
.my-row-chevron { font-size: 22px; color: rgba(15,23,42,0.35); }

.my-section-title { margin-top: 16px; display: flex; align-items: center; gap: 10px; padding: 6px 2px; color: #2563eb; font-weight: 800; }
.my-section-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: #2563eb; }
.my-section-text { font-size: 18px; }

.my-cs-card {
  margin-top: 8px;
  padding: 14px;
  background: rgba(234,242,255,0.95);
  border: 1px solid rgba(191,219,254,0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.my-cs-left { display: flex; align-items: center; gap: 12px; }
.my-cs-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #c7d2fe 45%, #93c5fd 100%);
  border: 1px solid rgba(191,219,254,0.9);
}
.my-cs-meta { display: flex; align-items: center; gap: 10px; }
.my-cs-title { font-weight: 800; font-size: 18px; color: #0f172a; }
.my-cs-sub { color: rgba(37,99,235,0.65); display: inline-flex; align-items: center; justify-content: center; }
.my-cs-btn {
  width: auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: rgba(59,130,246,0.14);
  color: #2563eb;
  font-weight: 800;
}

.my-func-card { margin-top: 8px; padding: 12px; }
.my-func-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.my-func-btn {
  background: transparent;
  border: none;
  padding: 10px 6px;
  border-radius: 14px;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}
.my-func-btn:active { transform: scale(0.98); }
.my-func-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.my-func-blue { background: rgba(59,130,246,0.12); color: #2563eb; }
.my-func-purple { background: rgba(168,85,247,0.12); color: #a855f7; }
.my-func-gray { background: rgba(148,163,184,0.14); color: #64748b; }
.my-func-text { font-size: 13px; font-weight: 700; color: rgba(15,23,42,0.72); }

.my-section {
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 14px 28px rgba(15,23,42,0.10);
}
.my-topbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 10px; }
.my-topbar-title { text-align: center; font-weight: 900; color: #0f172a; font-size: 16px; }
.my-topbar-right { text-align: right; }
.my-back-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,0.06);
  color: rgba(15,23,42,0.7);
  font-size: 24px;
  line-height: 36px;
}
.my-topbar-action { padding: 8px 10px; font-size: 12px; border-radius: 10px; width: auto; }

@media (min-width: 768px) {
  .my-page { padding: 26px 12px 36px; }
  .my-shell { max-width: 460px; }
  .my-balance-value { font-size: 48px; }
}

body.ann-screen {
  --ann-bg: #f2f2f2;
  --ann-bg-darker: #c2c2c2;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.85), rgba(255,255,255,0) 58%),
    radial-gradient(circle at 20% 22%, rgba(255,255,255,0.55), rgba(255,255,255,0) 62%),
    repeating-linear-gradient(135deg, rgba(0,0,0,0.02) 0 1px, rgba(0,0,0,0) 1px 4px),
    linear-gradient(180deg, #f6f6f6 0%, #ededed 100%);
}
body.ann-screen .app-header,
body.ann-screen .app-footer { display: none; }
body.ann-screen .container {
  max-width: none;
  margin: 0;
  padding: 0;
}

.ann-root { min-height: 100vh; }
.ann-page {
  min-height: 100vh;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  background: transparent;
}
.ann-topbar {
  height: 54px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
}
.ann-title {
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(15,23,42,0.88);
  font-size: 18px;
}
.ann-back {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(15,23,42,0.72);
  font-size: 30px;
  line-height: 36px;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ann-back:active { transform: scale(0.98); }
.ann-tabs {
  width: min(360px, calc(100% - 48px));
  margin: 8px auto 14px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(233,233,233,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ann-tab {
  width: 100%;
  border: none;
  padding: 10px 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(15,23,42,0.42);
  font-weight: 700;
  font-size: 14px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ann-tab.is-active {
  background: rgba(245,245,245,0.98);
  color: rgba(15,23,42,0.84);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}
.ann-content {
  padding: 0 0 20px;
}
.ann-panel { width: min(430px, 100%); margin: 0 auto; padding: 0 22px; }
.ann-status {
  color: rgba(0,0,0,0.42);
  font-size: 12px;
  padding: 8px 0 10px;
}
.ann-list {
  background: transparent;
  border-radius: 0;
  border: none;
  overflow: visible;
}
.ann-row {
  padding: 22px 0 18px;
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}
.ann-row:last-child { border-bottom: none; }
.ann-row-main {
  position: relative;
  padding: 0 86px;
  min-height: 22px;
}
.ann-row-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.42;
  color: rgba(0,0,0,0.74);
  text-align: center;
  word-break: break-word;
}
.ann-row-time {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 12px;
  color: rgba(0,0,0,0.38);
  white-space: nowrap;
  padding-top: 2px;
}
.ann-row-detail {
  margin-top: 10px;
  padding: 0;
  width: auto;
  border: none;
  background: transparent;
  color: rgba(0,0,0,0.30);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ann-row-detail:active { transform: scale(0.99); }
.ann-load-more {
  margin: 14px auto 0;
  width: min(240px, calc(100% - 44px));
  display: block;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(245,245,245,0.98);
  color: rgba(0,0,0,0.55);
  font-weight: 700;
  padding: 10px 0;
}
.ann-empty {
  padding: 22px 8px;
  color: rgba(71,85,105,0.75);
  text-align: center;
  font-weight: 700;
}

.ann-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.ann-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.ann-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--ann-bg-darker);
  opacity: 0.96;
  backdrop-filter: blur(2px);
}
.ann-modal-sheet {
  position: absolute;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 56px);
  transform: translate3d(-50%, 10px, 0) scale(0.985);
  width: min(520px, calc(100% - 28px));
  max-height: calc(100% - (env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 76px));
  background: rgba(245,245,245,0.98);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(0,0,0,0.20);
  overflow: hidden;
  transition: transform 0.18s ease;
}
.ann-modal.is-open .ann-modal-sheet { transform: translate3d(-50%, 0, 0) scale(1); }
.ann-modal-head {
  height: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(148,163,184,0.22);
}
.ann-modal-head-title {
  font-weight: 800;
  color: rgba(0,0,0,0.72);
  text-align: center;
  transform: translateX(14px);
}
.ann-modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,0.06);
  color: rgba(15,23,42,0.62);
  font-size: 18px;
  line-height: 34px;
}
.ann-modal-close:active { transform: scale(0.98); }
.ann-modal-body {
  padding: 12px 14px 14px;
}
.ann-modal-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.ann-modal-item-title {
  font-weight: 800;
  font-size: 16px;
  color: rgba(0,0,0,0.78);
  line-height: 1.35;
}
.ann-modal-item-time {
  font-size: 12px;
  color: rgba(0,0,0,0.40);
}
.ann-modal-scroll {
  max-height: calc(100vh - 220px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
}
.ann-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0,0,0,0.72);
  white-space: normal;
  word-break: break-word;
}
.ann-rich {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0,0,0,0.72);
  word-break: break-word;
}
.ann-rich img, .ann-rich video {
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 10px auto;
}
