:root {
  --bg: #171b22;
  --panel: #20252e;
  --panel-2: #292f3a;
  --ink: #dce3ed;
  --muted: #a0adbf;
  --line: #394353;
  --accent: #3978d6;
  --accent-ink: #ffffff;
  --accent-soft: #233753;
  --ok: #79c99c;
  --ok-soft: #213b30;
  --warn: #e9bd70;
  --warn-soft: #40351f;
  --bad: #f39098;
  --bad-soft: #432830;
  --info: #8dbdff;
  --info-soft: #24364e;
  --shadow: 0 8px 28px rgba(0,0,0,.2);
  --radius: 10px;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color-scheme: dark;
}


:root[data-theme="light"] {
  --bg: #f4f6fa; --panel: #ffffff; --panel-2: #eaf0f7;
  --ink: #1f2937; --muted: #536176; --line: #c8d2e0; --border: var(--line);
  --accent: #2563b2; --accent-ink: #ffffff; --accent-soft: #e4eefc;
  --ok: #166534; --ok-soft: #e8f5ec; --warn: #8a4b00; --warn-soft: #fff4d6;
  --bad: #b42334; --bad-soft: #ffecef; --danger: var(--bad); --danger-soft: var(--bad-soft);
  --info: #215da8; --info-soft: #e6effb; --focus: #215da8;
  --shadow: 0 8px 28px rgba(31,41,55,.08);
  color-scheme: light;
}
#huimu-theme-control { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:8px 12px; padding:6px 16px; background:var(--panel); border-bottom:1px solid var(--line); color:var(--ink); }
#huimu-theme-control label { display:flex; align-items:center; gap:8px; font-size:13px; }
#huimu-theme-control select { width:auto; min-width:9em; padding:5px 8px; min-height:36px; }
#huimu-theme-control .theme-status { color:var(--muted); font-size:12px; }
.factory-head { margin-bottom: 20px; }
.factory-head h1 { font-size: 26px; margin-bottom: 6px; }
.factory-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.factory-summary b { display: block; font-size: 28px; }
.factory-summary span { display: block; color: var(--muted); font-size: 12px; }
.factory-start { margin-bottom: 24px; }
.factory-entry { text-align: left; cursor: pointer; color: var(--ink); }
.factory-entry:hover { border-color: var(--accent); }
.factory-entry h2 { margin-bottom: 10px; }
.factory-list { margin-top: 12px; }
.factory-section { margin-top: 20px; }
.factory-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 16px; }
.factory-art { width: 100%; height: 260px; object-fit: contain; background: var(--panel-2); border-radius: 6px; }
.factory-ref { width: 100px; height: 100px; object-fit: contain; }
.factory-placeholder { height: 150px; display: grid; place-items: center; background: var(--panel-2); padding: 12px; overflow-wrap: anywhere; }
.factory-script { white-space: pre-wrap; font: inherit; max-height: 420px; overflow: auto; }
.factory-video { max-height: 480px; max-width: 100%; }
#fc-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
#fc-form textarea { min-height: 100px; }
/* Long scripts need a reading area independent of the number of imported episodes. */
textarea[data-key="script"], #fc-form textarea[data-f="script"], #sc-text {
  min-height: max(360px, 55vh) !important;
  height: 55vh;
  line-height: 1.85;
  padding: 14px 16px;
  resize: vertical;
}
#fc-metrics { margin-top: 12px; }
.factory-item textarea { min-height: 90px; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.6 var(--font); }
a { color: var(--info); text-underline-offset: 3px; }
::selection { background: #345581; color: #f0f4fa; }
* { scrollbar-width: thin; scrollbar-color: #4a5568 var(--bg); }
:focus-visible { outline: 2px solid var(--focus, #8dbdff); outline-offset: 3px; }
input::placeholder, textarea::placeholder { color: #8996aa; opacity: 1; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
[hidden] { display: none !important; }
/* Native closed dialogs must stay hidden beneath author layout utilities. */
dialog:not([open]) { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: grid; gap: 12px; align-content: start; }

/* Keep nested draft cards and the native file picker inside the mobile viewport. */
.drama-business, .drama-business .stack { grid-template-columns:minmax(0,1fr); }
.drama-business :where(.card,.row,.choices,label,input,textarea,select,button,img) { min-width:0; max-width:100%; }
.drama-business input:not([type=checkbox]), .drama-business textarea, .drama-business select { width:100%; }
.drama-business .steps { flex-wrap:wrap; }
.drama-business .btn, .drama-business .choice { white-space:normal; overflow-wrap:anywhere; }
.drama-business .choices { grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr)); }

/* Product photo forms must shrink inside narrow cards, including native inputs. */
.product-video, .product-video .stack { grid-template-columns:minmax(0,1fr); }
.product-video :where(.card,.row,fieldset,label,input,textarea,select,button,img) { min-width:0; max-width:100%; }
.product-video input:not([type=checkbox]), .product-video textarea, .product-video select { width:100%; }
.product-video .btn { white-space:normal; overflow-wrap:anywhere; }
.product-video :where(p,small,span,strong) { overflow-wrap:anywhere; }
.features-page, .features-page .stack { min-width:0; grid-template-columns:minmax(0,1fr); }
.features-page :where(.card,.row,.access-grid,.access-card,label,select,input,button,.seg) { min-width:0; max-width:100%; }
.features-page .access-grid { grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr)); }
.features-page .seg { flex-wrap:wrap; }

/* buttons & inputs */
.btn { border: 1px solid var(--line); background: var(--panel); padding: 7px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--bad); }
.btn.big { padding: 11px 22px; font-size: 15px; }
input:not([type]), input[type=text], input[type=number], input[type=password], input[type=search], input[type=email], input[type=url], textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 10px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
label.field { display: grid; gap: 4px; align-content: start; }
label.field > span { font-size: 12px; color: var(--muted); }
.multi-preference { display: grid; gap: 8px; align-content: start; }
.multi-preference > span { font-size: 12px; color: var(--muted); }
.multi-preference details { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--panel); }
.multi-preference summary { cursor: pointer; }
.multi-options { max-height: 260px; overflow: auto; margin: 10px 0; }
.multi-options [data-multi-group] { margin-bottom: 12px; }
.multi-selected { gap: 6px; }
.multi-preference input[type=search] { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); margin-top: 10px; }
#portal, #portal > section { display: grid; gap: 16px; }
#portal [data-account] + [data-account] { margin-top: 10px; }
#portal [data-user] { margin-top: 14px; }
#portal summary { cursor: pointer; }
#portal [data-job-state] { margin-top: 12px; overflow-wrap: anywhere; }

/* layout */
.topbar { height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 700; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; }
.project-title { font-weight: 600; }
.budget { display: grid; gap: 2px; min-width: 190px; }
.budget-bar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.budget-bar > div { height: 100%; background: var(--ok); }
.pill { font-size: 12px; padding: 2px 10px; border-radius: 99px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }

.shell { display: grid; grid-template-columns: 210px 1fr; height: calc(100vh - 56px); }
.sidebar { border-right: 1px solid var(--line); padding: 14px 10px; overflow: auto; background: var(--panel); }
.sidebar h3 { font-size: 12px; color: var(--muted); padding: 0 8px 8px; font-weight: 600; }
.ep { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; margin-bottom: 2px; }
.ep:hover { background: var(--panel-2); }
.ep.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ep .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.main { overflow: auto; padding: 20px 28px 90px; }

/* steps */
.steps { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.step { border: 0; background: transparent; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 6px; align-items: center; }
.step .n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--panel-2); }
.step.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.step.active .n { background: var(--accent); color: #fff; }
.step.done .n { background: var(--ok); color: #fff; }
.step .badge { font-size: 11px; background: var(--warn-soft); color: var(--warn); border-radius: 99px; padding: 0 7px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
/* A card that folds (作品页的画风、出图要求、人物设定图…): the title line is the switch, ▸ turns when open; folded, the
   card is only its title (a folded grid card kept a gap below it). The back office styles its own (.admin-content). */
#app details.card > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-weight: 600; }
#app details.card > summary::-webkit-details-marker { display: none; }
#app details.card > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; flex: none; }
#app details.card[open] > summary::before { transform: rotate(90deg); color: var(--accent); }
#app details.card > summary .muted, #app details.guided-auto > summary { font-weight: normal; }
#app details.card:not([open]) { display: block; padding-top: 14px; padding-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.option { cursor: default; display: grid; gap: 8px; align-content: start; }
.option .tag { justify-self: start; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); }
.tag.paid { background: var(--warn-soft); color: var(--warn); }

/* status chips */
.st { font-size: 12px; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.st-DRAFT, .st-READY { background: var(--panel-2); color: var(--muted); }
.st-QUEUED, .st-GENERATING { background: var(--info-soft); color: var(--info); }
.st-REVIEW { background: var(--warn-soft); color: var(--warn); }
.st-APPROVED { background: var(--ok-soft); color: var(--ok); }
.st-REJECTED, .st-FAILED { background: var(--bad-soft); color: var(--bad); }

/* storyboard table */
table.board { width: 100%; border-collapse: collapse; font-size: 13px; }
.board th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.board td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.board td.num { color: var(--muted); width: 44px; }
.board .dlg { color: var(--accent); }

/* progress */
.task-progress { margin-bottom: 20px; overflow-wrap: anywhere; }
.task-progress li { margin: 8px 0; }
.factory-entry.current-work { border-color: #6c9fec; box-shadow: inset 3px 0 #6c9fec; }
.task-pulse { height: 7px; border-radius: 8px; background: linear-gradient(90deg, var(--panel-2), #6694f2, #a18bee, var(--panel-2)); background-size: 200% 100%; animation: task-pulse 2s linear infinite; }
@keyframes task-pulse { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .task-pulse { animation: none; } }
.progress { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--panel-2); }
.progress > div { height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { width: 34px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; }

.steps-guide { counter-reset: g; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps-guide li { counter-increment: g; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.steps-guide li::before { content: counter(g); width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
code, .code { font-family: Consolas, "Cascadia Mono", monospace; background: var(--panel-2); border-radius: 5px; padding: 1px 6px; font-size: 12px; }

/* review grid */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.shot { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; display: flex; flex-direction: column; }
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--panel-2); }
.shot .meta { padding: 8px 10px; display: grid; gap: 4px; font-size: 12px; }
.shot .cap { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shot.pass { border-color: var(--ok); }
.shot.reject { border-color: var(--bad); }
.shot .mark { position: absolute; top: 8px; right: 8px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; color: #fff; background: var(--ok); }
.shot.reject .mark { background: var(--bad); }
.shot.reject img { filter: grayscale(.7) opacity(.75); }
.shot .zoom { position: absolute; top: 8px; left: 8px; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; border: 0; cursor: zoom-in; }
.shot textarea { min-height: 54px; font-size: 12px; margin-top: 4px; }
.footer-bar { position: fixed; left: 210px; right: 0; bottom: 0; padding: 12px 28px; background: var(--panel); border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; z-index: 4; }

/* export */
.export-preview { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); text-align: center; }
.export-preview img { width: 360px; max-width: 100%; display: block; margin: 0 auto; }
table.stats { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats th, .stats td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.stats th:first-child, .stats td:first-child { text-align: left; }
.stats th { color: var(--muted); font-weight: 500; }

/* welcome */
.welcome { max-width: 920px; margin: 0 auto; padding: 48px 24px; display: grid; gap: 22px; }
.welcome h1 { font-size: 26px; }
.recent { display: grid; gap: 6px; }
.recent button { text-align: left; }

/* modal, toast, lightbox */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 20; padding: 20px; }
.modal { background: var(--panel); border-radius: 14px; width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: 22px; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 30; max-width: 420px; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); white-space: pre-wrap; }
.toast.err { background: var(--bad); color: #fff; }
/* 新版本提示 (ui.js): a bar at the top until the page is reloaded */
.web-updated { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; gap: 12px;
  align-items: center; flex-wrap: wrap; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.busy { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--info-soft); color: var(--info); margin-bottom: 14px; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; background: var(--panel-2); border-radius: 6px; padding: 2px 8px; }
.empty { text-align: center; padding: 40px; color: var(--muted); }

/* desktop batch view */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 8px 14px; cursor: pointer; display: grid; line-height: 1.3; }
.seg button small { font-size: 11px; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: #fff; }
.seg button.on small { color: #fff; opacity: .85; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.prompt-box { white-space: pre-wrap; background: var(--panel-2); border-radius: 8px; padding: 12px; max-height: 320px; overflow: auto; font-size: 12px; margin: 0; }
.dropzone { border: 2px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.cut-editor { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 16px; align-items: start; }
.cut-wrap { position: relative; border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.cut-wrap img { display: block; width: 100%; height: auto; }
.cut-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.cutline { stroke: #ff2d2d; stroke-width: 2; pointer-events: none; }
.cuthit { stroke: transparent; stroke-width: 18; cursor: grab; }
.cut-wrap line[data-axis="x"].cuthit { cursor: ew-resize; }
.cut-wrap line[data-axis="y"].cuthit { cursor: ns-resize; }

.chip-btn { border: 0; cursor: pointer; font: inherit; color: inherit; }
.chip-btn:hover { background: var(--accent-soft); color: var(--accent); }
.video-preview { width: 100%; max-height: 70vh; background: #000; border-radius: 8px; }
/* Global factory entry: independent of the comic editor. */
.global-main { max-width: 1400px; margin: 0 auto; padding: 28px; }
.topbar { background: #1c2028; box-shadow: 0 1px 0 rgba(128,151,189,.06); }
.brand { letter-spacing: .5px; }
.brand::before { content: ''; width: 8px; height: 22px; border-radius: 3px; background: linear-gradient(180deg,#78acff,#9c7cea); }
.topbar .btn { background: transparent; border-radius: 5px; }
.btn, .factory-entry { transition: border-color .16s, background-color .16s, box-shadow .16s; }
.btn:hover { background-color: var(--panel-2); }
.btn.primary { background: linear-gradient(115deg,#2868bc,#6854b5); border-color: #688acb; }
.factory-start .factory-entry { position: relative; overflow: hidden; background: linear-gradient(145deg,#242d3b,#20252e 70%); border-top: 2px solid #6c9fec; }
.factory-start .factory-entry:nth-child(2) { border-top-color: #a18bee; }
.factory-start .factory-entry:nth-child(3) { border-top-color: #6abfba; }
.factory-entry:hover { box-shadow: 0 6px 22px rgba(0,0,0,.25), inset 0 0 0 1px rgba(122,165,236,.16); }
.factory-summary .card { box-shadow: none; background: #1c222b; }
.factory-summary b { color: #a9c7f5; font-variant-numeric: tabular-nums; }
input[type=text], input[type=number], input[type=password], input[type=search], input[type=email], input[type=url], textarea, select { background: #181e27; border-radius: 5px; }
.toast { background: #293649; color: var(--ink); border: 1px solid #536681; }
.toast.err { background: var(--bad-soft); color: var(--bad); border-color: #87505a; }
.step.done .n, .shot .mark { color: #12261b; }
@media (max-width: 600px) { .global-main { padding: 18px 14px; } .topbar { gap: 8px; padding: 0 12px; } }
.factory-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .factory-three { grid-template-columns: 1fr; } }

.brand-logo { display: block; border-radius: 8px; flex-shrink: 0; }
.brand:has(.brand-logo)::before { display: none; }
.portal-brand { display: flex; align-items: center; gap: 14px; }

/* Huimu / unfolded canvas identity */
.topbar { height: auto; min-height: 88px; padding: 12px 26px; gap: 22px; background: #191d25; }
.brand { gap: 14px; min-width: 194px; color: #fff1d6; flex-shrink: 0; }
.brand-logo { border-radius: 0; overflow: visible; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; }
.brand-name { font-family: "STZhongsong", "Noto Serif SC", "Songti SC", "SimSun", serif; font-size: 34px; font-weight: 600; line-height: 1.12; letter-spacing: 5px; color: #fff1d6; }
.brand-tagline { font-family: var(--font, sans-serif); font-size: 10px; font-weight: 400; line-height: 1.4; letter-spacing: 2px; color: #a4a8b3; }
.portal-brand { gap: 20px; margin: 20px 0 36px; padding-bottom: 28px; border-bottom: 1px solid #34353f; }
.portal-brand .brand-name { font-size: 52px; letter-spacing: 8px; }
.portal-brand .brand-tagline { font-size: 12px; letter-spacing: 2px; }
@media (max-width: 640px) {
 .topbar { padding: 10px 14px; gap: 10px; flex-wrap: wrap; min-height: 78px; }
 .brand { min-width: 160px; gap: 10px; }
 .brand > .brand-logo { width: 46px; height: 46px; }
 .brand-name { font-size: 28px; }
 .brand-tagline { font-size: 9px; letter-spacing: 1px; }
 .topbar .btn { padding: 8px 10px; font-size: 12px; }
 .topbar [data-workspace-label] { width: 100%; order: 3; }
 .portal-brand > .brand-logo { width: 64px; height: 64px; }
 .portal-brand .brand-name { font-size: 40px; }
 .portal-brand .brand-tagline { font-size: 10px; }
}

.support-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; line-height: 1.7; }
.support-doc summary { overflow-wrap: anywhere; }

/* Silver future identity: angular monogram, restrained cold highlight. */
.brand-name { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-weight: 800; letter-spacing: 3px; color: #f4f7fb; }
.brand { color: #f4f7fb; }
.portal-brand .brand-name { letter-spacing: 5px; }
.brand-tagline { color: #aeb9c8; }
.brand-logo path { transform:none; transition:opacity .35s ease; }
.brand:hover .brand-logo path, .portal-brand:hover .brand-logo path { transform:none; }
.brand-logo { transition:filter .35s ease,transform .35s ease; }
.brand:hover .brand-logo, .portal-brand:hover .brand-logo { filter:drop-shadow(0 0 7px #b7e7ff33); transform:translateY(-1px); }
.brand-intro .brand-logo path { animation:none; }
.brand-intro .brand-logo .brand-core { animation: metal-reveal .85s cubic-bezier(.16,1,.3,1) both; }
.brand-intro .brand-logo .brand-edge { animation: metal-edge 1.1s ease-out both; }
.brand-intro .brand-logo .brand-signal { animation: signal-reveal .7s .3s ease-out both; }
@keyframes metal-reveal { from { opacity:0; clip-path:inset(100% 0 0); } to { opacity:1; clip-path:inset(0); } }
@keyframes metal-edge { from { opacity:0; } 45% { opacity:1; } to { opacity:.8; } }
@keyframes signal-reveal { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .brand-logo,.brand-logo path { animation:none!important; transition:none!important; transform:none!important; } }

.series-next{border-color:var(--accent,#7ab5ff)}
.series-previews{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.series-previews img{width:100%;height:220px;object-fit:contain;background:#13171d;border-radius:8px}@media(max-width:650px){.series-previews{grid-template-columns:repeat(2,minmax(0,1fr))}.series-previews img{height:180px}}

audio{width:100%;max-width:620px;color-scheme:inherit}

.usage-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;padding:16px 0;border-top:1px solid var(--border,#354052);margin-top:16px}.usage-panel progress{width:100%;accent-color:#a797ff}.usage-panel p{margin:7px 0}

.factory-video{display:block;width:100%;max-height:65vh;min-height:180px;background:#080b10;border-radius:12px;margin:12px 0}
.video-primary{border-color:var(--accent,#7566e9)}
.video-primary h2{margin-top:0}
/* Bound the video tab's implicit grid track; wide siblings must not size the player. */
.guided:has(> [data-work-section="video"]), [data-work-section="video"].stack { min-width:0; grid-template-columns:minmax(0,1fr); }
[data-work-section="video"] > * { min-width:0; max-width:100%; }
.video-primary .factory-video { min-width:0; object-fit:contain; }
.video-assembly .motion-studio>details{order:-1}
.video-storyboards>summary,.drama-editing>summary,.drama-audio-alignment>summary{cursor:pointer;font-weight:600;padding:10px 0}
.video-storyboards[open]>summary{margin-bottom:12px}
.drama-local-production{border:1px solid var(--line,#ddd);border-radius:12px;padding:16px;margin:16px 0}
.drama-rehearsal{margin:16px 0}

/* Paged comics (漫画): four creation entries, layout preview and exported page gallery. */
.factory-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .factory-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .factory-four { grid-template-columns: 1fr; } }
/* Colour follows the business, not the position: entries can be hidden by the administrator. */
.factory-start #fc-manga { border-top-color: #e3a86c; }
.factory-start #fc-images { border-top-color: #6c9fec; }
.factory-start #fc-digital { border-top-color: #a18bee; }
.factory-start #fc-comic { border-top-color: #6abfba; }
.factory-entry .tag { margin: -4px 0 8px; display: inline-block; }
.manga-options { flex-wrap: wrap; gap: 8px 18px; }
.manga-preview img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; background: #fff; border-radius: 4px; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.manga-preview .row { flex-wrap: wrap; gap: 8px; }
.manga-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.manga-pages a { display: flex; flex-direction: column; gap: 4px; align-items: center; text-decoration: none; }
.manga-pages img { width: 100%; height: auto; background: #fff; border-radius: 3px; box-shadow: 0 2px 10px rgba(0,0,0,.3); }

/* Back office points table: compact recharge inputs. */
form[data-recharge] { flex-wrap: nowrap; gap: 8px; }
form[data-recharge] input[name=amount] { width: 120px; }
form[data-recharge] input[name=note] { width: 220px; }
[data-section="dashboard"] progress { width: 100%; height: 12px; accent-color: #6c9fec; }
#dash-days { width: auto; }

/* Sign-in / sign-up (frontend/src/auth/AuthPanel.jsx): one centred card, one form; errors stay by what they are about. */
.auth-wrap { display: flex; justify-content: center; padding: 24px 0; }
.auth-card { width: 100%; max-width: 440px; min-width: 0; box-sizing: border-box; overflow-wrap: anywhere; }
.auth-card .auth-title { margin: 0; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.auth-switch button { border: 0; border-radius: 7px; padding: 8px 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.auth-switch button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.auth-bonus { margin: 0; }
.auth-form { min-width: 0; }
.auth-field { display: grid; gap: 4px; min-width: 0; }
.auth-field > label { font-size: 12px; color: var(--muted); }
.auth-input { position: relative; min-width: 0; }
.auth-input input { box-sizing: border-box; width: 100%; }
.auth-input input.auth-secret { padding-right: 40px; }
.auth-eye { position: absolute; top: calc(50% - 16px); right: 4px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.auth-eye:hover, .auth-eye[aria-pressed="true"] { color: var(--ink); }
.auth-eye:focus-visible, .auth-switch button:focus-visible, .auth-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.auth-send { min-width: 104px; }
.auth-note { margin: 0; min-height: 0; }
.auth-note:empty { display: none; }
.auth-error { margin: 0; color: var(--bad); font-size: 13px; }
.auth-ok { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); }
.auth-agree { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; }
.auth-agree input { width: auto; margin-top: 3px; }
.auth-submit { width: 100%; padding: 10px 14px; }
.auth-tip { font-size: 12px; color: var(--muted); }
.auth-tip > summary { cursor: pointer; width: max-content; }
.auth-tip > p { margin: 4px 0 0; }
.auth-more p { margin: 4px 0; }
.auth-link { border: 0; padding: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .auth-wrap { padding: 12px 0; }
  .auth-card { padding: 14px; }
}

/* Back-office status line: floats at the top of the screen so a save far down the page is always acknowledged. */
#message:not(:empty) {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1000;
  max-width: min(760px, calc(100vw - 32px)); margin: 0; padding: 10px 16px; border-radius: var(--radius);
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--accent); box-shadow: var(--shadow);
}

/* ---- Design system (docs/DESIGN_SYSTEM.md): one main task and one main button per screen ---- */
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --text-xs: 12px; --text-sm: 13px; --text-md: 14px; --text-lg: 16px; --text-xl: 20px; --text-2xl: 28px; --text-3xl: 40px;
  --radius-sm: 6px; --radius-lg: 16px; --radius-pill: 999px;
  --danger: #e5737d; --danger-soft: #3e2429; --success: var(--ok); --success-soft: var(--ok-soft);
  --focus: #8dbdff;
}
/* Destructive actions are outlined red, never the main (filled) button of a screen. */
.btn.danger { color: var(--danger); border-color: #7a3b43; background: transparent; }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.secondary { background: var(--panel-2); }
.btn.link { border: 0; background: transparent; padding: 0; color: var(--info); text-decoration: underline; text-underline-offset: 3px; }
.btn.xl { padding: 14px 28px; font-size: var(--text-lg); border-radius: 12px; }
/* Empty state: what is missing and the one thing to do about it. */
.empty-state { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-6) var(--space-4); text-align: center; color: var(--muted); }
.empty-state b { color: var(--ink); font-size: var(--text-lg); }
/* Loading */
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--info); border-radius: 50%; display: inline-block; animation: spin .9s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
/* Status badges */
.badge { display: inline-block; font-size: var(--text-xs); padding: 1px 8px; border-radius: var(--radius-pill); background: var(--panel-2); color: var(--muted); }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--danger-soft); color: var(--danger); } .badge.info { background: var(--info-soft); color: var(--info); }
/* Choice cards (wizard steps, type pickers): the whole card is the control. */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-3); }
.choice { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: var(--space-4); cursor: pointer; color: var(--ink); display: grid; gap: var(--space-1); }
.choice:hover { border-color: var(--muted); }
.choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.choice b { font-size: var(--text-lg); } .choice span { color: var(--muted); font-size: var(--text-sm); }
/* Progress steps: ✓ done, ● now, ○ later. */
/* Only ol.steps: the workbench's tab bar (div.steps > button.step) keeps its own style. */
ol.steps { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; list-style: none; padding: 0; margin: 0; border: 0; }
ol.steps li { color: var(--muted); } ol.steps li.done { color: var(--ok); } ol.steps li.now { color: var(--ink); font-weight: 600; }
ol.steps li + li::before { content: "→"; color: var(--line); margin-right: var(--space-4); }

/* ---- Guided mode (web/guided.js, v4 §41-62): one idea box, one main button, the next step always visible ---- */
.guided { max-width: 1080px; display: grid; gap: var(--space-5); align-content: start; }
.guided h1 { font-size: var(--text-2xl); }
.guided-hero { gap: var(--space-4); padding: var(--space-6); }
.guided-hero h1 { font-size: var(--text-3xl); }
.guided-hero textarea { font-size: var(--text-lg); min-height: 96px; }
.guided-kinds .btn { border-color: var(--line); }
.guided-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3); }
.guided-work { display: grid; gap: var(--space-2); text-align: left; cursor: pointer; color: var(--ink); }
.guided-work:hover, .guided-thumb:hover { border-color: var(--accent); }
.guided-running { border-color: var(--info); }
.guided-onboarding { border-color: var(--accent); }
.guided-wizard { gap: var(--space-4); }
/* A wizard must shrink its tracks, rather than scroll/clip its form internally. */
.guided:has(.guided-wizard), .guided-wizard,
.guided-wizard :is(.stack,.field) { min-width:0; grid-template-columns:minmax(0,1fr); }
.guided-wizard :where(.card,.row,.choice,label,fieldset,.guided-summary,.guided-summary>div) { min-width:0; max-width:100%; }
.guided-wizard :where(input:not([type=checkbox]):not([type=radio]),textarea,select) { min-width:0; max-width:100%; width:100%; }
.guided-wizard .btn { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.guided-wizard :where(p,small,span,strong,summary) { overflow-wrap:anywhere; }
.guided-wizard .guided-summary > div { grid-template-columns:88px minmax(0,1fr); }
.guided-wizard .choices { grid-template-columns:repeat(auto-fill,minmax(min(160px,100%),1fr)); }
.guided-wizard .choices.compact { grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr)); }
.guided-wizard h1:focus { outline: none; }
.guided-nav { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.guided-summary { display: grid; gap: var(--space-2); margin: 0; }
.guided-summary div { display: grid; grid-template-columns: 88px 1fr; gap: var(--space-3); }
.guided-summary dt { color: var(--muted); }
.guided-summary dd { margin: 0; overflow-wrap: anywhere; }
.guided-cost { font-size: var(--text-lg); margin: 0; }
.warn-text { color: var(--warn); }
.guided-auto summary, .guided-wizard details summary { cursor: pointer; }
.guided-auto ul { margin: var(--space-3) 0; padding-left: 20px; }
.guided-head h1 { overflow-wrap: anywhere; }
.guided-steps { font-size: var(--text-lg); }
.guided-stages { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.guided-stages li { color: var(--muted); } .guided-stages li.done { color: var(--ok); } .guided-stages li.now { color: var(--ink); font-weight: 600; }
.guided-next { border-color: var(--accent); }
.guided-next-title { font-size: var(--text-xl); }
.guided-next p, .guided-error p { margin: 0; }
/* The finished states (导出 / 下载 / 播放): one 48–72px bar — state, info icon, one main button and a small 更多 whose
   groups (other downloads, export again / 修改作品, sharing and submission) open on their own full-width line */
.guided-next-bar { padding-top: 8px; padding-bottom: 8px; gap: 6px; }
.guided-next-bar .next-bar { flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 32px; }
.guided-next-bar .guided-next-title { font-size: var(--text-lg); }
.guided-next-bar .next-bar > .btn { padding-top: 6px; padding-bottom: 6px; white-space: nowrap; }
.guided-next-bar .next-more > summary { cursor: pointer; white-space: nowrap; }
.guided-next-bar .next-more[open] { flex: 1 1 100%; }
.guided-next-bar .next-more > .stack { margin-top: var(--space-2); }
.guided-next-bar .next-group > .row { flex-wrap: wrap; gap: 6px; }
.guided-error { border-color: var(--warn); }
.guided-locked { border-color: var(--warn); }
.guided-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3); }
.guided-unit { gap: var(--space-2); padding: var(--space-3); }
.guided-unit.marked { border-color: var(--danger); }
.guided-unit p { margin: 0; overflow-wrap: anywhere; }
.guided-thumb { display: block; padding: 0; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--panel-2); cursor: zoom-in; }
.guided-thumb img { display: block; width: 100%; height: 240px; object-fit: contain; border-radius: var(--radius-sm); }
/* 免费修手: original and repaired side by side */
.guided-fix { border-top: 1px solid var(--line, #ddd); padding-top: 8px; }
.guided-repair-tool { display: grid; grid-template-columns: auto 1fr; gap: 2px 6px; align-items: start; }
.guided-repair-tool .muted { grid-column: 2; }
.guided-fix-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.guided-fix-pair img { display: block; width: 100%; height: 160px; object-fit: contain; background: var(--panel-2); border-radius: var(--radius-sm); }
.guided-fix-pair .guided-thumb img { height: 160px; }
/* Character sheets on the work page */
.guided-masters { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.guided-master { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.guided-master img { display: block; width: 100%; height: 260px; object-fit: contain; border-radius: var(--radius-sm); background: var(--panel-2); }
.guided-master figcaption { display: flex; flex-direction: column; gap: 4px; }
.guided-master textarea, #gd-image-notes, #fc-image-notes { width: 100%; box-sizing: border-box; }
.guided-master figcaption .row { flex-wrap: wrap; gap: 6px; }
.guided-actions .btn { flex: 1; padding: 6px 8px; }
.guided-actions .btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.guided-actions .btn[data-gd-redo][aria-pressed="true"], .guided-actions .btn[data-gd-edit][aria-pressed="true"] { border-color: var(--danger); background: var(--danger-soft); }
.guided-unit textarea { min-height: 64px; }
/* 给作品起名 / 改名: the name as a title */
.guided-name { border-color: var(--accent); gap: var(--space-2); }
.guided-name label b { font-size: var(--text-lg, 1.1rem); }
.guided-name-input { font-size: var(--text-2xl, 1.5rem); font-weight: 700; padding: 10px 14px; width: 100%; box-sizing: border-box; }
.guided-rename .guided-name-input, .guided-name .row .guided-name-input { flex: 1 1 260px; min-width: 0; width: auto; }
/* 按页审核的成品图: clear buttons over each balloon / narration box (点气泡改字) */
.page-view { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--panel-2); }
.page-view img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.page-edit-float, .page-edit-float:hover { position: absolute; top: 4px; right: 4px; z-index: 3; display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; color: #fff; background: transparent; border: 0; border-radius: 50%; box-shadow: none; cursor: pointer; }
.page-edit-symbol { display: grid; place-items: center; width: 30px; height: 30px; font-size: 19px; line-height: 1; background: rgba(24, 32, 46, .58); border: 1px solid #ffffff70; border-radius: 50%; box-shadow: 0 1px 4px #0003; pointer-events: none; }
.page-edit-label { position: absolute; top: 100%; right: 3px; padding: 3px 7px; border-radius: 4px; background: #18202ee6; color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; }
.page-edit-float:hover .page-edit-label, .page-edit-float:focus-visible .page-edit-label { opacity: 1; visibility: visible; }
.page-edit-float:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (pointer: coarse) { .page-edit-float, .page-edit-float:hover { width: 44px; min-width: 44px; height: 44px; min-height: 44px; } }
.page-edit-hint { text-align: center; }
.generation-service { position: static; padding: 10px 14px; border: 1px solid var(--border); border-left: 3px solid #dca746; border-radius: 8px; background: var(--panel); }
.generation-service summary { cursor: pointer; }
.generation-service p { margin: 9px 0; }
.page-spot { position: absolute; padding: 0; border: 2px dashed transparent; border-radius: 40%; background: transparent; cursor: text; }
.page-spot:hover, .page-spot:focus-visible { border-color: var(--accent); background: rgba(80, 140, 255, .12); }
.page-spot.on { border-color: var(--accent); border-style: solid; }
.guided-grid:has(.guided-page-card) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: start; }
.guided-page-card:not(.is-editing) .page-view { width: 100%; max-width: 240px; margin-inline: auto; }
.guided-bookend:has(details[open]) { grid-column: 1 / -1; }
/* 封面与末页 gallery (client/BookendGallery.jsx): small pictures in one row, the reading pages' corner pencil */
.bookend-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 168px)); gap: var(--space-3); align-items: start; }
.bookend-tile { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bookend-tile .page-view img { width: 100%; height: 220px; object-fit: contain; }
.bookend-tile figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bookend-gallery[aria-busy="true"] { opacity: .75; }
.bookend-gallery-note { margin: 0; }
@media (max-width: 600px) {
  .bookend-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
  .bookend-tile .page-view img { height: 140px; }
}
/* 按页审核: one card a page, the page picture whole (2:3) */
.guided-page-card .guided-thumb img, .guided-page-card .factory-placeholder { height: auto; aspect-ratio: 2 / 3; width: 100%; }
.guided-page-card .factory-placeholder { display: grid; place-items: center; }
.guided-page-panel { border-top: 1px solid var(--line); padding-top: var(--space-2); display: flex; flex-direction: column; gap: 4px; }
/* 编辑这一页: one box per panel, every field full width */
.guided-page-editor-panel { margin: 0; min-width: 0; }
.guided-page-editor textarea { width: 100%; resize: vertical; }
.guided-page-editor .row label { display: inline-flex; align-items: center; gap: 4px; }
/* The page being edited takes the whole row: the page beside its editor, the page kept in sight below the top bar */
.guided-page-card.is-editing { grid-column: 1 / -1; }
.guided-page-split { display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.guided-page-split > .stack:first-child { position: sticky; top: 100px; }
/* The creation pages scroll the window: their main must not be a scroll box of its own (.main's overflow: auto made it
   one, and nothing inside could stick — e.g. the page beside its editor). Clipped sideways only. */
#app > .global-main { overflow: visible; overflow-x: clip; }
.global-main:has(> #portal) { overflow: visible; overflow-x: clip; }
@media (max-width: 760px) { .guided-page-split { grid-template-columns: 1fr; } .guided-page-split > .stack:first-child { position: static; } }
.guided-actions .btn[data-gd-page-redo][aria-pressed="true"], .guided-actions .btn[data-gd-page-edit][aria-pressed="true"] { border-color: var(--danger); background: var(--danger-soft); }
.guided-board { margin: var(--space-3) 0 0; padding-left: 20px; display: grid; gap: var(--space-1); }
@media (max-width: 600px) {
  .guided-hero { padding: var(--space-4); }
  .guided-hero h1 { font-size: var(--text-2xl); }
  .guided h1 { font-size: var(--text-xl); }
  .guided-thumb img { height: 200px; }
  .guided-grid, .guided-works { grid-template-columns: 1fr; }
  .guided-top .muted.small { display: none; }
}
/* Public product page for visitors (portal_web/portal.js landing, v4 §9) */
.landing { max-width: 960px; margin: 0 auto; gap: var(--space-5); }
/* 登录 sits on the brand's line at the right (it had a line of its own above the headline); the brand is 48px from the
   top of .global-main (28px padding + 20px margin) and 80px tall, 38px / 64px on phones */
.global-main:has(> #portal) { position: relative; }
.landing > .landing-login { position: absolute; top: 68px; right: 28px; }
.landing-title { font-size: var(--text-3xl); line-height: 1.25; text-wrap: balance; }
.landing-sub { font-size: var(--text-lg); margin: 0; }
.landing textarea { font-size: var(--text-lg); min-height: 96px; }
.landing-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 800px) { .landing-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .landing > .landing-login { top: 50px; right: 14px; } }
@media (max-width: 480px) { .landing-flow .card { padding: 12px 14px; } .landing-title { font-size: var(--text-2xl); } }
/* Below the work page's sticky tab strip */
#fc-script, #fc-review-heading, #fc-export, #gd-export, #gd-edit-work, #gd-masters, #gd-story { scroll-margin-top: 56px; }
/* Cost dashboard (portal_web/costs.js, administrator only) */
.cost-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.cost-big { font-size: var(--text-2xl); }
.cost-controls { margin-bottom: var(--space-4); }
.cost-controls input[type=date] { width: auto; }
#costs-body table.stats, .cost-modal table.stats { display: block; overflow-x: auto; max-width: 100%; }
.cost-bar-cell { width: 28%; min-width: 80px; }
.cost-bar { display: block; height: 10px; border-radius: var(--radius-pill); background: linear-gradient(90deg, #2868bc, #6854b5); min-width: 2px; }
.cost-runs .chip { display: inline-block; margin: 2px 0; }
.cost-modal { width: min(1200px, 100%); }
#cost-fixed input { min-width: 90px; }
@media (max-width: 1000px) { .cost-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cost-cards { grid-template-columns: 1fr; } }
/* Guided import (novel / script) and whole works */
.guided-source { margin-bottom: var(--space-2); }
.guided-preview { border-color: var(--accent); }
.guided-chapters { margin: 0; padding-left: 20px; display: grid; gap: 2px; max-height: 280px; overflow: auto; }
.guided-chapters-choice { margin-top: var(--space-2); }
/* Guided style step: the exact look inside a family */
.guided-substyles { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.guided-substyles h3 { margin: 0; font-size: var(--text-lg); }
.choices.compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-2); }
.choices.compact .choice { padding: var(--space-3); }
.choices.compact .choice b { font-size: var(--text-md); }

/* Searchable style chooser and optional image tooltip. */
.style-menu{position:relative;border:1px solid var(--border,#394553);border-radius:8px;padding:12px;background:var(--panel,#1c222c)}
.style-options{display:flex;flex-direction:column;gap:4px;max-height:330px;overflow:auto;padding-top:10px}.style-options .btn{text-align:left;white-space:normal}.style-options strong{padding:12px 4px 4px}
.style-tooltip{position:fixed;z-index:99999;pointer-events:none;background:#141a23;border:1px solid #7789a8;box-shadow:0 8px 32px #0009;padding:6px;border-radius:10px;width:260px}.style-tooltip img{display:block;width:100%;max-height:340px;object-fit:contain}
.legal-text { max-height: none; }

/* 帮助 · 用户反馈 · 关于 · 协议 on every portal page */
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 32px 0 12px; font-size: 13px; }
.site-footer a { color: var(--muted); }

/* 修改作品: the first page of the chosen layout */
.gd-layout-preview { width: 100%; max-width: 320px; border-radius: 8px; border: 1px solid var(--line); }

/* 用户反馈 screenshots */
.report-shot { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
/* Feedback is a single fluid column. Long URLs and attachment names must not
   enlarge an implicit grid track that the portal's outer clip then hides. */
#portal.feedback-page { min-width:0; grid-template-columns:minmax(0,1fr); overflow-wrap:anywhere; }
.feedback-page > *, .feedback-page :where(.card,.stack,.field,.grid-2,fieldset) { min-width:0; max-width:100%; }
.feedback-page .stack, .feedback-page .field { grid-template-columns:minmax(0,1fr); }
.feedback-page .grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.feedback-page :where(input,textarea,select) { min-width:0; max-width:100%; }
.feedback-page :where(button,.btn) { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.feedback-page #report-shots > div { display:grid; gap:6px; width:min(100%,160px); min-width:0; overflow-wrap:anywhere; }
@media(max-width:1000px) { .feedback-page .grid-2 { grid-template-columns:minmax(0,1fr); } }
@media(max-width:600px) {
  .feedback-page :where(input,textarea,select) { font-size:16px; }
  .feedback-page :where(button,.btn,select) { min-height:44px; }
}

/* 排版样式面板 (typeset.js): three small groups, chips that stay where they are */
.ts-panel { display: grid; gap: 10px; }
.ts-group { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; }
.ts-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ts-row > span { min-width: 3.5em; }
.ts-chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* 按钮反馈 (app.js btnBusy / portal.js portalBusy): pressed at once, a spinner until the answer is in */
button:active:not(:disabled), .btn:active { transform: translateY(1px); }
.btn.is-busy, button.is-busy { position: relative; opacity: 1; cursor: progress; transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); filter: saturate(.85); }
.btn.is-busy::before, button.is-busy::before { content: ""; display: inline-block; width: 1em; height: 1em;
  margin-right: .45em; vertical-align: -.15em; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: btn-spin .7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
/* 操作即时反馈 (ui.js): a thin bar at the top while a request someone started is on its way */
#net-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; height: 3px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent 0, var(--info) 30%, #b9a7ff 60%, transparent 100%); background-size: 40% 100%;
  background-repeat: no-repeat; transition: opacity .15s; }
#net-progress.on { opacity: 1; animation: net-run 1.1s ease-in-out infinite; }
@keyframes net-run { from { background-position: -40% 0; } to { background-position: 140% 0; } }
html.net-busy, html.net-busy * { cursor: progress; }
@media (prefers-reduced-motion: reduce) { #net-progress.on { animation-duration: 3s; } }
/* 维护公告 (ui.js maintenanceNotice): one narrow line above the page, blue announced / yellow updating; its explanation
   opens under it in the flow (never over the work) and scrolls in itself when long. No animation. */
.maint-bar { position: relative; z-index: 6; border-bottom: 1px solid currentColor; font-size: var(--text-md, 14px); }
.maint-bar.maint-announce { background: var(--info-soft); color: var(--info); }
.maint-bar.maint-active { background: var(--warn-soft); color: var(--warn); }
.maint-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; width: 100%; padding: 6px 18px; border: 0;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.maint-line:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: -2px; }
.maint-text { color: var(--ink); }
.maint-when { font-size: var(--text-sm, 13px); opacity: .85; }
.maint-more { margin-left: auto; font-size: var(--text-sm, 13px); text-decoration: underline; }
.maint-detail { max-height: 40vh; overflow: auto; overscroll-behavior: contain; padding: 0 18px 8px; font-size: var(--text-sm, 13px); color: var(--ink); }
.maint-detail p { margin: 0 0 6px; max-width: 72ch; }
@media (max-width: 600px) {
  .maint-line { padding: 5px 12px; font-size: var(--text-sm, 13px); }
  .maint-detail { max-height: 30vh; padding: 0 12px 8px; }
}
/* What an update held back, said beside the button that asked (app.js maintenanceHeld); gone when the update ends. */
.maint-near { display: inline-block; margin: 4px 8px; padding: 2px 8px; border-radius: var(--radius-sm, 6px);
  background: var(--warn-soft); color: var(--warn); font-size: var(--text-sm, 13px); }
/* 涂抹消除 (factory.js openEraser) */
.eraser-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .65); display: flex; align-items: center; justify-content: center; padding: 12px; }
.eraser-box { background: var(--panel); border-radius: 12px; padding: 14px; max-width: 96vw; max-height: 96vh; overflow: auto; }
/* Keep the instruction inside existing overlay(12px) + box(14px) padding; canvas sizing stays original. */
.eraser-box > .row:first-child { max-width: min(100%, calc(100vw - 24px - 28px)); }
.eraser-stage { position: relative; align-self: center; line-height: 0; }
.eraser-stage img { display: block; max-width: min(90vw, 900px); max-height: 68vh; user-select: none; }
.eraser-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.retouch-panel { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; }
.retouch-panel label { display: flex; gap: 8px; align-items: center; }
.retouch-panel input[type="range"] { flex: 1; }
/* 预览加载中 (factory.js showPreview): the old page dims under a spinner until the new one has arrived */
.preview-frame { position: relative; display: block; min-height: 120px; }
.preview-frame > img { display: block; max-width: 100%; transition: opacity .15s; }
.preview-frame.preview-loading > img { opacity: .35; }
.preview-frame.preview-loading::after { content: "正在排版…"; position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  padding: 8px 14px 8px 36px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; white-space: nowrap; }
.preview-frame.preview-loading::before { content: ""; position: absolute; left: 50%; top: 40%; z-index: 1; width: 16px; height: 16px;
  margin: -8px 0 0 -62px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: btn-spin .7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::before, button.is-busy::before { animation-duration: 2s; } }
/* 作品分享页: the reading link of a finished work */
.share-box { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; }
.share-box input[readonly] { width: 100%; box-sizing: border-box; }

/* 气泡语气: one row per balloon of the page shown */
.tone-row { justify-content: space-between; gap: 8px; }
.tone-line { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Long back-office lists (画风模块 / 画风管理): a toolbar, folded groups with a clear header, one line per entry */
.list-tools { flex-wrap: wrap; gap: 8px; }
.list-tools input[type="search"] { flex: 1 1 260px; min-width: 0; }
a.btn { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
a.btn.link { text-decoration: underline; color: var(--info); }
.name-row { flex-wrap: nowrap; gap: 8px; }
.name-row input { flex: 1 1 auto; min-width: 0; }
/* Nested style and auxiliary-reference forms must fit the real admin viewport. */
#style-admin { min-width:0; max-width:100%; overflow-wrap:anywhere; }
#style-admin .stack { grid-template-columns:minmax(0,1fr); }
#style-admin :where(.stack > *, .card, .row, .field, fieldset, label, [data-style-editor]) { min-width:0; max-width:100%; }
#style-admin .grid-2 { min-width:0; grid-template-columns:repeat(2,minmax(0,1fr)); }
#style-admin :where(input, textarea, select, button, img) { min-width:0; max-width:100%; }
#style-admin input[type=file] { width:100%; }
#style-admin .btn { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:1000px) { #style-admin .grid-2 { grid-template-columns:minmax(0,1fr); } }
.list-tools { align-items: center; }
.list-tools select { width: auto; flex: 0 0 auto; max-width: 100%; }
.list-tools input[type="search"] { width: auto; }
.list-tools .list-count { margin-left: auto; }
.list-busy { opacity: .55; transition: opacity .15s; pointer-events: none; }
.notice-line.notice-bad { background: var(--bad-soft); border-left-color: var(--bad); }
/* One compact row per record (作品管理, React): what it is on the left, its actions on the right. */
.work-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; box-shadow: none; }
.work-row:hover { border-color: #4a5d7a; }
.work-row .work-main { flex: 1 1 380px; min-width: 0; display: grid; gap: 4px; }
.work-row .work-main > .row { gap: 8px; align-items: center; flex-wrap: wrap; }
.work-row .work-main p { margin: 0; }
.work-row .work-name { font-size: 15px; }
.work-row .work-actions { gap: 6px; flex-wrap: wrap; }
.work-row .work-actions .btn { padding: 5px 11px; font-size: 13px; }
.work-row .rename-box { flex-basis: 100%; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.work-row .rename-box input { flex: 1 1 240px; min-width: 0; }
.group-box { padding: 0; overflow: clip; }
.group-box > .group-head { position: sticky; top: 0; z-index: 2; padding: 10px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: var(--text-lg, 1.05rem); }
.group-box[open] > .group-head { border-left: 4px solid var(--accent); }
.group-box > .stack { padding: 10px 14px 14px; }

/* Back office: a stable module rail keeps navigation visible while long editors scroll. */
.admin-shell { display:grid; grid-template-columns:208px minmax(0,1fr); gap:20px; align-items:start; margin-top:18px; }
.backoffice .portal-brand { gap:10px; margin:2px 0 18px; padding-bottom:12px; }
.backoffice .portal-brand > .brand-logo { width:40px; height:40px; }
.backoffice .portal-brand .brand-name { font-size:24px; letter-spacing:3px; }
.backoffice .portal-brand .brand-tagline { font-size:10px; letter-spacing:1px; }
.admin-page-head { position:sticky; top:0; z-index:15; margin:-6px -8px 0; padding:8px; background:rgba(23,27,34,.96); border-bottom:1px solid var(--line); backdrop-filter:blur(10px); }
.admin-page-head h1 { font-size:22px; letter-spacing:.01em; }
.admin-content { min-width:0; }
.admin-content-loading { opacity:.7; pointer-events:none; transition:opacity .15s ease; }
.admin-content-loading::before { content:"正在加载…"; position:sticky; top:66px; z-index:10; display:block; width:max-content; margin:0 auto -30px; padding:7px 14px; border:1px solid var(--line); border-radius:999px; background:var(--panel); box-shadow:0 8px 24px #0006; color:var(--ink); font-size:14px; }
.admin-opening { justify-content:center; min-height:180px; color:var(--muted); }
.admin-content > [data-section] { display:grid; gap:14px; align-content:start; }
#admin-nav-root { display:contents; }  /* the rail's React root: the rail itself is the grid item, free to stick */
.admin-nav { position:sticky; top:68px; max-height:calc(100vh - 80px); overflow:auto; padding:8px; border:1px solid var(--line); border-radius:12px; background:#1c222b; }
.admin-nav-group { display:grid; gap:3px; padding:7px 0 11px; border-bottom:1px solid var(--line); }
.admin-nav-group:last-child { border-bottom:0; }
.admin-nav-group > b { padding:2px 9px 5px; color:var(--muted); font-size:11px; font-weight:600; letter-spacing:.1em; }
.admin-nav .btn { width:100%; text-align:left; border-color:transparent; background:transparent; padding:7px 10px; white-space:normal; }
.admin-nav .btn:hover { background:var(--panel-2); color:#fff; }
.admin-nav .btn.primary { background:var(--accent-soft); border-color:#40618c; color:#dceeff; box-shadow:inset 3px 0 #75adff; }
.admin-content > [data-section] > .card { box-shadow:none; }
/* 保存不用翻到底 (user 2026-10-05): any back-office form's last row with its main button stays at the bottom of the
   screen while the form is in view. */
.admin-content form > .row:last-child:has(> .btn.primary, > button.primary) { position:sticky; bottom:0; z-index:5; padding:10px 0; background:var(--panel); border-top:1px solid var(--line); }
/* 折叠卡片的边界 (user 2026-10-05: "都不知道分来的边界在哪"): a clear header row with an arrow, the open one marked. */
.admin-content details.card:not(.group-box) > summary { list-style:none; display:flex; align-items:center; gap:8px; margin:-6px -8px; padding:6px 8px; border-radius:8px; font-weight:600; }
.admin-content details.card:not(.group-box) > summary::-webkit-details-marker { display:none; }
.admin-content details.card:not(.group-box) > summary::before { content:"▸"; color:var(--muted); transition:transform .15s; flex:none; }
.admin-content details.card:not(.group-box)[open] > summary::before { transform:rotate(90deg); color:var(--accent); }
.admin-content details.card:not(.group-box) > summary:hover { background:var(--panel-2); }
.admin-content details.card:not(.group-box)[open] { border-color:#4a5d7a; }
.admin-content details.card:not(.group-box)[open] > summary { margin-bottom:10px; padding-bottom:10px; border-bottom:1px solid var(--line); border-radius:8px 8px 0 0; }
.admin-content .ai-category-nav { position:sticky; top:58px; z-index:8; padding:8px; border:1px solid var(--line); border-radius:10px; background:#1c222b; }
.admin-content .ai-category { scroll-margin-top:132px; }
.admin-content .ai-category > summary { font-size:17px; padding:5px 0; }
.admin-content .ai-category[open] > summary { margin-bottom:12px; border-bottom:1px solid var(--line); }
.admin-content .task-row > summary { cursor:pointer; display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.admin-content .task-row[open] > summary { margin-bottom:10px; }
.admin-content .task-row [data-note] { align-items:end; }
.admin-content .task-row [data-note] .field { flex:1 1 280px; }
@media(max-width:840px) { .admin-shell { grid-template-columns:minmax(0,1fr); gap:12px; } .admin-nav { position:sticky; top:58px; z-index:12; display:flex; gap:8px; max-height:120px; overflow:auto; } .admin-nav-group { display:flex; gap:4px; padding:0; border:0; flex:none; align-items:center; } .admin-nav-group>b { display:none; } .admin-nav .btn { width:auto; white-space:nowrap; } }
/* Wallet actions need room: at desktop widths keep a scrollable table, on narrower screens use account cards. */
.admin-content section[data-section="wallets"] table.stats { display:block; max-width:100%; overflow-x:auto; }
.admin-content [data-wallet] code { overflow-wrap:anywhere; }
.admin-content [data-topup] { display:grid; grid-template-columns:repeat(2,minmax(120px,1fr)); min-width:280px; max-width:440px; }
.admin-content [data-topup] input { min-width:0; width:100%; }
.admin-content [data-topup] button { grid-column:1/-1; justify-self:start; }
@media(max-width:1100px) {
  .admin-content section[data-section="wallets"] table.stats:has([data-wallet]) thead { display:none; }
  .admin-content section[data-section="wallets"] table.stats:has([data-wallet]) tbody { display:grid; gap:12px; }
  .admin-content [data-wallet] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px 12px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
  .admin-content [data-wallet] td { display:block; min-width:0; padding:4px 0; border:0; text-align:left; }
  .admin-content [data-wallet] td:first-child,.admin-content [data-wallet] td:nth-child(6),.admin-content [data-wallet] td:nth-child(7) { grid-column:1/-1; }
  .admin-content [data-wallet] td:nth-child(2)::before { content:'角色 · '; color:var(--muted); }
  .admin-content [data-wallet] td:nth-child(3)::before { content:'可用 · '; color:var(--muted); }
  .admin-content [data-wallet] td:nth-child(4)::before { content:'冻结 · '; color:var(--muted); }
  .admin-content [data-wallet] td:nth-child(5)::before { content:'实收 · '; color:var(--muted); }
  .admin-content [data-topup] { max-width:none; }
}
@media(max-width:600px) { .admin-content [data-wallet] { grid-template-columns:repeat(2,minmax(0,1fr)); } .admin-content [data-topup] { min-width:0; grid-template-columns:repeat(2,minmax(0,1fr)); } }
.block-row { padding: 8px 12px; }
.block-row > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.block-row .block-words { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block-row[open] .block-words { display: none; }
.block-row[open] { border-color: var(--accent); }
/* 画风管理: what was filled in / saved, at the top of the style being edited */
.notice-line { margin: 0 0 8px; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); border-left: 4px solid var(--accent); }
/* 图片加载中 / 加载失败 (typeset.js watchPictures): never an empty gap that looks like a missing picture */
img.img-loading { background: linear-gradient(90deg, var(--panel-2) 25%, var(--accent-soft) 50%, var(--panel-2) 75%);
  background-size: 200% 100%; animation: img-loading 1.2s linear infinite; min-height: 96px; min-width: 96px; color: transparent; }
button img.img-loading, summary img.img-loading, .brand-logo.img-loading { min-height: 0; min-width: 0; }
img.img-failed { background: var(--panel-2); outline: 1px dashed var(--line); outline-offset: -1px; min-height: 48px; }
@keyframes img-loading { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { img.img-loading { animation: none; } }
/* 列表排序 (portal.js sortableTables): a clickable header shows which way the rows run */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable::after { content: " ⇅"; color: var(--muted); font-size: .85em; }
th.sortable[data-sorted="asc"]::after { content: " ▲"; color: var(--accent); }
th.sortable[data-sorted="desc"]::after { content: " ▼"; color: var(--accent); }
/* 停止并删除: a quieter red link next to 停止生成 */
.danger-text { color: var(--bad); }
/* 发到抖音: one QR code per group of 30 pages */
.douyin-parts { gap: 16px; align-items: flex-start; }
.douyin-qr { margin: 0; text-align: center; }
.douyin-qr div { width: 168px; height: 168px; background: #fff; padding: 6px; border-radius: 8px; }
.douyin-qr svg { width: 100%; height: 100%; display: block; }
/* 扫书雷达: every row opens the book (user 2026-10-02: the text cursor made it look not clickable) */
.radar-table tr[data-radar-book] { cursor: pointer; }
.radar-table tr[data-radar-book]:hover, .radar-table tr[data-radar-book]:focus-visible { background: var(--accent-soft); outline: none; }
.radar-table tr[data-radar-book] td { user-select: none; }
.radar-table .radar-open { white-space: nowrap; pointer-events: none; }
/* 检查画风模块: the sentence, its plan, and the chosen way (按方案修正 / 保留 / 先不处理) */
.audit-row .audit-quote { margin: 0; padding: 4px 12px; border-left: 3px solid var(--line); color: var(--ink); }
.audit-row ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.audit-row .btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.audit-row[data-audit-choice="fix"] { border-color: var(--accent); }
/* 插入剧情 (guided.js gdInsertBox): where, the words, how many pages */
/* 导入人物设定: the other work's characters, picked by tapping (gdCastBox, Wizard.jsx CastBox) */
.guided-cast-list { display: flex; flex-wrap: wrap; gap: 8px; }
.guided-cast-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 132px; height: auto; padding: 8px; white-space: normal; text-align: center; }
.guided-cast-pick img { width: 104px; height: 104px; object-fit: cover; border-radius: 6px; }
.guided-insert .btn[aria-pressed="true"], .guided-next-chapter .btn[aria-pressed="true"], .guided-ab .btn[aria-pressed="true"], .guided-cast .btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
/* 画风选择 (guided.js gdStepStyle, the wizard and 换个画风): each look with its preview */
.choice .look-thumb { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--panel-2); }
/* 页面图排队时 (guided.js gdBindPageImages): not the browser's broken-picture mark, only the card's placeholder */
.page-view img:not([src]) { visibility: hidden; aspect-ratio: 3 / 4; }
/* React islands (app.js island): their node adds no box of its own, the page's layout goes on through it */
.island { display: contents; }
/* 漫画投稿 (client/Submit.jsx): the platforms side by side, one column on a phone */
.submit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-3); }
.submit-platform ul { margin: 4px 0 0; padding-left: 20px; }
.submit-row { flex-wrap: wrap; }
@media (max-width: 640px) { .submit-grid { grid-template-columns: 1fr; } }
/* 可收起的面板 (admin ui/controls.jsx Panel): the title line folds the card; figures sit at its right */
.panel > summary { flex-wrap: wrap; }
.panel-title { font-weight: 600; }
.panel-extra { margin-left: auto; font-weight: 600; }
.panel-count { margin-left: 4px; }
.panel:not([open]) { padding-bottom: 12px; }
.panel-tools { gap: 6px; flex-wrap: nowrap; }
/* 导出设置 (guided.js gdExportRows): folded to one line saying what is chosen; opened, one row of segmented buttons per
   choice with the labels lined up */
.gd-export-settings { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.gd-export-settings > summary { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 8px 12px; cursor: pointer; list-style: none; font-size: 13px; }
.gd-export-settings > summary::-webkit-details-marker { display: none; }
.gd-export-edit { margin-left: auto; color: var(--accent); white-space: nowrap; }
.gd-export-edit::after { content: "修改 ▾"; }
.gd-export-settings[open] .gd-export-edit::after { content: "收起 ▴"; }
.gd-export-settings[open] > summary { border-bottom: 1px solid var(--line); }
.gd-export-rows { gap: 8px; padding: 10px 12px; }
.gd-export-group { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line, #364151); border-radius: 10px; }
.gd-export-group legend { padding: 0 8px; font-size: 14px; font-weight: 700; color: var(--text, #e4eaf2); }
.gd-export-row { align-items: center; }
.gd-export-row .seg { flex-wrap: wrap; }
.gd-export-row .seg button { padding: 5px 10px; font-size: 13px; }
.gd-export-row > .muted { flex-basis: 100%; padding-left: calc(4.5em + 8px); font-size: 12px; }
.gd-export-label { min-width: 4.5em; color: var(--muted); }
@media (max-width: 640px) { .gd-export-row > .muted { padding-left: 0; } }
/* 业务功能开放 (admin Features.jsx): one compact card per module, side by side; the listed accounts in columns */
.access-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-3); align-items: start; }
.access-card { padding: 14px 16px; gap: 8px; box-shadow: none; background: var(--panel-2); }
.access-card .field select { width: 100%; }
.access-card > .row:last-child { justify-content: flex-end; }
.access-accounts input[type="search"] { flex: 1; min-width: 140px; }
.access-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.access-list label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The workbench brand and contextual help remain below the fixed global account header. */
@media (max-width: 640px) {
  .topbar { min-height: 0; padding: 8px 12px; gap: 4px 8px; flex-wrap: wrap; }
  .topbar::after { content: ""; flex-basis: 100%; height: 0; order: 2; }
  .topbar .brand { min-width: 0; gap: 8px; }
  .topbar .brand > .brand-logo { width: 32px; height: 32px; }
  .topbar .brand-name { font-size: 20px; letter-spacing: 2px; }
  .topbar .brand-tagline, .topbar > .muted.small { display: none; }
  .topbar > .btn { order: 1; padding: 6px 10px; font-size: 13px; }
  .topbar > :is(#gd-advanced, #to-guided, a[href="/credits"], [data-help-link], [data-portal-link]) {
    order: 3; padding: 4px 0; border: 0; background: none; font-size: 12px; color: var(--accent); text-decoration: underline; }
  .topbar > [data-workspace-label] { order: 4; }
}

/* One source-pixel editor for full comic pages and uploaded photos. */
.business-entries { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; }
.business-entries .factory-entry { text-align:left; height:100%; }
.retouch-modal { width:min(1160px,96vw); max-width:1160px; max-height:94dvh; overflow:auto; padding:24px; }
.retouch-editor { min-width:0; }
.retouch-editor h2 { margin:0; }
.retouch-tools { border:0; margin:0; padding:0; min-width:0; }
.retouch-savebar { position:sticky; top:0; z-index:2; background:var(--surface,#20252d); padding:10px 0; border-bottom:1px solid var(--border); }
.retouch-tools input[type=number] { max-width:90px; }
.retouch-tools input[type=color] { width:48px; height:38px; padding:2px; }
.retouch-viewport { overflow:auto; max-height:64dvh; background:#101419; border:1px solid var(--border); border-radius:10px; overscroll-behavior:contain; }
.retouch-stage { position:relative; min-width:25%; max-width:none; margin-inline:auto; line-height:0; }
.retouch-stage img,.retouch-stage svg { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:fill; }
.retouch-stage svg { touch-action:none; cursor:crosshair; }
.retouch-stage svg.is-browsing { touch-action:pan-x pan-y; cursor:grab; }
.retouch-text-box { position:absolute; z-index:1; min-width:40px; line-height:1.25; border:1px dashed var(--accent,#78aaf7); background:transparent; }
.retouch-text-box textarea { display:block; min-width:0; width:100%; margin:0; padding:0; border:0; border-radius:0; outline:1px solid var(--accent,#78aaf7); background:transparent; color:inherit; font:inherit; line-height:1.25; resize:both; touch-action:auto; max-height:40dvh; }
.retouch-text-box .retouch-text-handle { position:absolute; bottom:100%; left:0; display:block; min-width:0; max-width:100%; min-height:28px; padding:2px 5px; font:12px/1.4 sans-serif; cursor:move; touch-action:none; }
.retouch-compare { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start; }
.retouch-compare figure { margin:0; min-width:0; }
.retouch-compare img { display:block; width:100%; height:auto; max-height:66dvh; object-fit:contain; background:#101419; border-radius:8px; }
.retouch-compare figcaption { padding:8px 0; }
.retouch-operation-list { max-height:200px; overflow:auto; list-style:none; padding:0; }
.retouch-photo-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,240px)); gap:14px; }
.retouch-photo { display:flex; flex-direction:column; gap:10px; text-align:left; cursor:pointer; }
.retouch-photo img { width:100%; aspect-ratio:3/4; object-fit:contain; background:#101419; border-radius:8px; }
.retouch-editor textarea { flex:1; width:100%; }
.retouch-editor [role=alert] { color:#ff9292; }
.retouch-element-toolbar { gap:6px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; }
.retouch-element-toolbar .row { flex-wrap:wrap; gap:6px 12px; }
.retouch-element-toolbar label { display:inline-flex; gap:6px; align-items:center; }
.retouch-element-toolbar input[type=range] { width:120px; }
.retouch-element-toolbar input[type=number] { width:64px; }
@media(max-width:600px) {
  .retouch-element-toolbar .btn, .retouch-element-toolbar select { min-height:40px; }
  .retouch-element-toolbar label { flex:1 1 100%; }
  .retouch-element-toolbar input[type=range] { flex:1; width:auto; }
  .retouch-modal { width:100vw; max-width:100vw; max-height:100dvh; border-radius:0; padding:16px; }
  .retouch-overlay { padding:0; }
  .retouch-tools .btn { padding:8px 10px; font-size:14px; }
  .retouch-compare { gap:8px; }
  .business-entries { grid-template-columns:1fr; }
}

/* 头像与昵称 (services/avatars.py; ui.js avatarHtml, frontend/src/ui/controls.jsx Avatar): a glyph on a coloured disc.
   The 昵称 beside it in the top bar is cut with an ellipsis, so a long one never widens or wraps the bar. */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em; flex: none; border-radius: 50%; font-size: 1em; line-height: 1; vertical-align: middle; user-select: none; }
.avatar.big { font-size: 1.6em; }
.account-called { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.avatar-choices { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.avatar-choices legend { padding: 0; margin-bottom: 6px; color: var(--muted); font-size: var(--text-sm); }
.avatar-choices label { position: relative; cursor: pointer; border-radius: 50%; }
.avatar-choices input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.avatar-choices input:checked + .avatar { outline: 3px solid var(--accent); outline-offset: 2px; }
.avatar-choices input:focus-visible + .avatar { outline: 3px solid var(--info); outline-offset: 2px; }
.video-assembly,.video-assembly>.island,.motion-studio,.motion-preview-content,.motion-shot-preview{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
.motion-studio>*,.motion-preview-content>*,.motion-studio .field{min-width:0;max-width:100%}
.motion-preview-details{min-width:0;max-width:100%}
.motion-preview-details>summary{cursor:pointer;font-weight:600;padding:10px 0;overflow-wrap:anywhere}
.motion-preview-details[open]>summary{margin-bottom:12px}
.motion-preview-details:not([open])>.motion-preview-content{display:none}
.motion-studio :where(p,blockquote,span,b){overflow-wrap:anywhere}
.motion-studio :where(input,select,audio){min-width:0;max-width:100%;box-sizing:border-box}
.motion-studio>.btn,.motion-studio .row>.btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.motion-productions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.motion-production{display:flex;flex-direction:column;gap:8px;text-align:left;cursor:pointer}
.motion-production[aria-pressed="true"]{border-color:#78a9ff;background:#223650;box-shadow:0 0 0 1px #78a9ff}
.motion-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.motion-screen{position:relative;min-width:0;max-width:100%;max-height:520px;width:min(100%,360px);aspect-ratio:9/16;background:#111;overflow:hidden;display:flex;align-items:center;justify-content:center;margin:auto;border-radius:12px}
.motion-preview-loading{position:absolute;inset:auto 12px 12px;margin:0;padding:8px;background:rgba(0,0,0,.75);color:#fff;border-radius:6px;text-align:center}
.motion-screen.landscape{width:min(100%,720px);aspect-ratio:16/9}.motion-screen.square{width:min(100%,520px);aspect-ratio:1}
.motion-screen.motion-screen-empty{aspect-ratio:auto;min-height:120px;padding:18px;box-sizing:border-box;flex-direction:column;gap:8px}
.motion-screen-empty p{margin:0;text-align:center;overflow-wrap:anywhere}
.motion-screen img,.motion-screen video{width:100%;height:100%;object-fit:contain}
.motion-timeline{display:flex;min-width:0;width:100%;max-width:100%;overflow-x:auto;gap:8px;padding:8px 0;box-sizing:border-box}.motion-timeline button{flex-shrink:0}.motion-timeline [aria-pressed="true"]{border-color:#78a9ff;background:#223650}
.motion-playing{animation-duration:var(--motion-seconds);animation-timing-function:linear;animation-fill-mode:forwards}
.motion-playing.zoom_in{animation-name:motion-zoom-in}.motion-playing.zoom_out{animation-name:motion-zoom-out}
.motion-playing.pan_left{animation-name:motion-left}.motion-playing.pan_right{animation-name:motion-right}.motion-playing.pan_up{animation-name:motion-up}.motion-playing.pan_down{animation-name:motion-down}
@keyframes motion-zoom-in{from{transform:scale(1)}to{transform:scale(1.1)}}@keyframes motion-zoom-out{from{transform:scale(1.1)}to{transform:scale(1)}}
@keyframes motion-left{from{transform:scale(1.12) translateX(4%)}to{transform:scale(1.12) translateX(-4%)}}@keyframes motion-right{from{transform:scale(1.12) translateX(-4%)}to{transform:scale(1.12) translateX(4%)}}
@keyframes motion-up{from{transform:scale(1.12) translateY(4%)}to{transform:scale(1.12) translateY(-4%)}}@keyframes motion-down{from{transform:scale(1.12) translateY(-4%)}to{transform:scale(1.12) translateY(4%)}}
@media(max-width:640px){.motion-productions,.motion-fields{grid-template-columns:1fr}}

/* 作品页分区 (guided.js gdWorkSections, client/Work.jsx WorkTabs): the one strip that sticks, about 44px; it scrolls
   sideways on a phone rather than wrapping. The top bar scrolls away on a work page. */
body:has(.work-nav) .topbar { position:static; }
.work-nav { position:sticky; top:0; z-index:6; display:flex; align-items:center; gap:8px; min-height:44px; padding:0 4px; background:var(--bg); border-bottom:1px solid var(--line); }
.work-tabs { display:flex; flex:1 1 auto; min-width:0; overflow-x:auto; scrollbar-width:none; }
.work-tabs::-webkit-scrollbar { display:none; }
.work-tabs [role="tab"] { flex:0 0 auto; height:44px; padding:0 14px; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--muted); font:inherit; white-space:nowrap; cursor:pointer; }
.work-tabs [role="tab"]:hover { color:var(--ink); }
.work-tabs [role="tab"].on { color:var(--ink); border-bottom-color:var(--accent); font-weight:600; }
.work-tabs [role="tab"]:focus-visible { outline:2px solid var(--focus); outline-offset:-2px; }
.work-nav .page-issues { flex:0 0 auto; }
.work-section[hidden], .page-issues[hidden] { display:none !important; }
/* 续章 / 插入剧情 / 对比版本: one row of small entries; the one opened takes the row */
.work-tools { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-start; }
.work-tools .guided-insert, .work-tools .guided-next-chapter, .work-tools .guided-ab,
.work-tool-slot:has(.guided-insert, .guided-next-chapter, .guided-ab) { flex:1 1 100%; }
/* 整部作品页 (series.js renderSeriesWorkspace, client/SeriesWorkspace.jsx): one compact line a chapter; its text,
   previews and video open under it. The shared blocks under the island show with their section. */
.series-slot[hidden] { display:none !important; }
.series-toolbar { flex-wrap:wrap; gap:8px; align-items:center; }
.series-rows { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.series-row { padding:8px 12px; }
.series-row-main { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-height:36px; }
.series-row-pick { display:inline-flex; align-items:center; gap:8px; min-width:0; overflow-wrap:anywhere; }
.series-row-info { white-space:nowrap; }
.series-row-more > summary { cursor:pointer; color:var(--muted); font-size:var(--text-xs); margin-top:4px; }
.series-row-more > .stack { margin-top:8px; }
.series-script, .series-notes { white-space:pre-wrap; overflow-wrap:anywhere; max-height:420px; overflow:auto; margin:0; }
.series-exports { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
@media (max-width:640px) {
  .series-row-info { white-space:normal; flex:1 1 100%; order:3; }
  .series-toolbar .spacer { flex-basis:100%; }
}
/* 提醒小图标 (guided.js gdAlert): the shape and the label say which kind as well as the colour */
.page-alerts, .page-issues { display:inline-flex; align-items:center; gap:6px; margin-left:auto; }
.work-nav [data-generation-service-icon] { flex:0 0 auto; margin-left:0; padding-right:4px; }
.alert-tip { display:inline-flex; }
.alert-icon { position:relative; display:inline-grid; place-items:center; width:22px; height:22px; padding:0; border:1px solid currentColor; font:700 13px/1 var(--font); cursor:pointer; }
.alert-icon.bad { color:var(--danger); background:var(--danger-soft); border-radius:50%; }
.alert-icon.warn { color:var(--warn); background:var(--warn-soft); border-radius:3px; }
.alert-icon.info { color:var(--info); background:var(--info-soft); border-radius:50%; border-style:dashed; }
.alert-icon:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.alert-count { position:absolute; top:-7px; right:-9px; min-width:15px; height:15px; padding:0 3px; border:1px solid currentColor; border-radius:var(--radius-pill); background:var(--panel); font-size:10px; line-height:13px; }
.alert-pop { position:fixed; z-index:19; width:min(340px, calc(100vw - 24px)); max-height:min(420px, 60vh); overflow:auto; padding:12px 14px; gap:8px; background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow-wrap:anywhere; text-align:left; font-weight:400; }
.alert-pop[hidden] { display:none !important; }
.alert-pop p { margin:0; }
.alert-pop .row { flex-wrap:wrap; gap:6px; }
.page-issues-list .row { align-items:baseline; gap:4px 12px; margin-bottom:8px; }
@media (pointer:coarse) { .alert-icon { width:26px; height:26px; } }
/* A page card: its number and hints on one line, one main 修改 and a small 更多 */
.page-head { flex-wrap:nowrap; gap:6px; }
.page-head > b, .page-head > .badge { flex:0 0 auto; }
.page-actions { flex-wrap:wrap; align-items:flex-start; gap:6px; }
.page-actions > .btn { flex:1 1 auto; }
.card-more > summary { list-style:none; cursor:pointer; padding:6px 10px; border:1px solid var(--line); border-radius:8px; }
.card-more > summary::-webkit-details-marker { display:none; }
.card-more[open] { flex:1 1 100%; }
.card-more-body { margin-top:8px; }
.card-more-body .guided-actions { flex-wrap:wrap; }
.audiobook-studio { width:100%; min-width:0; max-width:1180px; margin:auto; }
/* Long episode titles must wrap instead of widening the implicit grid column. */
.audiobook-studio, .audiobook-studio .stack, .audiobook-studio .field { grid-template-columns:minmax(0,1fr); }
.audiobook-studio :where(.card,.row,.field,label,input,textarea,select,button,details) { min-width:0; max-width:100%; }
.audiobook-studio .row > .field { flex:1 1 180px; }
.audiobook-studio .btn { white-space:normal; overflow-wrap:anywhere; }
.audiobook-studio .audio-episodes [data-audio-preview] { text-align:left; }
.audiobook-studio :where(p,small,span,strong,b) { overflow-wrap:anywhere; }
.audiobook-studio h1 { font-size:1.65rem; }
.audiobook-studio .field { min-width:0; }
.audio-source { white-space:pre-wrap; overflow-wrap:anywhere; }
.audio-episodes { padding:4px; }
.audio-segment summary { overflow-wrap:anywhere; cursor:pointer; }
.audiobook-studio video { max-width:100%; width:100%; max-height:65vh; background:#10131b; border-radius:10px; }
.audiobook-studio audio { max-width:100%; }
.audio-segment-image { max-width:100%; max-height:400px; object-fit:contain; }
.audio-save { position:sticky; bottom:8px; z-index:4; border-color:var(--accent,#749ee9); padding:10px 14px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; box-shadow:0 3px 16px #0004; }
.audio-save .row { gap:6px; }
@media(max-width:600px) { .audiobook-studio h1 { font-size:1.3rem; } .audiobook-studio .motion-fields { grid-template-columns:1fr; } .audiobook-studio .audio-save .btn { flex:1 1 auto; padding:7px 10px; font-size:13px; } .audio-save { bottom:4px; padding:8px; } }

/* Workbench contextual header: brand/home and help. Account actions belong to the global fixed header. */
.guided-top { min-height:0; padding:8px 20px; gap:10px; }
.guided-top .brand > .brand-logo { width:40px; height:40px; }
.guided-top .brand-name { font-size:24px; letter-spacing:3px; }
.wb-home { background:none; border:0; padding:0; font:inherit; text-align:left; cursor:pointer; }
.wb-home:focus-visible { outline:2px solid var(--focus); outline-offset:4px; border-radius:6px; }
/* A small menu (details[data-wb-menu] in the shell, client/SeriesWorkspace.jsx Menu): its box opens under its button,
   right-aligned, inside the window; a long one scrolls inside, the page under it keeps its place. */
.wb-menu { position:relative; display:inline-flex; }
.wb-menu > summary { list-style:none; cursor:pointer; white-space:nowrap; }
.wb-menu > summary::-webkit-details-marker { display:none; }
.wb-menu-pop { position:absolute; top:calc(100% + 6px); right:0; z-index:20; min-width:200px; max-width:min(320px, calc(100vw - 24px)); max-height:min(420px, 70vh);
  overflow:auto; padding:8px; gap:6px; background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.wb-menu-pop[hidden] { display:none !important; }
.wb-menu-pop > .btn, .wb-menu-pop > a.btn { width:100%; justify-content:flex-start; min-height:36px; white-space:normal; text-align:left; }
/* A work's and a whole work's head line: the way back, the title (a phone may wrap it once), the pencil and the badges. */
.work-head { flex-wrap:wrap; align-items:center; gap:4px 10px; }
.work-head h1 { margin:0; min-width:0; font-size:clamp(18px, 4.6vw, 26px); line-height:1.25; }
.work-back { white-space:nowrap; font-size:var(--text-sm); }
.icon-btn { text-decoration:none; padding:2px 6px; min-width:28px; min-height:28px; }
/* The one status line (gdNextBox, gdErrorBox, gdProgress, gdSeriesNextBox, gdSeriesProgress): state, coloured icon, one
   main button and a small 更多 that opens on its own full-width line. */
.guided-next-slim { padding-top:8px; padding-bottom:8px; gap:6px; }
.guided-next-slim .next-bar { flex-wrap:wrap; align-items:center; gap:6px 10px; min-height:32px; }
.guided-next-slim .guided-next-title { font-size:var(--text-lg); overflow-wrap:anywhere; }
.guided-next-slim .next-bar > .btn { padding-top:6px; padding-bottom:6px; white-space:nowrap; }
.guided-next-slim .next-more > summary { cursor:pointer; white-space:nowrap; }
.guided-next-slim .next-more[open] { flex:1 1 100%; }
.guided-next-slim .next-more > .stack, .guided-next-slim .next-more > .row { margin-top:var(--space-2); }
.guided-next-slim .next-more > .row, .guided-next-slim .next-group > .row { flex-wrap:wrap; gap:6px; }
.progress-now { min-width:0; overflow-wrap:anywhere; }
.progress-mini { width:72px; height:8px; vertical-align:middle; }
@media (max-width:640px) {
  .guided-top { padding:6px 12px; gap:6px 8px; }
  .guided-top::after { content:none; }
  .guided-top > [data-help-link] { order:1; }
  .guided-top > .wb-menu { order:2; }
  .guided-top .brand-name { font-size:20px; letter-spacing:2px; }
  .guided-top .brand > .brand-logo { width:32px; height:32px; }
  .series-toolbar .wb-menu-pop { left:0; right:auto; }
  .guided-steps { font-size:var(--text-sm); }
  .guided-next-slim .next-bar > .btn { flex:1 1 auto; }
}
@media (pointer:coarse) {
  .wb-menu > summary, .wb-menu > [data-menu-toggle], .work-head .icon-btn, .work-back { min-height:40px; min-width:40px; }
  .wb-menu-pop > .btn, .wb-menu-pop > a.btn { min-height:44px; }
}
.page-editor-tabs { display:flex; align-items:center; gap:6px; overflow-x:auto; padding:2px 0 6px; max-width:100%; }
.page-editor-tabs > .btn { flex:0 0 auto; white-space:nowrap; }
/* The shared light palette also covers legacy fixed dark surfaces; media pixels and viewing canvases stay intact. */
:root[data-theme="light"] .topbar,
:root[data-theme="light"] .factory-summary .card,
:root[data-theme="light"] .admin-nav,
:root[data-theme="light"] .admin-content .ai-category-nav { background:var(--panel); }
:root[data-theme="light"] .factory-start .factory-entry { background:linear-gradient(145deg,var(--accent-soft),var(--panel) 70%); }
:root[data-theme="light"] .factory-summary b { color:var(--info); }
:root[data-theme="light"] input:not([type]),
:root[data-theme="light"] input[type=text],
:root[data-theme="light"] input[type=number],
:root[data-theme="light"] input[type=password],
:root[data-theme="light"] input[type=search],
:root[data-theme="light"] input[type=email],
:root[data-theme="light"] input[type=url],
:root[data-theme="light"] input[type=tel],
:root[data-theme="light"] textarea,
:root[data-theme="light"] select { background:var(--panel); }
:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder { color:var(--muted); }
:root[data-theme="light"] .brand,
:root[data-theme="light"] .brand-name { color:var(--ink); }
:root[data-theme="light"] .brand-tagline { color:var(--muted); }
:root[data-theme="light"] .portal-brand { border-bottom-color:var(--line); }
:root[data-theme="light"] .toast { background:var(--panel-2); border-color:var(--line); }
:root[data-theme="light"] .toast.err { background:var(--bad-soft); border-color:var(--bad); }
:root[data-theme="light"] .step.done .n,
:root[data-theme="light"] .shot .mark { color:#fff; }
:root[data-theme="light"] .style-tooltip { background:var(--panel); border-color:var(--line); }
:root[data-theme="light"] .admin-nav .btn:hover { color:var(--ink); }
:root[data-theme="light"] .admin-nav .btn.primary { background:var(--accent-soft); color:var(--info); border-color:var(--accent); }
:root[data-theme="light"] .motion-production[aria-pressed="true"],
:root[data-theme="light"] .motion-timeline [aria-pressed="true"] { background:var(--accent-soft); border-color:var(--accent); }
:root[data-theme="light"] .retouch-editor [role=alert] { color:var(--bad); }
@media(max-width:600px) { #huimu-theme-control { padding:6px 12px; } }
.guided-page-editor-panel { min-width:0; margin:0; }
.guided-page-editor textarea { min-height:0; }


/* Recharge choices are cards, not the four numeric factory summary columns. */
[data-credits-page] fieldset > .factory-summary {
  grid-template-columns: repeat(auto-fit,minmax(min(200px,100%),1fr));
  margin-bottom: 0;
}
[data-credits-page] fieldset > .factory-summary > label { min-width: 0; }
[data-credits-page] fieldset > .factory-summary > label > span:first-child {
  display: flex; align-items: center; gap: 10px;
}
[data-credits-page] fieldset > .factory-summary > label > span:first-child input {
  flex: 0 0 auto; margin: 0;
}
[data-credits-page] fieldset > .factory-summary > label > span:first-child b {
  min-width: 0; font-size: 16px; line-height: 1.5;
}

/* Keep each service label readable and wrap whole tabs within this group. */
.seg[role="tablist"][aria-label="服务管理分组"] {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(108px,100%),1fr));
  gap: 6px; width: 100%; min-width: 0; border: 0; border-radius: 0; overflow: visible;
}
.seg[role="tablist"][aria-label="服务管理分组"] > button {
  display: block; min-width: 0; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; line-height: 1.4;
}

/* Explicit new-comic layout previews/editors stay inside narrow screens. */
[data-layout-profile-choice], [data-layout-profile-admin] { min-width:0; max-width:100%; overflow-wrap:anywhere; grid-template-columns:minmax(0,1fr); }
:is([data-layout-profile-choice],[data-layout-profile-admin]) :where(label,.row,.stack,.grid-2,input,select,button,img) { min-width:0; max-width:100%; }
:is([data-layout-profile-choice],[data-layout-profile-admin]) .btn { white-space:normal; overflow-wrap:anywhere; }
[data-layout-profile-admin] input:not([type=checkbox]), [data-layout-profile-admin] select { width:100%; }
[data-layout-profile-admin] .grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:1000px) { [data-layout-profile-admin] .grid-2 { grid-template-columns:minmax(0,1fr); } }
/* Personal invitations keep the established dark/silver theme and narrow forms. */
.invitation-account,.invitation-admin,.invitation-account .stack{min-width:0;max-width:100%}
.invitation-account input{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.invitation-account [data-personal-invitation-code]{font-family:monospace;font-size:1.65rem;font-weight:700;letter-spacing:.12em;color:var(--ink)}
.invitation-account .btn,.invitation-admin .btn,#account-face [data-my-invitation-shortcut]{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:42px}
.invitation-poster canvas{max-width:100%;width:360px;height:auto;border-radius:12px}
.invitation-poster canvas:not([hidden]){display:block}
.invitation-admin section,.invitation-admin fieldset{min-width:0;max-width:100%}
.auth-referral input{max-width:100%;box-sizing:border-box}

/* Guided customer journey: one task, explicit next, visible explanation. */
.guided-simple-home { gap:24px; }
.guided-simple-home .guided-hero h1 { margin:0; }
.guided-simple-home .guided-hero p { margin:0; max-width:48em; }
.home-work-filters summary,[data-home-more]>summary { cursor:pointer; min-height:44px; display:flex; align-items:center; }
.guided-wizard .huimu-journey__body { display:flex; flex-direction:column; gap:20px; }
.guided-wizard .huimu-journey__body>p { margin:0; }
.guided-wizard :is(.choice,.btn,summary) { min-height:44px; }
.guided-wizard summary { cursor:pointer; padding-block:8px; }
.guided-wizard details[open]>summary { margin-bottom:12px; }
.guided-task-help { margin:0; line-height:1.7; color:var(--ink); }
.work-current-task:empty { display:none; }
.work-current-task { display:flex; flex-direction:column; gap:12px; }
.work-current-task .guided-next { padding:20px; border-color:var(--accent); }
.work-current-task .guided-next-title { font-size:1.15rem; }
.work-current-task .next-bar .spacer { display:none; }
.work-current-task .next-bar { justify-content:flex-start; gap:12px; }
.work-current-task .next-more { margin-left:auto; }
@media(max-width:640px) {
 .guided-simple-home .guided-hero { padding:20px; }
 .guided-simple-home .guided-hero h1 { font-size:1.65rem; }
 .guided-wizard { padding:16px; padding-bottom:0; }
 .guided-wizard input:not([type=checkbox]):not([type=radio]),.guided-wizard textarea,.guided-wizard select { font-size:16px; }
 .guided-wizard .huimu-journey__actions { margin-inline:-16px; padding-inline:16px; border-top:1px solid var(--line); }
 .guided-wizard .huimu-journey__next { flex:1; }
 .guided-goal .guided-nav { position:sticky; bottom:0; padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px)); background:var(--panel); }
 .work-current-task .guided-next { padding:16px; }
 .work-current-task .btn { min-height:44px; white-space:normal; }
 .work-current-task .next-more { margin-left:0; }
}
/* One visible navigation row across creation tools, account pages and back-office sections. */
.site-navigation{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 auto;padding:12px 20px;max-width:1400px}
.site-navigation .btn{white-space:nowrap;min-height:40px}
.site-navigation [aria-current="page"]{border-color:var(--accent);background:var(--panel)}
.workbench-header{border-bottom:1px solid var(--line);background:var(--bg)}
.workbench-header .topbar{border-bottom:0}
#portal-navigation{margin-bottom:18px;border-bottom:1px solid var(--line)}
#portal-navigation .site-navigation{padding:0 0 12px}
@media(max-width:600px){.site-navigation{padding:10px 14px;gap:6px}.site-navigation .btn{font-size:13px;padding:8px 10px;min-height:40px}}

/* Account overview and compact global preferences. */
.hmao-root {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1rem;
  color: var(--ink);
  background: var(--panel);
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.hmao-root *,
.hmao-root *::before,
.hmao-root *::after {
  box-sizing: border-box;
}

.hmao-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.hmao-identity {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  min-width: 0;
}

.hmao-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hmao-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hmao-avatar-fallback {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
}

.hmao-identity-text {
  min-width: 0;
  flex: 1;
}

.hmao-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.hmao-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  min-width: 0;
}

.hmao-role {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  white-space: nowrap;
}

.hmao-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  min-width: 0;
}

.hmao-id-label {
  color: var(--muted);
}

.hmao-id-value {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 100%;
}

.hmao-copy-fail {
  font-size: 0.75rem;
  color: var(--ink);
}

.hmao-copy-ok {
  font-size: 0.75rem;
  color: var(--muted);
}

.hmao-registered {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hmao-muted {
  color: var(--muted);
}

.hmao-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hmao-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.5rem 0.875rem;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25;
  border-radius: 0.375rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  max-width: 100%;
}

.hmao-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.hmao-btn-sm {
  padding: 0.25rem 0.55rem;
  font-size: 0.8125rem;
}

.hmao-btn-primary {
  background: var(--ink);
  color: var(--panel);
  border-color: var(--ink);
}

.hmao-btn-secondary {
  background: var(--panel);
  color: var(--ink);
}

.hmao-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.hmao-btn-ghost:hover,
.hmao-btn-ghost:focus-visible {
  border-color: var(--line);
  text-decoration: none;
}

.hmao-balance {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--panel);
}

.hmao-balance-label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.hmao-balance-value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hmao-balance-loading {
  font-size: 0.9375rem;
  color: var(--muted);
}

.hmao-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hmao-card {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--panel);
  min-width: 0;
}

.hmao-card-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.hmao-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hmao-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.hmao-list-item:first-child {
  border-top: none;
  padding-top: 0;
}

.hmao-list-item:last-child {
  padding-bottom: 0;
}

.hmao-list-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.625rem;
  min-width: 0;
  flex: 1;
}

.hmao-list-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.hmao-list-value {
  font-size: 0.875rem;
  color: var(--ink);
  min-width: 0;
}

.hmao-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  font-size: 0.6875rem;
  line-height: 1.3;
  border-radius: 0.25rem;
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}

.hmao-badge-ok {
  color: var(--ink);
}

.hmao-badge-warn {
  color: var(--muted);
}

.hmao-badge-count {
  min-width: 1.25rem;
  text-align: center;
  background: var(--ink);
  color: var(--panel);
  border-color: var(--ink);
}

@media (min-width: 720px) {
  .hmao-root {
    padding: 1.25rem 1.5rem;
  }

  .hmao-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .hmao-header-actions {
    flex-shrink: 0;
    justify-content: flex-end;
  }

  .hmao-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 390px) {
  .hmao-root {
    padding: 0.75rem;
  }

  .hmao-avatar {
    width: 56px;
    height: 56px;
  }

  .hmao-name {
    font-size: 1.125rem;
  }

  .hmao-header-actions .hmao-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 320px) {
  .hmao-root {
    padding: 0.5rem;
  }

  .hmao-identity {
    gap: 0.625rem;
  }

  .hmao-avatar {
    width: 48px;
    height: 48px;
  }

  .hmao-balance-value {
    font-size: 1.25rem;
  }

  .hmao-list-item {
    flex-wrap: wrap;
  }

  .hmao-header-actions {
    width: 100%;
  }

  .hmao-header-actions .hmao-btn {
    flex: 1 1 100%;
  }
}

:root { --huimu-header-height:calc(56px + env(safe-area-inset-top, 0px)); }
body { padding-top:var(--huimu-header-height); box-sizing:border-box; }
#huimu-theme-control { position:fixed; inset:0 0 auto; z-index:18; box-sizing:border-box; height:var(--huimu-header-height); padding:env(safe-area-inset-top, 0px) 16px 0; flex-wrap:nowrap; gap:12px; }
#huimu-theme-control>a { display:inline-flex; align-items:center; gap:6px; min-height:40px; color:var(--ink); text-decoration:none; font-weight:600; padding:0 4px; white-space:nowrap; }
#huimu-theme-control a:focus-visible { outline:2px solid var(--focus); outline-offset:2px; border-radius:6px; }
#huimu-theme-control label { display:inline-flex; align-items:center; gap:6px; margin:0; }
#huimu-theme-control select { min-width:0; width:148px; }
#huimu-theme-control #huimu-language-choice { width:76px; }
#huimu-theme-control [data-global-my] .avatar { width:28px; height:28px; }
#huimu-theme-control [data-global-messages] { position:relative; }
#huimu-theme-control [data-global-messages] .badge { position:absolute; top:0; left:10px; font-size:10px; padding:0 4px; min-width:0; }
#huimu-theme-control .is-placeholder { color:var(--muted); font-size:16px; }
#huimu-theme-control .theme-status { position:absolute; top:100%; right:8px; background:var(--panel); }
#huimu-theme-control .theme-status:empty { display:none; }
.global-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.hm-boot { width:100%; box-sizing:border-box; }
.hm-boot-hero { padding:clamp(20px,4vw,40px); }
.hm-boot-hero h1 { margin:0; font-size:clamp(24px,4vw,36px); }
.hm-boot-hero [data-boot-status] { color:var(--muted); min-height:24px; margin-block:16px 0; }
.hm-boot-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:20px; }
.hm-boot-card { display:grid; gap:14px; padding:24px; }
.hm-boot-line { display:block; width:100%; height:12px; border-radius:6px; background:var(--line); opacity:.7; }
.hm-boot-short { width:40%; height:20px; margin-bottom:8px; }
.workbench-header a.brand { color:inherit; text-decoration:none; }
.global-main:has(#account-center)>.portal-brand { gap:10px; margin:2px 0 14px; padding-bottom:12px; }
.global-main:has(#account-center)>.portal-brand>.brand-logo { width:40px; height:40px; }
.global-main:has(#account-center)>.portal-brand .brand-name { font-size:24px; letter-spacing:3px; }
.global-main:has(#account-center)>.portal-brand .brand-tagline { font-size:10px; letter-spacing:1px; }
@media(max-width:640px) { .hm-boot-grid { grid-template-columns:minmax(0,1fr); gap:12px; } .hm-boot-card { padding:18px; } }
.topbar,.work-nav,.admin-page-head { top:var(--huimu-header-height); }
.admin-content .ai-category-nav,.admin-nav { top:calc(var(--huimu-header-height) + 58px); }
@media(max-width:640px) {
  :root { --huimu-header-height:calc(52px + env(safe-area-inset-top, 0px)); }
  #huimu-theme-control { gap:4px; padding-inline:8px; font-size:13px; }
  #huimu-theme-control [data-global-messages]>span:not(.badge) { display:none; }
  #huimu-theme-control .global-theme>span { display:none; }
  #huimu-theme-control .global-theme { position:relative; }
  #huimu-theme-control .global-theme::before { content:attr(data-theme-icon); position:absolute; left:8px; font-size:18px; pointer-events:none; }
  #huimu-theme-control #huimu-theme-choice { width:34px; padding-inline:2px; font-size:12px; color:transparent; }
  #huimu-theme-control #huimu-theme-choice option { color:var(--ink); }
  #huimu-theme-control #huimu-language-choice { width:65px; padding-inline:4px; font-size:12px; }
  #huimu-theme-control>a { gap:4px; padding:0 2px; }
  #huimu-theme-control [data-global-my] .avatar { width:24px; height:24px; }
}

/* Shared contact modal and clear interactive affordances. */
#huimu-theme-control>a[hidden]{display:none}
#huimu-theme-control>a:hover{background:var(--panel-2);border-radius:7px;color:var(--focus)}
#huimu-theme-control [data-global-support]{text-decoration:underline;text-underline-offset:4px}
#portal-navigation:empty,.site-navigation:empty{display:none}
.huimu-contact-dialog{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:20px;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box;box-shadow:0 20px 70px #0006}
.huimu-contact-dialog::backdrop{background:#0008}
.huimu-contact-dialog>header{justify-content:space-between;margin-bottom:12px}.huimu-contact-dialog h2{margin:0;font-size:22px}
.huimu-contact-dialog .hwmc-contact-card{border:0;box-shadow:none;width:100%;margin:0}
.portal-brand-link{display:flex;align-items:center;gap:inherit;color:inherit;text-decoration:none}
.portal-brand-link:focus-visible{outline:2px solid var(--focus);outline-offset:6px}
#huimu-theme-control [data-global-admin]{font-size:13px}
@media(max-width:600px){#huimu-theme-control{gap:3px;padding-inline:5px}#huimu-theme-control [data-global-admin]{font-size:11px}.portal-brand-link .brand-logo{width:48px;height:48px}}

.public-product figure{margin:0}.public-product img{width:100%;height:auto;max-height:520px;object-fit:contain;background:var(--panel-2);border-radius:10px}.public-product figcaption{padding:8px;color:var(--muted)}.public-price-table{overflow-x:auto}.public-product section{scroll-margin-top:85px}

.huimu-contact-dialog .hwmc-contact-card__header{display:none}.huimu-contact-dialog .hwmc-contact-card{padding-top:0}

@media(max-width:600px){#huimu-theme-control [data-global-admin]{font-size:0;min-width:26px}#huimu-theme-control [data-global-admin]::after{content:"⚙";font-size:20px}#huimu-theme-control [data-global-support]{font-size:12px}}

.huimu-profile-dialog{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px;width:min(840px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;box-shadow:0 20px 70px #0006}
.huimu-profile-dialog::backdrop{background:#0009}.huimu-profile-dialog h2{margin:0}.profile-dialog-heading{justify-content:space-between;align-items:center}.huimu-profile-dialog [data-profile-close]{font-size:26px;line-height:1;min-width:44px;min-height:44px}.huimu-profile-dialog .avatar-choices{flex-wrap:wrap;min-width:0}.huimu-profile-dialog input:not([type=radio]):not([type=checkbox]){max-width:100%;box-sizing:border-box}
@media(max-width:480px){.huimu-profile-dialog{padding:16px}.huimu-profile-dialog .avatar-choices{gap:8px}.huimu-profile-dialog .avatar.big{width:44px;height:44px}}

.feedback-attachment-list{list-style:none;padding:0;margin:0;align-items:flex-start}.feedback-attachment-list>li{display:flex;flex-direction:column;gap:6px;max-width:180px;overflow-wrap:anywhere}.feedback-attachment-list .report-shot{max-width:100%;object-fit:contain}

.hm-boot-avatar{display:inline-block;width:64px;height:64px;border-radius:50%;background:var(--panel-2);border:1px solid var(--line);flex-shrink:0}.hm-boot-line{display:inline-block;width:min(80%,240px);height:14px;border-radius:5px;background:var(--panel-2);vertical-align:middle}.hm-boot-balance{font-size:36px;line-height:1.3}.hm-account-boot .grid-2>*{min-width:0}.hm-account-boot [data-boot-identity]{overflow-wrap:anywhere}.hm-page-boot input,.hm-page-boot textarea,.hm-page-boot select{max-width:100%;box-sizing:border-box}

/* React work rename: keep the inline editor within narrow viewports. */
[data-work-heading] { min-width:0; max-width:100%; overflow-wrap:anywhere; }
[data-work-heading] .guided-rename { min-width:0; }
@media (max-width:640px) {
 [data-work-heading] .guided-rename .work-head { display:grid; grid-template-columns:minmax(0,1fr) auto; }
 [data-work-heading] .guided-rename .guided-name-input { grid-column:1/-1; width:100%; max-width:100%; }
}

/* Account panels and shared record tabs. Page content stays mounted beneath dialogs. */
.hm-account-center{max-width:1280px;margin:0 auto;min-width:0}.hm-account-page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.hm-account-page-heading h1{margin:0}.hm-account-identity{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.hm-account-person{min-width:0;align-items:flex-start;flex-wrap:nowrap}.hm-account-person>div{min-width:0}.hm-account-person h2{margin:0 0 6px}.hm-account-uid{overflow-wrap:anywhere}.hm-account-uid .btn{padding:2px 6px}.hm-account-actions{flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}.hm-account-balance{border-top:1px solid var(--line);padding-top:18px;display:flex;flex-direction:column;gap:5px}.hm-account-balance strong{font-size:30px}.hm-account-security-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.hm-account-setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.hm-account-setting-row>span{min-width:0;overflow-wrap:anywhere}.hm-account-setting-row small{display:block;margin-top:6px}.hm-account-tabs{min-width:0}.hm-account-tabs>[role=tablist]{display:flex;gap:8px;overflow-x:auto;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:18px}.hm-account-tabs>[role=tablist] button{background:transparent;border:1px solid transparent;color:var(--muted);padding:11px 15px;white-space:nowrap;cursor:pointer;border-radius:8px;font:inherit}.hm-account-tabs>[role=tablist] button:hover,.hm-account-tabs>[role=tablist] button:focus-visible{background:var(--panel-2);color:var(--text)}.hm-account-tabs>[role=tablist] button[aria-selected=true]{border-color:var(--accent);background:var(--panel-2);color:var(--text)}.hm-account-tabs [role=tabpanel]{min-width:0}.hm-account-list-row{display:flex;justify-content:space-between;align-items:center;gap:16px}.hm-account-list-row>div{min-width:0;overflow-wrap:anywhere}.hm-account-list-row .btn{flex-shrink:0}.hm-account-panel{width:min(850px,calc(100vw - 32px));box-sizing:border-box;max-height:88dvh;overflow:auto;overscroll-behavior:contain}.hm-account-panel>.profile-dialog-heading{margin-bottom:20px}.hm-account-panel .hm-inbox-toolbar{flex-wrap:wrap}.hm-account-panel .hm-inbox-toolbar select{width:auto;max-width:100%}.hm-notice h3{margin:0;overflow-wrap:anywhere}.hm-notice p{margin:0;overflow-wrap:anywhere}.hm-unread-dot{width:8px;height:8px;border-radius:50%;background:#ef4444;display:inline-block;flex-shrink:0}.hm-settings-security{padding:4px 0}.hm-logout-mobile{display:none}.hm-account-center [hidden],.hm-account-panel [hidden]{display:none!important}
@media(max-width:700px){.hm-account-identity{flex-direction:column;gap:14px}.hm-account-actions{justify-content:flex-start}.hm-account-security-grid{grid-template-columns:1fr;gap:0}.hm-account-setting-row{padding:12px 0;border-bottom:1px solid var(--line)}.hm-account-setting-row:last-child{border-bottom:0}.hm-account-tabs>[role=tablist] button{padding:9px 11px}.hm-account-panel{width:calc(100vw - 20px);padding:18px;max-height:92dvh}.hm-logout-desktop{display:none}.hm-logout-mobile{display:block;margin-top:24px}.hm-account-list-row{align-items:flex-start}.hm-account-list-row .btn{padding:8px 10px}}

.hm-record-tools{display:flex;gap:12px;flex-wrap:wrap}.hm-record-tools input{flex:1;min-width:160px}.hm-record-tools select{width:auto;max-width:100%}@media(max-width:480px){.hm-record-tools input{width:100%;flex-basis:100%}.hm-record-tools select{width:100%}}

.hm-record-values{display:flex;flex-direction:column;align-items:flex-end;gap:6px;font-variant-numeric:tabular-nums;white-space:nowrap}

/* Independent read rows reserve a stable work surface while requests arrive. */
.work-read-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.work-read-row{min-width:0;overflow-wrap:anywhere}.work-read-row p{margin:.5em 0}.work-read-placeholder{display:grid;gap:8px;padding:8px 0}.work-read-placeholder span{height:12px;border-radius:6px;background:currentColor;opacity:.08}.work-read-placeholder span:last-child{width:65%}@media(max-width:640px){.work-read-grid{grid-template-columns:minmax(0,1fr)}}

/* Attachment queues may contain long filenames; translated actions wrap within their own panel. */
.reference-attachments, .reference-attachments .stack { min-width:0; grid-template-columns:minmax(0,1fr); }
.reference-attachments .row > * { min-width:0; max-width:100%; }
.reference-attachments .btn { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.reference-attachments :is(p,span) { overflow-wrap:anywhere; }

.creation-reference-chooser, .creation-reference-chooser .stack { min-width:0; grid-template-columns:minmax(0,1fr); }
.creation-reference-chooser .row > * { min-width:0; max-width:100%; }
.creation-reference-chooser .btn { max-width:100%; white-space:normal; overflow-wrap:anywhere; }

.work-style-frame, .work-style-frame .stack { min-width:0; grid-template-columns:minmax(0,1fr); }
.work-style-frame .row > * { min-width:0; max-width:100%; }
.work-style-frame :is(p,span,b,summary) { overflow-wrap:anywhere; }
.work-style-frame .btn { max-width:100%; white-space:normal; overflow-wrap:anywhere; }

.island:has(> [data-pending-image-empty]) { display:none; }
.pending-image-notice { min-width:0; grid-template-columns:minmax(0,1fr); }
.pending-image-notice :is(p,b) { margin:0; overflow-wrap:anywhere; }
.pending-image-notice .row > * { min-width:0; max-width:100%; }
.pending-image-notice .btn { max-width:100%; white-space:normal; overflow-wrap:anywhere; }

.task-progress-react{min-width:0}.task-progress-react .next-bar{min-width:0}.task-progress-react p,.task-progress-react li,.task-progress-react .guided-next-title,.task-progress-react .progress-now{overflow-wrap:anywhere}.task-progress-react .btn{white-space:normal;overflow-wrap:anywhere;max-width:100%}.task-progress-react .next-more>.stack{min-width:0;max-width:min(32rem,calc(100vw - 64px))}

.island:has(>[data-next-step-react][hidden]){display:none}.next-step-react{min-width:0}.next-step-react p,.next-step-react li,.next-step-react .guided-next-title{overflow-wrap:anywhere}.next-step-react .btn{white-space:normal;overflow-wrap:anywhere;max-width:100%}.next-step-react .next-more>.stack{max-width:min(36rem,calc(100vw - 64px));min-width:0}

.share-links-react{min-width:0}.share-links-react input{min-width:0;max-width:100%}.share-links-react p,.share-links-react span{overflow-wrap:anywhere}.share-links-react .btn{white-space:normal;overflow-wrap:anywhere;max-width:100%}

.publish-helper-react{min-width:0;max-width:100%;overflow-wrap:anywhere}.publish-helper-react .field,.publish-helper-react .row,.publish-helper-react .douyin-tips{min-width:0;max-width:100%}.publish-helper-react .row{flex-wrap:wrap}.publish-helper-react .douyin-qr{display:flex;flex-direction:column;gap:8px;max-width:100%;margin:0;min-width:0}.publish-helper-react .douyin-qr img{width:240px;max-width:100%;height:auto}.publish-helper-react input,.publish-helper-react textarea{min-width:0;width:100%;box-sizing:border-box}.publish-helper-react .btn{white-space:normal;overflow-wrap:anywhere}

.download-tools-react{min-width:0;max-width:100%;overflow-wrap:anywhere}.download-tools-react .row{flex-wrap:wrap;min-width:0}.download-tools-react .stack{min-width:0;max-width:100%}.download-tools-react .btn{white-space:normal;overflow-wrap:anywhere}

.guided-wizard .guided-summary dd,.guided-wizard .guided-summary dt,.guided-wizard .choice span,.guided-wizard label,.guided-wizard .guided-cost{overflow-wrap:anywhere;min-width:0}.guided-wizard .guided-summary>div,.guided-wizard .field{min-width:0}.guided-wizard .btn{white-space:normal}

.guided-preview .guided-chapters li,.guided-preview .row,.guided-split,.guided-preview summary{overflow-wrap:anywhere;min-width:0}.guided-preview .row,.guided-split{flex-wrap:wrap}.guided-preview input,.guided-preview textarea{min-width:0;max-width:100%;box-sizing:border-box}.guided-substyles h3{overflow-wrap:anywhere}

[data-creation-tools] .field,[data-business-requirements] .field,.multi-preference,.multi-preference .multi-options{min-width:0;max-width:100%;overflow-wrap:anywhere}[data-creation-tools] .row,[data-business-requirements] .row,.multi-preference .row{flex-wrap:wrap}.multi-selected .btn,[data-creation-tools] .btn,[data-business-requirements] .btn{white-space:normal;max-width:100%;overflow-wrap:anywhere}[data-creation-tools] select,[data-business-requirements] select{min-width:0;max-width:100%}

.export-size-overlay .export-width-dialog{width:min(640px,calc(100vw - 32px));min-width:0;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);overflow:auto;box-sizing:border-box;overflow-wrap:anywhere}.export-width-dialog .row{flex-wrap:wrap}.export-width-dialog h2{margin:0;flex:1 1 200px}.export-width-dialog .field,.export-width-dialog select,.export-width-dialog input{min-width:0;max-width:100%}.export-width-dialog .btn{white-space:normal;overflow-wrap:anywhere}

.cost-confirm-overlay .cost-confirm-frame{width:min(680px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);overflow:auto;box-sizing:border-box;overflow-wrap:anywhere}.cost-confirm-frame .row{flex-wrap:wrap}.cost-confirm-frame h2{margin:0;flex:1 1 200px}.cost-confirm-frame .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}.cost-confirm-frame .cost-confirm-table{width:100%;table-layout:fixed}.cost-confirm-table td{overflow-wrap:anywhere;word-break:break-word}

/* Modal roots also carry island for button ownership; their overlay keeps its box. */
.export-size-overlay,.cost-confirm-overlay{display:grid}

.image-preview-overlay{display:grid;z-index:40}.image-preview-frame{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;width:100%;height:calc(100dvh - 40px);max-width:calc(100vw - 40px);box-sizing:border-box;overflow:hidden;cursor:zoom-out}.image-preview-frame img{max-width:100%;max-height:calc(100dvh - 100px);object-fit:contain;min-width:0}.image-preview-close{position:absolute;right:0;top:0;z-index:1;min-height:44px;min-width:44px;cursor:pointer}.image-preview-status{max-width:min(500px,100%);padding:52px 20px 20px;box-sizing:border-box;overflow-wrap:anywhere;text-align:center}

/* Native asset previews size to the image, independently of the full-screen overlay. */
dialog.hm-asset-image-preview[data-asset-image-preview]{width:fit-content;min-width:min(360px,calc(100vw - 24px));max-width:min(1100px,calc(100vw - 24px));height:fit-content;max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:hidden}
dialog.hm-asset-image-preview[data-asset-image-preview] .image-preview-frame{width:auto;height:auto;max-width:none;max-height:calc(100dvh - 26px);padding:56px 12px 12px;overflow:auto}
dialog.hm-asset-image-preview[data-asset-image-preview] .image-preview-frame img{flex:none;width:auto;height:auto;min-width:min(160px,calc(100vw - 50px),calc(100dvh - 94px));max-width:min(1074px,calc(100vw - 50px));max-height:calc(100dvh - 94px)}
dialog.hm-asset-image-preview[data-asset-image-preview] .image-preview-close{top:8px;right:8px;width:44px;height:44px;padding:0;display:grid;place-items:center;line-height:1}
dialog.hm-asset-image-preview[data-asset-image-preview] .image-preview-status{margin:0;padding:12px 8px}


/* Read-only provider evidence: explicit grouping and wrapped provenance at phone widths. */
.provider-evidence,.provider-evidence-group{min-width:0;overflow-wrap:anywhere}
.provider-evidence-group>summary{cursor:pointer;list-style:revert;outline-offset:4px}
.provider-evidence-group>summary:hover,.provider-evidence-group>summary:focus-visible{text-decoration:underline}
.provider-evidence-metrics{margin:0;min-width:0;display:grid;gap:.35rem}
.provider-evidence-row{display:grid;grid-template-columns:minmax(105px,35%) minmax(0,1fr);gap:.65rem;align-items:start}
.provider-evidence-row dt,.provider-evidence-row dd{margin:0;min-width:0;overflow-wrap:anywhere}
.provider-evidence [data-evidence-sources]>summary{cursor:pointer;text-decoration:underline;outline-offset:4px}

/* Work-tool drafts fit the same card on mobile in every language. */
:is(.guided-next-chapter,.guided-ab) :where(.row,.field,input,textarea,select,button) { min-width:0; max-width:100%; }
:is(.guided-next-chapter,.guided-ab) .field { grid-template-columns:minmax(0,1fr); }
:is(.guided-next-chapter,.guided-ab) .btn { white-space:normal; overflow-wrap:anywhere; }

/* Chapter workspaces keep long program labels and original filenames inside their panels. */
[data-series-section] { min-width:0; overflow-wrap:anywhere; }
[data-series-style] :where(.field,input,select,button), .series-toolbar :where(button,.wb-menu,.wb-menu-pop) { min-width:0; max-width:100%; }
[data-series-style] .field { grid-template-columns:minmax(0,1fr); }
:is([data-series-style],.series-toolbar,.series-row) .btn { white-space:normal; overflow-wrap:anywhere; }

/* Page metadata notices overlay the image without changing its coordinate space. */
.page-spot-status{position:absolute;left:8px;right:8px;bottom:8px;z-index:3;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;border-radius:6px;background:var(--panel,#202630);color:var(--text,#e7edf6);overflow-wrap:anywhere;pointer-events:none}
.page-spot-status .btn{pointer-events:auto;min-width:0;white-space:normal}

/* One persistent brand and a direct service catalog. */
#huimu-theme-control [data-global-brand]{margin-right:auto;padding:0;gap:9px;flex-shrink:0;font-size:23px;letter-spacing:2px}
#huimu-theme-control [data-global-brand] img{display:block;width:34px;height:34px;object-fit:contain}
body:has(#huimu-theme-control) :is(.portal-brand,.topbar>.brand){display:none}
#app:has([data-shared-home])>.workbench-header{display:none}
.global-main:has([data-shared-home]){max-width:1600px;padding:28px}
.guided.hm-service-home{display:block;max-width:none;margin:0;width:100%}
.svc-layout{display:grid;grid-template-columns:216px minmax(0,1fr);gap:32px;align-items:start}
.svc-layout[data-collapsed=true]{grid-template-columns:60px minmax(0,1fr)}
.svc-sidebar{position:sticky;top:calc(var(--huimu-header-height) + 18px);border-right:1px solid var(--line);padding-right:18px;max-height:calc(100dvh - var(--huimu-header-height) - 36px);overflow:auto;min-width:0}
.svc-sidebar-toggle,.svc-menu-item{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:12px;border:1px solid transparent;border-radius:10px;color:var(--ink);background:transparent;text-align:left;font:inherit;cursor:pointer}
.svc-sidebar-toggle{color:var(--muted);font-size:13px;margin-bottom:14px}.svc-menu{display:grid;gap:6px}.svc-menu-item:hover,.svc-sidebar-toggle:hover{background:var(--panel-2);border-color:var(--line)}
.svc-icon{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:9px;background:var(--accent-soft);color:var(--info);font-size:22px}
.svc-menu-item .svc-icon{width:26px;height:26px;font-size:20px}.svc-label{min-width:0;overflow-wrap:anywhere}.svc-layout[data-collapsed=true] .svc-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.svc-layout[data-collapsed=true] .svc-sidebar{padding-right:8px}.svc-layout[data-collapsed=true] :is(.svc-sidebar-toggle,.svc-menu-item){padding:8px;justify-content:center}
.svc-main{display:grid;gap:24px;min-width:0}.svc-hero{display:grid;grid-template-columns:1.15fr 1fr;min-height:380px;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:radial-gradient(ellipse at 0 0,var(--accent-soft),transparent 80%),var(--panel);position:relative}
.svc-hero-copy{align-self:center;padding:clamp(22px,4vw,48px);position:relative;z-index:1;min-width:0}.svc-eyebrow{color:var(--info);font-size:13px;letter-spacing:2px;margin:0 0 18px}.svc-hero h1{font-family:'Noto Serif SC','Songti SC',serif;font-size:clamp(30px,3.3vw,48px);line-height:1.3;letter-spacing:1px;margin:0 0 18px;text-wrap:balance}.svc-hero-copy>p:not(.svc-eyebrow){color:var(--muted);line-height:1.8;margin:0;max-width:32em}
.svc-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}.svc-links a{color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:10px 16px;text-decoration:none;font-size:14px}.svc-links a:first-child{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.svc-links a:hover{filter:brightness(1.12)}
.svc-hero-art{margin:0;position:relative;min-width:0;align-self:stretch;min-height:360px;background:var(--panel-2)}.svc-hero-art img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 33%}.svc-hero-caption{position:absolute;bottom:0;left:0;right:0;padding:24px 18px 12px;background:linear-gradient(transparent,#10131ed9);color:#fff;font-size:11px;line-height:1.5}
.svc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.svc-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:13px;padding:24px;border-radius:16px;border:1px solid var(--line);background:linear-gradient(135deg,var(--panel),var(--bg));min-width:0}.svc-card:nth-child(3n+2) .svc-icon{color:#ab8bea}.svc-card:nth-child(3n) .svc-icon{color:var(--ok)}.svc-card h2{font-size:18px;margin:0}.svc-card p{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 8px;overflow-wrap:anywhere}.svc-card-arrow{margin-top:auto;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);font:inherit;font-size:13px;color:var(--ink);cursor:pointer;max-width:100%;overflow-wrap:anywhere}.svc-card-arrow:hover{border-color:var(--accent);color:var(--info)}
.svc-layout button:focus-visible,.svc-links a:focus-visible{outline:2px solid var(--info);outline-offset:3px}.svc-layout button:disabled{opacity:.5;cursor:not-allowed}
/* Keep each identity setting and its action in one clearly grouped row. */
.hm-account-security-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.hm-account-setting-row{justify-content:flex-start;gap:20px;padding:15px 0;border-bottom:1px solid var(--line)}.hm-account-setting-row:last-child{border-bottom:0}.hm-account-setting-row>span{flex:0 1 290px}.hm-account-setting-row>.btn{flex:0 0 auto;min-width:70px}.hm-account-setting-row small{font-size:13px}
.hm-account-center>.hm-account-tabs{width:100%;box-sizing:border-box}.hm-account-center>.hm-account-tabs>[role=tablist]{display:grid;grid-template-columns:repeat(5,minmax(max-content,1fr))}.hm-account-center>.hm-account-tabs>[role=tablist] button{min-height:46px;text-align:center}
.hm-account-center :is([role=tabpanel],[data-account-records],[data-wallet-records]){width:100%;max-width:none;box-sizing:border-box;margin-inline:0}.hm-account-center [data-account-records]>.row{justify-content:flex-end}.hm-account-center>.hm-account-tabs>[role=tabpanel]{padding:0}
@media(max-width:1100px){.svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.svc-layout{grid-template-columns:190px minmax(0,1fr);gap:20px}.svc-hero{grid-template-columns:1fr 0.8fr;min-height:340px}.svc-hero-art{min-height:340px}}
@media(max-width:900px){#huimu-theme-control .global-theme{display:none}.svc-hero h1{font-size:32px}.svc-hero-copy{padding:24px}}
@media(max-width:700px){.global-main:has([data-shared-home]){padding:18px 14px}.svc-layout{grid-template-columns:minmax(0,1fr);gap:18px}.svc-sidebar{position:static;border:1px solid var(--line);border-radius:12px;padding:6px;max-height:none}.svc-sidebar-toggle{margin:0}.svc-menu{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:6px}.svc-layout[data-collapsed=true]{grid-template-columns:minmax(0,1fr)}.svc-layout[data-collapsed=true] .svc-sidebar{padding:6px}.svc-layout[data-collapsed=true] .svc-menu{display:none}.svc-layout[data-collapsed=true] .svc-sidebar-toggle{justify-content:flex-start}.svc-layout[data-collapsed=true] .svc-sidebar-toggle .svc-label{position:static;width:auto;height:auto;clip-path:none}.svc-hero{grid-template-columns:1fr;min-height:0}.svc-hero-copy{padding:26px 22px}.svc-hero h1{font-size:32px}.svc-hero-art{min-height:240px}.svc-hero-art img{object-position:50% 24%}.svc-hero-caption{padding-top:28px}.svc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.svc-card{padding:18px;gap:10px}.svc-card h2{font-size:17px}.hm-account-setting-row>span{flex-basis:210px}.hm-account-center>.hm-account-tabs>[role=tablist]{display:flex}.hm-account-center>.hm-account-tabs>[role=tablist] button{flex:1 0 auto}}
@media(max-width:480px){.svc-grid{grid-template-columns:minmax(0,1fr)}.svc-menu-item{font-size:13px;gap:8px;padding:9px}.svc-links{gap:8px}.svc-links a{padding:9px 11px}.hm-account-setting-row{gap:12px}.hm-account-setting-row>span{flex:1;max-width:220px}.hm-account-setting-row>.btn{min-width:60px;padding:8px 10px}}
@media(max-width:640px){#huimu-theme-control{gap:3px;padding-inline:5px}#huimu-theme-control [data-global-brand]{gap:5px;letter-spacing:1px;font-size:18px}#huimu-theme-control [data-global-brand] img{width:28px;height:28px}#huimu-theme-control [data-global-support]{font-size:11px;white-space:normal;max-width:68px;line-height:1.2;text-align:center}#huimu-theme-control [data-global-my]>span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#huimu-theme-control [data-global-admin]{font-size:10px;max-width:42px;white-space:normal;line-height:1.15}#huimu-theme-control #huimu-language-choice{width:53px}#huimu-theme-control [data-global-messages]{min-width:22px}}

.public-home-layout{display:grid;grid-template-columns:216px minmax(0,1fr);gap:32px;align-items:start}.public-home-layout>.public-product{min-width:0}.public-service-sidebar{position:sticky;top:calc(var(--huimu-header-height) + 18px);border-right:1px solid var(--line);padding:12px 18px 12px 0}.public-service-sidebar summary{padding:12px;color:var(--muted);cursor:pointer}.public-service-sidebar nav{display:grid;gap:8px;padding-top:12px}.public-service-sidebar a{color:var(--ink);text-decoration:none;border:1px solid transparent;border-radius:8px;padding:12px;font-size:14px}.public-service-sidebar a:hover{background:var(--panel-2);border-color:var(--line)}.public-home-layout:has(.public-service-sidebar>details:not([open])){grid-template-columns:120px minmax(0,1fr)}.public-hero :is(h1,h2){font-family:'Noto Serif SC','Songti SC',serif;font-size:clamp(30px,3.3vw,44px);line-height:1.3;margin:0 0 18px}.public-hero .row{gap:10px;margin-top:24px}.public-hero .row a{font-size:13px}.public-product>section[id],.public-product>div>article[id]{scroll-margin-top:calc(var(--huimu-header-height) + 18px)}
@media(max-width:900px){.public-home-layout{grid-template-columns:175px minmax(0,1fr);gap:20px}.public-hero{grid-template-columns:1fr}.public-hero .svc-hero-art{min-height:260px}}
@media(max-width:700px){.public-home-layout,.public-home-layout:has(.public-service-sidebar>details:not([open])){grid-template-columns:minmax(0,1fr);gap:18px}.public-service-sidebar{position:static;padding:4px;border:1px solid var(--line);border-radius:12px}.public-service-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:0;gap:0}.public-service-sidebar a{font-size:13px}.public-hero .svc-hero-copy{padding:24px}.public-hero :is(h1,h2){font-size:32px}}
.hm-account-setting-row>span{flex:0 1 auto;min-width:170px;max-width:290px}
@media(max-width:480px){.hm-account-setting-row>span{flex:1;min-width:0;max-width:220px}}

#huimu-theme-control>*{flex-shrink:0}.svc-hero-art img{object-position:50% 10%}
@media(max-width:640px){#huimu-theme-control [data-global-admin]{font-size:0;max-width:none;min-width:26px;white-space:nowrap}#huimu-theme-control [data-global-admin]::after{content:"⚙";font-size:20px}.svc-hero-art img{object-position:50% 15%}}

.hm-work-managed-card{position:relative;isolation:isolate;min-width:0;transition:transform .15s}.hm-work-managed-card:hover{transform:translateY(-2px)}.hm-work-managed-card>.hm-work-card{height:100%;box-sizing:border-box}.hm-work-managed-card>.hm-work-card:hover{transform:none}.hm-work-card-actions{position:absolute;inset-block-start:6px;inset-inline-end:6px;z-index:2;display:flex;pointer-events:auto}.hm-work-trash-control{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.hm-work-trash-icon,.hm-work-dialog-close{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;box-sizing:border-box;border:0;border-radius:12px;padding:0;background:transparent;color:var(--ink);font:inherit;cursor:pointer;touch-action:manipulation}.hm-work-trash-icon::before{content:"";position:absolute;inset:6px;border:1px solid var(--line);border-radius:9px;background:var(--panel);box-shadow:0 2px 7px #0002;transition:background .15s,border-color .15s}.hm-work-trash-icon>svg{position:relative;pointer-events:none}.hm-work-trash-icon:hover{color:var(--danger,#bd4050)}.hm-work-trash-icon:hover::before{border-color:currentColor;background:var(--panel-2)}.hm-work-trash-icon:focus-visible,.hm-work-dialog-close:focus-visible{outline:2px solid var(--info);outline-offset:2px}.hm-work-trash-icon[aria-disabled=true]{color:var(--muted)}.hm-work-trash-icon:disabled,.hm-work-dialog-close:disabled{cursor:wait}.hm-work-trash-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0}.hm-work-trash-heading h2{padding-top:6px;overflow-wrap:anywhere}.hm-work-dialog-close{flex-shrink:0;font-size:27px;line-height:1}.hm-work-dialog-close:hover{background:var(--panel-2)}
.hm-work-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.hm-work-card{display:block;color:var(--ink);text-decoration:none;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel);min-width:0;transition:border-color .15s,transform .15s}.hm-work-card:hover{border-color:var(--accent);transform:translateY(-2px)}.hm-work-card:focus-visible{outline:2px solid var(--info);outline-offset:3px}.hm-work-preview{position:relative;aspect-ratio:3/4;background:var(--panel-2);overflow:hidden}.hm-work-preview-image{display:block;width:100%;height:100%;object-fit:cover;object-position:top}.hm-work-preview[data-preview-state=loading] img{opacity:0}.hm-work-preview-placeholder{position:absolute;inset:0;display:grid;place-items:center;padding:18px;text-align:center;color:var(--muted);font-size:13px}.hm-work-card-copy{display:grid;gap:7px;padding:16px;min-width:0}.hm-work-title{font-size:16px;font-weight:600;overflow-wrap:anywhere}.hm-work-kind,.hm-work-time{font-size:12px;color:var(--muted)}.hm-task-record{width:100%;min-width:0}.hm-task-record dl{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;margin:14px 0 0}.hm-task-record dl>div{min-width:0}.hm-task-record dt{color:var(--muted);font-size:12px;margin-bottom:5px}.hm-task-record dd{margin:0;overflow-wrap:anywhere;font-size:13px}.hm-task-record .badge{margin-left:auto}@media(max-width:1000px){.hm-work-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.hm-work-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hm-work-card-copy{padding:12px}.hm-task-record dl{grid-template-columns:minmax(0,1fr);gap:12px}}@media(max-width:360px){.hm-work-gallery{gap:9px}.hm-work-title{font-size:14px}.hm-work-card-copy{padding:10px}}

.svc-showcase {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  color: var(--ink);
  background: var(--panel);
  overflow-x: hidden;
}

/* Only home: preserve horizontal cropping without an automatic vertical scroll box. */
@supports (overflow-x: clip) {
  [data-shared-home] > .svc-showcase,
  #app > [data-boot-shell] > .svc-showcase {
    overflow-x: clip;
    overflow-y: visible;
  }
}


.svc-showcase *,
.svc-showcase *::before,
.svc-showcase *::after {
  box-sizing: border-box;
}

.svc-showcase-heading {
  max-width: 42rem;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.svc-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.svc-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.svc-intro {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.svc-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.825fr) minmax(0, 0.825fr);
  grid-template-rows: minmax(11rem, 1fr) minmax(11rem, 1fr);
  gap: clamp(0.65rem, 1.5vw, 1rem);
  width: 100%;
  min-width: 0;
}

.svc-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--panel);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.svc-feature-card--primary {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.svc-feature-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.svc-feature-card:focus {
  outline: none;
}

.svc-feature-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--info) 35%, transparent);
}

.svc-feature-card:hover:not(:disabled),
.svc-feature-card:focus-visible:not(:disabled) {
  border-color: var(--accent);
}

.svc-feature-art {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 9.5rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--line) 55%, var(--panel));
}

.svc-feature-card--primary .svc-feature-art {
  min-height: 16rem;
  aspect-ratio: 16 / 11;
}

.svc-feature-card:not(.svc-feature-card--primary) .svc-feature-art {
  aspect-ratio: 16 / 10;
  min-height: 8.5rem;
}

.svc-feature-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.45s ease;
}

.svc-feature-card:hover:not(:disabled) .svc-feature-art img,
.svc-feature-card:focus-visible:not(:disabled) .svc-feature-art img {
  transform: scale(1.045);
}

.svc-feature-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  max-width: calc(100% - 1.4rem);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.svc-feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
  padding: 1.15rem 1rem 2.35rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--panel) 55%, transparent) 28%,
    color-mix(in srgb, var(--panel) 94%, transparent) 72%,
    var(--panel) 100%
  );
}

.svc-feature-card--primary .svc-feature-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.15rem 2.5rem;
}

.svc-feature-heading {
  display: block;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.svc-feature-card--primary .svc-feature-heading {
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
}

.svc-feature-desc {
  display: block;
  max-width: 36ch;
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.svc-feature-arrow {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 85%, var(--accent));
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}

.svc-feature-card:hover:not(:disabled) .svc-feature-arrow,
.svc-feature-card:focus-visible:not(:disabled) .svc-feature-arrow {
  transform: translateX(3px);
  border-color: var(--accent);
  color: var(--info);
}

.svc-links {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.svc-links-label {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.svc-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-links-list a {
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.svc-links-list a:hover {
  text-decoration: underline;
}

.svc-links-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .svc-featured-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .svc-feature-card--primary {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .svc-feature-card--primary .svc-feature-art {
    min-height: 13rem;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px) {
  .svc-showcase {
    padding: 0.85rem;
  }

  .svc-featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-feature-card--primary .svc-feature-art,
  .svc-feature-card:not(.svc-feature-card--primary) .svc-feature-art {
    min-height: 10.5rem;
    aspect-ratio: 16 / 11;
  }

  .svc-feature-card--primary .svc-feature-copy {
    position: relative;
    padding: 1rem 0.9rem 2.25rem;
  }
}

@media (max-width: 320px) {
  .svc-showcase {
    padding: 0.65rem;
  }

  .svc-featured-grid {
    gap: 0.55rem;
  }

  .svc-feature-copy {
    padding: 0.85rem 0.75rem 2.1rem;
  }

  .svc-feature-desc {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-feature-card,
  .svc-feature-art img,
  .svc-feature-arrow {
    transition: none;
  }

  .svc-feature-card:hover:not(:disabled) .svc-feature-art img,
  .svc-feature-card:focus-visible:not(:disabled) .svc-feature-art img {
    transform: none;
  }

  .svc-feature-card:hover:not(:disabled) .svc-feature-arrow,
  .svc-feature-card:focus-visible:not(:disabled) .svc-feature-arrow {
    transform: none;
  }
}

/* Persistent creative shell: the server sends it before any account or framework request. */
:root{--creative-width:216px}
body.has-creative-nav:not(.backoffice){padding-left:var(--creative-width)}
body.has-creative-nav:not(.backoffice) #huimu-theme-control{left:0}
#huimu-creative-nav{position:fixed;top:var(--huimu-header-height,68px);bottom:0;left:0;width:var(--creative-width);z-index:65;background:var(--panel);border-right:1px solid var(--line);padding:14px 10px;display:flex;flex-direction:column;overflow:auto;scrollbar-width:thin}
#huimu-creative-nav nav{display:grid;gap:5px;padding-top:12px}
#huimu-creative-nav a{display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 10px;border-radius:10px;text-decoration:none;color:var(--muted);font-size:14px;white-space:nowrap}
#huimu-creative-nav a:hover,#huimu-creative-nav a[aria-current=page]{background:var(--panel-2);color:var(--ink)}
#huimu-creative-nav a:focus-visible,[data-creative-toggle]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.creative-icon{flex:none;width:24px;height:26px;display:inline-grid;place-items:center;color:var(--accent);font-size:19px}
.creative-nav-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}.creative-nav-heading>a{min-width:0;overflow:hidden}
[data-creative-toggle]{border:1px solid var(--line);border-radius:10px;background:var(--panel-2);color:var(--ink);cursor:pointer;min-width:30px;height:32px;font-size:22px;flex:none}
.creative-nav-bottom{margin-top:auto;padding-top:20px;border-top:1px solid var(--line)}
.creative-collapsed{--creative-width:72px}.creative-collapsed #huimu-creative-nav{padding-inline:6px}.creative-collapsed .creative-label{display:none}.creative-collapsed .creative-nav-heading{flex-direction:column}.creative-collapsed #huimu-creative-nav a{justify-content:center;padding-inline:8px}
.creative-drawer-toggle,.creative-drawer-shade{display:none}body.backoffice #huimu-creative-nav,body.backoffice .creative-drawer-toggle,body.backoffice .creative-drawer-shade{display:none!important}
#huimu-theme-control [data-global-brand]{flex:none;gap:7px}#huimu-theme-control .global-brand-copy{display:grid;text-align:left;line-height:1.15;gap:3px}#huimu-theme-control .global-brand-copy b{font-size:20px}#huimu-theme-control .global-brand-copy small{font-size:10px;font-weight:400;color:var(--muted);white-space:nowrap}#huimu-theme-control [data-global-brand]:hover small{color:var(--accent)}
.svc-showcase,.public-product{min-width:0}.svc-showcase{background:transparent;padding:clamp(8px,2vw,24px)}.svc-showcase-heading{max-width:52rem}.svc-feature-card{text-decoration:none}.svc-feature-art{flex:none;aspect-ratio:16/10}.svc-feature-art img{position:absolute;inset:0;height:100%;width:100%;max-width:none}.svc-feature-card--primary .svc-feature-art{height:100%;aspect-ratio:auto}.svc-feature-card--primary{min-height:440px}.svc-feature-card--primary .svc-feature-copy{padding-top:6rem}.svc-feature-copy{background:var(--panel)}.svc-feature-card--primary .svc-feature-copy{background:linear-gradient(0deg,var(--panel) 5%,color-mix(in srgb,var(--panel) 92%,transparent) 55%,transparent)}
.public-product .svc-featured-grid{margin-bottom:10px}.public-product .svc-links{display:flex;gap:20px;margin-bottom:20px}.public-product h1{font-size:clamp(26px,3vw,44px)}.public-product>section{min-width:0}.public-price-table{overflow:auto;max-width:100%}.public-price-table table{min-width:540px}
.hm-admin-task-details{margin-top:20px;max-width:100%}.hm-admin-task-details>summary{cursor:pointer;color:var(--muted);font-size:12px;list-style:none;width:fit-content}.hm-admin-task-details>summary:hover{color:var(--accent)}.hm-admin-task-details[open]>summary{margin-bottom:8px}
.hm-creation-resume{width:min(92vw,480px);max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);padding:22px}.hm-creation-resume::backdrop{background:#0009}.hm-creation-resume .row{flex-wrap:wrap}.hm-creation-resume h2{font-size:23px;margin:0}.hm-creation-resume .resume-close{margin-left:auto}
@media(max-width:1000px){:root{--creative-width:190px}.creative-collapsed{--creative-width:72px}.svc-feature-card--primary{min-height:360px}}
@media(max-width:760px){body.has-creative-nav:not(.backoffice){padding-left:0}#huimu-creative-nav{width:230px;transform:translateX(-100%);transition:transform .18s ease;z-index:105}.creative-drawer-open #huimu-creative-nav{transform:none}.creative-collapsed .creative-label{display:inline}.creative-collapsed .creative-nav-heading{flex-direction:row}.creative-collapsed #huimu-creative-nav a{justify-content:flex-start}.creative-drawer-toggle{display:block;position:fixed;left:8px;top:calc(var(--huimu-header-height,68px) + 8px);z-index:64;width:34px;background:var(--panel)}.creative-drawer-open .creative-drawer-shade{display:block;position:fixed;inset:var(--huimu-header-height,68px) 0 0;border:0;background:#0007;z-index:100}.has-creative-nav>.main,.has-creative-nav #app>.main{padding-top:48px}.svc-feature-card--primary{min-height:0}.svc-feature-card--primary .svc-feature-art{height:auto;aspect-ratio:16/10}.svc-feature-card--primary .svc-feature-copy{position:relative;padding:1rem 1rem 2.4rem;background:var(--panel)}}
@media(max-width:440px){#huimu-theme-control [data-global-brand]{gap:4px}#huimu-theme-control .global-brand-copy b{font-size:15px}#huimu-theme-control .global-brand-copy small{font-size:8px}#huimu-theme-control [data-global-brand] img{width:28px;height:28px}#huimu-theme-control .global-brand-copy{gap:1px}}
@media(prefers-reduced-motion:reduce){#huimu-creative-nav{transition:none}}

#huimu-creative-nav a[hidden]{display:none}

#huimu-creative-nav .creative-label{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.35}#huimu-creative-nav{overflow-x:hidden}
#huimu-theme-control .global-brand-copy small,#huimu-theme-control .global-brand-copy small span{letter-spacing:normal}
@media(max-width:600px){
 #service-fees .public-price-table{overflow:visible}#service-fees table{min-width:0;width:100%;display:block}#service-fees thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 #service-fees tbody{display:grid;gap:10px;width:100%}#service-fees tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;border:1px solid var(--line);border-radius:10px;padding:10px}
 #service-fees td{display:block;border:0;padding:3px 0;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left}
 #service-fees td:first-child{grid-column:1/-1;color:var(--muted);font-size:11px}#service-fees td:nth-child(2){grid-column:1;grid-row:2;font-weight:650}#service-fees td:nth-child(3){grid-column:1;grid-row:3;font-size:12px;color:var(--muted)}#service-fees td:last-child{grid-column:2;grid-row:2/4;align-self:center;font-weight:700;color:var(--accent);max-width:90px}
}

.hm-header-credits {
  --hm-credits-bg: color-mix(in srgb, var(--accent) 12%, var(--panel));
  --hm-credits-border: color-mix(in srgb, var(--accent) 28%, var(--line));
  --hm-credits-ink: var(--ink);
  --hm-credits-accent: var(--accent);

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--hm-credits-border);
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 18%, transparent),
      color-mix(in srgb, #7c5cff 10%, transparent)
    ),
    var(--hm-credits-bg);
  color: var(--hm-credits-ink);
  text-decoration: none;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: nowrap;
  box-sizing: border-box;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.hm-header-credits:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 24%, transparent),
      color-mix(in srgb, #7c5cff 16%, transparent)
    ),
    color-mix(in srgb, var(--accent) 16%, var(--panel));
}

.hm-header-credits:focus {
  outline: none;
}

.hm-header-credits:focus-visible {
  outline: 2px solid var(--hm-credits-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.hm-credit-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--hm-credits-accent);
  font-size: 0.9em;
  line-height: 1;
}

.hm-credit-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hm-credit-unit {
  opacity: 0.72;
  font-weight: 500;
}

.hm-credit-topup {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
  padding-left: 0.45rem;
  border-left: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  color: var(--hm-credits-accent);
  font-weight: 600;
}

@media (max-width: 440px) {
  .hm-header-credits {
    gap: 0.28rem;
    min-width: 36px;
    min-height: 36px;
    padding: 0.28rem 0.55rem;
  }

  .hm-credit-unit {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hm-credit-topup {
    margin-left: 0.05rem;
    padding-left: 0.35rem;
    font-size: 0.95em;
  }
}



@media (prefers-reduced-motion: reduce) {
  .hm-header-credits {
    transition: none;
  }
}

.hm-header-credit-host{display:inline-flex;flex:none}.hm-header-credit-host[hidden]{display:none}
.creative-drawer-hint{display:none}
@media(max-width:760px){
 .creative-drawer-hint{display:inline-flex;align-items:center;gap:6px;position:fixed;left:49px;top:calc(var(--huimu-header-height,68px) + 13px);z-index:63;color:var(--muted);font-size:12px;line-height:22px;pointer-events:none}
 .creative-drawer-hint[hidden],body.backoffice .creative-drawer-hint{display:none}
 .creative-drawer-hint b{color:var(--accent);animation:hm-menu-hint 1s ease-in-out 3}
}
@keyframes hm-menu-hint{50%{transform:translateX(-4px)}}
@media(prefers-reduced-motion:reduce){.creative-drawer-hint b{animation:none}}

/* The mobile menu, workbench home title and help each reserve their own space. */
@media(max-width:760px){
 body:has(#huimu-creative-nav) .workbench-header .guided-top,body:has(#huimu-creative-nav):not(.backoffice) .product-journey-header{min-height:48px;padding:6px 12px 6px 52px;gap:8px;flex-wrap:nowrap}
 body:has(#huimu-creative-nav) .workbench-header .guided-top .brand{display:flex;flex:1 1 0;min-width:0;max-width:100%;gap:6px}
 body:has(#huimu-creative-nav) .workbench-header .guided-top .brand-logo{width:28px;height:28px}
 body:has(#huimu-creative-nav) .workbench-header .guided-top .brand-copy{min-width:0}
 body:has(#huimu-creative-nav) .workbench-header .guided-top .brand-name{font-size:20px;line-height:1.25;letter-spacing:1px;overflow-wrap:anywhere}
 body:has(#huimu-creative-nav) .workbench-header .guided-top .brand-tagline{display:none}
 body:has(#huimu-creative-nav) .workbench-header .guided-top>.spacer{display:none}
 body:has(#huimu-creative-nav) .workbench-header .guided-top>[data-help-link]{flex:0 1 auto;min-width:0;max-width:50%;margin-left:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
 body:has(#huimu-creative-nav):has(.workbench-header .guided-top) .creative-drawer-hint{display:none}
}


@media(max-width:440px){
 #huimu-theme-control .hm-header-credits{font-size:12px;padding-inline:.4rem;gap:.22rem}
 #huimu-theme-control [data-global-support]{max-width:38px}
}
@media(max-width:360px){
 #huimu-theme-control .global-brand-copy{display:none}
 #huimu-theme-control [data-global-support]{font-size:0;min-width:24px;max-width:24px;text-decoration:none}
 #huimu-theme-control [data-global-support]::before{content:"☏";font-size:21px}
 #huimu-theme-control .hm-header-credits{font-size:11px;padding-inline:.3rem;gap:.18rem}
 #huimu-theme-control .hm-credit-topup{padding-left:.25rem}
 #huimu-theme-control #huimu-language-choice{width:49px}
}

@media(max-width:440px){
 #huimu-theme-control{gap:2px}
 #huimu-theme-control .global-brand-copy small{display:none}
 #huimu-theme-control [data-global-support]{font-size:0;min-width:24px;max-width:24px;text-decoration:none}
 #huimu-theme-control [data-global-support]::before{content:"☏";font-size:21px}
 #huimu-theme-control #huimu-language-choice{width:49px}
}
@media(max-width:360px){
 #huimu-theme-control .hm-credit-topup{font-size:0}
 #huimu-theme-control .hm-credit-topup::after{content:"+";font-size:14px}
}

/* Mobile plans retain all three actual configured fields. */
#prices .public-price-table {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  color: var(--ink);
  background: var(--panel);
}

#prices .public-price-table table.stats {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  border-collapse: collapse;
  table-layout: auto;
  overflow: visible !important;
  background: var(--panel);
  color: var(--ink);
}

#prices .public-price-table table.stats th,
#prices .public-price-table table.stats td {
  min-width: 0;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  color: var(--ink);
  background: var(--panel);
}

#prices .public-price-table table.stats th {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--accent);
}

#prices .public-price-table table.stats .package-cell-label {
  color: var(--muted);
}

#prices .public-price-table table.stats .package-cell-value {
  color: var(--ink);
}

#prices .public-price-table [hidden] {
  display: none !important;
}

@media (min-width: 761px) {
  #prices .public-price-table table.stats .package-cell-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #prices .public-price-table table.stats .package-cell-value {
    display: inline;
  }
}

@media (max-width: 760px) {
  #prices .public-price-table {
    overflow: visible !important;
  }

  #prices .public-price-table table.stats,
  #prices .public-price-table table.stats tbody {
    display: block;
    width: 100%;
    min-width: 0 !important;
    overflow: visible !important;
  }

  #prices .public-price-table table.stats thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #prices .public-price-table table.stats tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    margin: 0 0 0.85rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-sizing: border-box;
  }

  #prices .public-price-table table.stats tbody td {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.35rem 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
  }

  #prices .public-price-table table.stats tbody td:last-child {
    border-bottom: 0;
  }

  #prices .public-price-table table.stats .package-cell-label {
    flex: 0 1 auto;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--muted);
  }

  #prices .public-price-table table.stats .package-cell-value {
    flex: 1 1 auto;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: var(--ink);
  }
}

/* Discoverable language control in the same compact header slot. */
#huimu-theme-control .global-language{display:flex;flex-direction:column;align-items:stretch;gap:0;position:relative}
#huimu-theme-control .global-language-label{display:flex;align-items:center;justify-content:center;gap:2px;font-size:9px;line-height:12px;letter-spacing:0.02em;color:var(--muted);white-space:nowrap}
#huimu-theme-control .global-language-label svg{flex:none}
#huimu-theme-control .global-language select{padding-block:5px}

/* Public React column controls stay reachable above the existing mobile package cards. */
[data-public-contact-card] .hwmc-contact-card__qr-fallback + p { display: none; }
@media (max-width: 760px) {
  [data-public-site-react] #prices .public-price-table table.stats thead {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 0.6rem;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  [data-public-site-react] #prices .public-price-table table.stats thead tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  [data-public-site-react] #prices .public-price-table table.stats thead th {
    display: block;
    flex: 1 1 85px;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  [data-public-site-react] #prices .public-price-table table.stats thead button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Cost dashboard: constrain grid tracks; scroll each wide table locally. */
#costs-body .stack, .cost-modal .stack { min-width:0; grid-template-columns:minmax(0,1fr); }
#costs-body .grid-2 > *, #costs-body .card, #costs-body .row, .cost-modal .card { min-width:0; max-width:100%; box-sizing:border-box; }
#costs-body table.stats, .cost-modal table.stats { min-width:0; max-width:100%; overflow-x:auto; }
#costs-body .panel-title, #costs-body .cost-controls .btn { overflow-wrap:anywhere; white-space:normal; }

/* Keep long translated benchmark labels within their own panel. */
#bench-root,#bench-root .card { min-width:0; max-width:100%; }
#bench-root .row > *,#bench-root input,#bench-root select { min-width:0; max-width:100%; }
#bench-root .btn { white-space:normal; overflow-wrap:anywhere; }
#bench-root table.stats { display:block; max-width:100%; overflow-x:auto; }
@media(max-width:600px) { #bench-root [data-cand] { grid-template-columns:minmax(0,1fr)!important; } }

/* Translated account filters retain their width inside the wallet panel. */
#wallets-root,#wallets-root .card { min-width:0; max-width:100%; }
#wallets-root .list-tools > * { min-width:0; max-width:100%; }
#wallets-root .btn { white-space:normal; overflow-wrap:anywhere; }

#wallets-root .stack,#bench-root .stack { grid-template-columns:minmax(0,1fr); }
#wallets-root :where(.card,.row,summary,fieldset,label,input,textarea,select,button),#bench-root :where(.card,.row,summary,fieldset,label,input,textarea,select,button) { min-width:0; max-width:100%; }

/* Account and pricing forms keep translated labels and controls within their panel. */
:is(#accounts-root,#pricing-root),:is(#accounts-root,#pricing-root) :where(.card,.stack,.grid-2,.row,fieldset,label,summary) { min-width:0; max-width:100%; }
:is(#accounts-root,#pricing-root) .stack { grid-template-columns:minmax(0,1fr); }
:is(#accounts-root,#pricing-root) .grid-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
:is(#accounts-root,#pricing-root) :where(input,textarea,select,button),#accounts-root .list-tools > * { min-width:0; max-width:100%; }
:is(#accounts-root,#pricing-root) :where(summary,.btn,label,code) { overflow-wrap:anywhere; }
:is(#accounts-root,#pricing-root) .btn { white-space:normal; }
#pricing-root table.stats { display:block; max-width:100%; overflow-x:auto; }
@media(max-width:700px) { :is(#accounts-root,#pricing-root) .grid-2 { grid-template-columns:minmax(0,1fr); } }

/* Keep the account name, role and activity details legible instead of narrow flex columns. */
#accounts-root .account-row > summary { flex-wrap:wrap; align-items:center; }
#accounts-root .account-row > summary > b { flex:1 1 140px; min-width:0; }
#accounts-root .account-row > summary > .badge { flex:0 0 auto; }
#accounts-root .account-row > summary > .muted { flex-basis:100%; }

/* Shared style-module controls retain readable bounds with long locale labels. */
#block-admin, #block-admin .stack, #block-admin .field { min-width:0; grid-template-columns:minmax(0,1fr); }
#block-admin input:not([type=checkbox]), #block-admin textarea, #block-admin select { min-width:0; max-width:100%; }

#block-admin .btn { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }

/* Revisitable audiobook journey: scoped; existing manga/time-line shells unchanged. */
.audio-journey [hidden]{display:none!important}.audio-journey{min-width:0;max-width:1100px;margin-inline:auto}.audio-journey h1:focus{outline:none}.audio-journey .row{flex-wrap:wrap;min-width:0}.audio-journey-header{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.audio-journey-title h1{font-size:clamp(23px,3vw,30px);margin:4px 0 15px}.audio-journey .field{min-width:0}.audio-journey input,.audio-journey select,.audio-journey textarea{max-width:100%;min-width:0}.audio-journey button{min-height:44px;max-width:100%;white-space:normal}.huimu-revisit{min-width:0}.huimu-revisit ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0;margin:10px 0 20px;list-style:none;gap:8px}.huimu-revisit li{min-width:0}.huimu-revisit button{display:flex;align-items:center;gap:10px;width:100%;height:100%;text-align:left;border:1px solid #d9d2e7;border-radius:11px;background:#fff;color:#352d48;padding:13px 12px;min-height:76px;cursor:pointer}.huimu-revisit button[aria-current=step]{background:#f2ecfb;border-color:#7750c4;box-shadow:0 0 0 1px #7750c4}.huimu-revisit button:focus-visible{outline:3px solid #356cc8;outline-offset:3px}.huimu-revisit button:disabled{opacity:.5;cursor:not-allowed}.huimu-revisit strong{display:block;font-size:14px}.huimu-revisit small{display:block;font-size:12px;color:#766787;margin-top:3px}.huimu-revisit__number{width:28px;height:28px;flex:none;border-radius:50%;display:grid;place-items:center;background:#eee8f7;color:#72519d}.huimu-revisit [aria-current=step] .huimu-revisit__number{background:#6c47b5;color:#fff}.audio-journey-summary{margin:0}.audio-journey-summary>div{padding:18px 0;border-bottom:1px solid #e8e2ee}.audio-journey-summary dt{font-weight:700}.audio-journey-summary dd{margin:8px 0 0;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.audio-journey-summary button{margin-left:auto}.audio-journey-actions{position:static!important}.audio-journey-actions>.row{gap:8px}.audio-journey-divider{height:1px;background:#e8e2ee;margin:18px 0}.audio-journey-overlay{position:fixed;inset:0;background:#211b39a3;z-index:11000;display:flex;align-items:center;justify-content:center;overflow:auto;padding:20px}.audio-journey-overlay>.card{width:min(500px,100%);max-height:90dvh;overflow:auto;padding:25px;background:#fff;color:#292335;border-radius:16px}.audio-journey-overlay button{min-height:44px}.audio-journey-overlay .row{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.audio-journey-production{align-items:center}.audio-journey-production .btn{max-width:100%}
@media(max-width:600px){.huimu-revisit ol{gap:5px}.huimu-revisit button{display:block;text-align:center;padding:10px 4px;min-height:100px;overflow-wrap:anywhere}.huimu-revisit__number{margin:0 auto 6px;width:24px;height:24px}.huimu-revisit strong{font-size:12px}.huimu-revisit small{font-size:10px}.audio-journey .card{padding:17px}.audio-journey-actions>.row{gap:6px}.audio-journey-actions>.row>.btn{font-size:13px;padding:8px 10px}.audio-journey-actions .spacer{display:none}.audio-journey-summary dd{align-items:flex-start}.audio-journey-overlay{padding:16px}.audio-journey-overlay>.card{padding:22px}.audio-journey-overlay h2{font-size:21px}.audio-journey-title h1{overflow-wrap:anywhere}.audio-journey-header{gap:8px}}

/* Independent revisitable product flow and nonlinear workbench controls. */
.product-journey [hidden]{display:none!important}.product-journey{min-width:0}.product-journey>.row,.product-journey .row{flex-wrap:wrap;gap:10px}.product-journey h1:focus{outline:none}.product-journey .huimu-revisit{margin-top:18px}.product-journey button{min-height:44px;max-width:100%;white-space:normal}.product-journey input,.product-journey textarea,.product-journey select{max-width:100%;min-width:0}.product-journey textarea{min-height:90px;resize:vertical}.product-draft-picker>summary{min-height:40px;cursor:pointer;font-weight:650}.product-draft-picker>.card{border:0;padding:12px 0 0;margin:0}.product-journey-actions{position:static!important;margin-top:16px}.product-journey-actions .row{display:flex;align-items:center}.product-journey [data-product-result-workspace]{margin-top:18px}.product-journey [data-product-result-workspace] fieldset{max-width:100%}.product-journey [data-product-stage="2"] button{max-width:100%}.product-journey [data-product-held-shots] label{display:flex;flex-direction:column;gap:6px}.workflow-workbench{min-width:0}.workflow-workbench .workflow-section{scroll-margin-top:calc(var(--huimu-header-height,56px) + var(--workspace-toolbar-height,110px) + 24px)}.workflow-workbench input,.workflow-workbench textarea,.workflow-workbench select,.workflow-workbench button{scroll-margin-top:calc(var(--huimu-header-height,56px) + var(--workspace-toolbar-height,110px) + 24px)}.workflow-workbench .workflow-section:focus{outline:none}.workflow-primary-bar{position:sticky;top:calc(var(--huimu-header-height,56px) + 8px);z-index:30;min-width:0;align-self:stretch;box-shadow:0 6px 14px #0002}.workflow-primary-bar>.row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.workflow-primary-bar button{min-height:44px;max-width:100%;white-space:normal}.workspace-section-navigation ul{list-style:none;padding:0;margin:12px 0 0;display:flex;flex-wrap:wrap;gap:6px}.workspace-section-navigation li{min-width:0}.workspace-section-navigation button{border:1px solid currentColor;background:transparent;color:inherit;border-radius:8px;font:inherit;font-size:13px;min-height:40px;padding:7px 12px;cursor:pointer}.workspace-section-navigation [aria-current=location]{background:#7950c326;border-color:#956ed8}.workspace-section-navigation button:focus-visible{outline:3px solid #3d79d8;outline-offset:3px}.workflow-workbench .drama-rehearsal,.workflow-workbench .drama-editing,.workflow-workbench .drama-local-production{min-width:0;max-width:100%}.workflow-workbench .drama-editing>summary{min-height:44px}.workflow-workbench .motion-preview-details>summary{min-height:44px}.workflow-workbench .motion-fields{min-width:0}
@media(max-width:600px){.product-journey .huimu-revisit strong{font-size:12px}.product-journey .huimu-revisit button{min-height:100px}.product-journey .card{padding:16px}.product-journey .product-draft-picker>.card{padding:12px 0 0}.product-journey-actions .row{gap:6px}.product-journey-actions .spacer{display:none}.product-journey-actions button{font-size:13px;padding:9px 10px}.workflow-primary-bar{padding:10px!important;top:calc(var(--huimu-header-height,52px) + 4px)}.workflow-primary-bar>.row{gap:6px}.workflow-primary-bar button{font-size:12px;padding:7px 9px}.workspace-section-navigation ul{gap:5px;margin-top:8px}.workspace-section-navigation button{font-size:12px;padding:6px 8px;min-height:40px}.workflow-workbench .workflow-section{scroll-margin-top:calc(var(--huimu-header-height,52px) + var(--workspace-toolbar-height,140px) + 16px)}}

.product-journey h1{scroll-margin-top:calc(var(--huimu-header-height,56px) + 16px)}

/* Owned demo only: instant text-SVG low-frequency placeholder, then per-image clarity. */
.svc-feature-art{--home-art-position:center}
.svc-feature-art:has(img[style*="left"]){--home-art-position:left}
.svc-feature-art:has(img[style*="right"]){--home-art-position:right}
.svc-feature-art::before{content:"";position:absolute;inset:-2px;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2012%204%22%3E%3Cfilter%20id%3D%22b%22%3E%3CfeGaussianBlur%20stdDeviation%3D%22.28%22%2F%3E%3C%2Ffilter%3E%3Cg%20filter%3D%22url%28%23b%29%22%3E%3Cpath%20fill%3D%22%237086bf%22%20d%3D%22M0%200h1v1H0z%22%2F%3E%3Cpath%20fill%3D%22%23717dad%22%20d%3D%22M1%200h1v1H1z%22%2F%3E%3Cpath%20fill%3D%22%238893bd%22%20d%3D%22M2%200h1v1H2z%22%2F%3E%3Cpath%20fill%3D%22%23bcc8e0%22%20d%3D%22M3%200h1v1H3z%22%2F%3E%3Cpath%20fill%3D%22%23897257%22%20d%3D%22M4%200h1v1H4z%22%2F%3E%3Cpath%20fill%3D%22%23c29658%22%20d%3D%22M5%200h1v1H5z%22%2F%3E%3Cpath%20fill%3D%22%23c0b7ad%22%20d%3D%22M6%200h1v1H6z%22%2F%3E%3Cpath%20fill%3D%22%2383878f%22%20d%3D%22M7%200h1v1H7z%22%2F%3E%3Cpath%20fill%3D%22%2349414f%22%20d%3D%22M8%200h1v1H8z%22%2F%3E%3Cpath%20fill%3D%22%23363e6d%22%20d%3D%22M9%200h1v1H9z%22%2F%3E%3Cpath%20fill%3D%22%23474f84%22%20d%3D%22M10%200h1v1H10z%22%2F%3E%3Cpath%20fill%3D%22%235965a0%22%20d%3D%22M11%200h1v1H11z%22%2F%3E%3Cpath%20fill%3D%22%236a77a3%22%20d%3D%22M0%201h1v1H0z%22%2F%3E%3Cpath%20fill%3D%22%23494760%22%20d%3D%22M1%201h1v1H1z%22%2F%3E%3Cpath%20fill%3D%22%237c82a3%22%20d%3D%22M2%201h1v1H2z%22%2F%3E%3Cpath%20fill%3D%22%238a8ba2%22%20d%3D%22M3%201h1v1H3z%22%2F%3E%3Cpath%20fill%3D%22%23b7a28b%22%20d%3D%22M4%201h1v1H4z%22%2F%3E%3Cpath%20fill%3D%22%23b2a27f%22%20d%3D%22M5%201h1v1H5z%22%2F%3E%3Cpath%20fill%3D%22%23a1a097%22%20d%3D%22M6%201h1v1H6z%22%2F%3E%3Cpath%20fill%3D%22%23817861%22%20d%3D%22M7%201h1v1H7z%22%2F%3E%3Cpath%20fill%3D%22%237e7480%22%20d%3D%22M8%201h1v1H8z%22%2F%3E%3Cpath%20fill%3D%22%232c252d%22%20d%3D%22M9%201h1v1H9z%22%2F%3E%3Cpath%20fill%3D%22%23474561%22%20d%3D%22M10%201h1v1H10z%22%2F%3E%3Cpath%20fill%3D%22%235f6294%22%20d%3D%22M11%201h1v1H11z%22%2F%3E%3Cpath%20fill%3D%22%235c69a0%22%20d%3D%22M0%202h1v1H0z%22%2F%3E%3Cpath%20fill%3D%22%23363f61%22%20d%3D%22M1%202h1v1H1z%22%2F%3E%3Cpath%20fill%3D%22%236b677a%22%20d%3D%22M2%202h1v1H2z%22%2F%3E%3Cpath%20fill%3D%22%23797c91%22%20d%3D%22M3%202h1v1H3z%22%2F%3E%3Cpath%20fill%3D%22%23a69074%22%20d%3D%22M4%202h1v1H4z%22%2F%3E%3Cpath%20fill%3D%22%23a68751%22%20d%3D%22M5%202h1v1H5z%22%2F%3E%3Cpath%20fill%3D%22%23c3b383%22%20d%3D%22M6%202h1v1H6z%22%2F%3E%3Cpath%20fill%3D%22%23ac9b7a%22%20d%3D%22M7%202h1v1H7z%22%2F%3E%3Cpath%20fill%3D%22%23786e80%22%20d%3D%22M8%202h1v1H8z%22%2F%3E%3Cpath%20fill%3D%22%23262434%22%20d%3D%22M9%202h1v1H9z%22%2F%3E%3Cpath%20fill%3D%22%23524551%22%20d%3D%22M10%202h1v1H10z%22%2F%3E%3Cpath%20fill%3D%22%23746171%22%20d%3D%22M11%202h1v1H11z%22%2F%3E%3Cpath%20fill%3D%22%234b547a%22%20d%3D%22M0%203h1v1H0z%22%2F%3E%3Cpath%20fill%3D%22%23423f4b%22%20d%3D%22M1%203h1v1H1z%22%2F%3E%3Cpath%20fill%3D%22%236e6570%22%20d%3D%22M2%203h1v1H2z%22%2F%3E%3Cpath%20fill%3D%22%2384899f%22%20d%3D%22M3%203h1v1H3z%22%2F%3E%3Cpath%20fill%3D%22%235d5768%22%20d%3D%22M4%203h1v1H4z%22%2F%3E%3Cpath%20fill%3D%22%237b6752%22%20d%3D%22M5%203h1v1H5z%22%2F%3E%3Cpath%20fill%3D%22%2381674d%22%20d%3D%22M6%203h1v1H6z%22%2F%3E%3Cpath%20fill%3D%22%234e3d39%22%20d%3D%22M7%203h1v1H7z%22%2F%3E%3Cpath%20fill%3D%22%235d5266%22%20d%3D%22M8%203h1v1H8z%22%2F%3E%3Cpath%20fill%3D%22%2333355b%22%20d%3D%22M9%203h1v1H9z%22%2F%3E%3Cpath%20fill%3D%22%235a5169%22%20d%3D%22M10%203h1v1H10z%22%2F%3E%3Cpath%20fill%3D%22%2375668a%22%20d%3D%22M11%203h1v1H11z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-size:cover;background-position:var(--home-art-position);pointer-events:none;opacity:1;transition:opacity .18s ease}
.svc-feature-art>img{opacity:0;transition:opacity .18s ease,transform .45s ease}
.svc-feature-art>img[data-home-art-ready="1"]{opacity:1}
.svc-feature-art:has(>img[data-home-art-ready="1"])::before{opacity:0}
.home-art-error{position:absolute;inset:auto .5rem .5rem;z-index:3;background:var(--panel);color:var(--muted);padding:.4rem .6rem;font-size:12px;pointer-events:none}
@media(prefers-reduced-motion:reduce){.svc-feature-art::before,.svc-feature-art>img{transition:none}}

/* Home's pending controls reserve the same closed-card and status-line space. */
#app [data-boot-home-controls]{padding-top:14px;padding-bottom:14px}
#app [data-boot-home-controls]>span{display:block;min-height:44px}
#app [data-shared-home]>.svc-showcase:not(:has(>p[role="status"]))>[data-home-more]{margin-top:calc(12px * 1.6 + 8px)}
#app [data-wb-home-extras]:empty{display:none}

/* Fixed categories share the first-paint and fully loaded navigation layout. */
#huimu-creative-nav .creative-nav-group{min-width:0;margin:0;padding:4px 0 8px}
#huimu-creative-nav .creative-group-title{margin:0;padding:10px 10px 5px;font-size:12px;font-weight:600;line-height:1.5;color:var(--muted);letter-spacing:.04em}
#huimu-creative-nav .creative-group-links{display:grid;gap:3px}
#huimu-creative-nav .creative-nav-group+.creative-nav-group{border-top:1px solid var(--line);padding-top:8px}
#huimu-creative-nav .creative-nav-group:not(:has(a:not([hidden]))){display:none}
.creative-collapsed #huimu-creative-nav .creative-nav-group{padding:5px 0}
@media(max-width:760px){#huimu-creative-nav .creative-group-title{display:block}#huimu-creative-nav .creative-nav-group{padding:4px 0 8px}}
