/* b.css — B 版：一次只問一件事。純中性灰；琥珀色只表示「輪到你」和「還沒確認」。 */

.skin-b {
  --b-bg: #1c1c1c;
  --b-panel: #262626;
  --b-well: #121212;
  --b-line: #3a3a3a;
  --b-edge: #5a5a5a;
  --b-fg: #f2f2f2;
  --b-dim: #b8b8b8;
  --b-seg: #4a4a4a;
  --b-amber: #f2b544;
  --b-ink: #161616;
  --b-sans: 'Noto Sans TC', system-ui, sans-serif;
  --b-serif: 'Noto Serif TC', serif;
  --b-mono: 'JetBrains Mono', monospace;

  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--b-bg);
  color: var(--b-fg);
  font-family: var(--b-sans);
  font-size: 14px;
  line-height: 22px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

.skin-b *, .skin-b *::before, .skin-b *::after { box-sizing: border-box; }
.skin-b h1, .skin-b h2, .skin-b h3, .skin-b p, .skin-b ul, .skin-b ol, .skin-b dl, .skin-b dd, .skin-b figure { margin: 0; padding: 0; }
.skin-b ul, .skin-b ol { list-style: none; }
.skin-b a { color: inherit; text-decoration: none; }
.skin-b button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; border-radius: 0; cursor: pointer; text-align: inherit; }
.skin-b button:disabled { cursor: default; opacity: 0.45; }
.skin-b img, .skin-b video { max-width: 100%; }
.skin-b :focus { outline: none; }
.skin-b :focus-visible { outline: 2px solid #f2f2f2; outline-offset: 2px; }

.skin-b .b-mono { font-family: var(--b-mono); }
.skin-b .b-small { font-size: 12px; line-height: 18px; }
.skin-b .b-dim { color: var(--b-dim); }
.skin-b .b-strong { font-weight: 700; }
.skin-b .b-right { margin-left: auto; text-align: right; }
.skin-b .b-pad { padding: 0 16px; }
.skin-b .b-p { font-size: 14px; line-height: 22px; }
.skin-b .b-blockline { display: block; }
.skin-b .b-amber-t { color: var(--b-amber); }

.skin-b .b-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--b-amber); }

.skin-b .b-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ---------- 標題 ---------- */
.skin-b .b-h1 { font-size: 20px; line-height: 28px; font-weight: 700; }
.skin-b .b-h3 { font-size: 13px; line-height: 20px; font-weight: 700; }
.skin-b .b-title { font-family: var(--b-serif); font-weight: 600; font-size: 30px; line-height: 40px; }
.skin-b .b-q { font-family: var(--b-serif); font-weight: 600; font-size: 30px; line-height: 40px; }
.skin-b .b-q-sm { font-size: 18px; line-height: 28px; font-weight: 700; }
.skin-b .b-desk .b-q, .skin-b.b-desk .b-q, .skin-b.b-desk .b-title { font-size: 36px; line-height: 46px; }
.skin-b .b-then { font-size: 14px; line-height: 22px; color: var(--b-dim); }

/* ---------- 按鈕 ---------- */
.skin-b .b-btn {
  display: flex; align-items: center; justify-content: center;
  height: 56px; border-radius: 12px; border: 1px solid var(--b-edge);
  font-size: 16px; font-weight: 500; text-align: center; color: var(--b-fg); background: transparent;
}
.skin-b .b-btn-pri { background: #f2f2f2; color: var(--b-ink); border-color: #f2f2f2; font-weight: 700; }
.skin-b .b-btn-ghost.is-open { background: var(--b-panel); }
.skin-b .b-btn-sm { height: 44px; padding: 0 16px; font-size: 14px; }
.skin-b .b-btn-inline { display: inline-flex; padding: 0 20px; }
.skin-b .b-txt { min-height: 44px; min-width: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--b-dim); text-decoration: underline; text-underline-offset: 3px; }
.skin-b .b-txt:hover { color: var(--b-fg); }
.skin-b .b-back { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--b-dim); }
.skin-b .b-back:hover { color: var(--b-fg); }

.skin-b .b-seg { min-height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--b-dim); border: 1px solid var(--b-edge); }
.skin-b .b-seg.is-on { background: #f2f2f2; color: var(--b-ink); border-color: #f2f2f2; font-weight: 700; }
.skin-b .b-seg-group { display: inline-flex; }
.skin-b .b-seg-group .b-seg:first-child { border-radius: 10px 0 0 10px; }
.skin-b .b-seg-group .b-seg:last-child { border-radius: 0 10px 10px 0; border-left: 0; }

.skin-b .b-input {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--b-edge);
  background: var(--b-panel); color: var(--b-fg); font: inherit; font-size: 14px;
}
.skin-b .b-area { height: auto; padding: 10px 12px; line-height: 22px; resize: vertical; }
.skin-b textarea.b-input { display: block; }

/* ---------- 狀態 ---------- */
.skin-b .b-state { padding: 32px 16px; color: var(--b-dim); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.skin-b .b-err { color: var(--b-fg); font-size: 13px; line-height: 20px; padding: 8px 12px; border: 1px solid var(--b-edge); border-radius: 10px; background: var(--b-panel); }

/* ---------- 頂列（手機） ---------- */
.skin-b .b-top { flex: none; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--b-line); }
.skin-b .b-top-row { display: flex; align-items: center; padding: 0 16px; min-height: 44px; }
.skin-b .b-back-top { margin-left: -4px; }
.skin-b .b-main-nav { display: flex; gap: 4px; }
.skin-b .b-main-link { min-height: 44px; padding: 0 12px 0 0; margin-right: 8px; display: inline-flex; align-items: center; font-size: 15px; color: var(--b-dim); }
.skin-b .b-main-link.is-on { color: var(--b-fg); font-weight: 700; }

.skin-b .b-lines { display: flex; align-items: stretch; gap: 2px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--b-line); }
.skin-b .b-lines::-webkit-scrollbar { display: none; }
.skin-b .b-line { flex: none; height: 44px; padding: 0 8px; display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--b-dim); }
.skin-b .b-line.is-on { color: var(--b-fg); font-weight: 700; box-shadow: inset 0 -2px 0 #f2f2f2; }
.skin-b .b-line-n { font-size: 12px; font-weight: 400; }
.skin-b .b-lines-sep { flex: none; align-self: center; width: 1px; height: 20px; margin: 0 6px; background: var(--b-line); }

/* ---------- 頂列（電腦） ---------- */
.skin-b .b-head { flex: none; display: flex; align-items: center; gap: 0 28px; padding: 0 16px; min-height: 56px; border-bottom: 1px solid var(--b-line); }
.skin-b .b-brand { font-size: 15px; font-weight: 700; white-space: nowrap; }
.skin-b.b-desk .b-lines { border-top: 0; padding: 0; gap: 4px; }
.skin-b.b-desk .b-line { height: 56px; padding: 0 12px; font-size: 14px; gap: 6px; }
.skin-b.b-desk .b-lines-sep { margin: 0 8px; }
.skin-b .b-head .b-right { margin-left: auto; }

.skin-b .b-skin { display: inline-flex; align-items: center; gap: 4px; }
.skin-b .b-skin .b-small { margin-right: 6px; color: var(--b-dim); }
.skin-b .b-skin-bar { color: var(--b-line); }
.skin-b .b-skin .b-seg { border-radius: 10px; }
.skin-b .b-lib-skin { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--b-line); }

/* ---------- 電腦框架 ---------- */
.skin-b .b-frame { flex: 1; display: grid; grid-template-columns: 128px minmax(0, 1fr); min-height: calc(100dvh - 56px); }
.skin-b .b-rail { display: flex; flex-direction: column; gap: 16px; padding: 20px 16px; border-right: 1px solid var(--b-line); min-width: 0; }
.skin-b .b-rail-nav { margin-top: auto; }
.skin-b .b-main-nav.is-v { flex-direction: column; gap: 2px; }
.skin-b .b-main-nav.is-v .b-main-link { padding: 0; margin: 0; font-size: 14px; }
.skin-b .b-content { min-width: 0; display: flex; flex-direction: column; }

.skin-b .b-todo { display: flex; flex-direction: column; gap: 16px; }
.skin-b .b-todo-head { display: flex; flex-direction: column; gap: 2px; }
.skin-b .b-todo-list { display: flex; flex-direction: column; gap: 12px; }
.skin-b .b-todo-item { display: flex; flex-direction: column; gap: 6px; text-align: left; min-height: 44px; }
.skin-b .b-todo-item.is-machine { opacity: 0.5; }
.skin-b .b-todo-pic { position: relative; display: block; }
.skin-b .b-todo-pic .b-dot { position: absolute; left: 6px; top: 6px; }
.skin-b .b-todo-item.is-on .b-pic { outline: 2px solid #f2f2f2; outline-offset: -2px; }
.skin-b .b-todo-item:not(.is-on) > .b-small { color: var(--b-dim); }

/* ---------- 圖 ---------- */
.skin-b .b-pic { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--b-well); border-radius: 0; }
.skin-b .b-pic.is-cover { object-fit: cover; }
.skin-b .b-pic-empty { background: var(--b-panel); }
.skin-b .b-pic.is-final { outline: 2px solid #f2f2f2; outline-offset: -2px; }
.skin-b .b-cover { aspect-ratio: 4 / 5; object-fit: cover; }

.skin-b .b-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--b-well); }
.skin-b.b-desk .b-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.skin-b .b-fig { display: flex; flex-direction: column; background: var(--b-bg); }
.skin-b .b-fig-btn { display: block; width: 100%; cursor: zoom-in; }
.skin-b .b-fig.is-drop .b-pic { opacity: 0.35; }
.skin-b .b-figcap { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; padding: 4px 8px 8px 8px; min-height: 44px; }
.skin-b .b-fig-name { flex: 1 0 100%; min-width: 0; padding-top: 4px; font-size: 12px; line-height: 18px; }
.skin-b .b-fig-name.is-struck { text-decoration: line-through; color: var(--b-dim); }

.skin-b .b-lightbox { position: fixed; inset: 0; z-index: 50; background: var(--b-well); display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.skin-b .b-lightbox img { max-width: 100%; max-height: 100dvh; object-fit: contain; display: block; }
.skin-b .b-lightbox-close { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 8px; height: 44px; padding: 0 16px; font-size: 14px; background: var(--b-bg); }

/* ---------- 影片 ---------- */
.skin-b .b-watch { display: flex; flex-direction: column; min-width: 0; }
.skin-b .b-video-box { background: var(--b-well); display: flex; justify-content: center; }
.skin-b .b-video { display: block; width: 100%; max-height: 72dvh; background: var(--b-well); object-fit: contain; }
.skin-b.b-desk .b-video { max-height: 78vh; width: auto; max-width: 100%; }
.skin-b .b-shotbar { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.skin-b .b-shots { flex: 1; display: flex; gap: 3px; min-width: 0; }
.skin-b .b-shot { flex: 1 1 0; min-width: 6px; height: 44px; display: flex; align-items: center; }
.skin-b .b-shot-bar { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--b-seg); }
.skin-b .b-shot-bar.is-on { background: #f2f2f2; }
.skin-b .b-time { white-space: nowrap; color: var(--b-dim); }
.skin-b .b-pillrow { padding: 4px 16px; }
.skin-b .b-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--b-edge); font-size: 13px; }

.skin-b .b-subs { display: flex; flex-direction: column; padding: 8px 0; }
.skin-b .b-sub { display: flex; align-items: stretch; gap: 4px; padding: 0 8px 0 16px; border-top: 1px solid var(--b-line); }
.skin-b .b-sub-main { flex: 1; min-width: 0; min-height: 44px; padding: 10px 0; display: flex; flex-direction: column; gap: 2px; color: var(--b-dim); }
.skin-b .b-sub-zh { font-size: 16px; line-height: 24px; }
.skin-b .b-sub-en { font-size: 12px; line-height: 18px; }
.skin-b .b-sub.is-on .b-sub-main { color: #f2f2f2; }
.skin-b .b-sub-acts { flex: none; display: flex; align-items: center; }
.skin-b .b-sub.is-editing { flex-direction: column; gap: 6px; padding: 12px 16px; }
.skin-b .b-edit-acts { display: flex; gap: 8px; margin-top: 4px; }

/* ---------- 文字關 ---------- */
.skin-b .b-textpanel { display: flex; flex-direction: column; gap: 20px; padding: 20px 16px; background: var(--b-panel); }
.skin-b .b-bigtext { font-size: 20px; line-height: 32px; white-space: pre-wrap; word-break: break-word; }
.skin-b.b-desk .b-bigtext { font-size: 22px; line-height: 36px; }

/* ---------- 區塊、清單 ---------- */
.skin-b .b-block { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 0; }
.skin-b.b-desk .b-side .b-block, .skin-b.b-desk .b-work-main .b-block { padding-left: 0; padding-right: 0; }
.skin-b .b-map { display: flex; flex-direction: column; gap: 4px; }
.skin-b .b-map li { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; line-height: 22px; }
.skin-b .b-list { display: flex; flex-direction: column; gap: 6px; }
.skin-b .b-list li { padding-left: 14px; position: relative; font-size: 14px; line-height: 22px; }
.skin-b .b-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 1px; background: var(--b-dim); }
.skin-b .b-list.is-plain { gap: 12px; }
.skin-b .b-list.is-plain li { padding-left: 0; }
.skin-b .b-list.is-plain li::before { display: none; }
.skin-b .b-req, .skin-b .b-opt { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--b-dim); border: 1px solid var(--b-edge); border-radius: 10px; padding: 0 8px; }
.skin-b .b-step { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }

.skin-b .b-kv { display: grid; grid-template-columns: minmax(80px, auto) minmax(0, 1fr); gap: 4px 16px; font-size: 13px; line-height: 20px; }
.skin-b .b-kv dt { color: var(--b-dim); }
.skin-b .b-kv dd { word-break: break-word; }

.skin-b .b-code-wrap { display: flex; flex-direction: column; background: var(--b-panel); }
.skin-b .b-code-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 12px; min-height: 44px; border-bottom: 1px solid var(--b-line); color: var(--b-dim); }
.skin-b .b-code { margin: 0; padding: 12px; max-height: 40vh; overflow: auto; font-family: var(--b-mono); font-size: 12px; line-height: 20px; white-space: pre-wrap; word-break: break-word; }

.skin-b .b-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.skin-b .b-thumb { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.skin-b .b-thumb-empty { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; border: 1px dashed var(--b-edge); font-size: 12px; color: var(--b-dim); }

.skin-b .b-chain { display: flex; flex-direction: column; margin-left: 5px; border-left: 1px solid var(--b-edge); }
.skin-b .b-node { position: relative; padding: 0 0 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.skin-b .b-node::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--b-bg); border: 1px solid var(--b-dim); }
.skin-b .b-node.is-last { padding-bottom: 0; }
.skin-b .b-node.is-last::before { background: #f2f2f2; border-color: #f2f2f2; }

/* ---------- 列 ---------- */
.skin-b .b-rows { display: flex; flex-direction: column; }
.skin-b .b-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; border-top: 1px solid var(--b-line); }
.skin-b .b-row.is-dimmed .b-row-thumb { opacity: 0.5; }
.skin-b .b-row-thumb { flex: none; width: 56px; }
.skin-b .b-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.skin-b .b-row-title { font-size: 15px; line-height: 22px; font-weight: 500; }
.skin-b .b-out { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-top: 1px solid var(--b-line); }
.skin-b .b-log { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.skin-b .b-log li { display: flex; gap: 12px; }
.skin-b .b-lib-row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-top: 1px solid var(--b-line); font-size: 15px; }

/* ---------- 頁 ---------- */
.skin-b .b-page { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); min-width: 0; }
.skin-b.b-desk .b-page { padding: 28px 32px 48px; max-width: 880px; width: 100%; }
.skin-b .b-page .b-block { padding-left: 0; padding-right: 0; padding-top: 20px; }
.skin-b .b-pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.skin-b .b-page .b-state { padding: 24px 0; }
.skin-b .b-idle { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.skin-b .b-idle > div:last-child { margin-top: 24px; }

.skin-b .b-recipes { display: flex; flex-direction: column; gap: 28px; margin-top: 16px; }
.skin-b.b-desk .b-recipes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.skin-b .b-recipe { display: flex; flex-direction: column; gap: 6px; }
.skin-b .b-recipe-name { font-size: 18px; line-height: 26px; font-weight: 700; margin-top: 6px; }

.skin-b .b-form { gap: 20px; }
.skin-b .b-field { display: flex; flex-direction: column; gap: 6px; }
.skin-b .b-label { font-size: 14px; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; }
.skin-b .b-mapedit { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.skin-b .b-maprow { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 44px; gap: 6px; align-items: center; }
.skin-b .b-details { border-top: 1px solid var(--b-line); }
.skin-b .b-details summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.skin-b .b-details summary::-webkit-details-marker { display: none; }
.skin-b .b-details summary::after { content: '展開'; margin-left: auto; font-size: 12px; font-weight: 400; color: var(--b-dim); }
.skin-b .b-details[open] summary::after { content: '收起'; }
.skin-b .b-details-in { padding: 0 0 12px; }
.skin-b .b-submit { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.skin-b .b-stack { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--b-line); }
.skin-b .b-stack-name { font-size: 15px; line-height: 22px; font-weight: 700; }
.skin-b .b-res { display: flex; flex-direction: column; gap: 8px; }
.skin-b .b-res li { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.skin-b .b-path { font-size: 12px; line-height: 18px; word-break: break-all; }
.skin-b .b-unv { display: flex; flex-direction: column; gap: 4px; }
.skin-b .b-unv li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.skin-b .b-unv .b-dot { align-self: center; }

/* ---------- 今天：手機 ---------- */
.skin-b .b-today { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.skin-b .b-today-top { flex: none; padding: 10px 16px 0; }
.skin-b .b-progress { display: flex; align-items: center; gap: 8px; }
.skin-b .b-bars { flex: 1; display: flex; gap: 4px; }
.skin-b .b-bar-seg { flex: 1 1 0; height: 3px; border-radius: 2px; background: var(--b-line); }
.skin-b .b-bar-seg.is-on { background: var(--b-amber); }
.skin-b .b-today-row { display: flex; align-items: center; min-height: 44px; gap: 4px; }
.skin-b .b-stepper { display: flex; gap: 4px; margin-left: -8px; }
.skin-b .b-stage { flex: none; background: var(--b-well); }
.skin-b .b-ask { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 0; }
.skin-b .b-workpage .b-ask { padding-bottom: 8px; }

/* 回答列：貼在畫面底部 */
.skin-b .b-bar { margin-top: auto; position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); background: var(--b-bg); }
.skin-b .b-bar-btns { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; }
.skin-b .b-bar-btns.is-two { grid-template-columns: 1fr 2fr; }
.skin-b .b-reject { display: flex; flex-direction: column; gap: 6px; }
.skin-b .b-reject-row { display: flex; gap: 8px; }
.skin-b .b-reject-row .b-input { flex: 1; min-width: 0; }
.skin-b .b-reject-row .b-btn { flex: none; }

/* ---------- 今天：電腦 ---------- */
.skin-b .b-today-d { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 380px); min-height: calc(100dvh - 56px); }
.skin-b .b-stage-d { background: var(--b-well); display: flex; align-items: center; justify-content: center; padding: 24px; min-width: 0; }
.skin-b .b-stage-in { width: 100%; max-width: 600px; }
.skin-b .b-stage-in .b-watch { max-width: 100%; }
.skin-b .b-stage-in .b-grid { gap: 4px; }
.skin-b .b-side { display: flex; flex-direction: column; gap: 20px; padding: 28px 24px 24px; border-left: 1px solid var(--b-line); min-width: 0; }
.skin-b .b-side-top { display: flex; flex-direction: column; gap: 8px; }
.skin-b .b-side-end { margin-top: auto; }
.skin-b .b-side-end .b-bar { position: static; padding: 0; background: none; }
.skin-b .b-side .b-block { border-top: 1px solid var(--b-line); padding-top: 16px; }
.skin-b .b-side .b-ask { padding: 0; }
.skin-b .b-side .b-source { padding: 0; }

/* ---------- 作品頁 ---------- */
.skin-b .b-workpage { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.skin-b .b-workhead { display: flex; flex-direction: column; gap: 2px; }
.skin-b .b-workhead-m { padding: 8px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.skin-b .b-worktitle { font-size: 18px; line-height: 26px; font-weight: 700; }
.skin-b .b-workmedia { margin-top: 8px; }
.skin-b .b-gates { display: flex; gap: 4px; }
.skin-b .b-gate { flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: var(--b-dim); }
.skin-b .b-gate-bar { display: block; height: 3px; border-radius: 2px; background: var(--b-line); }
.skin-b .b-gate.is-passed .b-gate-bar { background: #8a8a8a; }
.skin-b .b-gate.is-turn .b-gate-bar { background: var(--b-amber); }
.skin-b .b-gate.is-on { color: var(--b-fg); font-weight: 700; }
.skin-b .b-gate.is-on .b-gate-bar { box-shadow: 0 0 0 1px #f2f2f2; }
.skin-b .b-gate.is-on:not(.is-turn) .b-gate-bar { background: #f2f2f2; }
.skin-b .b-gate .b-small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin-b .b-workpage > .b-block { padding-bottom: 0; }

.skin-b .b-work-d { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 380px); min-height: calc(100dvh - 56px); }
.skin-b .b-work-main { display: flex; flex-direction: column; gap: 16px; padding: 24px; min-width: 0; background: var(--b-bg); }
.skin-b .b-work-main .b-workhead { margin-bottom: 4px; }
.skin-b .b-running { border-top: 1px solid var(--b-line); padding-top: 16px; }

/* ---------- 出處 ---------- */
.skin-b .b-source { display: flex; flex-direction: column; gap: 16px; }
.skin-b .b-src-head { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--b-line); }
.skin-b .b-src-thumb { flex: none; width: 80px; }
.skin-b .b-src-title { min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.skin-b .b-src-h { font-family: var(--b-serif); font-weight: 600; font-size: 22px; line-height: 30px; }

@media (prefers-reduced-motion: reduce) {
  .skin-b * { transition: none !important; animation: none !important; }
}

.skin-b .b-running.is-warn .b-h3 { color: var(--b-amber, #f2b544); }

/* ---------- 第二步：小標籤 ---------- */
.skin-b .b-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 11px; border: 1px solid var(--b-edge); font-size: 12px; line-height: 18px; color: var(--b-fg); white-space: nowrap; align-self: flex-start; }
.skin-b .b-tag.is-warn { border-color: var(--b-amber); color: var(--b-amber); }
.skin-b .b-self-start { align-self: flex-start; }
.skin-b .b-who { white-space: nowrap; }
.skin-b .b-head-end { display: inline-flex; align-items: center; gap: 16px; }
.skin-b .b-pic-ph { background: repeating-linear-gradient(135deg, var(--b-panel) 0 10px, #2b2b2b 10px 20px); }
.skin-b select.b-input { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--b-dim) 50%), linear-gradient(135deg, var(--b-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---------- 挑選 ---------- */
.skin-b .b-fig-btn.is-pick { position: relative; cursor: pointer; }
.skin-b .b-fig.is-picked .b-pic { outline: 3px solid #f2f2f2; outline-offset: -3px; }
.skin-b .b-pick-mark { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #f2f2f2; background: rgba(18, 18, 18, 0.55); display: flex; align-items: center; justify-content: center; font-family: var(--b-mono); font-size: 14px; font-weight: 700; color: var(--b-ink); }
.skin-b .b-pick-mark.is-on { background: #f2f2f2; }

/* ---------- 動作鈕 ---------- */
.skin-b .b-acts { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.skin-b .b-acts-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.skin-b .b-acts-btns .b-btn { flex: 1 1 auto; min-width: 96px; }
.skin-b .b-acts-note { display: flex; flex-direction: column; gap: 6px; }
.skin-b .b-fig-acts { flex: 1 0 100%; padding: 4px 0 8px; }

/* ---------- 鏡頭縮圖 ---------- */
.skin-b .b-shotstrip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px 4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.skin-b.b-desk .b-work-main .b-shotstrip { padding-left: 0; padding-right: 0; }
.skin-b .b-shotcell { flex: none; width: 76px; scroll-snap-align: start; }
.skin-b.b-desk .b-shotcell { width: 92px; }
.skin-b .b-shotthumb { position: relative; display: flex; flex-direction: column; gap: 4px; width: 100%; min-height: 44px; text-align: left; }
.skin-b .b-shotthumb .b-pic { border-bottom: 3px solid transparent; }
.skin-b .b-shotthumb.is-now .b-pic { border-bottom-color: #f2f2f2; }
.skin-b .b-shotthumb.is-open .b-pic { outline: 2px solid #f2f2f2; outline-offset: -2px; }
.skin-b .b-shotthumb-cap { font-size: 12px; line-height: 16px; color: var(--b-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin-b .b-shotthumb.is-now .b-shotthumb-cap, .skin-b .b-shotthumb.is-open .b-shotthumb-cap { color: var(--b-fg); }
.skin-b .b-shot-flag { position: absolute; left: 4px; top: 4px; padding: 0 6px; border-radius: 9px; font-size: 11px; line-height: 18px; background: rgba(18, 18, 18, 0.8); color: var(--b-fg); border: 1px solid var(--b-edge); }
.skin-b .b-shot-flag.is-warn { color: var(--b-amber); border-color: var(--b-amber); }

.skin-b .b-shotpanel { display: flex; flex-direction: column; gap: 12px; margin: 8px 16px 0; padding: 14px; background: var(--b-panel); border-radius: 12px; }
.skin-b.b-desk .b-work-main .b-shotpanel { margin-left: 0; margin-right: 0; }
.skin-b .b-shotpanel-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; }
.skin-b .b-shotpanel-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.skin-b .b-shotpanel-fig { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.skin-b .b-shotpanel-fig video.b-pic { object-fit: contain; }
.skin-b .b-verpick { flex-wrap: wrap; }
.skin-b .b-shotpanel .b-code-wrap { background: var(--b-bg); }
.skin-b .b-shotpanel .b-code { max-height: 30vh; }
.skin-b .b-block.is-tight { padding: 4px 0 0; }

/* ---------- 要改的地方 ---------- */
.skin-b .b-tray { display: flex; flex-direction: column; gap: 10px; padding: 14px; margin-top: 12px; border: 1px solid var(--b-edge); border-radius: 12px; background: var(--b-panel); }
.skin-b .b-side .b-tray { margin-top: 0; }
.skin-b .b-tray-head { display: flex; align-items: center; gap: 8px; }
.skin-b .b-tray-list { display: flex; flex-direction: column; }
.skin-b .b-tray-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; border-top: 1px solid var(--b-line); }
.skin-b .b-tray-list li .b-p { min-width: 0; word-break: break-word; }

/* ---------- 勾選 ---------- */
.skin-b .b-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.skin-b .b-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--b-edge); border-radius: 10px; font-size: 14px; cursor: pointer; align-self: flex-start; }
.skin-b .b-check.is-on { border-color: #f2f2f2; }
.skin-b .b-check input { width: 18px; height: 18px; margin: 0; accent-color: #f2f2f2; }
.skin-b .b-form-tight { gap: 14px; padding-top: 4px; }

/* ---------- 資訊 ---------- */
.skin-b .b-fetch { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; }
.skin-b .b-srcrow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--b-line); }
.skin-b .b-srcrow.is-off { opacity: 0.5; }
.skin-b .b-srcrow > .b-right { flex: none; max-width: 45%; }
.skin-b .b-cards { display: flex; flex-direction: column; gap: 12px; }
.skin-b.b-desk .b-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.skin-b .b-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--b-panel); border-radius: 12px; min-width: 0; }
.skin-b .b-card.is-skip { opacity: 0.45; }
.skin-b .b-card.is-save { box-shadow: inset 3px 0 0 #f2f2f2; }
.skin-b .b-card-title { font-size: 16px; line-height: 24px; font-weight: 700; }
.skin-b .b-card-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.skin-b .b-cardnote { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-left: 3px solid var(--b-edge); background: var(--b-panel); }
.skin-b .b-cardnote .b-txt { align-self: flex-start; padding-left: 0; }

/* ---------- 資產 ---------- */
.skin-b .b-assets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.skin-b.b-desk .b-assets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.skin-b .b-asset { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.skin-b .b-asset .b-pic { margin-bottom: 4px; }
.skin-b .b-asset-cover { max-width: 360px; }
.skin-b .b-thumbs.is-big { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.skin-b button.b-thumb { text-align: left; cursor: zoom-in; }
.skin-b .b-assetpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.skin-b .b-assetopt { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: left; }
.skin-b .b-assetopt .b-pic { outline: 1px solid var(--b-line); outline-offset: -1px; }
.skin-b .b-assetopt.is-on .b-pic { outline: 3px solid #f2f2f2; outline-offset: -3px; }
.skin-b .b-assetopt.is-on .b-small { font-weight: 700; }

/* ---------- 團隊 ---------- */
.skin-b .b-member { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--b-line); }
.skin-b .b-member.is-off .b-member-head { opacity: 0.5; }
.skin-b .b-member-head { display: flex; align-items: center; gap: 12px; }
.skin-b .b-member-join { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; min-width: 0; }
.skin-b .b-member-join .b-path { flex: 1 1 200px; min-width: 0; }

/* 要挑的候選：圖完整顯示、放大一點，下面寫為什麼成立 */
.skin-b .b-grid.is-pick, .skin-b.b-desk .b-grid.is-4.is-pick { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; background: transparent; align-items: start; }
.skin-b .b-grid.is-pick .b-pic { aspect-ratio: 2 / 3; object-fit: contain; }
.skin-b .b-grid.is-pick .b-fig-name { font-size: 14px; line-height: 20px; font-weight: 600; }
.skin-b .b-fig-why { flex: 1 0 100%; margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.skin-b .b-fig-why li { font-size: 12px; line-height: 18px; color: var(--b-dim); }
.skin-b.b-desk .b-stage-in:has(.b-grid.is-pick) { max-width: 900px; }

.skin-b .b-pagehead .b-h1 { white-space: nowrap; flex: 0 0 auto; }

/* 團隊：登入狀況、邀請連結、對外網址、登入紀錄 */
.skin-b .b-member-login { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.skin-b .b-member-login > .b-small { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.skin-b .b-member-acts { display: inline-flex; flex-wrap: wrap; gap: 0 12px; }
.skin-b .b-member-join p { flex: 1 1 100%; margin: 4px 0 0; }
.skin-b .b-warn { color: #e0b15a; }
.skin-b .b-team-url { margin-bottom: 12px; }
.skin-b .b-audit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.skin-b .b-who-out { margin-left: 10px; }
