/* ============================================================
   一画 · AI Image Studio
   设计语言：宣纸暖白 / 墨色文字 / 朱砂印章点缀 / 衬线标题
   ============================================================ */

:root {
  --bg: #F6F4EF;
  --card: #FFFFFF;
  --ink: #1C1A15;
  --ink-2: #6E6A5F;
  --ink-3: #9C9789;
  --line: #E7E2D7;
  --line-soft: #EFEBE2;
  --accent: #B4432E;
  --accent-deep: #93331F;
  --accent-soft: #F7E9E4;
  --ok: #3E7C4F;
  --ok-soft: #E8F1E9;
  --warn: #A9771F;
  --warn-soft: #F7EFDD;
  --err: #B03A2E;
  --err-soft: #F7E7E4;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(28, 26, 21, .04), 0 14px 44px rgba(28, 26, 21, .06);
  --radius: 16px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 22px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

::selection { background: #E9D9CF; }

button { font-family: inherit; }

/* ---------------- 顶栏 ---------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #FFF7EE;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  box-shadow: inset 0 0 0 1.5px rgba(255, 247, 238, .35);
}

.seal-s {
  width: 24px;
  height: 24px;
  font-size: 13px;
  border-radius: 6px;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .12em;
}

.usage-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: .02em;
}

.usage-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.usage-chip.is-full { color: var(--err); border-color: #EBC6BF; background: var(--err-soft); }
.usage-chip.is-full .dot { background: var(--err); }

/* ---------------- 主视觉 ---------------- */

.hero {
  text-align: center;
  padding: 40px 0 34px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--ink-3);
  font-weight: 500;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(34px, 6.4vw, 52px);
  letter-spacing: .06em;
  line-height: 1.25;
}

.lede {
  margin: 18px auto 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ---------------- 公告 ---------------- */

.announce {
  margin: 0 0 18px;
  padding: 11px 16px;
  border: 1px solid #EADFC8;
  background: var(--warn-soft);
  border-radius: 12px;
  color: #7C5A1A;
  font-size: 13.5px;
}

/* ---------------- 创作面板 ---------------- */

.studio {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 34px 26px;
}

.load-error {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--err-soft);
  border: 1px solid #EBC6BF;
  color: var(--err);
  font-size: 13.5px;
}

.field { margin-bottom: 24px; }
.field:last-of-type { margin-bottom: 8px; }

.field-label {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
}

.step {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink-3);
  font-family: var(--sans);
  transform: translateY(-1px);
}

.req { color: var(--accent); font-weight: 400; }
.optional { color: var(--ink-3); font-weight: 400; font-size: 12.5px; margin-left: 2px; }

textarea#prompt {
  width: 100%;
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FDFCFA;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

textarea#prompt::placeholder { color: var(--ink-3); }

textarea#prompt:focus {
  border-color: #D0A697;
  box-shadow: 0 0 0 3px rgba(180, 67, 46, .08);
}

.prompt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.sample-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all .15s ease;
}

.chip:hover { border-color: #CDBFB4; color: var(--ink); background: #FBF8F3; }

.prompt-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* 参考图 */

.dropzone {
  border: 1.5px dashed #D8D2C4;
  border-radius: 12px;
  background: #FDFCFA;
  padding: 18px;
  cursor: pointer;
  outline: none;
  transition: border-color .18s ease, background .18s ease;
}

.dropzone:hover, .dropzone:focus-visible, .dropzone.drag {
  border-color: #C0A896;
  background: #FBF8F3;
}

.dz-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13.5px;
  flex-wrap: wrap;
}

.dz-hint { color: var(--ink-3); font-size: 12px; }

.dz-preview { display: flex; align-items: center; gap: 14px; }

.dz-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.dz-info { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); }

.link-btn {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.link-btn:hover { color: var(--accent-deep); text-decoration: underline; }

/* 画幅比例 */

.ratio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

@media (max-width: 560px) {
  .ratio-grid { grid-template-columns: repeat(5, 1fr); gap: 7px; }
}

.ratio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 4px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FDFCFA;
  cursor: pointer;
  transition: all .16s ease;
}

.ratio-item:hover { border-color: #CDBFB4; background: #FBF8F3; }

.ratio-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.ratio-frame {
  border: 1.5px solid #857F70;
  border-radius: 3px;
  background: #fff;
  transition: border-color .16s ease;
}

.ratio-item.active .ratio-frame { border-color: var(--accent); background: #fff; }

.ratio-label {
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.ratio-item.active .ratio-label { color: var(--accent-deep); font-weight: 600; }

/* 通道与模型 */

.selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .selects { grid-template-columns: 1fr; }
}

.sub-label { display: block; margin-bottom: 7px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }

.select-wrap { position: relative; }

.select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 11px 34px 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #FDFCFA;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.select-wrap select:focus {
  border-color: #D0A697;
  box-shadow: 0 0 0 3px rgba(180, 67, 46, .08);
}

.select-wrap .chev {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

.hint { margin: 7px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.hint.warn { color: var(--warn); }
.hint.err { color: var(--err); }

/* 操作区 */

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 14px 30px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #FFF7EE;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-indent: .2em;
  cursor: pointer;
  transition: background .18s ease, transform .1s ease, box-shadow .18s ease;
  box-shadow: 0 6px 18px rgba(180, 67, 46, .22);
}

.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 6px 22px rgba(147, 51, 31, .3); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.btn-sm { min-width: 120px; padding: 10px 20px; font-size: 14px; letter-spacing: .1em; text-indent: .1em; }

.btn-ghost {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
  transition: all .16s ease;
}

.btn-ghost:hover { border-color: #C9BEB2; color: var(--ink); background: #FBF8F3; }
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; }

.quota-note { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* 状态条 */

.status {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  border: 1px solid transparent;
}

.status.ok { background: var(--ok-soft); border-color: #CBDFCE; color: #2C5D3A; }
.status.err { background: var(--err-soft); border-color: #EBC6BF; color: var(--err); }
.status.err .code { display: inline-block; margin-left: 6px; font-size: 11px; color: #C98277; letter-spacing: .04em; }

.status .suggest { margin-top: 9px; display: flex; gap: 8px; flex-wrap: wrap; }

.status .suggest button {
  padding: 6px 13px;
  border: 1px solid #E3B7AE;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-deep);
  font-size: 12.5px;
  cursor: pointer;
}

.status .suggest button:hover { background: var(--accent-soft); }

/* ---------------- 结果区 ---------------- */

.result-zone { margin-top: 34px; }

.result-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.result-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .1em;
}

.result-meta { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.result-figure { margin: 0; }

.img-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  animation: reveal .5s ease;
}

.img-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.busy-box { animation: fadein .3s ease; }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.busy-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FBFAF6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 34px 24px 28px;
  box-shadow: var(--shadow);
}

/* 画布占位：随所选画幅变化，宣纸质感 + 扫光 */
.busy-canvas {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(130% 100% at 18% 8%, #FFFFFF 0%, #F8F5EE 52%, #F1EDE1 100%);
}

.busy-canvas::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -48%;
  width: 46%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .9) 45%, rgba(255, 255, 255, .9) 55%, transparent 100%);
  animation: canvas-sweep 2.6s ease-in-out infinite;
}

@keyframes canvas-sweep {
  0% { left: -48%; }
  55%, 100% { left: 108%; }
}

.busy-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(180, 67, 46, .55);
  border-radius: 10px;
  color: rgba(180, 67, 46, .72);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 25px;
  line-height: 1;
  animation: seal-breathe 2.4s ease-in-out infinite;
}

@keyframes seal-breathe {
  0%, 100% { opacity: .4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .95; transform: translate(-50%, -50%) scale(1.05); }
}

.busy-word {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: .1em;
  min-height: 1.6em;
  text-align: center;
}

.busy-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(300px, 82%);
}

.busy-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #EAE5D9;
  overflow: hidden;
}

.busy-track i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #C05A40, var(--accent));
  position: relative;
  transition: width .28s ease-out;
}

.busy-track i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .45) 50%, transparent 68%);
  background-size: 220% 100%;
  animation: fill-gloss 1.6s linear infinite;
}

@keyframes fill-gloss {
  from { background-position: 130% 0; }
  to { background-position: -130% 0; }
}

.busy-pct {
  min-width: 40px;
  text-align: right;
  font-size: 12px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}

.busy-timer { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.result-extra {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

.result-extra .notice { color: var(--warn); }
.result-extra .revised { color: var(--ink-3); }

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* 历史 */

.history { margin-top: 30px; }

.history-title { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; }
.history-title .optional { font-weight: 400; margin-left: 6px; }

.history-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.history-item {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  padding: 0;
  transition: border-color .15s ease, transform .15s ease;
}

.history-item img { display: block; width: 76px; height: 76px; object-fit: cover; }
.history-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.history-item.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ---------------- 页脚 ---------------- */

.foot {
  flex-shrink: 0;
  margin-top: 52px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.foot-sub { font-size: 12px; color: var(--ink-3); }

.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 13.5px; color: var(--ink-2); letter-spacing: .08em; }

.foot-note { font-size: 12px; color: var(--ink-3); }
.foot-note b { color: var(--ink-2); font-weight: 600; }

.foot-admin { color: var(--ink-3); text-decoration: none; font-size: 12px; }
.foot-admin:hover { color: var(--ink-2); text-decoration: underline; }

/* ---------------- 密码弹窗 ---------------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 21, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
  animation: fadein .2s ease;
}

.modal[hidden] { display: none; }

.modal-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: 18px;
  padding: 30px 28px 26px;
  box-shadow: 0 24px 80px rgba(20, 16, 10, .25);
  animation: pop .22s ease;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.modal-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
}

.modal-sub { margin: 0 0 18px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

.pw-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 15px;
  font-family: var(--sans);
  outline: none;
  background: #FDFCFA;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.pw-input:focus { border-color: #D0A697; box-shadow: 0 0 0 3px rgba(180, 67, 46, .08); }

.modal-error { margin: 9px 0 0; font-size: 12.5px; color: var(--err); }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.modal-card.shake { animation: shake .3s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ---------------- 轻提示 ---------------- */

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #F5F2EA;
  font-size: 13.5px;
  padding: 11px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(20, 16, 10, .3);
  z-index: 60;
  max-width: min(90vw, 480px);
  text-align: center;
  animation: toastin .25s ease;
}

@keyframes toastin {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   管理后台
   ============================================================ */

.admin-wrap { max-width: 820px; }

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 16px;
  flex-wrap: wrap;
}

.admin-title { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .1em; }

.admin-sub { font-size: 12.5px; color: var(--ink-3); }

.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 20px;
}

.meta-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: #FDFCFA;
}

.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge.ok .dot { background: var(--ok); }
.badge.warn { border-color: #EADFC8; background: var(--warn-soft); color: #7C5A1A; }
.badge.warn .dot { background: var(--warn); }
.badge.err { border-color: #EBC6BF; background: var(--err-soft); color: var(--err); }
.badge.err .dot { background: var(--err); }

.meta-note { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; }

.admin-login { max-width: 380px; margin: 8vh auto 0; text-align: center; }
.admin-login .admin-card { text-align: left; }
.admin-login h1 { font-family: var(--serif); font-size: 22px; letter-spacing: .12em; margin: 0 0 6px; }
.admin-login p.sub { color: var(--ink-3); font-size: 12.5px; margin: 0 0 18px; }

.ch-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #FDFCFA;
}

.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }

.ch-tag {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .06em;
}

.ch-head-right { display: flex; align-items: center; gap: 12px; }

.switch { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ch-grid .full { grid-column: 1 / -1; }

@media (max-width: 620px) {
  .ch-grid { grid-template-columns: 1fr; }
}

.inp, .ta {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.inp:focus, .ta:focus { border-color: #D0A697; box-shadow: 0 0 0 3px rgba(180, 67, 46, .07); }

.ta { resize: vertical; min-height: 64px; line-height: 1.6; }

.f-label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.f-label .optional { margin-left: 4px; }

.ch-test { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.ch-test-result { font-size: 12.5px; color: var(--ink-2); }
.ch-test-result.ok { color: var(--ok); }
.ch-test-result.bad { color: var(--err); }

.admin-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-grid .full { grid-column: 1 / -1; }

@media (max-width: 620px) {
  .settings-grid { grid-template-columns: 1fr; }
}

.danger-link { color: var(--err); }

/* ---------------- 响应式细节 ---------------- */

@media (max-width: 640px) {
  .studio { padding: 22px 18px 20px; }
  .hero { padding: 26px 0 24px; }
  .top { padding: 18px 0 14px; }
  .lede br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
/* —— 图标改用 favicon.svg —— */
.seal-img {
  background: var(--accent);
  border-radius: 9px;
  object-fit: contain;
}
.seal-s.seal-img { border-radius: 6px; }
.busy-seal-img {
  border: none;
  border-radius: 10px;
  object-fit: contain;
}
