/* ?? / ?? / ????/ ????CSS / ?????? index.html ??1393-1911 ?? */

/* ============ ????============ */
.settings-view{ background:var(--bg); }
.set-top{ padding:calc(var(--head-top) + 6px) 20px 2px; }
.set-top h1{ font-size:24px; font-weight:700; margin:0; }
.set-group{ margin-top:18px; }
.set-group-title{
  font-size:12px; color:var(--gray-2);
  margin:0 0 6px 16px;
}
.set-card{
  background:var(--bg);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 1px 0 var(--hairline), 0 0 0 1px var(--hairline);
}
.set-row{
  display:flex; align-items:center; gap:12px;
  width:100%; height:58px;
  padding:0 16px;
  border:4px solid var(--bg); box-sizing:border-box; background:transparent;
  font-family:inherit; font-size:15px; color:var(--ink);
  cursor:pointer;
  border-bottom:1px solid var(--hairline);
  transition:background .15s;
}
.set-row:last-child{ border-bottom:none; }
.set-row:active{ background:var(--fill); }
.set-icon{
  flex:0 0 auto;
  width:32px; height:32px; border-radius:9px;
  background:var(--fill); color:var(--ink);
  display:flex; align-items:center; justify-content:center;
}
.set-icon svg{
  width:17px; height:17px;
  fill:none; stroke:currentColor;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}
.set-label{ flex:1; text-align:left; }
.set-chev{
  flex:0 0 auto;
  width:16px; height:16px;
  color:var(--gray-2);
  fill:none; stroke:currentColor;
  stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}
.head-spacer{ width:44px; flex:0 0 auto; }
.head-text-btn{
  flex:0 0 auto;
  min-width:44px; height:36px; padding:0 10px;
  border:4px solid var(--bg); box-sizing:border-box; border-radius:999px;
  background:transparent;
  font-family:inherit; font-size:13px; font-weight:600;
  color:var(--ink);
  cursor:pointer;
  transition:background .16s, transform .18s var(--spring);
}
@media (hover: hover) and (pointer: fine){
.head-text-btn:hover{ background:rgba(var(--tint-rgb),.06); }
}

.head-text-btn:active{ transform:scale(.94); }
.api-scene-page .set-sub-title{ margin:14px 0 8px; }
.api-scene-page .set-sub-title:first-of-type{ margin-top:4px; }
.api-scene-stack{
  background:var(--bg);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 1px 0 var(--hairline), 0 0 0 1px var(--hairline);
  margin:0 0 12px;
}
.api-scene-row{
  display:flex; align-items:center; gap:12px;
  min-height:54px;
  padding:10px 14px;
  border-bottom:1px solid var(--hairline);
  cursor:pointer;
  background:transparent;
  width:100%;
  border-left:0; border-right:0; border-top:0;
  font-family:inherit; color:inherit; text-align:left;
}
.api-scene-row:last-child{ border-bottom:none; }
.api-scene-row:active{ background:var(--fill); }
.api-scene-row b{
  flex:0 0 72px; font-size:14px; font-weight:650;
}
.api-scene-row span{
  flex:1; min-width:0;
  font-size:13px; color:var(--gray-1);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  text-align:right;
}
.api-scene-row i{
  flex:0 0 auto;
  width:16px; height:16px;
  opacity:.35;
  background:no-repeat center / 14px 14px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}
.preset-row.on{ background:var(--fill); }
.preset-row.on .preset-name{ font-weight:700; }
#apiScenePickList .preset-row{ cursor:pointer; }
#apiScenePickList .preset-row:active{ background:var(--fill); }
.field-toggle label{ width:auto; max-width:70%; }
/* ?????????iCloud ?? */
.acct-card{
  position:relative;
  display:flex; align-items:center; justify-content:flex-start;
  width:100%; min-height:64px;
  margin-top:26px; padding:8px 16px;
  border:4px solid var(--bg); box-sizing:border-box;
  background:var(--bg); color:var(--ink);
  font-family:inherit; cursor:pointer;
  border-radius:999px;
  box-shadow:0 1px 0 var(--hairline), 0 0 0 1px var(--hairline);
  transition:background .15s;
  overflow:visible;
}
.acct-card:active{ background:var(--fill); }
.acct-side{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.acct-left{ flex:0 0 25%; text-align:right; align-items:flex-end; justify-content:center; padding-right:10px; }
.acct-right{ flex:1 1 50%; text-align:left; align-items:flex-start; justify-content:center; padding-left:10px; }
.acct-nick{ font-size:16px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.acct-idline{ font-size:12px; color:var(--gray-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.acct-title{ font-size:16px; font-weight:700; white-space:nowrap; }
.acct-desc{ font-size:11px; color:var(--gray-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.acct-mid{ flex:0 0 23%; display:flex; justify-content:center; align-items:center; }
.acct-avatar-lg{
  width:100%; height:auto; aspect-ratio:1/1; border-radius:50%;
  object-fit:cover; display:block; background:var(--fill);
  border:4px solid var(--bg); box-sizing:border-box;
  box-shadow:0 0 0 1px var(--hairline);
  margin:-24px 0;
}
.acct-quick{
  display:flex; gap:8px;
  margin-top:18px;
}
.acct-quick-btn{
  flex:1; min-width:0;
  display:flex; flex-direction:row; align-items:center; justify-content:center; gap:5px;
  padding:0 6px; height:34px;
  border:4px solid var(--bg); box-sizing:border-box; background:var(--fill); color:var(--gray-1);
  font-family:inherit; font-size:12px; font-weight:500;
  white-space:nowrap;
  border-radius:999px; cursor:pointer;
  box-shadow:none;
  transition:background .15s, transform .18s var(--spring);
}
.acct-quick-btn:active{ background:var(--hairline); transform:scale(.96); }
.acct-quick-btn svg{
  width:15px; height:15px; flex:0 0 auto;
  fill:none; stroke:currentColor;
  stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}
.acct-quick-btn.dim{ color:var(--gray-2); }
/* ????*/
.acct-avatar-wrap{ position:relative; cursor:pointer; }
.acct-avatar-wrap img{ background:var(--fill); }
.acct-avatar-edit{
  position:absolute; right:-2px; bottom:-2px;
  width:30px; height:30px; border-radius:50%;
  background:var(--ink); color:var(--on-ink);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 3px var(--bg);
}
.acct-avatar-edit svg{
  width:14px; height:14px;
  fill:none; stroke:currentColor;
  stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round;
}
.acct-dev-row{
  display:flex; align-items:center; gap:12px;
  padding:12px 16px;
}
.acct-dev-row + .acct-dev-row{ box-shadow:inset 0 1px 0 rgba(11,11,15,.05); }
.acct-dev-row svg{
  flex:0 0 auto; width:20px; height:20px;
  fill:none; stroke:var(--ink);
  stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}
.acct-dev-main{ flex:1; min-width:0; }
.acct-dev-main b{ display:block; font-size:14px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acct-dev-main span{ display:block; font-size:11.5px; color:var(--gray-2); margin-top:2px; }
.acct-dev-tag{
  flex:0 0 auto;
  font-size:11px; padding:3px 8px; border-radius:999px;
  background:var(--primary); color:var(--ink);
}
.acct-dev-del{
  flex:0 0 auto;
  width:34px; height:34px; padding:0;
  display:flex; align-items:center; justify-content:center;
  border:0; border-radius:10px; box-sizing:border-box;
  -webkit-appearance:none; appearance:none;
  background:transparent; color:var(--gray-3);
  cursor:pointer; -webkit-tap-highlight-color:transparent;
  transition:background .16s ease, color .16s ease, transform .16s ease;
}
.acct-dev-del svg{
  width:16px; height:16px; flex:0 0 auto;
  fill:none; stroke:currentColor;
  stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round;
}
.acct-dev-del:hover{ background:rgba(0,0,0,.045); color:var(--danger); }
.acct-dev-del:active{ background:rgba(0,0,0,.075); transform:scale(.92); }
.acct-dev-del:focus-visible{ outline:2px solid var(--primary); outline-offset:2px; }
.acct-dev-empty{ padding:8px 16px 14px; font-size:12px; color:var(--gray-3); }
/* GitHub ????*/
.gh-form{ padding:10px 16px 0; display:flex; flex-direction:column; gap:8px; }
.gh-form .pad-input{ background:var(--bg); font-size:13.5px; padding:11px 14px; border-radius:13px; }
.gh-actions{
  display:flex; gap:8px; flex-wrap:wrap;
  padding:4px 16px 14px;
}
.gh-actions .mem-btn{ flex:1; white-space:nowrap; text-align:center; }
.gh-actions.gh-setup{ padding-top:10px; padding-bottom:2px; }
.gh-actions.gh-setup .mem-btn{ flex:1 1 100%; }
/* ???? */
.heart-head{
  display:flex; align-items:center; gap:12px;
  padding:0 22px 6px;
}
.heart-avatar{
  width:48px; height:48px; border-radius:50%;
  object-fit:cover; display:block; background:var(--fill); flex:0 0 auto;
}
.heart-avatar-initial{
  width:48px; height:48px; border-radius:50%;
  background:var(--fill); color:var(--ink);
  display:flex; align-items:center; justify-content:center;
  font-size:18px; font-weight:600; flex:0 0 auto;
}
.heart-name{ font-size:16px; font-weight:600; }
.heart-sub{ font-size:12px; color:var(--gray-2); margin-top:2px; }
.heart-block{
  margin:10px 22px 0;
  padding:12px 14px;
  background:var(--fill);
  border-radius:16px;
}
.heart-label{ font-size:11.5px; color:var(--gray-2); margin-bottom:5px; }
.heart-text{ font-size:14px; line-height:1.6; color:var(--ink); white-space:pre-wrap; word-break:break-word; }
.heart-trans{
  margin-top:8px;
  padding:6px 10px;
  border-radius:10px;
  font-size:12.5px; line-height:1.55;
  color:var(--sk-trans-ink, var(--gray-1));
  background:var(--sk-trans-bg, rgba(var(--tint-rgb),.06));
  border:1px dashed rgba(var(--tint-rgb),.16);
  white-space:pre-wrap; word-break:break-word;
}
.heart-fav-row{ display:flex; align-items:center; gap:10px; }
.heart-fav-bar{
  flex:1; height:8px; border-radius:4px;
  background:rgba(var(--tint-rgb),.08); overflow:hidden;
}
.heart-fav-bar i{
  display:block; height:100%; border-radius:4px;
  background:linear-gradient(90deg, #ff8fa3, #ff375f);
  transition:width .5s var(--spring);
}
.heart-fav-num{ font-size:15px; font-weight:600; font-variant-numeric:tabular-nums; min-width:34px; text-align:right; }
.heart-loading{ text-align:center; font-size:13px; color:var(--gray-2); padding:18px 0 8px; }
#heartBody .heart-trans:empty{ display:none; }
.hb-preview{
  margin:0 0 12px;
  padding:12px 0 4px;
  border-radius:16px;
  background:var(--fill);
}
.hb-preview-inner{ min-height:48px; }
.hb-preview-inner .heart-block{ background:var(--card); }
.save-btn.ghost{
  background:var(--bg);
  color:var(--ink);
  border:1px solid var(--gray-3);
  margin-top:12px;
}
.save-btn.ghost:active{ background:var(--fill); }
/* ?? */
.set-slider-wrap{
  flex:1; display:flex; align-items:center; gap:12px;
}
.set-slider-wrap input[type="range"]{
  flex:1; min-width:0;
  -webkit-appearance:none; appearance:none;
  height:4px; border-radius:999px;
  background:var(--gray-3);
  outline:none;
}
.set-slider-wrap input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:24px; height:24px; border-radius:50%;
  background:var(--card);
  border:1px solid var(--hairline);
  box-shadow:0 2px 8px rgba(0,0,0,.18);
  cursor:pointer;
}
.set-slider-wrap input[type="range"]::-moz-range-thumb{
  width:22px; height:22px; border-radius:50%;
  background:var(--card); border:1px solid var(--hairline);
  box-shadow:0 2px 8px rgba(0,0,0,.18);
  cursor:pointer;
}
.set-slider-val{
  flex:0 0 auto;
  min-width:44px; text-align:right;
  font-size:13px; color:var(--gray-1);
  font-variant-numeric:tabular-nums;
}
/* ??????*/
.stepper{ flex:1; display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.step-btn{
  width:30px; height:30px; border-radius:50%;
  border:1px solid var(--gray-3);
  background:var(--bg); color:var(--ink);
  font-size:16px; line-height:1;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s, transform .15s var(--spring);
}
.step-btn:active{ background:var(--fill); transform:scale(.9); }
.step-val{
  min-width:20px; text-align:center;
  font-size:15px; font-weight:600;
  font-variant-numeric:tabular-nums;
}
/* ??????*/
.backup-card{
  background:var(--fill);
  border-radius:18px;
  padding:16px 18px;
  margin-bottom:4px;
}
.backup-title{ font-size:14px; font-weight:600; margin:0 0 6px; }
.backup-desc{ font-size:13px; color:var(--gray-1); line-height:1.7; margin:0; }
/* ???? */
.set-sub-title{
  font-size:12px; color:var(--gray-2);
  margin:18px 0 6px 2px;
}
.preset-list{
  background:var(--bg);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 1px 0 var(--hairline), 0 0 0 1px var(--hairline);
}
.preset-row{
  display:flex; align-items:center; gap:10px;
  min-height:52px;
  padding:0 8px 0 16px;
  border-bottom:1px solid var(--hairline);
}
.preset-row:last-child{ border-bottom:none; }
.preset-name{
  flex:1; min-width:0;
  border:4px solid var(--bg); box-sizing:border-box; background:transparent;
  font-family:inherit; font-size:14.5px; font-weight:600;
  color:var(--ink); text-align:left;
  padding:8px 0;
  cursor:pointer;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
@media (hover: hover) and (pointer: fine){
.preset-name:hover{ color:var(--gray-1); }
}

.preset-sub{
  flex:0 0 auto;
  font-size:12px; color:var(--gray-2);
  max-width:120px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.preset-del{
  flex:0 0 auto;
  border:4px solid var(--bg); box-sizing:border-box; background:transparent;
  font-family:inherit; font-size:13px;
  color:var(--danger);
  padding:8px 12px;
  cursor:pointer;
  border-radius:10px;
  transition:background .15s;
}
@media (hover: hover) and (pointer: fine){
.preset-del:hover{ background:rgba(255,59,48,.08); }
}

.preset-empty{
  font-size:12px; color:var(--gray-3);
  margin:8px 0 0 4px;
}
/* ????????????????? */
.img-conn{ margin-top:14px; }
.img-conn.hidden{ display:none; }
.novelai-warn{
  display:flex; align-items:center; gap:8px;
  margin-top:14px;
  background:rgba(255,59,48,.07);
  border-radius:14px;
  padding:12px 14px;
  font-size:12.5px; line-height:1.6;
  color:var(--danger);
}
.novelai-warn.hidden{ display:none; }
.novelai-warn svg{
  flex:0 0 auto;
  width:18px; height:18px;
  fill:none; stroke:currentColor;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}
.field-prompt{ align-items:flex-start; }
.field-prompt label{ padding-top:12px; }
.field-prompt-block{
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  padding-top:12px;
  padding-bottom:12px;
}
.field-prompt-block label{
  width:auto;
  padding-top:0;
  font-size:13px;
  color:var(--gray-2);
}
.img-prompt-editor{ margin-top:18px; }
.prompt-textarea{
  flex:1; min-width:0; min-height:84px;
  width:100%;
  border:4px solid var(--bg); box-sizing:border-box; outline:none; resize:vertical;
  background:var(--fill);
  border-radius:12px;
  padding:12px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:13px; line-height:1.65;
  color:var(--ink);
}
.prompt-textarea-lg{ min-height:140px; }
.prompt-textarea::placeholder{ color:var(--gray-3); }
/* ???? */
.model-row{
  flex:1; min-width:0;
  display:flex; align-items:center; gap:8px;
}
.model-row input{
  flex:1; min-width:0;
  border:4px solid var(--bg); box-sizing:border-box; outline:none; background:transparent;
  font-family:inherit; font-size:14px;
  color:var(--ink);
  padding:14px 0;
}
.model-row input::placeholder{ color:var(--gray-3); }
.model-fetch{
  flex:0 0 auto;
  border:4px solid var(--bg); box-sizing:border-box; background:var(--fill);
  border-radius:10px;
  padding:7px 14px;
  font-family:inherit; font-size:13px;
  color:var(--gray-1);
  cursor:pointer;
  transition:background .15s,color .15s;
}
@media (hover: hover) and (pointer: fine){
.model-fetch:hover{ background:var(--primary); color:var(--ink); }
}

.field-list .model-pills{
  border-radius:0;
  box-shadow:none;
  margin-top:0;
  border-top:1px solid var(--hairline);
  padding:10px 16px 12px;
  background:transparent;
}
.field-list .model-pills:empty{ display:none; }
.field-list .model-pills + .field{ border-top:1px solid var(--hairline); }
.model-pills{
  display:flex; flex-wrap:wrap; gap:8px;
  padding:2px 16px 12px;
  background:var(--bg);
  border-radius:0 0 18px 18px;
  margin-top:-2px;
  box-shadow:0 1px 0 var(--hairline), 0 0 0 1px var(--hairline);
}
.model-pill{
  border:4px solid var(--bg); box-sizing:border-box; background:var(--fill);
  border-radius:999px;
  padding:6px 13px;
  font-family:inherit; font-size:12.5px;
  color:var(--gray-1);
  cursor:pointer;
  transition:background .15s,color .15s;
  max-width:100%;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
@media (hover: hover) and (pointer: fine){
.model-pill:hover{ background:var(--primary); color:var(--ink); }
}

.model-pill.active{ background:var(--primary); color:var(--ink); font-weight:600; }

/* ============ ?????? / ???============ */
.skin-note{
  margin:14px 4px 0;
  font-size:12.5px; color:var(--gray-2);
  line-height:1.7;
}
.field-color .skin-color{
  flex:0 0 auto;
  width:52px; height:32px;
  padding:0; border:1px solid var(--hairline);
  border-radius:10px;
  background:var(--bg);
  cursor:pointer;
}
.field-color .skin-color::-webkit-color-swatch-wrapper{ padding:3px; }
.field-color .skin-color::-webkit-color-swatch{ border:4px solid var(--bg); box-sizing:border-box; border-radius:7px; }
.field-color .skin-hex{
  flex:0 0 auto;
  width:78px;
  font-family:var(--font-num); font-size:12.5px;
  color:var(--gray-1); text-align:right;
  font-variant-numeric:tabular-nums;
}
.skin-preview{
  margin-top:18px;
  border-radius:20px;
  padding:16px;
  background:var(--fill);
}
.skin-preview-title{
  font-size:11px; font-weight:600; letter-spacing:.1em;
  color:var(--gray-2); margin:0 0 10px 2px;
}
.skin-bubbles{ display:flex; flex-direction:column; gap:10px; }
.skin-pv-row{ display:flex; align-items:flex-end; gap:8px; width:100%; }
.skin-pv-row.mine{ flex-direction:row-reverse; }
.skin-pv-av{
  flex:0 0 auto;
  width:38px; height:38px;
  border-radius:50%;
  background:rgba(127,127,127,.22);
}
.skin-bubble{
  max-width:78%;
  padding:8px 11px;
  font-size:14px; line-height:1.6;
}
.skin-pv-row .skin-bubble{ align-self:auto; }
.skin-bubble.peer{ align-self:flex-start; }
.skin-bubble.mine{ align-self:flex-end; }

/* ============ ??????============ */
.widget-preview{
  position:relative;
  height:132px; margin-top:12px;
  border-radius:18px; background:var(--fill);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  box-shadow:inset 0 0 0 1px var(--hairline);
}
.widget-preview img{ display:none; width:100%; height:100%; object-fit:contain; }
.widget-preview span{ font-size:12.5px; color:var(--gray-2); }
.widget-preview.has-img img{ display:block; }
.widget-preview.has-img span{ display:none; }
.widget-slots{
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:10px; margin-top:10px;
}
.widget-slot{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.widget-slot-pic{
  width:100%; aspect-ratio:2/3;
  border-radius:12px; background:var(--fill);
  overflow:hidden;
  box-shadow:none;
}
.widget-slot-pic img{ display:block; width:100%; height:100%; object-fit:cover; }
.widget-slot-acts{ display:flex; gap:6px; }
/* 小组件选择：2×2 + 底下一行自定义图片 */
.wg-picker{
  display:grid; grid-template-columns:repeat(2, 1fr);
  gap:8px; margin-top:10px;
}
.wg-pick{
  display:flex; flex-direction:column; align-items:flex-start; gap:3px;
  padding:12px 13px;
  border:4px solid var(--bg); box-sizing:border-box; border-radius:16px;
  background:var(--fill); color:var(--ink);
  font-family:inherit; text-align:left; cursor:pointer;
  box-shadow:inset 0 0 0 1px transparent;
  transition:transform .18s var(--spring), background .15s, box-shadow .15s, color .15s;
}
.wg-pick b{ font-size:13.5px; font-weight:650; }
.wg-pick span{ font-size:11px; color:var(--gray-2); line-height:1.35; }
.wg-pick.on{
  background:var(--ink); color:var(--on-ink);
  box-shadow:none;
}
.wg-pick.on span{ color:rgba(255,255,255,.62); }
html[data-theme="dark"] .wg-pick.on span{ color:rgba(0,0,0,.55); }
.wg-pick:active{ transform:scale(.97); }
.wg-pick-img{ grid-column:1 / -1; }
.wg-pick-img b{ display:flex; align-items:center; gap:6px; }
/* 编辑区 */
.wg-editor{ display:none; }
.wg-editor.show{ display:block; }
.wg-fields{ display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.wg-field{ display:flex; align-items:center; gap:10px; }
.wg-field label{ flex:0 0 84px; font-size:12.5px; color:var(--gray-1); }
.wg-field input{
  flex:1; min-width:0; height:34px; padding:0 12px;
  border:4px solid var(--bg); box-sizing:border-box; border-radius:10px;
  background:var(--fill); color:var(--ink);
  font-family:inherit; font-size:13px; outline:none;
}
.wg-imgs{
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:10px; margin-top:10px;
}
.wg-img{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.wg-img-pic{
  width:48px; height:48px; border-radius:12px;
  background:var(--fill); overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  box-shadow:none;
  font-size:11px; color:var(--gray-3);
}
.wg-img-pic img{ display:block; width:100%; height:100%; object-fit:cover; }
.wg-img-name{ font-size:11px; color:var(--gray-1); text-align:center; }
.wg-img-acts{ display:flex; gap:4px; }

/* ============ 图片编辑器 / 裁剪 ============ */
.img-ed-backdrop{ z-index:96; }
.img-ed-card{ max-width:340px; padding-bottom:16px; }
.img-ed-stage{
  position:relative;
  height:240px; margin:12px 16px 0;
  border-radius:16px; overflow:hidden;
  background:#1A1A1F;
  touch-action:none;
  cursor:grab;
}
.img-ed-stage:active{ cursor:grabbing; }
.img-ed-stage canvas{ display:block; }
.img-ed-tools{
  display:flex; align-items:center; gap:10px;
  padding:14px 20px 0;
}
.img-ed-tools input[type=range]{ flex:1; min-width:0; accent-color:var(--ink); }
.img-ed-btn{
  flex:0 0 auto; width:36px; height:36px;
  border:4px solid var(--bg); box-sizing:border-box; border-radius:50%;
  background:var(--fill); color:var(--ink);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.img-ed-btn:active{ transform:scale(.94); }
.img-ed-btn svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.img-ed-acts{ display:flex; gap:8px; padding:14px 20px 0; }
.img-ed-acts .tsb-btn{ flex:1; height:38px; }
.img-ed-acts .tsb-btn.primary{ background:var(--ink); color:var(--on-ink); }

/* ============ ?????? / ??????============ */
.bg-actions{
  display:flex; gap:10px;
  margin-top:12px;
}
.bg-actions .save-btn{ margin-top:0; height:44px; border-radius:20px; font-size:14px; }
.bg-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:8px;
  margin-top:12px;
}
.bg-cell-wrap{
  position:relative;
  height:82px;
}
.bg-cell{
  position:relative;
  padding:0; border:4px solid var(--bg); box-sizing:border-box;
  width:100%; height:100%;
  border-radius:14px;
  overflow:hidden;
  background:var(--fill);
  cursor:pointer;
  box-shadow:none;
}
.bg-cell img{ width:100%; height:100%; object-fit:cover; display:block; }
.bg-cell.on{ box-shadow:0 0 0 2px var(--ink); }
.bg-cell-del{
  position:absolute; top:0; right:0;
  z-index:2;
  width:40px; height:40px;
  padding:0;
  border:0; box-sizing:border-box; border-radius:0 14px 0 0;
  background:transparent;
  color:#fff;
  font-size:16px; line-height:1;
  font-weight:600;
  cursor:pointer;
  display:flex; align-items:flex-start; justify-content:flex-end;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.bg-cell-del::before{
  content:'';
  position:absolute; top:6px; right:6px;
  width:26px; height:26px;
  border-radius:50%;
  background:rgba(11,11,15,.62);
  box-shadow:0 1px 3px rgba(0,0,0,.25);
  pointer-events:none;
}
.bg-cell-del > span{
  position:relative; z-index:1;
  width:26px; height:26px; margin:6px 6px 0 0;
  display:flex; align-items:center; justify-content:center;
  pointer-events:none;
}
.bg-cell-del:active::before{ background:rgba(11,11,15,.82); }
.bg-empty{
  font-size:12px; color:var(--gray-3);
  margin:10px 0 0 2px;
}
.bg-empty[hidden]{ display:none; }
/* ============ ??????/ ?? ?? ============ */
.skin-switch{ margin:4px 0 14px; }
.skin-pane{ display:none; }
.skin-pane.on{ display:block; }
/* ============ ????/ ????============ */
.lib-groups{
  display:flex; gap:8px; flex-wrap:wrap;
  margin-bottom:12px;
}
.lib-groups button{
  height:32px; padding:0 14px;
  border:4px solid var(--bg); box-sizing:border-box; border-radius:16px;
  background:var(--fill); color:var(--ink);
  font-size:13px; font-family:inherit; cursor:pointer;
}
.lib-groups button.on{ background:var(--ink); color:var(--on-ink); }
.lib-groups button[data-sg-new]{ color:var(--gray-1); }
.lib-actions{ display:flex; gap:10px; margin-top:10px; }
.lib-actions .save-btn{ margin-top:0; height:44px; border-radius:20px; font-size:14px; flex:1; }
.lib-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:8px;
  margin-top:12px;
}
.lib-grid .sticker-cell, .av-cell{
  position:relative;
  aspect-ratio:1;
  border:4px solid var(--bg); box-sizing:border-box; padding:0;
  border-radius:14px; overflow:hidden;
  background:var(--fill);
  box-shadow:none;
  cursor:pointer;
}
.lib-grid .sticker-cell img, .av-cell img{ width:100%; height:100%; object-fit:contain; display:block; background:var(--fill); }
.lib-grid .sticker-cell img{ padding:6px; box-sizing:border-box; }
.av-cell .av-desc{
  position:absolute; left:0; right:0; bottom:0;
  padding:3px 6px;
  font-size:10px; line-height:1.3; color:#fff;
  background:linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  text-align:left;
}
.av-del{
  position:absolute; top:4px; right:4px;
  width:22px; height:22px;
  border:4px solid var(--bg); box-sizing:border-box; border-radius:50%;
  background:rgba(11,11,15,.55); color:#fff;
  font-size:13px; line-height:1;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.av-pairs{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.av-pair{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:18px;
  background:var(--fill);
}
.av-pair .av-cell{ width:64px; flex:0 0 auto; }
.av-pair-heart{ font-size:16px; color:var(--gray-2); }
.av-pair-word{ flex:1; min-width:0; font-size:12px; color:var(--gray-1); line-height:1.5; cursor:pointer; }
.av-pair-word b{ display:block; font-size:13px; color:var(--ink); }
.av-pair-acts{ display:flex; flex-direction:column; gap:6px; }
.av-pair-acts button{
  height:30px; padding:0 12px;
  border:4px solid var(--bg); box-sizing:border-box; border-radius:15px;
  background:var(--card); color:var(--ink);
  font-size:12px; font-family:inherit; cursor:pointer;
  box-shadow:none;
}
.av-pair-acts button.danger{ color:var(--danger); }

/* 头像库：顶栏三栏 + 分组导出 */
#avLibSwitch{ margin:4px 18px 8px; flex:0 0 auto; }
#avLibSwitch .tm-sw{
  flex:1 1 0; min-width:0;
  font-size:15px; font-weight:600;
  white-space:nowrap;
}
.av-lib-body{ padding-top:4px; }
.av-pane{ display:none; }
.av-pane.on{ display:block; animation:viewIn .26s var(--ease-out) both; }
.av-sec-title{
  font-size:15px; font-weight:600; color:var(--ink);
  margin:16px 0 8px 2px;
}
.av-sec-title:first-child{ margin-top:4px; }
.av-export-list{
  display:flex; flex-direction:column; gap:8px;
}
.av-export-item{
  display:flex; align-items:center; gap:12px;
  min-height:48px; padding:0 14px;
  border-radius:14px;
  background:var(--fill);
  font-size:14.5px; color:var(--ink);
  cursor:pointer;
}
.av-export-item input{
  width:18px; height:18px; accent-color:var(--primary);
  flex:0 0 auto;
}
.lib-export-meta{
  display:flex; flex-direction:column; gap:10px;
  margin-top:4px;
}
.lib-export-meta .pad-input{
  width:100%; box-sizing:border-box;
  margin:0;
}
.lib-export-meta textarea.pad-input{
  min-height:64px; resize:vertical;
  line-height:1.5;
}
.lib-ratio-seg{
  display:flex; gap:6px;
  padding:4px;
  border-radius:14px;
  background:var(--fill);
}
.lib-ratio-seg .seg-btn{
  flex:1; height:36px;
  border:4px solid var(--bg); box-sizing:border-box; border-radius:11px;
  background:transparent;
  font-family:inherit; font-size:13.5px; font-weight:500;
  color:var(--gray-1); cursor:pointer;
}
.lib-ratio-seg .seg-btn.active{
  background:var(--bg); color:var(--ink); font-weight:600;
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}
.lib-img-export-card{ max-width:min(420px, 92vw); }
.lib-img-name-label{
  display:block;
  margin:12px 0 6px;
  font-size:12px;
  color:var(--gray-2);
  font-weight:500;
}
.lib-img-export-card #libImgExportName{ width:100%; box-sizing:border-box; }
.lib-img-preview-wrap{
  position:relative;
  width:100%;
  aspect-ratio:1;
  border-radius:16px;
  overflow:hidden;
  background:var(--fill);
  display:flex; align-items:center; justify-content:center;
}
.lib-img-preview-wrap img{
  width:100%; height:100%;
  object-fit:contain;
  display:block;
  background:#fff;
}
.lib-img-preview-ph{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; color:var(--gray-2);
}
.av-lib-body .lib-groups{ margin-top:4px; }
.av-lib-body .lib-actions .save-btn{ font-size:14px; }

/* 表情库：顶栏两栏（对齐头像库） */
#stkLibSwitch{ margin:4px 18px 8px; flex:0 0 auto; }
#stkLibSwitch .tm-sw{
  flex:1 1 0; min-width:0;
  font-size:15px; font-weight:600;
  white-space:nowrap;
}
.stk-lib-body{ padding-top:4px; }
.stk-pane{ display:none; }
.stk-pane.on{ display:block; animation:viewIn .26s var(--ease-out) both; }
.stk-lib-body .lib-groups{ margin-top:4px; }
.stk-lib-body .lib-groups button,
.stk-lib-body .sticker-group-btn{
  height:34px; padding:0 14px;
  font-size:13.5px;
}
.stk-lib-body .lib-actions .save-btn{ font-size:14px; }
.stk-lib-body .lib-grid{
  grid-template-columns:repeat(4, 1fr);
  gap:10px;
  margin-top:14px;
}
.stk-lib-body .lib-grid .sticker-cell{
  aspect-ratio:auto;
  display:flex; flex-direction:column;
  border-radius:16px;
  background:var(--fill);
  box-shadow:none;
  outline:1px solid var(--hairline);
  overflow:hidden;
}
.stk-lib-body .lib-grid .sticker-cell img{
  aspect-ratio:1;
  width:100%; height:auto;
  padding:8px;
  box-sizing:border-box;
  flex:0 0 auto;
}
.stk-lib-body .sticker-cell-cap{
  font-size:11px; line-height:1.25;
  padding:0 6px 8px;
  color:var(--gray-1);
  text-align:center;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.stk-lib-body .lib-select-bar{
  flex-wrap:wrap;
}
.stk-lib-body .bg-empty{ margin-top:18px; }
/* ============ ????CSS ============ */
.css-area{
  width:100%; min-height:150px;
  margin-top:12px;
  border:4px solid var(--bg); box-sizing:border-box; outline:none; resize:vertical;
  background:var(--fill);
  border-radius:16px;
  padding:14px 16px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:12.5px; line-height:1.7;
  color:var(--ink);
}
.css-area::placeholder{ color:var(--gray-3); }
.css-row{
  display:flex; gap:10px;
  margin-top:12px;
}
.css-row .save-btn{ margin-top:0; height:44px; border-radius:20px; font-size:14px; }

/* ============ ???? ============ */
.usage-hero{
  background:var(--fill);
  border-radius:22px;
  padding:20px 20px 18px;
  text-align:center;
}
.usage-total{
  font-family:var(--font-num);
  font-size:34px; font-weight:600;
  letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
}
.usage-total-sub{
  font-size:12px; color:var(--gray-2);
  margin:6px 0 0;
}
.usage-bar{
  display:flex; gap:2px;
  height:10px; margin-top:16px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(var(--tint-rgb),.06);
}
.usage-seg{ height:100%; min-width:2px; }
.usage-list{
  margin-top:16px;
  background:transparent;
  border-radius:0;
  overflow:visible;
  box-shadow:none;
}
.usage-row,
.usage-row-bw{
  display:block;
  padding:16px 4px 14px;
  border-bottom:none;
}
.usage-dot{ display:none; }
.usage-name{ display:none; }
.usage-size{ display:none; }
.ur-top{
  display:flex; align-items:baseline; justify-content:space-between;
  font-size:16px; font-weight:600; color:var(--ink);
}
.ur-name{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ur-pct{ flex:0 0 auto; margin-left:12px; font-variant-numeric:tabular-nums; }
.ur-track{
  height:9px; border-radius:999px;
  background:#d8d8dc;
  margin:12px 0 8px; overflow:hidden;
}
[data-theme="dark"] .ur-track{ background:#3a3a3c; }
.ur-fill{
  display:block; height:100%; border-radius:999px;
  background:#111;
}
[data-theme="dark"] .ur-fill{ background:#f2f2f7; }
.ur-sub{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  font-size:11.5px; color:var(--gray-2);
}
.usage-week-btn{
  width:100%; margin:14px 0 2px; padding:14px;
  border-radius:16px; border:1px solid var(--hairline);
  background:var(--fill); color:var(--ink);
  font-size:14px; font-weight:700;
}
.usage-clear{
  flex:0 0 auto;
  margin:0; padding:4px 8px;
  border:4px solid var(--bg); box-sizing:border-box; background:transparent;
  font:inherit; font-size:12px;
  color:var(--danger);
  opacity:.72;
  cursor:pointer;
  border-radius:8px;
  -webkit-tap-highlight-color:transparent;
}
@media (hover: hover) and (pointer: fine){
.usage-clear:hover{ opacity:1; background:rgba(255,59,48,.08); }
}

.usage-clear:disabled{
  opacity:.28; cursor:default; background:transparent;
}

/* ============ ???????????? ============ */
.danger-card{
  margin-top:26px;
  background:rgba(255,59,48,.06);
  border-radius:18px;
  padding:16px 18px;
}
.danger-title{
  margin:0 0 6px;
  font-size:14px; font-weight:600; color:var(--danger);
}
.danger-desc{
  margin:0;
  font-size:12.5px; color:var(--gray-1); line-height:1.7;
}
.save-btn.danger{
  margin-top:12px;
  background:var(--danger); color:#fff;
}

/* ============ 置顶会话（半透明底，跟随主页美化「辅助色」） ============ */
.chat-row.pinned{
  margin:4px 12px;
  padding:10px 12px;
  border-top:none;
  border-radius:20px;
  /* 半透明：默认辅助色 #6C6C70 的约 20% 不透明度作兜底 */
  background:rgba(108, 108, 112, .2);
  background:color-mix(in srgb, var(--sk-home-muted, #6C6C70) 22%, transparent);
}
@media (hover: hover) and (pointer: fine){
.chat-row.pinned:hover{
  background:rgba(108, 108, 112, .3);
  background:color-mix(in srgb, var(--sk-home-muted, #6C6C70) 32%, transparent);
}
}

.chat-row.pinned:active{
  background:color-mix(in srgb, var(--sk-home-muted, #6C6C70) 38%, transparent);
}
.chat-row.pinned + .chat-row:not(.pinned){ border-top:none; }
.pin-flag{
  flex:0 0 auto;
  width:14px; height:14px;
  margin-right:auto;
  align-self:center;
  fill:none; stroke:var(--sk-home-muted, var(--gray-2));
  stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round;
}
.row-top .row-name{ flex:0 1 auto; }
.sheet-item.danger .sheet-item-name{ color:var(--danger); }
.sheet-sub-note{
  padding:4px 22px 0;
  font-size:11.5px; color:var(--gray-3); line-height:1.6;
}

/* ============ 首次使用协议 ============ */
.terms-gate{
  position:fixed; inset:0; z-index:9998;
  display:flex; align-items:stretch; justify-content:center;
  padding:max(12px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  background:rgba(12,12,14,.42);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.terms-gate[hidden]{ display:none !important; }
.terms-panel{
  width:min(100%, 440px);
  margin:auto;
  max-height:100%;
  display:flex; flex-direction:column;
  border-radius:22px;
  background:var(--bg);
  color:var(--ink);
  box-shadow:0 24px 60px -28px rgba(0,0,0,.45);
  overflow:hidden;
}
.terms-head{
  flex:0 0 auto;
  padding:22px 20px 14px;
  border-bottom:1px solid rgba(var(--tint-rgb),.08);
}
.terms-kicker{
  margin:0;
  font-size:11px; font-weight:600;
  letter-spacing:.16em; text-transform:uppercase;
  color:var(--gray-2);
}
.terms-head h1{
  margin:8px 0 0;
  font-size:22px; font-weight:700; letter-spacing:-.02em;
}
.terms-lead{
  margin:10px 0 0;
  font-size:13px; line-height:1.55; color:var(--gray-1);
}
.terms-scroll{
  flex:1; min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:14px 18px 8px;
}
.terms-scroll::-webkit-scrollbar{ width:0; }
.terms-block{
  margin:0 0 12px;
  padding:14px 14px 13px;
  border-radius:14px;
  background:rgba(var(--tint-rgb),.04);
}
.terms-block-warn{
  background:rgba(255,59,48,.08);
  box-shadow:inset 0 0 0 1px rgba(255,59,48,.16);
}
.terms-block h2{
  margin:0 0 8px;
  font-size:14px; font-weight:700;
}
.terms-block-warn h2{ color:#c62828; }
html[data-theme="dark"] .terms-block-warn h2{ color:#ff8a80; }
.terms-block p{
  margin:0;
  font-size:13px; line-height:1.7; color:var(--gray-1);
}
.terms-block strong{ color:var(--ink); font-weight:700; }
.terms-foot{
  flex:0 0 auto;
  padding:12px 16px 16px;
  border-top:1px solid rgba(var(--tint-rgb),.08);
  background:var(--bg);
}
.terms-sign{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:0; border-radius:14px;
  background:var(--ink); color:var(--on-ink);
  font:600 13.5px/1.45 var(--font-body);
  cursor:pointer;
  transition:opacity .2s ease;
}
.terms-sign:disabled{
  opacity:.38; cursor:default;
}
.terms-hint{
  margin:10px 0 0;
  text-align:center;
  font-size:11px; color:var(--gray-2); line-height:1.4;
}
/* ===== 表情库拍立得文件夹 ===== */
.stk-lib-head .stk-io-btns{display:flex;gap:8px;margin-left:auto}
.stk-io-btn{height:32px;padding:0 14px;border:4px solid var(--bg); box-sizing:border-box;border-radius:16px;background:var(--fill);color:var(--ink);font:600 13px var(--font-body);cursor:pointer}
.stk-io-btn:active{transform:scale(.94)}
.stk-folder-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px 12px;margin-top:14px}
.stk-polaroid{border:4px solid var(--bg); box-sizing:border-box;background:transparent;margin:12px 0 0;padding:0;cursor:pointer;position:relative;filter:drop-shadow(0 8px 16px rgba(0,0,0,.12))}
.stk-pol-tape{position:absolute;top:-11px;left:50%;transform:translateX(-50%) rotate(-3deg);width:40%;height:24px;background:#6b6f76;z-index:3;clip-path:polygon(0 8%,3% 0,97% 0,100% 12%,98.5% 30%,100% 48%,98% 66%,100% 84%,97% 100%,3% 100%,0 88%,1.5% 70%,0 52%,1.5% 32%)}
.stk-pol-frame{display:block;border-radius:10px;padding:12px 12px 0;background:var(--stk-c,#F4C3D0)}
.stk-pol-photo{background:#fff;border-radius:4px;aspect-ratio:1/1;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:6px;padding:10px;overflow:hidden;min-height:120px}
.stk-pol-photo img{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:3px;display:block;background:#f4f4f6}
.stk-pol-empty{grid-column:1/-1;grid-row:1/-1;display:flex;align-items:center;justify-content:center;font-size:12px;color:#b9b9c0}
.stk-pol-foot{display:flex;align-items:center;gap:8px;padding:12px 4px 14px}
.stk-pol-name{flex:1;min-width:0;font-size:14px;font-weight:600;color:#2c2c30;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stk-pol-heart{flex:0 0 auto;width:32px;height:32px;border-radius:50%;background:#6b6f76;color:var(--stk-c,#F4C3D0);display:flex;align-items:center;justify-content:center;font-size:15px;line-height:1}
.stk-pol-add .stk-pol-photo{display:flex}
.stk-io-card{max-width:min(440px,92vw);max-height:82vh;display:flex;flex-direction:column}
.stk-folder-card{width:min(560px,94vw);max-height:84vh;display:flex;flex-direction:column;position:relative;border-radius:18px}
.stk-folder-card-head{display:flex;align-items:center;gap:10px;padding:18px 18px 12px}
.stk-folder-card-head b{font-size:17px;font-weight:700}
.stk-folder-card-head span{font-size:12px;color:var(--gray-2)}
.stk-func-btn{flex:0 0 auto;width:32px;height:32px;border:4px solid var(--bg); box-sizing:border-box;border-radius:50%;background:var(--fill);cursor:pointer;color:var(--ink);padding:0;display:flex;align-items:center;justify-content:center}
.stk-close-btn{flex:0 0 auto;width:32px;height:32px;border:4px solid var(--bg); box-sizing:border-box;border-radius:50%;background:transparent;font-size:14px;line-height:1;cursor:pointer;color:var(--gray-2);padding:0}
.stk-folder-func{position:absolute;top:56px;right:14px;z-index:5;display:flex;flex-direction:column;min-width:150px;background:var(--bg);border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.18);padding:6px;gap:2px}
.stk-folder-func[hidden]{display:none}
.stk-folder-func button{height:40px;padding:0 14px;border:4px solid var(--bg); box-sizing:border-box;border-radius:10px;background:transparent;font-size:14px;text-align:left;cursor:pointer;color:var(--ink)}
.stk-folder-func button:active{background:var(--fill)}
.stk-folder-func button.danger{color:var(--danger)}
.stk-folder-selbar{display:flex;align-items:center;gap:8px;padding:0 18px 10px;font-size:13px;color:var(--gray-1)}
.stk-folder-selbar button{height:30px;padding:0 14px;border:4px solid var(--bg); box-sizing:border-box;border-radius:15px;background:var(--fill);font-size:12px;cursor:pointer;color:var(--ink)}
.stk-folder-grid2{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:2px 18px 18px;overflow-y:auto}
.stk-fi{position:relative;border:4px solid var(--bg); box-sizing:border-box;background:var(--fill);border-radius:12px;aspect-ratio:1;overflow:hidden;cursor:pointer;padding:6px}
.stk-fi img{width:100%;height:calc(100% - 18px);object-fit:contain}
.stk-fi span{display:block;font-size:10px;color:var(--gray-1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.stk-fi.picked{outline:2px solid var(--ink)}
/* ===== 头像库堆叠文件夹 ===== */
.av-kind-switch{margin:2px 0 4px}
#avFolderGrid{gap:18px 20px;padding:14px 12px 4px 2px}
#avFolderGrid .stk-polaroid{margin-right:10px}
#avFolderGrid .stk-pol-frame{padding:9px 9px 0}
#avFolderGrid .stk-pol-photo{min-height:96px;padding:8px;gap:5px}
.av-stack{position:relative;isolation:isolate}
.av-stack::before,.av-stack::after{content:'';position:absolute;inset:0;border-radius:10px;background:var(--stk-c,#F4C3D0);z-index:-1}
.av-stack::before{transform:translate(4px,-4px) rotate(2deg)}
.av-stack::after{transform:translate(8px,-8px) rotate(3.5deg);opacity:.55}
.av-card-photo{position:relative}
.av-card-heart{position:absolute;top:14px;right:14px;width:26px;height:26px;display:flex;align-items:center;justify-content:center;font-size:19px;color:#3a3a40}
.av-card-footname{padding:12px 4px 14px;font-size:14px;font-weight:600;color:#2c2c30;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ===== 情侣头像：一行两对，每对独立成框，中间爱心互换 ===== */
.av-pair{position:relative;display:flex;align-items:stretch;gap:0;background:var(--fill);border-radius:14px;padding:8px;cursor:pointer}
.av-pair.picked{outline:2px solid var(--ink)}
.av-pair-half{flex:1;min-width:0;border:4px solid var(--bg); box-sizing:border-box;background:#fff;border-radius:10px;padding:5px;cursor:pointer}
.av-pair-half img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block}
.av-pair-half span{display:block;margin-top:3px;font-size:10px;color:var(--gray-1);text-align:center}
.av-pair-heart{flex:0 0 auto;align-self:center;width:30px;height:30px;margin:0 -4px;border:4px solid var(--bg); box-sizing:border-box;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.14);color:#f06a8a;font-size:15px;line-height:1;cursor:pointer;z-index:1}
.av-pair-heart:active{transform:scale(.88)}

/* Image studio: monochrome editorial layout, shared application theme. */
[data-view="settings-image"] .image-settings-body{padding:20px 20px 32px;}
.image-settings-hero{position:relative;min-height:150px;padding:22px 90px 22px 20px;border:1px solid var(--hairline);border-radius:20px;background:var(--fill);overflow:hidden;}
.image-settings-hero>span,.image-section-label{font-size:10px;letter-spacing:2px;color:var(--gray-2);font-weight:600;}
.image-settings-hero h2{font-size:24px;line-height:1.3;font-weight:500;letter-spacing:-1px;margin:18px 0 10px;color:var(--ink);}
.image-settings-hero p{font-size:12px;line-height:1.7;color:var(--gray-2);margin:0;}
.image-settings-art{position:absolute;right:18px;top:38px;width:58px;height:82px;border:1px solid var(--gray-3);transform:rotate(9deg);padding:6px;}
.image-settings-art i{display:block;height:52px;border:1px solid var(--hairline);background:linear-gradient(145deg,transparent 48%,var(--gray-3) 49%,transparent 50%);}
.image-settings-art b{display:block;text-align:center;font-size:8px;font-weight:400;letter-spacing:2px;margin-top:8px;color:var(--gray-2);}
.image-section-label{margin:28px 2px 12px;padding-bottom:10px;border-bottom:1px solid var(--hairline);}
[data-view="settings-image"] .field-list{border:1px solid var(--hairline);border-radius:16px;overflow:hidden;background:var(--bg);}
[data-view="settings-image"] .field{padding:14px;gap:10px;}
[data-view="settings-image"] .field label{font-size:12px;flex:0 0 62px;width:62px;color:var(--gray-2);}
[data-view="settings-image"] input,[data-view="settings-image"] select{min-width:0;max-width:100%;font-size:13px;}
[data-view="settings-image"] .model-pills{padding:10px 14px;gap:6px;}
[data-view="settings-image"] .seg-btn.active{background:var(--ink);color:var(--bg);box-shadow:none;}
[data-view="settings-image"] .novelai-warn{background:var(--fill);color:var(--gray-2);border:1px solid var(--hairline);}
[data-view="settings-image"] .field-prompt-block label{flex:auto;width:auto;}
[data-view="settings-image"] .prompt-textarea-lg{min-height:110px;border:0;border-radius:10px;}
[data-view="settings-image"] .set-sub-title{font-size:11px;letter-spacing:1px;color:var(--gray-2);margin-top:26px;}
.image-save-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px;}
.image-save-actions .save-btn{margin:0;min-width:0;}
.image-test-result{border:1px solid var(--hairline);padding:10px;border-radius:16px;margin-top:12px;}
.image-test-result[hidden]{display:none!important;}
.image-test-result img{display:block;width:100%;max-height:360px;object-fit:contain;border-radius:10px;}
.image-test-result span{display:block;margin:10px 4px 2px;font-size:10px;letter-spacing:2px;color:var(--gray-2);}
[data-view="settings-image"] button:focus-visible,[data-view="settings-image"] input:focus-visible,[data-view="settings-image"] select:focus-visible,[data-view="settings-image"] textarea:focus-visible{outline:2px solid var(--gray-2);outline-offset:2px;}
[data-view="settings-image"] button:disabled{opacity:.5;cursor:wait;}
@media(max-width:350px){[data-view="settings-image"] .image-settings-body{padding:16px 14px 28px;}.image-settings-hero{padding-left:14px;}.image-settings-hero h2{font-size:21px;}}

[data-view="settings-image"]{--fill:#f4f4f4;}
[data-theme="dark"] [data-view="settings-image"]{--fill:#202020;}

/* Compact model catalogs: native mobile select plus local filtering. */
.model-pills.model-picker{display:flex;flex-direction:column;gap:8px;min-width:0;padding:12px 14px;}
.model-picker input,.model-picker select{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;border:1px solid var(--hairline);border-radius:10px;background:var(--fill);color:var(--ink);padding:10px 12px;font:inherit;font-size:13px;}
.model-picker small{font-size:11px;line-height:1.6;color:var(--gray-3);}
.model-picker select{height:42px;text-overflow:ellipsis;}
.model-picker input:focus-visible,.model-picker select:focus-visible{outline:2px solid var(--gray-2);outline-offset:2px;}

/* GitHub setup: readable steps on narrow screens */
.gh-guide{padding:0 16px 12px;display:grid;gap:12px;}
.gh-step{border:1px solid var(--hairline);border-radius:18px;padding:16px;min-width:0;}
.gh-step>b{display:flex;align-items:center;gap:9px;font-size:14px;}
.gh-step i{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--ink);color:var(--on-ink);font-style:normal;flex-shrink:0;}
.gh-step p{font-size:12px;line-height:1.85;color:var(--gray-1);overflow-wrap:anywhere;margin:10px 0;}
.gh-step label{display:block;font-size:12px;margin:12px 0 7px;}
.gh-step .pad-input{width:100%;min-width:0;box-sizing:border-box;font-size:16px;background:var(--bg);}
.gh-step .mem-btn{width:100%;min-height:42px;white-space:normal;background:var(--primary);border-radius:12px;color:var(--ink);}
.gh-step details{margin-top:12px;}
.gh-step summary{font-size:12px;cursor:pointer;color:var(--gray-1);}
#ghCheckState{margin-bottom:0;}

/* Settings landing: scoped monochrome layout. */
.settings-view .set-top{padding:calc(var(--head-top) + 12px) 22px 10px;}
.settings-view .set-heading{position:relative;border-bottom:1px solid var(--hairline);padding-bottom:16px;}
.settings-view .set-eyebrow{display:block;font-size:9px;font-weight:600;letter-spacing:2.2px;color:var(--gray-2);margin-bottom:9px;}
.settings-view .set-heading h1{font-size:32px;line-height:1.25;letter-spacing:-1px;font-weight:650;display:flex;align-items:center;justify-content:space-between;}
.settings-view .set-heading-mark{font-size:32px;font-weight:400;line-height:1;color:var(--ink);}
.settings-view .set-heading p{font-size:11px;color:var(--gray-2);margin:8px 0 0;letter-spacing:.5px;}
.settings-view>.user-body{padding:0 22px calc(24px + var(--nav-h,72px));}
.settings-view .acct-card{margin:8px 0 0;border:0;border-radius:18px;background:var(--fill);box-shadow:none;padding:17px 16px;gap:14px;min-height:100px;}
.settings-view .acct-mid{order:0;flex:0 0 58px;}
.settings-view .acct-avatar-lg{width:58px;height:58px;border-radius:16px;margin:0;border:0;box-shadow:none;}
.settings-view .acct-left{order:1;flex:1;align-items:flex-start;text-align:left;padding:0;gap:4px;}
.settings-view .acct-nick{font-size:18px;font-weight:650;}
.settings-view .acct-idline{font-size:10px;letter-spacing:.5px;}
.settings-view .acct-desc{font-size:10px;}
.settings-view .acct-right{order:2;flex:0 0 auto;align-items:flex-end;padding:0;gap:8px;}
.settings-view .acct-title{font-size:10px;font-weight:500;color:var(--gray-2);}
.settings-view .acct-arrow{font-size:20px;}
.settings-view .acct-quick{gap:0;margin:12px 0 0;padding-bottom:16px;border-bottom:1px solid var(--hairline);}
.settings-view .acct-quick-btn{height:52px;flex-direction:column;gap:7px;background:transparent;border:0;border-radius:9px;color:var(--ink);font-size:10px;}
.settings-view .acct-quick-btn svg{width:19px;height:19px;}
.settings-view .acct-quick-btn:active{background:var(--fill);}
.settings-view .set-group{margin-top:24px;}
.settings-view .set-group-title{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:12px;font-weight:650;color:var(--ink);}
.settings-view .set-group-title>span{font-size:10px;color:var(--gray-2);font-weight:400;letter-spacing:1px;}
.settings-view .set-group-title>small{margin-left:auto;font-size:8px;letter-spacing:1.4px;font-weight:400;color:var(--gray-2);}
.settings-view .set-card{background:transparent;border-radius:0;box-shadow:none;border-top:1px solid var(--hairline);}
.settings-view .set-row{height:auto;min-height:54px;border:0;border-bottom:1px solid var(--hairline);padding:11px 2px;gap:12px;font-size:13px;text-align:left;}
.settings-view .set-row:last-child{border-bottom:1px solid var(--hairline);}
.settings-view .set-icon{width:30px;height:30px;background:transparent;border-radius:0;}
.settings-view .set-icon svg{width:19px;height:19px;stroke-width:1.5;}
.settings-view .set-label{min-width:0;overflow-wrap:anywhere;}
.settings-view .set-chev{width:13px;height:13px;opacity:.5;}
.settings-view .set-connections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:0;overflow:visible;}
.settings-view .set-connections .set-row{position:relative;min-height:118px;padding:14px 12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:15px;background:var(--fill);border:1px solid transparent;border-radius:14px;}
.settings-view .set-connections .set-row:first-child{background:var(--ink);color:var(--bg);}
.settings-view .set-connections .set-icon{width:24px;height:24px;color:inherit;}
.settings-view .set-connections .set-label{font-size:12px;font-weight:600;flex:0 0 auto;}
.settings-view .set-entry-desc{display:block;margin-top:5px;font-size:9px;line-height:1.5;font-weight:400;opacity:.62;}
.settings-view .set-connections .set-chev{position:absolute;top:17px;right:10px;color:inherit;}
.settings-view button:focus-visible{outline:2px solid var(--ink);outline-offset:3px;}
@media(min-width:700px){.settings-view>.user-body,.settings-view .set-top{width:min(640px,100%);box-sizing:border-box;margin-left:auto;margin-right:auto;}.settings-view .set-connections .set-row{min-height:128px;}}
@media(max-width:340px){.settings-view .set-top{padding-left:16px;padding-right:16px;}.settings-view>.user-body{padding-left:16px;padding-right:16px;}.settings-view .set-connections{gap:6px;}.settings-view .set-connections .set-row{padding:12px 9px;}.settings-view .acct-card{gap:10px;padding:15px 12px;}}

/* Personalization tiles and a prominent backup entry. */
.settings-view .set-personalize{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;border:0;overflow:visible;}
.settings-view .set-personalize .set-row{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:13px;min-height:102px;padding:14px;background:var(--fill);border:0;border-radius:14px;}
.settings-view .set-personalize .set-row:nth-child(2),.settings-view .set-personalize .set-row:nth-child(3),.settings-view .set-personalize .set-row:nth-child(6){background:transparent;box-shadow:inset 0 0 0 1px var(--hairline);}
.settings-view .set-personalize .set-icon{width:23px;height:23px;}
.settings-view .set-personalize .set-label{flex:0;font-size:12px;font-weight:550;}
.settings-view .set-personalize .set-chev{position:absolute;right:14px;top:18px;}
.settings-view .set-maintenance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;border:0;overflow:visible;}
.settings-view .set-maintenance .set-row{position:relative;padding:14px;background:var(--fill);border:0;border-radius:14px;gap:10px;min-height:78px;}
.settings-view .set-maintenance .set-row .set-icon{width:24px;height:24px;}
.settings-view .set-maintenance .set-row[data-to="settings-backup"]{order:-1;grid-column:1/-1;min-height:88px;background:var(--ink);color:var(--bg);padding:17px;}
.settings-view .set-maintenance .set-row[data-to="settings-backup"] .set-icon{width:36px;height:36px;color:inherit;}
.settings-view .set-maintenance .set-row[data-to="settings-backup"] .set-label{font-size:14px;font-weight:550;}
.settings-view .set-maintenance .set-row[data-to="settings-backup"] .set-chev{color:inherit;}
.settings-view .set-maintenance .set-row[data-to="settings-errlog"],.settings-view .set-maintenance .set-row[data-to="settings-privacy"]{grid-column:1/-1;min-height:50px;padding:12px 5px;background:transparent;border-radius:0;border-bottom:1px solid var(--hairline);}
.settings-view .set-maintenance .set-row[data-to="settings-errlog"] .set-label{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.settings-view .set-maintenance .set-sub{font-size:10px;margin:0;color:var(--gray-2);}
@media(max-width:340px){.settings-view .set-personalize .set-row{padding:12px;}.settings-view .set-maintenance .set-row{padding:12px 10px;}.settings-view .set-maintenance .set-row .set-icon{width:20px;}.settings-view .set-maintenance .set-label{font-size:12px;}}

/* Data overview and weekly report. */
.usage-view .user-body{padding:10px 22px 30px;}
.usage-intro{font-size:9px;letter-spacing:1.6px;color:var(--gray-2);margin:4px 0 14px;}
.usage-view .usage-hero{background:var(--ink);color:var(--bg);text-align:left;padding:23px;border-radius:20px;}
.usage-caption{font-size:11px;opacity:.65;}
.usage-view .usage-total{font-size:42px;letter-spacing:-1.5px;margin-top:8px;line-height:1.2;overflow-wrap:anywhere;}
.usage-view .usage-total-sub{font-size:10px;color:inherit;opacity:.6;line-height:1.7;margin-top:11px;}
.usage-view .usage-bar{height:5px;margin-top:18px;background:#ffffff18;gap:2px;}
.usage-view .usage-seg{filter:invert(1);min-width:0;}
html[data-theme="dark"] .usage-view .usage-seg{filter:none;}
.usage-view .usage-week-btn{display:flex;align-items:center;gap:13px;background:var(--fill);border:0;margin:13px 0 24px;padding:16px;border-radius:16px;text-align:left;font:inherit;color:var(--ink);}
.usage-week-icon{width:34px;height:34px;font-size:27px;line-height:34px;font-weight:400;}
.usage-week-btn>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:4px;}
.usage-week-btn small{font-size:8px;letter-spacing:1.5px;color:var(--gray-2);}
.usage-week-btn b{font-size:14px;font-weight:600;}.usage-week-btn em{font-style:normal;font-size:10px;color:var(--gray-2);}.usage-week-arrow{font-size:24px;color:var(--gray-2);}
.usage-section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;gap:8px;}.usage-section-title b{font-size:13px;font-weight:600;}.usage-section-title span{font-size:9px;color:var(--gray-2);}
.usage-view .usage-list{margin:0;display:grid;gap:9px;}
.usage-view .usage-row{padding:15px;border:1px solid var(--hairline);border-radius:14px;}
.usage-view .ur-top{font-size:13px;gap:12px;}.usage-view .ur-size{font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:550;}
.usage-view .ur-track{height:3px;margin:12px 0 10px;background:var(--fill);}.usage-view .ur-fill{background:var(--ink);}
.usage-view .ur-sub{font-size:10px;line-height:1.6;align-items:center;}.usage-view .ur-sub>span{min-width:0;}.usage-view .ur-pct{display:block;margin:3px 0 0;font-size:9px;opacity:.8;}
.usage-view .usage-clear{border:1px solid var(--hairline);border-radius:7px;color:var(--gray-1);padding:5px 9px;opacity:1;min-height:30px;}.usage-view .usage-clear:disabled{opacity:.35;}
.usage-view .friend-hint{font-size:10px;text-align:left;line-height:1.8;margin-top:17px;}
.weekly-mask{position:fixed;inset:0;background:#0007;display:none;align-items:center;justify-content:center;z-index:9999;padding:20px;box-sizing:border-box;}
.weekly-mask.show{display:flex;}.weekly-card{width:min(420px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;background:var(--bg);color:var(--ink);border-radius:22px;overflow:hidden;box-shadow:0 24px 60px #0003;}
.weekly-cover{position:relative;flex:0 0 auto;padding:23px 22px;background:var(--ink);color:var(--bg);}
.weekly-cover .wk-badge{font-size:8px;letter-spacing:1.8px;opacity:.55;}.weekly-cover h3{font-size:25px;line-height:1.4;font-weight:600;letter-spacing:-.5px;margin:18px 0 7px;}.weekly-cover p{font-size:10px;opacity:.6;margin:0;}
.weekly-cover .wk-close{position:absolute;top:15px;right:14px;background:transparent;color:inherit;border:1px solid currentColor;border-radius:999px;opacity:.7;font:inherit;font-size:10px;padding:7px 11px;min-height:32px;cursor:pointer;}
.weekly-body{padding:20px 22px;overflow:auto;min-height:0;}.weekly-kpi{display:grid;grid-template-columns:1fr 1fr;gap:10px;}.weekly-kpi>div{background:var(--fill);border-radius:13px;padding:14px 12px;min-width:0;}.weekly-kpi span{font-size:10px;color:var(--gray-2);}.weekly-kpi b{display:block;font-size:21px;font-weight:600;line-height:1.5;margin-top:9px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
.weekly-star{padding:20px 0;border-bottom:1px solid var(--hairline);}.weekly-star small{font-size:10px;color:var(--gray-2);}.weekly-star>div{margin-top:8px;font-size:17px;line-height:1.7;font-weight:600;overflow-wrap:anywhere;}
.weekly-rank-title{display:flex;justify-content:space-between;margin:18px 0 7px;font-size:11px;font-weight:600;}.weekly-rank-title span{font-size:8px;letter-spacing:1.3px;color:var(--gray-2);font-weight:400;}
.weekly-list{font-size:12px;line-height:1.8;}.weekly-rank{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--hairline);}.weekly-rank-no{font-size:10px;color:var(--gray-2);}.weekly-rank-name{flex:1;min-width:0;overflow-wrap:anywhere;}.weekly-rank b{font-size:13px;font-weight:550;white-space:nowrap;}.weekly-rank b small{font-size:9px;font-weight:400;color:var(--gray-2);}.weekly-note{font-size:9px;line-height:1.8;color:var(--gray-2);margin:15px 0 0;}
.weekly-acts{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:13px 22px calc(17px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--hairline);flex:0 0 auto;}.weekly-acts button{font:inherit;font-size:11px;min-height:40px;border-radius:10px;border:1px solid var(--hairline);cursor:pointer;}.weekly-acts .wk-primary{background:var(--ink);color:var(--bg);}.weekly-acts .wk-ghost{background:transparent;color:var(--ink);}
.weekly-card button:focus-visible{outline:2px solid var(--gray-2);outline-offset:2px;}
@media(max-width:340px){.usage-view .user-body{padding-left:16px;padding-right:16px;}.weekly-mask{padding:12px;}.weekly-card{max-height:calc(100dvh - 24px);}.weekly-cover,.weekly-body{padding-left:17px;padding-right:17px;}.weekly-kpi b{font-size:18px;}}

/* 气泡编辑器 */
.bubble-studio-target{padding:4px 2px 12px;}.bubble-studio-target>label{display:block;font-size:11px;color:var(--gray-2);margin-bottom:8px;}.bubble-studio-target select{width:100%;min-width:0;border:1px solid var(--hairline);border-radius:14px;background:var(--fill);color:var(--ink);padding:12px;font:inherit;font-size:13px;}.bubble-studio-target p{font-size:11px;line-height:1.7;color:var(--gray-2);margin:9px 0 0;}
.bubble-studio-preview{border:1px solid var(--hairline);border-radius:20px;overflow:hidden;margin-bottom:20px;}.bubble-studio-preview .skin-preview{margin:0;padding:20px;}.bubble-studio-caption{font-size:10px;color:var(--gray-2);text-align:center;margin:0;padding:10px;background:var(--card);}.bubble-studio-preview .skin-pv-av{background-size:cover;background-position:center;flex-shrink:0;}.bubble-studio-preview .skin-bubble{max-width:78%;box-sizing:border-box;overflow-wrap:anywhere;}
.bubble-studio-card{border:1px solid var(--hairline);border-radius:20px;background:var(--card);margin:16px 0;overflow:hidden;}.bubble-studio-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 18px 12px;}.bubble-studio-heading b{font-size:14px;}.bubble-studio-heading small{font-size:9px;letter-spacing:1.5px;color:var(--gray-2);}.bubble-studio-card .field-list{margin:0;border:0;border-radius:0;}.bubble-studio-card .field{padding:14px 18px;}.bubble-studio-card .field>label{font-size:12px;}.bubble-studio-card .set-slider-wrap{min-width:0;}.bubble-studio-card input[type=range]{min-width:0;}
.bubble-studio-sides{display:flex;margin:0 18px 10px;background:var(--fill);padding:4px;border-radius:12px;gap:4px;}.bubble-studio-sides button{flex:1;border:0;border-radius:9px;background:transparent;color:var(--gray-2);font:inherit;font-size:12px;padding:9px;}.bubble-studio-sides button.on{background:var(--card);color:var(--ink);box-shadow:0 2px 6px rgba(0,0,0,.06);}
#bubbleStudioEffects details{border-top:1px solid var(--hairline);padding-bottom:8px;}#bubbleStudioEffects summary{cursor:pointer;padding:15px 18px;font-size:12px;}.bubble-effect-row{display:grid;grid-template-columns:78px minmax(0,1fr) 65px;gap:8px;align-items:center;margin:0;padding:13px 18px;font-size:12px;}.bubble-effect-row output{text-align:right;font-size:10px;color:var(--gray-2);}.bubble-effect-row input[type=range]{width:100%;accent-color:var(--ink);}.bubble-effect-row input[type=color]{width:36px;height:30px;border:0;background:transparent;padding:0;}.bubble-effect-row select{grid-column:2/4;min-width:0;max-width:100%;padding:8px;border:1px solid var(--hairline);border-radius:8px;background:var(--fill);color:var(--ink);font:inherit;font-size:12px;}
.bubble-studio-presets{display:flex;flex-direction:column;gap:10px;padding:4px 18px 18px;}.bubble-studio-presets label{font-size:11px;color:var(--gray-2);}.bubble-studio-presets input,.bubble-studio-presets select{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--hairline);border-radius:12px;background:var(--fill);color:var(--ink);padding:11px;font:inherit;font-size:13px;}.bubble-studio-presets button{border:0;border-radius:12px;padding:11px;background:var(--fill);color:var(--ink);font:inherit;font-size:12px;}.bubble-studio-presets>div{display:flex;gap:8px;}.bubble-studio-presets>div button{flex:1;}#bubblePresetSave{background:var(--ink);color:var(--on-ink);}.bubble-studio-presets button:disabled{opacity:.4;}.bubble-studio-presets .bubble-studio-reset{background:transparent;border-top:1px solid var(--hairline);border-radius:0;margin-top:6px;color:var(--gray-2);}
.bubble-effect-row input[type=range]{appearance:none;-webkit-appearance:none;height:24px;background:transparent;}.bubble-effect-row input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:6px;background:var(--gray-3);}.bubble-effect-row input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:23px;height:23px;margin-top:-9px;border-radius:50%;background:var(--card);border:1px solid var(--hairline);box-shadow:0 2px 8px rgba(0,0,0,.13);}.bubble-effect-row input[type=range]::-moz-range-track{height:5px;border-radius:6px;background:var(--gray-3);}.bubble-effect-row input[type=range]::-moz-range-thumb{width:23px;height:23px;border-radius:50%;background:var(--card);border:1px solid var(--hairline);box-shadow:0 2px 8px rgba(0,0,0,.13);}.bubble-effect-row input[type=color]{width:38px;height:32px;padding:4px;border:1px solid var(--hairline);border-radius:10px;background:var(--fill);}.bubble-effect-row input[type=color]::-webkit-color-swatch-wrapper{padding:0;}.bubble-effect-row input[type=color]::-webkit-color-swatch{border:0;border-radius:5px;}.bubble-effect-row input[type=color]::-moz-color-swatch{border:0;border-radius:5px;}
.bubble-studio-preview{position:sticky;top:0;z-index:4;background:var(--card);overflow-anchor:none;}
.bubble-studio-preview.is-pinned{border-radius:0 0 16px 16px;box-shadow:0 8px 18px rgba(0,0,0,.08);margin-bottom:14px;}
.bubble-studio-preview.is-pinned .skin-preview{padding:12px;max-height:38vh;overflow:auto;}
.bubble-studio-preview.is-pinned .skin-preview-title,.bubble-studio-preview.is-pinned .bubble-studio-caption{display:none;}
.bubble-studio-preview.is-pinned .skin-bubbles{gap:6px;}
.bubble-studio-preview.is-pinned .skin-pv-av{max-width:28px;max-height:28px;}

.hb-field{padding:14px;border:1px solid var(--hairline);border-radius:15px;margin:12px 0;background:var(--card)}.hb-field>div{display:flex;gap:8px;align-items:center}.hb-field label{display:block;flex:1;min-width:0;font-size:11px;color:var(--gray-1);margin:8px 0}.hb-field input,.hb-field textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px;border:1px solid var(--hairline);border-radius:10px;background:var(--fill);color:var(--ink);font:12px/1.6 var(--font-body)}.hb-field textarea{min-height:76px;resize:vertical}.hb-field button{border:0;border-radius:50%;background:var(--fill);color:var(--ink);font-size:20px;width:30px;height:30px}.hb-template-frame{display:block;border:0;width:100%;min-height:100px;background:transparent}.heart-custom>.center-card>.cc-title,.heart-custom #heartHead{display:none}.heart-custom #heartBody{padding:0}.heart-custom>.center-card{padding-top:0;overflow:hidden}#hbPreviewInner{padding:0;overflow:hidden}

/* Monthly report filters */
.weekly-select-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--gray-2);margin-bottom:12px;}
.weekly-select-label select,.weekly-select-label input{min-width:0;max-width:70%;border:1px solid var(--line,#e7e7e7);border-radius:10px;padding:8px 10px;background:var(--fill,#f5f5f5);color:inherit;font:inherit;}
