:root {
  --bg: #282a36;
  --panel: #21222c;
  --bar: #15171c;
  --fg: #f8f8f2;
  --muted: #9aa0b5;
  --accent: #50fa7b;
  --cyan: #8be9fd;
  --err: #ff5555;
  --warn: #f1fa8c;
  --line: #343746;
}

* { box-sizing: border-box; }

/* hidden 必须压过 .field{display:flex} 这类类选择器，否则“该藏的没藏” */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

/* ---------- 顶栏 ---------- */
.bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  padding-top: calc(8px + env(safe-area-inset-top));
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}

.fname {
  flex: 1 1 130px;
  min-width: 110px;
  height: 40px;
  padding: 0 10px;
  color: var(--fg);
  background: #1c1e26;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 15px/1 ui-monospace, Menlo, Consolas, monospace;
}

#std {
  height: 40px;
  padding: 0 8px;
  color: var(--fg);
  background: #1c1e26;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
}

button {
  height: 40px;
  padding: 0 14px;
  color: var(--fg);
  background: #2b2e3b;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}

button:active { transform: scale(0.97); }

button:disabled { opacity: 0.5; }

button.primary {
  color: #0f1117;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

button.ghost {
  background: transparent;
  color: var(--muted);
  height: 32px;
  padding: 0 10px;
}

/* ---------- 编辑器 ---------- */
#editor-host {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: var(--bg);
}

.CodeMirror {
  height: 100%;
  font: 15px/1.55 ui-monospace, Menlo, Consolas, monospace;
}

.CodeMirror-scroll { padding-bottom: 40vh; }

.cm-error-line { background: rgba(255, 85, 85, 0.18) !important; }

/* ---------- 输出面板 ---------- */
#output-panel {
  flex: 0 0 auto;
  height: 38dvh;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

#output-panel.collapsed { height: 52px; min-height: 52px; overflow: hidden; }

.panel-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
}

.tabs { display: flex; gap: 6px; }

.tab {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

.tab.active {
  color: var(--fg);
  background: #2b2e3b;
  border-color: var(--line);
}

#status {
  flex: 1 1 auto;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#status.ok { color: var(--accent); }
#status.err { color: var(--err); }

.pane {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px;
}

.pane.active { display: block; }

pre {
  margin: 0;
  font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d7dae0;
}

pre:empty::after {
  content: "（暂无输出）";
  color: #5b6070;
}

.errors { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }

.error-row {
  display: block;
  width: 100%;
  height: auto;
  text-align: left;
  padding: 8px 10px;
  background: #2a1f26;
  border: 1px solid var(--line);
  border-left: 3px solid var(--err);
  border-radius: 8px;
  font: 14px/1.45 -apple-system, "PingFang SC", sans-serif;
}

.error-row.warn { background: #2a2a1f; border-left-color: var(--warn); }

.error-row .loc {
  display: inline-block;
  margin-right: 8px;
  color: var(--cyan);
  font: 13px/1 ui-monospace, Menlo, monospace;
}

.error-row .msg { color: var(--fg); }

.stdin {
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  padding: 6px 12px 8px;
}

.stdin summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
}

#stdin {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  color: var(--fg);
  background: #1a1b23;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 13px/1.5 ui-monospace, Menlo, monospace;
  resize: vertical;
}

/* 触屏设备：输入框字号 >= 16px，避免 iPad 聚焦时自动放大页面 */
@media (pointer: coarse) {
  .CodeMirror textarea,
  #stdin,
  .fname { font-size: 16px; }
}

@media (max-width: 700px) {
  .bar { gap: 6px; padding: 6px 8px; }
  button { padding: 0 10px; font-size: 14px; }
  .fname { flex-basis: 100px; }
  #output-panel { height: 42dvh; }
}

/* ---------- 弹窗：登录 / 二次验证 ---------- */
.dlg {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--fg);
  overflow: auto;
}

.dlg::backdrop { background: rgba(0, 0, 0, 0.62); }

.dlg-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
}

.dlg-body h2 { margin: 0; font-size: 17px; font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { color: var(--muted); font-size: 13px; }
.field input {
  height: 44px;
  padding: 0 12px;
  color: var(--fg);
  background: #1c1e26;
  border: 1px solid var(--line);
  border-radius: 10px;
  /* 16px 起步，避免 iPad 聚焦时把页面放大 */
  font: 16px/1 ui-monospace, Menlo, Consolas, monospace;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.err { margin: 0; color: var(--err); font-size: 13px; }

.dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.dlg-actions button { min-height: 40px; }
.danger { color: var(--err); border-color: rgba(255, 85, 85, 0.45); }

.qr {
  display: flex;
  justify-content: center;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
}
.qr svg { display: block; width: 200px; height: 200px; }

.secret {
  display: block;
  padding: 10px 12px;
  background: #1c1e26;
  border: 1px dashed var(--line);
  border-radius: 10px;
  font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}

.codes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.codes code {
  display: block;
  padding: 6px 8px;
  background: #1c1e26;
  border-radius: 8px;
  font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace;
}

@media (max-width: 430px) {
  .codes { grid-template-columns: 1fr; }
}

/* ---------- DZL-C 助手抽屉 ---------- */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.45);
}

.drawer[hidden] { display: none; }

.drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--bar);
  border-bottom: 1px solid var(--line);
}

.drawer-head strong { font-size: 15px; letter-spacing: 0.4px; }

.check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.chat-log {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow-y: auto;
}

.msg {
  max-width: 92%;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.msg p { margin: 0 0 6px; }
.msg p:last-child { margin-bottom: 0; }

.msg pre {
  margin: 6px 0 0;
  padding: 9px 10px;
  overflow-x: auto;
  background: #15171c;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace;
  white-space: pre;
}

.msg.user { align-self: flex-end; background: #2f4f3a; color: #eafbe9; }
.msg.assistant { align-self: flex-start; background: #2a2c38; }
.msg.system { align-self: center; background: transparent; color: var(--err); font-size: 13px; text-align: center; }

.drawer-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--bar);
  border-top: 1px solid var(--line);
}

.drawer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

/* 待发送的缩略图 */
.shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shot {
  position: relative;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
  border: 0;
  border-radius: 50%;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

/* 待发送的文本文件 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 9px;
  color: var(--fg);
  background: #1c1e26;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 12.5px/1.4 ui-monospace, Menlo, Consolas, monospace;
}

.chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-del {
  padding: 0 2px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.chip-inline { margin: 6px 6px 0 0; }

.msg .shot-inline {
  display: block;
  max-width: 180px;
  max-height: 140px;
  margin: 6px 0 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#ai-input {
  flex: 1 1 auto;
  min-height: 44px;
  max-height: 130px;
  padding: 10px 12px;
  resize: vertical;
  color: var(--fg);
  background: #1c1e26;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

#ai-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* ---------- 终端（流式输出） ---------- */
#pane-run { padding: 0; overflow: hidden; }
#pane-run.active { display: flex; flex-direction: column; }

#out.term {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  color: #d7dde6;
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(61, 220, 132, 0.05), transparent 55%),
    radial-gradient(120% 90% at 100% 0%, rgba(94, 129, 255, 0.05), transparent 55%),
    #0b0e13;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font: 13.5px/1.65 ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 4;
}

#out.term:empty::before {
  content: "点「编译运行」，输出会像终端一样逐行出现";
  color: #5a6472;
}

.term-err { color: #ff7b72; }
.term-note { color: #6c7787; }
.term-in { color: #3ddc84; }

.tty {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #0e1218;
  border-top: 1px solid #1b222c;
}

.tty-prompt {
  color: #3ddc84;
  font: 700 15px/1 ui-monospace, Menlo, Consolas, monospace;
}

.tty-input {
  flex: 1 1 auto;
  height: 38px;
  padding: 0 10px;
  color: #d7dde6;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #232b36;
  border-radius: 8px;
  /* 16px 起步，iPad 聚焦时不放大页面 */
  font: 16px/1.3 ui-monospace, Menlo, Consolas, monospace;
}

.tty-input:focus {
  outline: none;
  border-color: #3a5a47;
  box-shadow: 0 0 0 2px rgba(61, 220, 132, 0.12);
}

.tty-input:disabled { opacity: 0.5; }

/* ---------- 示例库 ---------- */
.ex-filter {
  height: 38px;
  padding: 0 12px;
  color: var(--fg);
  background: #1c1e26;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: 15px/1 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.ex-filter:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.ex-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 56dvh;
  overflow: auto;
  margin-top: 4px;
}

.ex-group { margin: 10px 0 2px; color: var(--muted); font-size: 12px; letter-spacing: 0.5px; }

.ex-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  text-align: left;
  color: var(--fg);
  background: #1c1e26;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  cursor: pointer;
}
.ex-item:hover { border-color: var(--accent); }

.ex-ext { color: var(--muted); font: 12px ui-monospace, Menlo, Consolas, monospace; }

/* ============================================================
   品牌动态背景（2026-10-20）
   · 视觉：两团品牌色雾缓慢漂移 + 商标水印（5.5% 不透明度）
   · 性能：只有 transform 动画（合成层），零 JS 逐帧 ⇒ 不抢编辑器按键延迟
   · 换色：html[data-bg="a|b|c|d"] 改四个变量；点顶栏「换色」循环
   · 无障碍：prefers-reduced-motion 下不动
   ============================================================ */
html {
  background: #0b0c12;
  --glow1: #1e4fd8;
  --glow2: #0b63b8;
  --accent-bg: #4c8dff;
}
html[data-bg="b"] { --glow1: #0f766e; --glow2: #1a8f5f; --accent-bg: #34d399; }
html[data-bg="c"] { --glow1: #5b21b6; --glow2: #7c3aed; --accent-bg: #a78bfa; }
html[data-bg="d"] { --glow1: #92400e; --glow2: #b45309; --accent-bg: #f59e0b; }

#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #0c0d14;
}
#bg i {
  position: absolute;
  display: block;
  width: 90vmax;
  height: 90vmax;
  border-radius: 50%;
  opacity: .85;
  will-change: transform;
}
/* ⚠ 圆心必须落在视口内：先前把它放到 -40/-55vmax，可见区只剩渐变尾部 ⇒ 等于没画（实测截图验证 ✓）*/
#bg .g1 {
  left: -30vmax;
  top: -32vmax;
  background: radial-gradient(circle, var(--glow1) 0%, transparent 68%);
  animation: bg-drift-1 26s ease-in-out infinite alternate;
}
#bg .g2 {
  width: 80vmax;
  height: 80vmax;
  right: -25vmax;
  bottom: -28vmax;
  background: radial-gradient(circle, var(--glow2) 0%, transparent 68%);
  animation: bg-drift-2 34s ease-in-out infinite alternate;
}
#bg .mark {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(86vw, 1200px);
  height: min(86vw, 1200px);
  transform: translate(-50%, -50%);
  background: url("/brand/logo.png") center / contain no-repeat;
  opacity: .07;
}
@keyframes bg-drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(58vmax, 40vmax, 0) scale(1.15); }
}
@keyframes bg-drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to { transform: translate3d(-52vmax, -38vmax, 0) scale(1); }
}
/* 站主明确要求「背景要有动效」⇒ 这三处品牌动效不跟随系统的"减少动态效果"。
   幅度极小（4.5% 缩放 / 28s 位移），周期长，不构成闪烁风险；想恢复跟随系统，把下面三处
   @media (prefers-reduced-motion: reduce) 的 animation:none 加回来即可 ✓ */

/* 品牌动效底：直接铺在**面板自己身上** ✗ 不再依赖 #bg 层
   （实测：#bg 用 z-index:-1 时被不透明面板完全盖住 ⇒ 看不见 ✓ 这就是它先前"没效果"的原因）
   两层径向渐变 + 28s 缓慢位移 ⇒ 像有色玻璃在缓慢流动 ✓ 只用 background-position ⇒ 不占 GPU 合成线程 */
body { background: transparent; }
.bar,
#editor-host,
#output-panel {
  background-image:
    radial-gradient(72% 92% at 6% -6%, color-mix(in srgb, var(--glow1) 58%, transparent) 0%, transparent 58%),
    radial-gradient(66% 84% at 104% 106%, color-mix(in srgb, var(--glow2) 52%, transparent) 0%, transparent 58%);
  background-repeat: no-repeat;
  background-size: 170% 170%, 170% 170%;
  animation: bg-shift 28s ease-in-out infinite alternate;
}
.bar { background-color: rgba(16, 18, 25, 0.80); backdrop-filter: blur(14px) saturate(120%); }
#editor-host { background-color: rgba(22, 24, 33, 0.70); }
#output-panel { background-color: rgba(18, 20, 28, 0.84); backdrop-filter: blur(14px) saturate(115%); }

@keyframes bg-shift {
  from { background-position: 0% 0%, 100% 100%; }
  to { background-position: 55% 45%, 45% 55%; }
}
/* 渐变流动同理：站主要求可见的"动态效果"，不随系统 reduce-motion 关闭 ✓ */

/* 商标水印：只铺在编辑区（最大的那块面）—— 中心 60% 宽，8% 不透明度，不抢字 */
/* isolation：让下面 ::before 的负 z-index 只在本层生效
   —— 既不会掉到页面背景后面（那样看不见），也不会盖住代码文字 ✓ */
#editor-host { isolation: isolate; }

/* 呼吸的是「背景色」：代码背后一层径向光晕一明一暗，商标本身一动不动 ✓ */
#editor-host::before {
  content: "";
  position: absolute;
  inset: -4%;                  /* 放大余量 ⇒ 呼吸时四边不露缝 ✓ */
  z-index: -1;                 /* 面板底色之上、代码文字之下 ✓ */
  background:
    radial-gradient(58% 68% at 28% 22%,
      color-mix(in srgb, var(--glow1) 62%, transparent) 0%, transparent 72%),
    radial-gradient(54% 64% at 76% 82%,
      color-mix(in srgb, var(--glow2) 58%, transparent) 0%, transparent 72%);
  opacity: .42;
  pointer-events: none;
  will-change: transform, opacity;   /* 只动 transform/opacity ⇒ 合成层，不重排文字 ✓ */
  animation: bg-breathe 6.5s ease-in-out infinite;
}
@keyframes bg-breathe {
  0%, 100% { transform: scale(1); opacity: .42; }
  50% { transform: scale(1.06); opacity: .82; }
}

/* 商标：静止水印，不缩放、不呼吸 ✓ */
#editor-host::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/brand/logo.png") center / 62% no-repeat;
  opacity: .08;
  pointer-events: none;
}
/* 编辑器底色是 vendor/dracula.css 的 !important ⇒ 这里必须同样 !important 才能透出来 */
.cm-s-dracula.CodeMirror { background-color: transparent !important; }
.cm-s-dracula .CodeMirror-gutters { background-color: rgba(16, 18, 25, 0.42) !important; }

/* 「换色」按钮前面那个小圆点 = 当前背景色 */
#btn-bg::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent-bg);
}

/* ---------- 背景配色面板（与桌面版「选择主题」同形） ---------- */
.bg-panel {
  position: fixed;
  z-index: 60;
  width: 236px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(20, 22, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(120%);
  transform-origin: top right;
  transform: scaleY(0.9) translateY(-4px);
  opacity: 0;
  transition: transform .16s ease-out, opacity .16s ease-out;
}
.bg-panel.in { transform: scaleY(1) translateY(0); opacity: 1; }

.bg-panel-title {
  margin: 2px 2px 10px;
  font-size: 12px;
  color: var(--muted);
}

.bg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.bg-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: auto;          /* 全局 button 是 height:40px ⇒ 这里必须显式改回自适应，否则预览被压扁 ✓ */
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.bg-card:hover { background: rgba(255, 255, 255, 0.07); }
.bg-card.on { border-color: var(--accent-bg); }

/* 迷你预览：两块色雾 + 品牌色杠 + 两条文字线（和桌面版的缩略图一个意思） */
.bg-prev {
  display: block;
  flex: none;
  height: 46px;
  border-radius: 6px;
  background-color: #12141b;
  background-image:
    linear-gradient(var(--pa), var(--pa)),
    linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)),
    linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)),
    radial-gradient(70% 90% at 18% 12%, var(--p1) 0%, transparent 68%),
    radial-gradient(60% 80% at 88% 88%, var(--p2) 0%, transparent 68%);
  background-repeat: no-repeat;
  background-size: 3px 16px, 34px 3px, 22px 3px, 100% 100%, 100% 100%;
  background-position: 9px 9px, 17px 10px, 17px 17px, 0 0, 0 0;
}

.bg-name { font-size: 12px; text-align: left; color: var(--muted); }
.bg-card.on .bg-name { color: var(--fg); }
