/* =========================================================
   TopChoice后台 · 手机端 Web App（白色风格）
   设计基调：iOS 原生质感 + 数据密集页面的紧凑排布
   ========================================================= */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #9a9aa1;
  --line: #ececef;
  --line-strong: #e0e0e4;
  --accent: #c2740a;
  --accent-solid: #f59e0b;
  --accent-soft: #fff6e6;
  --danger: #d92d20;
  --danger-soft: #fef3f2;
  --success: #0b8a4b;
  --success-soft: #edfbf3;
  --info-soft: #eef4ff;
  --info: #2f6feb;
  --radius-card: 16px;
  --radius-ctl: 12px;
  --shadow-card: 0 1px 2px rgba(16, 18, 25, 0.04), 0 10px 24px -16px rgba(16, 18, 25, 0.18);
  --shadow-float: 0 8px 28px -8px rgba(16, 18, 25, 0.28);
  --appbar-h: 52px;
  --tabbar-h: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;

  /* 深色模式要单独取值的表面、填充与语义色 */
  --glass: rgba(255, 255, 255, 0.9);
  --glass-2: rgba(255, 255, 255, 0.94);
  --fill: #f1f1f4;
  --fill-strong: #e3e3e7;
  --fill-soft: #f0f0f3;
  --ink: #1d1d1f;
  --on-ink: #ffffff;
  --mask: rgba(20, 20, 24, 0.32);
  --warn-bg: #fff8e6;
  --warn-text: #8a5a00;
  --warn-line: #f4e3b8;
  --purple-bg: #f3ecff;
  --purple-text: #6b3fd4;
  --toast-bg: rgba(29, 29, 31, 0.94);
  --spinner-track: rgba(29, 29, 31, 0.16);
  --spinner-head: rgba(29, 29, 31, 0.62);
  --spinner-on-ink-track: rgba(255, 255, 255, 0.3);
  --quote: #1d4ed8;
  --quote-bg: rgba(29, 78, 216, 0.09);
  --quote-active: rgba(29, 78, 216, 0.2);
  --quote-on-ink: #bfdbfe;
  --quote-on-ink-bg: rgba(191, 219, 254, 0.16);
  --quote-on-ink-active: rgba(191, 219, 254, 0.3);
  --code-bg: #1d1d1f;
  --code-text: #f5f5f7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* 滚动条一律隐藏：手机上露出滚动条会立刻显得像网页，滚动能力本身不受影响 */
html,
body {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* 作者样式里的 display 会盖掉浏览器对 [hidden] 的默认处理，这里显式兜底 */
[hidden] {
  display: none !important;
}

html {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  /* 根元素不滚动，兜底关掉它自己的回弹，免得个别浏览器把整页拽走 */
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro SC', 'SF Pro Text', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 16px;
  color: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

.ico {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------------- 外壳 ---------------- */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#appbar {
  position: relative;
  z-index: 40;
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: calc(var(--safe-top) + 6px) 12px 8px;
  min-height: var(--appbar-h);
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.appbar-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: -6px;
  border-radius: 50%;
  color: var(--text);
  transition: background 0.16s var(--ease);
}

.appbar-back:active {
  background: var(--surface-2);
}

.appbar-back svg {
  width: 22px;
  height: 22px;
}

.appbar-titles {
  flex: 1;
  min-width: 0;
  padding-left: 6px;
}

#appbar-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#appbar-sub {
  margin-top: 1px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text);
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}

.icon-btn:active {
  background: var(--surface-2);
  transform: scale(0.94);
}

.icon-btn.accent {
  color: var(--accent);
}

#view {
  flex: 1;
  /* 只有内容区滚动：整页不滚，顶栏和标签栏就不会被下拉动作带走 */
  min-height: 0;
  overflow-y: auto;
  /* contain 保留内容区自己的回弹，只阻断往父级传递 */
  overscroll-behavior-y: contain;
  padding: 14px 16px calc(var(--tabbar-h) + var(--safe-bottom) + 24px);
}

/* 每次切页都会新建这层容器，淡入要挂在它身上才有动画 */
#view > div {
  animation: page-in 0.12s var(--ease);
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: var(--safe-bottom);
  background: var(--glass-2);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--tabbar-h);
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: color 0.16s var(--ease);
}

.tab svg {
  width: 23px;
  height: 23px;
}

.tab.active {
  color: var(--accent);
}

.tab:active svg {
  transform: scale(0.92);
}

body.chrome-hidden #appbar,
body.chrome-hidden #tabbar {
  display: none;
}

body.chrome-hidden #view {
  padding: 0;
}

.offline-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--safe-top) + 8px) 16px 8px;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 12.5px;
  border-bottom: 1px solid var(--warn-line);
}

.offline-banner .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-solid);
  flex: none;
}

/* ---------------- 通用容器 ---------------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.grow {
  flex: 1;
  min-width: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.card.flush {
  padding: 0;
  overflow: hidden;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 2px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.section-title .aside {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}

.muted {
  color: var(--text-2);
}

.tiny {
  font-size: 12px;
  color: var(--text-2);
}

.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 0 16px;
}

/* ---------------- 指标卡 ---------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.metric {
  background: var(--surface);
  padding: 14px 12px;
}

.metric .label {
  font-size: 11.5px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.metric .value {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.metric .unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 2px;
}

.metric.highlight .value {
  color: var(--accent);
}

.metrics-2 {
  grid-template-columns: repeat(2, 1fr);
}

.metrics-2 .metric .value {
  font-size: 24px;
}

/* ---------------- 列表 ---------------- */
.list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  background: var(--surface);
  transition: background 0.16s var(--ease);
}

.list-row + .list-row {
  border-top: 1px solid var(--line);
}

.list-row:active {
  background: var(--surface-2);
}

.list-row .lead {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  flex: none;
}

.list-row .lead.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.list-row .lead.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.list-row .title {
  font-size: 15.5px;
  font-weight: 500;
}

.list-row .sub {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-2);
}

.list-row .trail {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 13px;
  flex: none;
}

.chevron {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex: none;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-ctl);
  font-size: 15.5px;
  font-weight: 550;
  background: var(--surface-2);
  color: var(--text);
  transition: transform 0.14s var(--ease), opacity 0.16s var(--ease), background 0.16s var(--ease);
}

.btn:active {
  transform: scale(0.985);
  opacity: 0.9;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-accent {
  background: var(--accent-solid);
  color: #2a1a00;
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  height: 36px;
  padding: 0 13px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn-icon {
  width: 44px;
  padding: 0;
}

.btn .ico {
  width: 19px;
  height: 19px;
}

/* ---------------- 徽标 / 胶囊 ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 550;
  line-height: 18px;
  white-space: nowrap;
}

.badge-ongoing {
  background: var(--success-soft);
  color: var(--success);
}

.badge-ended {
  background: var(--fill);
  color: var(--text-2);
}

.badge-terminated {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-info {
  background: var(--info-soft);
  color: var(--info);
}

.badge-runner {
  background: var(--purple-bg);
  color: var(--purple-text);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  margin: -2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13.5px;
  transition: all 0.16s var(--ease);
}

.chip:active {
  transform: scale(0.97);
}

.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.chip .count {
  font-size: 11.5px;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

/* 模板选择：带主题色的色点 */
.theme-chip .swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex: none;
}

/* ---------------- 分段控件 ---------------- */
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  background: var(--fill);
}

.seg button {
  height: 32px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.18s var(--ease);
}

.seg button.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ---------------- 表单 ---------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field + .field {
  margin-top: 14px;
}

.label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.label .req {
  color: var(--danger);
  margin-left: 2px;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: var(--radius-ctl);
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}

.input:focus,
.textarea:focus,
.select:focus {
  background: var(--surface);
  border-color: var(--accent-solid);
}

.textarea {
  min-height: 92px;
  line-height: 1.5;
  resize: vertical;
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239a9aa1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}

.search {
  position: relative;
}

.search .ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-3);
  pointer-events: none;
}

.search .input {
  padding-left: 38px;
  background: var(--surface);
  border-color: var(--line);
}

.hint {
  font-size: 12px;
  color: var(--text-3);
}

.hint.warn {
  color: var(--warn-text);
}

/* 密码可见性切换：手机上核对输入内容 */
.pwd-wrap {
  position: relative;
}

.pwd-wrap .input {
  padding-right: 64px;
}

.pwd-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
}

.pwd-toggle:active {
  background: var(--surface-2);
}

/* ---------------- 开关 ---------------- */
.switch {
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: var(--fill-strong);
  flex: none;
  transition: background 0.2s var(--ease);
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--ease);
}

.switch.on {
  background: var(--accent-solid);
}

.switch.on::after {
  transform: translateX(20px);
}

/* ---------------- 滑块 ---------------- */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
}

.slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--fill-strong);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ---------------- 活动卡片 ---------------- */
.activity {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 15px 16px;
  transition: transform 0.16s var(--ease);
}

.activity:active {
  transform: scale(0.994);
}

.activity .head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.activity .name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.activity .code {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.activity .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--text-2);
}

.activity .stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.activity .stat b {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.activity .stat span {
  font-size: 11px;
  color: var(--text-3);
}

/* ---------------- 进度条 ---------------- */
.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--fill);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f7b53f, var(--accent-solid));
  transition: width 0.4s var(--ease);
}

.progress.done > span {
  background: var(--fill-strong);
}

/* ---------------- 柱状图 ---------------- */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 108px;
  padding-top: 8px;
}

.bars .bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.bars .bar {
  width: 100%;
  max-width: 30px;
  min-height: 3px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #f9c86b, var(--accent-solid));
  transition: height 0.4s var(--ease);
}

.bars .bar.zero {
  background: var(--fill);
}

.bars .day {
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
}

/* ---------------- 作品网格 ---------------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.work {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.work .media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  overflow: hidden;
}

.work .media img,
.work .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work .media img,
.work .media video {
  position: relative;
  z-index: 1;
  background: var(--surface-2);
}

.work .media .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.work .tag {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(20, 20, 22, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 550;
  backdrop-filter: blur(4px);
}

.work .tag.right {
  left: auto;
  right: 7px;
}

.work .tag.ai {
  background: rgba(107, 63, 212, 0.82);
}

.work .foot {
  padding: 9px 10px 10px;
}

.work .title {
  font-size: 13.5px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work .sub {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 上传队列 ---------------- */
.queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
}

.queue-item .bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--fill);
  overflow: hidden;
}

.queue-item .bar > span {
  display: block;
  height: 100%;
  background: var(--accent-solid);
  transition: width 0.2s linear;
}

.queue-item .state {
  font-size: 11.5px;
  color: var(--text-3);
  width: 46px;
  text-align: right;
  flex: none;
}

/* ---------------- 弹幕 / 列表行 ---------------- */
.dm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--surface);
}

.dm-row + .dm-row {
  border-top: 1px solid var(--line);
}

.dm-row .text {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-row .src {
  font-size: 11px;
  color: var(--text-3);
  flex: none;
}

.dm-row.off .text {
  color: var(--text-3);
  text-decoration: line-through;
}

/* ---------------- 数据页 ---------------- */
.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
}

.kv .cell {
  background: var(--surface);
  padding: 12px 14px;
}

.kv .cell .k {
  font-size: 11.5px;
  color: var(--text-2);
}

.kv .cell .v {
  margin-top: 3px;
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--surface);
}

.rank-row + .rank-row {
  border-top: 1px solid var(--line);
}

.rank-no {
  width: 22px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  flex: none;
  text-align: center;
}

.rank-no.top {
  color: var(--accent);
}

.rank-main {
  flex: 1;
  min-width: 0;
}

.rank-main .t {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.rank-main .bar-line {
  display: block;
  margin-top: 6px;
  height: 5px;
  border-radius: 999px;
  background: var(--fill-soft);
  overflow: hidden;
}

.rank-main .bar-line > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f7c165, var(--accent-solid));
}

.rank-num {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th,
.table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.table th {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td.num,
.table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------------- 宫格入口 ---------------- */
.entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  font-size: 12.5px;
  color: var(--text-2);
  transition: transform 0.16s var(--ease);
}

.entry:active {
  transform: scale(0.97);
}

.entry .ico {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* ---------------- 空态 / 骨架 ---------------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 46px 24px;
  text-align: center;
  color: var(--text-3);
}

.empty .ico {
  width: 38px;
  height: 38px;
  opacity: 0.55;
}

.empty p {
  font-size: 13.5px;
  line-height: 1.55;
}

/* ---------------- 悬浮按钮 ---------------- */
.fab {
  position: fixed;
  right: 18px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 18px);
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow-float);
  transition: transform 0.16s var(--ease);
}

.fab:active {
  transform: scale(0.94);
}

.fab .ico {
  width: 26px;
  height: 26px;
}

/* ---------------- 底部弹层 ---------------- */
.layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: var(--mask);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  pointer-events: auto;
}

.backdrop.show {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 81;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px -12px rgba(0, 0, 0, 0.28);
  transform: translateY(102%);
  transition: transform 0.3s var(--ease);
  pointer-events: auto;
  padding-bottom: var(--safe-bottom);
}

.sheet.show {
  transform: translateY(0);
}

.sheet .grab {
  width: 38px;
  height: 5px;
  border-radius: 3px;
  background: var(--fill-strong);
  margin: 8px auto 2px;
  flex: none;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 18px 10px;
  flex: none;
}

.sheet-head h3 {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sheet-body {
  padding: 4px 18px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-foot {
  display: flex;
  gap: 10px;
  padding: 10px 18px 16px;
  border-top: 1px solid var(--line);
  flex: none;
}

.sheet-foot .btn {
  flex: 1;
}

.sheet-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.sheet-close .ico {
  width: 16px;
  height: 16px;
}

.actions {
  padding: 4px 0 8px;
}

.action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  text-align: left;
  background: var(--surface);
}

.action:active {
  background: var(--surface-2);
}

.action + .action {
  border-top: 1px solid var(--line);
}

.action.danger {
  color: var(--danger);
}

.action .ico {
  width: 20px;
  height: 20px;
  color: var(--text-3);
}

.action.danger .ico {
  color: var(--danger);
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 26px);
  z-index: 95;
  transform: translate(-50%, 12px);
  max-width: 82vw;
  padding: 11px 18px;
  border-radius: 14px;
  background: var(--toast-bg);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.24s var(--ease);
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-error {
  background: rgba(180, 35, 24, 0.96);
}

.toast-success {
  background: rgba(11, 122, 66, 0.96);
}

/* ---------------- 图片查看器 ---------------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #0b0b0d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer img,
.viewer video {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}

.viewer .close {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- 旋转指示 ---------------- */
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--spinner-track);
  border-top-color: var(--spinner-head);
  animation: spin 0.8s linear infinite;
}

.btn-primary .spinner {
  border-color: var(--spinner-on-ink-track);
  border-top-color: var(--on-ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 0;
  color: var(--text-3);
  font-size: 13.5px;
}

/* ---------------- 下拉刷新 ---------------- */
.ptr {
  position: fixed;
  top: calc(var(--safe-top) + 66px);
  left: 50%;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px -8px rgba(16, 18, 25, 0.24);
  color: var(--text-2);
  font-size: 12.5px;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
  /* 只做淡入淡出，不做位移；缓动换成前后均匀的 ease，弹性曲线前期跑太快会把淡出吃掉 */
  transition: opacity 0.26s ease;
}

.ptr .spinner {
  width: 14px;
  height: 14px;
}

/* 刷新结束后把转圈换成结果图标，三态互斥 */
.ptr .tick,
.ptr .fail {
  display: none;
  align-items: center;
  color: var(--success);
}

.ptr .fail {
  color: var(--danger);
}

.ptr .tick .ico,
.ptr .fail .ico {
  width: 14px;
  height: 14px;
}

.ptr.done .spinner,
.ptr.fail .spinner {
  display: none;
}

.ptr.done .tick,
.ptr.fail .fail {
  display: flex;
}

/* ---------------- 登录页 ---------------- */
.login {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--safe-top) + 42px) 26px calc(var(--safe-bottom) + 32px);
  background: var(--surface);
  animation: view-in 0.3s var(--ease);
}

.login .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.login .brand h1 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.login .brand p {
  font-size: 13.5px;
  color: var(--text-2);
}

.login form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login .error {
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
}

.login .foot {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
}

.mark {
  display: block;
  margin: 0 auto;
  border-radius: 22.37%;
  background: #0b0b0b;
}

/* ---------------- 详情页头部 ---------------- */
.hero {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.hero .title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero .meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12.5px;
  color: var(--text-2);
}

.hero .meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero .meta .ico {
  width: 15px;
  height: 15px;
  color: var(--text-3);
}

/* ---------------- 工具类 ---------------- */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.w-full { width: 100%; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (min-width: 520px) {
  #view {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  #appbar,
  #tabbar {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
  }

  #tabbar {
    position: fixed;
  }

  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ---------------- AI 问答 ---------------- */
.qa {
  padding-bottom: 92px;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 46px 20px;
  text-align: center;
}

.qa-empty-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 4px;
}

.qa-empty-mark .ico {
  width: 26px;
  height: 26px;
}

.qa-empty-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.qa-empty-sub {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 270px;
}

.qa-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
  max-width: 320px;
}

.qa-chip {
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-2);
  text-align: left;
  transition: background 0.16s var(--ease);
}

.qa-chip:active {
  background: var(--surface-2);
}

.qa-msg {
  display: flex;
}

.qa-msg.user {
  justify-content: flex-end;
}

.qa-bubble {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.62;
  word-break: break-word;
}

.qa-msg.user .qa-bubble {
  background: var(--ink);
  color: var(--on-ink);
  border-bottom-right-radius: 6px;
}

.qa-msg.assistant .qa-bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.qa-bubble img {
  max-width: 190px;
  max-height: 240px;
  border-radius: 10px;
  display: block;
  margin-bottom: 8px;
}

.qa-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.qa-tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
}

.qa-tool .ico {
  width: 13px;
  height: 13px;
}

.qa-tool.running {
  background: var(--accent-soft);
  color: var(--accent);
}

.qa-tool.running .ico {
  animation: spin 1.1s linear infinite;
}

.qa-code {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 10px;
  padding: 10px 12px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
  margin: 6px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.qa-inline {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.qa-p {
  margin: 0;
}

.qa-p + .qa-p {
  margin-top: 8px;
}

.qa-h {
  display: block;
  margin: 8px 0 3px;
  font-weight: 600;
}

.qa-h1 { font-size: 17px; }
.qa-h2 { font-size: 16px; }
.qa-h3,
.qa-h4 { font-size: 15px; }

.qa-ul,
.qa-ol {
  margin: 5px 0;
  padding-left: 21px;
}

.qa-ul { list-style: disc; }
.qa-ol { list-style: decimal; }

.qa-ul li,
.qa-ol li {
  margin: 2px 0;
}

.qa-quote {
  margin: 7px 0;
  padding: 2px 0 2px 11px;
  border-left: 3px solid var(--line);
  color: var(--text-2);
}

.qa-hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 10px 0;
}

.qa-table-wrap {
  margin: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.qa-table {
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 100%;
}

.qa-table th,
.qa-table td {
  border: 1px solid var(--line);
  padding: 5px 10px;
  text-align: left;
}

.qa-table th {
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
}

.qa-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.qa-fail {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--danger);
}

/* 会话记录：底部弹层里的一条 */
.chat-sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-session {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  transition: opacity 0.2s ease;
}

.chat-session.on {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.chat-session.removing {
  opacity: 0.4;
}

.chat-session-main {
  flex: 1;
  min-width: 0;
}

.chat-session-title {
  font-size: 14.5px;
  line-height: 1.4;
}

.chat-session-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-2);
}

/* 历史消息里只剩标记、没有图片本体时的占位 */
.qa-img-gone {
  padding: 2px 0 6px;
  font-size: 12.5px;
  color: var(--text-2);
}

/* 「」里是要转给客户的话术：点一下给复制提示，连点两下直接复制 */
.qa-quote-copy {
  color: var(--quote);
  background: var(--quote-bg);
  border-radius: 6px;
  padding: 1px 3px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.qa-quote-copy:active {
  background: var(--quote-active);
}

/* 用户自己的气泡是深色底，换成浅一点的蓝才看得清 */
.qa-msg.user .qa-quote-copy {
  color: var(--quote-on-ink);
  background: var(--quote-on-ink-bg);
}

.qa-msg.user .qa-quote-copy:active {
  background: var(--quote-on-ink-active);
}

.qa-compose {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  z-index: 30;
  padding: 8px 12px;
  background: var(--glass-2);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
}

.qa-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.qa-pick {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.qa-pick.busy {
  opacity: 0.45;
}

.qa-text {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 1px solid var(--line-strong);
  border-radius: 19px;
  padding: 9px 14px;
  font-size: 16px;
  line-height: 1.4;
  max-height: 132px;
  background: var(--surface);
  color: var(--text);
}

.qa-text:focus {
  border-color: var(--accent-solid);
  outline: none;
}

.qa-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-solid);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.qa-send .ico {
  width: 19px;
  height: 19px;
}

.qa-attach {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.qa-attach img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.qa-attach-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-attach-x .ico {
  width: 12px;
  height: 12px;
}

@media (min-width: 520px) {
  .qa-compose {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   深色模式
   自动模式跟随系统；「我的 → 设置」里可手动锁定浅色或深色，
   锁定的值写在 <html data-theme="…">，优先级高于系统偏好。
   ========================================================= */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #000000;
    --surface: #161618;
    --surface-2: #1e1e21;
    --text: #f2f2f4;
    --text-2: #a1a1a8;
    --text-3: #71717a;
    --line: #26262a;
    --line-strong: #33333a;
    --accent: #e8a33d;
    --accent-soft: #2e2314;
    --danger: #ff6b60;
    --danger-soft: #3a1c19;
    --success: #3ddc84;
    --success-soft: #0f2a1c;
    --info-soft: #16233a;
    --info: #6ea8fe;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.6), 0 10px 24px -16px rgba(0, 0, 0, 0.9);
    --shadow-float: 0 8px 28px -8px rgba(0, 0, 0, 0.85);
    --glass: #161618;
    --glass-2: rgba(16, 16, 18, 0.92);
    --fill: #26262a;
    --fill-strong: #33333a;
    --fill-soft: #1f1f23;
    --ink: #f2f2f4;
    --on-ink: #131315;
    --mask: rgba(0, 0, 0, 0.62);
    --warn-bg: #2a2210;
    --warn-text: #e8bf7a;
    --warn-line: #3d3118;
    --purple-bg: #241d38;
    --purple-text: #b79cf5;
    --toast-bg: rgba(58, 58, 62, 0.96);
    --spinner-track: rgba(255, 255, 255, 0.18);
    --spinner-head: rgba(255, 255, 255, 0.7);
    --spinner-on-ink-track: rgba(0, 0, 0, 0.22);
    --quote: #7cb0ff;
    --quote-bg: rgba(124, 176, 255, 0.14);
    --quote-active: rgba(124, 176, 255, 0.26);
    --quote-on-ink: #1d4ed8;
    --quote-on-ink-bg: rgba(29, 78, 216, 0.1);
    --quote-on-ink-active: rgba(29, 78, 216, 0.2);
    --code-bg: #08080a;
    --code-text: #e6e6e9;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #161618;
  --surface-2: #1e1e21;
  --text: #f2f2f4;
  --text-2: #a1a1a8;
  --text-3: #71717a;
  --line: #26262a;
  --line-strong: #33333a;
  --accent: #e8a33d;
  --accent-soft: #2e2314;
  --danger: #ff6b60;
  --danger-soft: #3a1c19;
  --success: #3ddc84;
  --success-soft: #0f2a1c;
  --info-soft: #16233a;
  --info: #6ea8fe;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.6), 0 10px 24px -16px rgba(0, 0, 0, 0.9);
  --shadow-float: 0 8px 28px -8px rgba(0, 0, 0, 0.85);
  --glass: #161618;
  --glass-2: rgba(16, 16, 18, 0.92);
  --fill: #26262a;
  --fill-strong: #33333a;
  --fill-soft: #1f1f23;
  --ink: #f2f2f4;
  --on-ink: #131315;
  --mask: rgba(0, 0, 0, 0.62);
  --warn-bg: #2a2210;
  --warn-text: #e8bf7a;
  --warn-line: #3d3118;
  --purple-bg: #241d38;
  --purple-text: #b79cf5;
  --toast-bg: rgba(58, 58, 62, 0.96);
  --spinner-track: rgba(255, 255, 255, 0.18);
  --spinner-head: rgba(255, 255, 255, 0.7);
  --spinner-on-ink-track: rgba(0, 0, 0, 0.22);
  --quote: #7cb0ff;
  --quote-bg: rgba(124, 176, 255, 0.14);
  --quote-active: rgba(124, 176, 255, 0.26);
  --quote-on-ink: #1d4ed8;
  --quote-on-ink-bg: rgba(29, 78, 216, 0.1);
  --quote-on-ink-active: rgba(29, 78, 216, 0.2);
  --code-bg: #08080a;
  --code-text: #e6e6e9;
}
