/* 换装试衣页 —— 复用 styles.css 的变量与顶栏，这里只写本页布局 */

/* 三栏：样衣台 | 开单规格 | 试衣镜
   以前是 392px 单栏塞四个步骤，图、规格、场景、按钮全挤在一列；
   拆开之后每栏只回答一件事，右栏专心放图。 */
.tryon-layout {
  display: grid;
  grid-template-columns: clamp(248px, 18vw, 320px) clamp(340px, 22vw, 410px) minmax(0, 1fr);
  height: calc(100vh - 54px);
  min-height: 0;
}
@media (max-width: 1060px) {
  .tryon-layout { grid-template-columns: 1fr; height: auto; }
}

.link-btn {
  color: var(--text-2); text-decoration: none; font-size: 12.5px;
  padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line);
}
.link-btn:hover { border-color: var(--brand); color: var(--brand); }

/* 清空重来：次要动作，不能被当成主按钮抢注意力 */
button.link-btn.clear-all { font: inherit; font-size: 12.5px; background: var(--surface); cursor: pointer; }
button.link-btn.clear-all:hover { border-color: var(--brand); color: var(--brand); }

/* 后端断开时才出现的提醒条：红色是被故意用的，因为"看起来正常"最误事 */
.offline-chip {
  background: var(--danger-bg, #fdecec); color: var(--danger, #c0392b);
  border: 1px solid var(--danger-line, #f5c2c0); font-weight: 600;
  cursor: pointer;
}

/* 提示条：点一下就能关掉，别挡操作 */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  max-width: min(72ch, 82vw); z-index: 60;
  padding: 9px 14px; border-radius: 9px;
  background: rgba(24, 28, 36, .92); color: #fff;
  font-size: 12.5px; line-height: 1.5;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
  cursor: pointer; animation: toast-in .16s ease-out;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.demo-chip {
  background: var(--warn-bg); color: var(--warn);
  border: 1px solid var(--warn-line); font-weight: 600;
}

/* ------------------------------------------------------- 左：样衣台（图） */
.tryon-rail {
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 14px 12px 20px; overflow-y: auto; min-height: 0;
}

/* --------------------------------------------------- 中：开单规格（表单） */
.tryon-side {
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
/* 规格比图短：让表单自己滚动，按钮永远压在栏底，不用一路滚到底去找 */
.side-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 14px 4px; }
.side-foot {
  flex: 0 0 auto; padding: 10px 14px 13px;
  border-top: 1px solid var(--line); background: var(--surface-3);
}
.side-foot .acc-tip { margin: 0 0 8px; }
.side-foot .side-note { margin: 0 0 8px; font-size: 10.5px; line-height: 1.6; }
.side-foot .auto-save { margin: 8px 0 0; }

/* 栏目标签：只在意境主题里出现，现代风不显示（见 theme.css） */
.col-tab { display: none; }

/* 样衣台比原来的单栏窄，场景改三列：卡片仍有 80px 宽，九张排三行也不挤 */
.tryon-rail .scene-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1060px) {
  .tryon-rail, .tryon-side { border-right: none; border-bottom: 1px solid var(--line); }
  .tryon-rail, .side-scroll { overflow: visible; }
  .side-foot { border-top: none; }

  /* ---- 手机上先看图，再动手 ----
     单列之后各栏按 DOM 顺序堆，结果区在最后，出完图要一路滚到底才能看见。
     这里把左栏拆成 display:contents，两个 step 直接变成栅格子项，才能各自排位：
       结果区(-1) → 款式/娃娃/背面 → 规格 → 场景(20)
     DOM 一行没改，桌面三栏的排布完全不受影响。 */
  .tryon-rail { display: contents; }
  .tryon-rail > .col-tab { display: none; }
  .tryon-rail > .step {
    background: var(--surface);
    margin: 0; padding: 13px 14px 8px;
    border-bottom: 1px solid var(--line);
  }
  .tryon-rail > .scene-step { order: 20; padding-bottom: 22px; }
  .tryon-main { order: -1; min-height: 0; padding: 10px 12px 12px; }

  /* 空态不再占 62vh：手机上那块插画和四条说明会把上传槽挤到折叠线以下，
     留下一句"这里会出图"就够了，图和规则等真有图时再谈。 */
  .stage.idle { padding: 14px; }
  .stage.idle .idle-fig { display: none; }
  .stage.idle .idle-card ul { display: none; }
  .stage.idle .idle-card h3 { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
  /* 出图区给个下限，别让竖图按内容撑成一条；再封顶，免得一张图占满两屏 */
  .stage.done { min-height: 56vh; }
  .stage.done .result-wrap { max-height: 66vh; }
  .stage.working, .stage.failed { min-height: 42vh; }
}

.step { margin-bottom: 13px; }
.step-head {
  display: flex; align-items: center; gap: 7px;
  font-weight: 650; font-size: 12.5px; margin-bottom: 8px;
}
.step-head i {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-style: normal; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.step-hint { color: var(--text-3); font-weight: 400; font-size: 11px; margin-left: auto; }

/* 上传槽 */
.drop {
  position: relative; border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius); background: var(--surface-3);
  height: 152px; display: grid; place-items: center;
  cursor: pointer; overflow: hidden;
  transition: border-color .12s, background .12s;
}
.drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop.filled { border-style: solid; border-color: var(--line); background: var(--surface); padding: 0; }
.drop.busy { opacity: .6; pointer-events: none; }
.drop img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block; background: var(--thumb-bg);
}

.drop-hint { text-align: center; color: var(--text-3); font-size: 11.5px; line-height: 1.9; }
.drop-hint b { display: block; color: var(--text-2); font-size: 12px; font-weight: 600; }

/* 顶栏「图库」入口 */
.lib-entry {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  font-size: 12px; cursor: pointer;
}
.lib-entry:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.lib-badge {
  background: var(--brand); color: var(--on-brand); border-radius: 999px;
  font-size: 10px; line-height: 1; padding: 2px 5px; font-weight: 600;
}

/* 上传槽里"这张来自哪个库"的标记：左上角，半透明底，压在图上也看得清 */
.role-tag {
  position: absolute; left: 7px; top: 7px; z-index: 2;
  background: rgba(17, 24, 39, .62); color: #fff;
  border-radius: 5px; font-size: 10.5px; padding: 2px 7px;
  letter-spacing: .2px; backdrop-filter: blur(2px);
}
.role-tag.mine { background: var(--brand); }

/* 空槽里的"从图库选"和已填槽里的"换一张" */
.lib-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2);
  font-size: 11px; line-height: 1.4; cursor: pointer;
}
.lib-pill:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.lib-pill.bottom {
  position: absolute; left: 7px; bottom: 7px; z-index: 2;
  background: var(--pill-glass);
  box-shadow: 0 1px 4px rgba(17, 24, 39, .12);
  backdrop-filter: blur(3px);
}

.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }

/* 槽位下面那排「库里最近」：四个小图直接换，连弹层都不用开 */
.recent { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.recent-label { font-size: 10.5px; color: var(--text-3); flex: 0 0 auto; }
.recent-thumb {
  width: 26px; height: 32px; padding: 0; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 5px;
  background: var(--thumb-bg); overflow: hidden; cursor: pointer;
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-thumb:hover { border-color: var(--brand); }
.recent-more {
  margin-left: auto; padding: 0 2px; border: 0; background: none;
  color: var(--brand); font-size: 10.5px; cursor: pointer;
}

.drop-x {
  position: absolute; right: 6px; top: 6px;
  width: 21px; height: 21px; border-radius: 50%;
  border: none; background: rgba(17, 24, 39, .55); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
}
.drop-x:hover { background: rgba(17, 24, 39, .8); }

/* 表单 */
.field { margin-bottom: 10px; }
.field > label {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 11.5px; color: var(--text-2); margin-bottom: 4px;
}
.field .val { color: var(--brand); font-weight: 600; margin-left: auto; font-variant-numeric: tabular-nums; }
.field select, .field input[type=text] {
  width: 100%; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--field-bg); font-size: 12px;
}
.field select:focus { outline: none; border-color: var(--brand); }

.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.field-grid .field > label { font-size: 11px; }

input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 3px; background: var(--line); outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--brand); border: 2px solid var(--surface); cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.range-legend {
  display: flex; justify-content: space-between;
  color: var(--text-3); font-size: 10.5px; margin-top: 3px;
}

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; margin-top: 4px; }
.checks label {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--text-2); cursor: pointer;
}

/* 配饰：与主衣并列的一组可选项，用一条虚线跟上面的工艺勾选分开 */
.acc-block { margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); }
.acc-head {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px;
}
.acc-head .step-hint { margin-left: auto; }
.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acc-grid .field > label { font-size: 11px; }
.acc-tip { margin: 6px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--text-3); }

button.primary {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm); border: none;
  background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 13px;
  cursor: pointer; transition: background .12s;
}
button.primary:hover:not(:disabled) { background: var(--brand-hover); }
button.primary:disabled { background: var(--btn-disabled-bg); cursor: not-allowed; }

button.ghost {
  padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2);
  font-size: 12px; cursor: pointer;
}
button.ghost:hover { border-color: var(--brand); color: var(--brand); }

.side-note { color: var(--text-3); font-size: 11px; line-height: 1.7; margin: 9px 0 0; }

/* ---------------------------------------------------------------- 右栏 */
.tryon-main {
  padding: 16px; min-width: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}

.stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column;
  flex: 1 1 auto; min-height: 0;  /* 吃掉剩余高度，空态才能真居中 */
}
.stage.idle, .stage.working, .stage.failed { align-items: center; justify-content: center; text-align: center; }

.idle-card { max-width: 480px; padding: 8px 0; }
.idle-fig { width: 248px; margin: 0 auto 18px; }
.idle-fig svg { width: 100%; height: auto; }
.idle-card h3 { margin: 0 0 10px; font-size: 14px; font-weight: 650; }
.idle-card ul { margin: 0; padding-left: 18px; text-align: left; color: var(--text-2); }
.idle-card li { margin-bottom: 5px; line-height: 1.7; font-size: 12px; }
.idle-card li b { color: var(--text); }

.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--brand);
  animation: spin .8s linear infinite; margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wf-title { margin: 0 0 6px; font-size: 13.5px; font-weight: 650; }
/* pre-line：后端的多行错误说明（主因 + 逐条原因 + 原始信息）按行展开，别挤成一坨 */
.wf-sub {
  margin: 0 0 10px; color: var(--text-2); font-size: 12px;
  max-width: 560px; white-space: pre-line; line-height: 1.75; text-align: left;
}
.wf-tip {
  margin: 6px 0 0; color: var(--warn); background: var(--warn-bg);
  border: 1px solid var(--warn-line); border-radius: 8px;
  padding: 9px 12px; font-size: 11.5px; line-height: 1.8; text-align: left; max-width: 560px;
}
.wf-tip code { background: var(--surface); padding: 1px 4px; border-radius: 4px; font-size: 11px; }
.wf-actions { display: flex; gap: 8px; margin-top: 10px; }
.prompt-box {
  margin-top: 10px; max-width: 560px; max-height: 220px; overflow: auto;
  background: #332b27; color: #efe3d8; border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 10.5px; line-height: 1.65; text-align: left;
  white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace;
}

/* 出图 */
.stage.done { padding: 0; overflow: hidden; }
.result-wrap {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; overflow: hidden;
  /* 不用棋盘格：那是"透明"的语义，这里只是留白，用浅灰更不容易误读 */
  background: var(--surface-4);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.result-fig { position: relative; display: flex; max-width: 100%; max-height: 100%; }
.result-fig img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, .14);
}
.watermark {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(17, 24, 39, .62); color: #fff;
  font-size: 11px; padding: 4px 9px; border-radius: 6px;
  letter-spacing: .3px; backdrop-filter: blur(2px);
}

.result-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-top: 1px solid var(--line); background: var(--surface);
  flex-wrap: wrap; flex: 0 0 auto;
}
.rb-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 320px; }
.result-bar .ghost, .result-bar .primary { flex: 0 0 auto; }
.rb-info b { font-size: 12.5px; font-weight: 650; }
.rb-info span { color: var(--text-3); font-size: 11px; }
.rb-info span.dirty { color: var(--warn); font-weight: 600; }
.result-bar .primary { width: auto; }

/* 审图意见：出图之后才谈得上"缺什么"，所以它属于结果区，不属于做图前的步骤 */
.fb-box {
  padding: 10px 14px 11px; border-top: 1px dashed var(--line);
  background: var(--surface-3); flex: 0 0 auto;
}
.fb-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.fb-head b { font-size: 12px; color: var(--text); }
.fb-head span { font-size: 10.5px; color: var(--text-3); }

.fb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.fb-chip {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: color .12s, border-color .12s;
}
.fb-chip:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.fb-chip:disabled { opacity: .5; cursor: not-allowed; }

.fb-row { display: flex; align-items: center; gap: 8px; }
.fb-row input {
  flex: 1 1 auto; min-width: 0; padding: 6px 9px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--field-bg); font-size: 12px; color: var(--text);
}
.fb-row input:focus { outline: none; border-color: var(--brand); }
.fb-row input::placeholder { color: var(--text-3); }
.fb-row .primary {
  flex: 0 0 auto; width: auto; height: 32px; padding: 0 14px;
  font-size: 12px; white-space: nowrap;
}

.fb-log { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.fb-log-label { font-size: 10.5px; color: var(--text-3); }
.fb-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; padding: 2px 3px 2px 7px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-hover);
}
.fb-tag button {
  border: 0; background: none; cursor: pointer; color: inherit;
  opacity: .55; font-size: 12px; line-height: 1; padding: 0 2px;
}
.fb-tag button:hover { opacity: 1; }
.fb-note { margin: 7px 0 0; font-size: 10.5px; color: var(--text-3); line-height: 1.65; }

.result-tip {
  margin: 0; padding: 0 14px 12px; color: var(--text-3);
  font-size: 11px; line-height: 1.7;
}

/* ---------------------------------------------------------------- 图库弹层 */
.lib-mask {
  position: fixed; inset: 0; z-index: 60;
  background: var(--overlay);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lib-panel {
  width: min(880px, 100%); max-height: min(82vh, 740px);
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(17, 24, 39, .28);
  display: flex; flex-direction: column; overflow: hidden;
}

.lib-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 16px 12px; border-bottom: 1px solid var(--line);
}
.lib-title h3 { margin: 0 0 3px; font-size: 14px; font-weight: 650; }
.lib-title p { margin: 0; font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.lib-head .drop-x.static {
  position: static; margin-left: auto; flex: 0 0 auto;
  width: 24px; height: 24px; background: var(--surface-2); color: var(--text-2);
}
.lib-head .drop-x.static:hover { background: var(--line); color: var(--text); }

.lib-tabs { display: flex; gap: 6px; padding: 11px 16px 0; flex-wrap: wrap; }
.lib-tabs button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  font-size: 12px; cursor: pointer;
}
.lib-tabs button:hover { border-color: var(--line-strong); }
.lib-tabs button.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); font-weight: 600; }
.lib-tabs .n { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lib-tabs button.on .n { color: var(--brand); }

/* 素材检索条：搜文件名/备注、按画面方向筛、按体积或像素排 */
.lib-tools { display: flex; align-items: center; gap: 8px; padding: 9px 16px 0; flex-wrap: wrap; }
.lib-search {
  flex: 1 1 180px; width: auto; min-width: 140px; height: 28px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--field-bg); color: var(--text);
  font-size: 12px; font-family: inherit;
}
.lib-search::placeholder { color: var(--text-3); }
.lib-search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-ring); }
.lib-orients { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.lib-orients button {
  border: 0; border-right: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 11.5px; padding: 5px 9px; cursor: pointer;
}
.lib-orients button:last-child { border-right: 0; }
.lib-orients button:hover { background: var(--surface-2); }
.lib-orients button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.lib-sort {
  flex: 0 0 92px; width: 92px; height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--field-bg); color: var(--text-2);
  font-size: 11.5px; font-family: inherit; cursor: pointer;
}

.lib-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }

.lib-item { position: relative; display: flex; flex-direction: column; }
/* 「改信息」压到卡片底部：同一行有的有备注、有的没有，按钮不齐会显得整排散架 */
.lib-item > .lib-edit { margin-top: auto; }
.lib-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4;
  padding: 0; border: 2px solid var(--line); border-radius: 9px;
  background: var(--thumb-bg); overflow: hidden; cursor: pointer;
}
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-thumb:hover { border-color: var(--brand); }
.lib-item.picked .lib-thumb { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-ring); }

.lib-role {
  position: absolute; left: 5px; top: 5px;
  background: rgba(17, 24, 39, .6); color: #fff;
  font-size: 9.5px; padding: 1px 5px; border-radius: 4px;
}
.lib-check {
  position: absolute; left: 5px; bottom: 5px;
  background: var(--brand); color: var(--on-brand); font-weight: 600;
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  transition: opacity .12s;
}
/* 悬停时底部让位给「改信息 / 删除」：当前用的是哪张，粉色描边已经说了 */
.lib-item:hover .lib-check { opacity: 0; }
.lib-meta { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; }
.lib-name { flex: 1; font-size: 10.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-time { flex: 0 0 auto; font-size: 9.5px; color: var(--text-3); }
/* 素材规格：像素 × 像素 · 体积。低清标记只影响打印/发客户，不影响换装生成 */
.lib-dim {
  display: flex; align-items: center; gap: 4px; margin-top: 1px;
  font-size: 9.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.lib-dim > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-low {
  flex: 0 0 auto; font-style: normal; font-size: 9px; line-height: 14px; padding: 0 4px;
  border-radius: 3px; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line);
}
/* 悬停时浮在图上的一层动作：目前只有「删除」。
   以前删除是一个 10px 的「删除」小方块钉在右上角、常显还盖住图；现在挪到底部，
   悬停才出现，和「当前」角标同一个位置，所以悬停时把角标隐掉。 */
.lib-acts {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: flex-end; padding: 6px;
  background: linear-gradient(to top, rgba(15, 23, 42, .62), rgba(15, 23, 42, 0));
  opacity: 0; transition: opacity .12s;
}
.lib-item:hover .lib-acts, .lib-item:focus-within .lib-acts { opacity: 1; }
.lib-act {
  padding: 2px 8px; border-radius: 5px;
  background: rgba(255, 255, 255, .92); color: #b91c1c;
  font-size: 10.5px; line-height: 1.5; font-weight: 600; cursor: pointer;
}
.lib-act.del:hover { background: #dc2626; color: #fff; }

.lib-empty { padding: 46px 20px; text-align: center; color: var(--text-3); font-size: 12px; line-height: 1.9; }
.lib-empty p { margin: 0; max-width: 400px; margin-inline: auto; }

.lib-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-top: 1px solid var(--line); background: var(--surface-3);
}
.lib-foot .spacer { flex: 1; }
.lib-tip { font-size: 11px; color: var(--text-3); }

/* 卡片上的参数行：什么娃娃、多大、照着做多少钱。
   只放两枚标签，卡片 118px 宽，塞第三枚就会被压成「棉…」。 */
.lib-say {
  display: flex; align-items: center; gap: 3px;
  margin-top: 3px; min-height: 15px; overflow: hidden;
}
.lib-baby {
  flex: 0 1 auto; min-width: 0; font-size: 9px; line-height: 14px; padding: 0 3px; border-radius: 3px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lib-cost {
  flex: 0 0 auto; font-size: 9px; line-height: 14px; padding: 0 3px; border-radius: 3px;
  font-weight: 650; color: var(--text); background: var(--brand-soft);
  border: 1px solid var(--brand-line); font-variant-numeric: tabular-nums;
}
.lib-blank { font-size: 9px; color: var(--text-3); }

/* 常驻的「改信息」：空着时是虚线「＋ 补参数」。
   它是这张卡片唯一的常显按钮——"传完还能改"这件事不能靠悬停才出现。 */
.lib-edit {
  display: block; width: 100%; margin-top: 3px; padding: 1px 0 2px;
  border: 1px solid var(--line); border-radius: 5px;
  background: var(--surface-2); color: var(--text-2);
  font-family: inherit; font-size: 10px; line-height: 15px; cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}
.lib-edit:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.lib-edit.bare { border-style: dashed; border-color: var(--line-strong); background: transparent; color: var(--text-3); }
.lib-edit.bare:hover { color: var(--brand); border-color: var(--brand); }

/* 卡片上那一句备注：认款靠它（谁家的款 / 哪看到的），一行截断，要点进去看全 */
.lib-note {
  margin: 2px 0 0; font-size: 9.5px; line-height: 1.5; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lib-type { flex: 0 0 auto; width: 104px; }

/* ------------------------------------------------ 入库信息（上传与图库之间） */
/* 比图库层高一档：填信息的表单不该被下面的图库盖住 */
.entry-mask {
  position: fixed; inset: 0; z-index: 70;
  background: var(--overlay);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.entry-panel {
  width: min(640px, 100%); max-height: min(86vh, 700px);
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(17, 24, 39, .32);
  display: flex; flex-direction: column; overflow: hidden;
}
.entry-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 16px 12px; border-bottom: 1px solid var(--line);
}
.entry-title h3 { margin: 0 0 3px; font-size: 14px; font-weight: 650; }
.entry-title p { margin: 0; font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.entry-head .drop-x.static {
  position: static; margin-left: auto; flex: 0 0 auto;
  width: 24px; height: 24px; background: var(--surface-2); color: var(--text-2);
}
.entry-head .drop-x.static:hover { background: var(--line); color: var(--text); }

.entry-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 16px; padding: 16px;
}
.entry-shot { display: flex; flex-direction: column; gap: 6px; }
.entry-shot img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border: 1px solid var(--line); border-radius: 9px; background: var(--thumb-bg);
}
.entry-shot-info { display: flex; flex-direction: column; gap: 2px; }
.entry-file { font-size: 10.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-px { font-size: 9.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.entry-form { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.entry-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 10px; }
.entry-label { font-size: 12px; color: var(--text-2); text-align: right; }
.entry-input {
  width: 100%; height: 30px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--field-bg); color: var(--text);
  font-size: 12px; font-family: inherit;
}
.entry-input::placeholder { color: var(--text-3); }
.entry-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-ring); }
input.entry-input[type="number"] { font-variant-numeric: tabular-nums; }
.entry-fixed { font-size: 12px; color: var(--text-2); display: flex; align-items: baseline; gap: 6px; }
.entry-fixed i { font-style: normal; font-size: 10.5px; color: var(--text-3); }

/* 身高：数字 + 单位 + 一排快捷值。20cm 是主流尺码，点一下就到位 */
.entry-size { display: flex; align-items: center; gap: 8px; min-width: 0; }
.entry-num { position: relative; display: flex; align-items: center; flex: 0 0 92px; }
.entry-num em {
  position: absolute; right: 9px; font-style: normal; font-size: 11px;
  color: var(--text-3); pointer-events: none;
}
.entry-num input { padding-right: 30px; }
.entry-num em.pre { left: 9px; right: auto; }
.entry-num em.pre ~ input { padding-left: 20px; padding-right: 9px; }
.entry-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.entry-chips button {
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  font-size: 11px; padding: 3px 7px; border-radius: 6px; cursor: pointer;
  font-variant-numeric: tabular-nums; font-family: inherit;
}
.entry-chips button:hover { border-color: var(--brand); color: var(--brand); }
.entry-chips button.on {
  background: var(--brand-soft); border-color: var(--brand-line);
  color: var(--brand); font-weight: 650;
}

.entry-tip {
  margin: 2px 0 0; padding: 7px 9px; border-radius: 7px;
  background: var(--surface-2); color: var(--text-3);
  font-size: 10.5px; line-height: 1.7;
}
.entry-tip b { color: var(--text-2); font-weight: 600; }

/* 类型这一行多了一句话，网格就得从"垂直居中"改成"顶对齐"：
   否则标签会被拉到两行字的中缝上，看起来像错行。 */
.entry-row.type-row { align-items: start; }
.entry-row.type-row .entry-label { padding-top: 7px; }
.entry-type { min-width: 0; }
/* 类型候选按钮：七个词横排会换行，压一下间距，正好两行 */
.type-chips { margin-top: 6px; gap: 5px; }
.type-chips button { font-size: 11px; padding: 3px 6px; }
.entry-why {
  margin: 5px 0 0; font-size: 10.5px; line-height: 1.65; color: var(--text-3);
  padding-left: 1px;
}

.entry-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-top: 1px solid var(--line); background: var(--surface-3);
}
.entry-foot .spacer { flex: 1; }
/* 通用 button.primary 是 width:100%（给左栏那个大按钮用的），
   在弹层底部条里要收回成按内容宽度，否则会把「取消」挤成一列竖字 */
.entry-foot button { flex: 0 0 auto; white-space: nowrap; }
.entry-foot button.primary { width: auto; padding: 9px 22px; }
.entry-err { font-size: 11.5px; color: #c0392b; }
.entry-ok { font-size: 11px; color: var(--text-3); }

@media (max-width: 620px) {
  .entry-body { grid-template-columns: 1fr; }
  .entry-shot img { aspect-ratio: 16 / 10; }
  .entry-row { grid-template-columns: 1fr; gap: 4px; }
  .entry-label { text-align: left; }
}

/* ===== AI 预填 ===== */
.ai-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; line-height: 1.5;
  padding: 6px 9px; border-radius: 7px; margin-bottom: 10px;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line-soft);
}
.ai-row.ok { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-hover); }
.ai-row.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.ai-row .ai-text { flex: 1; min-width: 0; }
.ai-row .ai-text b { font-weight: 650; }
/* 括号里的补充：说明"这条报错不影响出图"，字号小一档、不抢主句 */
.ai-row .ai-sub { font-style: normal; opacity: .78; }

/* 规格栏顶上那句话：这排下拉框管算料，不管出图。
   11px + 次深色：它是"前提"，不是脚注，太小就会被当成免责声明跳过 */
.spec-note {
  margin: 2px 0 10px; padding: 8px 10px; border-radius: 7px;
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  color: var(--text-2); font-size: 11px; line-height: 1.7;
}
/* 改款模式下这句话是"订单口径"而不是免责声明：换成实线 + 左侧主色条，
   但正文仍用正文色——整段玫红会被读成报错。 */
.spec-note.design {
  border-style: solid; border-color: var(--brand-line);
  border-left: 3px solid var(--brand);
  background: var(--brand-soft); color: var(--text);
}

/* 出图方式开关：两档，靠图标 + 一句话区分，不堆颜色。
   它决定下面那排下拉框算"算料备注"还是"设计稿"，所以比普通按钮显眼一档。 */
.mode-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin: 2px 0 8px; padding: 3px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
}
.mode-btn {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  padding: 6px 7px; border: 1px solid transparent; border-radius: 7px;
  background: none; cursor: pointer; text-align: left;
  color: var(--text-2); font: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.mode-btn:hover { color: var(--text); }
.mode-btn.on {
  background: var(--surface); color: var(--brand);
  border-color: var(--brand-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.mode-ico { width: 17px; height: 17px; flex: 0 0 auto; opacity: .9; }
.mode-ico svg { width: 17px; height: 17px; display: block; }
.mode-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mode-txt b { font-weight: 650; font-size: 12px; line-height: 1.25; }
.mode-txt em { font-style: normal; font-size: 10px; line-height: 1.2; opacity: .72; }
.mode-btn.on .mode-txt em { opacity: .88; }
/* 侧栏最窄 340px，两档并排时中文够用；再窄就把副标题收掉，别让字挤成两行 */
@media (max-width: 420px) {
  .mode-txt em { display: none; }
}

.ai-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring);
}
.ai-dot.busy {
  background: none; box-shadow: none; width: 10px; height: 10px;
  border: 2px solid var(--brand-line); border-top-color: var(--brand);
  animation: ai-spin .7s linear infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }

.mini-link {
  border: 0; background: none; padding: 0 0 0 4px; cursor: pointer;
  color: inherit; font-size: 11px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px; opacity: .85;
}
.mini-link:hover { opacity: 1; }

.ai-badge {
  white-space: nowrap; font-size: 10px; font-weight: 600; line-height: 1.6;
  padding: 0 5px; border-radius: 4px; margin-left: 4px;
  vertical-align: 1px;
}
.ai-badge.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.ai-badge.ok { background: var(--surface-2); color: var(--text-2); }

/* ===== 保存开关 ===== */
.auto-save {
  display: flex; align-items: center; gap: 6px;
  margin-top: 9px; font-size: 11.5px; color: var(--text-2); cursor: pointer;
  user-select: none;
}
.auto-save input { margin: 0; }

.save-state { font-style: normal; color: var(--text-3); }
.save-state.on { color: var(--ok); font-weight: 600; }

.ghost.on {
  color: var(--ok); border-color: #c9e3d3; background: var(--ok-bg); font-weight: 600;
}
.ghost.on:hover { border-color: var(--ok); }

/* ===== 背景场景 ===== */
/* 4 列，卡片只到 87px 宽——背景是"扫一眼换个气氛"，不该比款式规格还占地方 */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.scene-card {
  position: relative; display: flex; flex-direction: column;
  padding: 0; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--surface); overflow: hidden; cursor: pointer;
  font: inherit; color: inherit; text-align: center;
  transition: border-color .12s, box-shadow .12s;
}
.scene-card:hover { border-color: var(--line-strong); }
.scene-card.on {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-ring);
}
.scene-card.busy { opacity: .55; pointer-events: none; }

.scene-art {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--thumb-bg);
}
.scene-art svg { display: block; width: 100%; height: 100%; }
.scene-art.plus {
  display: grid; place-items: center;
  background: var(--surface-3); box-shadow: inset 0 -1px 0 var(--line);
}
.scene-art.plus svg { width: 100%; height: 100%; }

.scene-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.scene-name {
  display: block; padding: 3px 2px 4px;
  font-size: 10px; line-height: 1.3; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scene-card.on .scene-name { color: var(--brand); font-weight: 650; }
.scene-card .drop-x { width: 17px; height: 17px; font-size: 12px; right: 3px; top: 3px; }

.scene-note {
  margin: 7px 0 0; color: var(--text-3); font-size: 10.5px; line-height: 1.6;
}

/* ===== 悬停看大图 =====
   槽只有 152px 高，拿这个尺寸核对蕾丝是绣的还是贴的、包边几毫米，基本靠猜。
   悬停弹一张到 70vh 的大图，鼠标一移开就收起，比"点开—切走—切回来"少两步。 */
.drop.filled img { cursor: zoom-in; }

.peek-hint {
  position: absolute; right: 7px; bottom: 7px; z-index: 2;
  background: rgba(17, 24, 39, .55); color: #fff;
  border-radius: 5px; font-size: 10.5px; padding: 2px 7px;
  backdrop-filter: blur(2px);
}

.peek {
  position: fixed; z-index: 95; pointer-events: none;
  max-width: min(440px, 56vw);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
  animation: peek-in .12s ease-out;
}
@keyframes peek-in {
  from { opacity: 0; transform: translateY(4px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.peek img {
  display: block; max-width: 100%; max-height: 68vh;
  border-radius: var(--radius-sm); background: var(--thumb-bg);
}
/* 带参数时图让一点高度出来：参数是这张预览的一半用途，不能被挤出屏幕 */
.peek.has-facts { width: min(360px, 56vw); }
.peek.has-facts img { max-height: 46vh; }
.peek-facts { padding: 7px 5px 3px; }
.peek-row { display: flex; gap: 8px; font-size: 11px; line-height: 1.65; }
.peek-k { flex: 0 0 54px; color: var(--text-3); }
.peek-v {
  flex: 1 1 auto; min-width: 0; color: var(--text); font-weight: 600;
  word-break: break-word;
}
.peek-blank { margin: 0; font-size: 10.5px; color: var(--text-3); line-height: 1.6; }
.peek-file {
  display: flex; align-items: baseline; gap: 6px; margin-top: 5px; padding-top: 5px;
  border-top: 1px dashed var(--line);
  font-size: 9.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.peek-fname { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 3px 1px; font-size: 11px;
}
.peek-label { color: var(--text-2); font-weight: 600; }
.peek-tip { color: var(--text-3); margin-left: auto; }

/* 钉住的全屏大图（点上传槽里的图触发） */
.pin-mask {
  position: fixed; inset: 0; z-index: 92;
  background: rgba(12, 16, 24, .88);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 22px; cursor: zoom-out;
}
.pin-mask img {
  max-width: 100%; max-height: calc(100vh - 96px);
  border-radius: var(--radius); box-shadow: 0 22px 60px rgba(0, 0, 0, .45);
  background: var(--surface);
}
.pin-bar {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255, 255, 255, .82); font-size: 11.5px;
}
.pin-tip { color: rgba(255, 255, 255, .55); }
/* 钉住的大图下面那条参数：点开大图的人是在核细节，这时候最想知道的是
   "这是哪一只、多大、照着做多少钱"，而不是"点哪里关闭"。 */
.pin-info {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: min(760px, calc(100vw - 48px));
}
.pin-name {
  color: #fff; font-size: 12.5px; font-weight: 600;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pin-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.pin-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .92); font-size: 11px; line-height: 1.6;
}
.pin-chip b { font-weight: 600; color: rgba(255, 255, 255, .55); }
.pin-chip.muted { color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.pin-mask img { max-height: calc(100vh - 150px); }

/* ==========================================================================
   背面图（2026-11-19）
   --------------------------------------------------------------------------
   正面照只拍得到正面。后领多深、后背有没有开口、扣子还是系带，这些图里没有，
   模型只能猜——猜出来的"后背"看着像样，却和报价那套版对不上。
   所以背面是一个独立的、可选的上传槽：有就再跑一版，没有就什么也不影响。
   ========================================================================== */

.back-slot { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line-strong); }
.back-head {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 11.5px; color: var(--text-2); margin-bottom: 6px;
}
.back-head em { font-style: normal; font-size: 10.5px; color: var(--text-3); }

.back-drop {
  position: relative; height: 78px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.back-drop:hover, .back-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.back-drop.filled { border-style: solid; border-color: var(--line); padding: 0; background: var(--thumb-bg); }
.back-drop img { width: 100%; height: 100%; object-fit: contain; display: block; }
.back-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-3); font-size: 10.5px; }
.back-empty b { color: var(--text-2); font-weight: 600; font-size: 11.5px; }
.back-tag {
  position: absolute; left: 6px; bottom: 6px;
  background: var(--brand); color: var(--on-brand);
  font-size: 9.5px; line-height: 15px; padding: 0 6px; border-radius: 999px;
}
.back-drop .drop-x { top: 5px; right: 5px; }

/* 生成区：主按钮 + 「看背面」。背面是补充动作，不能和主按钮抢大小 */
.gen-row { display: flex; gap: 8px; align-items: stretch; }
.gen-row button.primary { flex: 1 1 auto; width: auto; }
.gen-row .back-gen { flex: 0 0 auto; white-space: nowrap; }
.gen-row .back-gen:disabled { opacity: .5; cursor: not-allowed; }

/* 正 / 背切换：跑过两面才出现。切回来用缓存，不重新出图 */
.view-tabs { display: flex; align-items: center; gap: 6px; padding: 0 2px 10px; flex-wrap: wrap; }
.view-tabs button {
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  padding: 4px 13px; border-radius: 999px; font-size: 12px; cursor: pointer;
  font-family: inherit; transition: .12s;
}
.view-tabs button:hover:not(:disabled):not(.on) { border-color: var(--brand); color: var(--brand); }
.view-tabs button.on {
  background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600;
}
.view-tabs button:disabled { opacity: .55; cursor: default; }
.view-tabs button i { font-style: normal; font-size: 9.5px; opacity: .75; margin-left: 3px; }
.view-tip { font-size: 11px; color: var(--text-3); }

/* 图库里的「背面」角标：一眼分出正面照和背面照，不用点进去看 */
.lib-view {
  position: absolute; top: 5px; right: 5px;
  background: rgba(201, 74, 114, .93); color: #fff;
  font-size: 9.5px; line-height: 15px; padding: 0 5px; border-radius: 4px;
  letter-spacing: .3px;
}

/* 入库弹层里的「角度」：正面 / 背面 */
.entry-seg { display: flex; gap: 4px; width: 100%; }
.entry-seg button {
  flex: 1 1 0; min-width: 0; height: 28px; border: 1px solid var(--line);
  background: var(--field-bg); border-radius: var(--radius-xs);
  font-size: 11.5px; color: var(--text-2); cursor: pointer; font-family: inherit;
}
.entry-seg button:hover { border-color: var(--brand); color: var(--brand); }
.entry-seg button.on {
  background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600;
}
