:root {
  color-scheme: light;
  --ink: #18211f;
  --ink-soft: #3e4a46;
  --muted: #74807c;
  --muted-light: #9aa39f;
  --line: #e1e7e4;
  --line-strong: #d5ddda;
  --paper: #ffffff;
  --canvas: #f3f5f4;
  --page: #f4f6f5;
  --accent: #b4473b;
  --accent-deep: #94372e;
  --accent-pale: #fbf1ef;
  --green: #657c71;
  --shadow: 0 8px 30px rgba(24, 38, 33, .045), 0 1px 2px rgba(24, 38, 33, .025);
  font-family: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--page); font-size: 16px; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(180, 71, 59, .28); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.topbar { height: 76px; padding: 0 max(32px, calc((100vw - 1460px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(211, 219, 215, .75); background: rgba(255, 255, 255, .86); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-seal { width: 34px; height: 34px; padding: 7px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--accent); transform: rotate(-2deg); box-shadow: 0 3px 8px rgba(180, 71, 59, .16); }
.brand-seal i { display: block; border: 1px solid rgba(255, 255, 255, .74); }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 19px; font-weight: 600; letter-spacing: .11em; line-height: 1.15; }
.brand-copy small { color: #85908b; font: 500 9px/1.2 "DM Mono", monospace; letter-spacing: .12em; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.local-badge { display: inline-flex; align-items: center; gap: 8px; color: #65726c; font-size: 13px; letter-spacing: .01em; }
.local-dot, .summary-dot { width: 7px; height: 7px; border-radius: 50%; background: #639276; box-shadow: 0 0 0 3px rgba(99, 146, 118, .1); }
.topbar-divider { height: 24px; width: 1px; background: var(--line); }
.icon-button { width: 34px; height: 34px; padding: 7px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #697671; background: transparent; cursor: pointer; transition: background .18s ease, color .18s ease; }
.icon-button:hover { color: var(--ink); background: #eff2f0; }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.page { max-width: 1460px; margin: 0 auto; padding: 50px 32px 22px; }
.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
h1, h2, h3, p { margin: 0; }
h1 { color: var(--ink); font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(30px, 3.3vw, 43px); font-weight: 500; letter-spacing: .015em; line-height: 1.28; }
h1 em { color: var(--accent); font-style: normal; white-space: nowrap; }
.intro-copy { margin-top: 10px; color: #5e6e66; font-size: 16px; line-height: 1.65; }
.batch-summary { min-width: 178px; padding: 12px 15px 12px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px; border-left: 1px solid var(--line-strong); }
.summary-label { grid-column: 1; color: var(--muted-light); font-size: 12px; letter-spacing: .04em; }
.batch-summary strong { grid-column: 1; font-size: 14px; font-weight: 600; }
.summary-dot { grid-column: 2; grid-row: 1 / span 2; width: 6px; height: 6px; background: #bcc5c1; box-shadow: none; }
.batch-summary.has-files .summary-dot { background: #639276; box-shadow: 0 0 0 3px rgba(99, 146, 118, .1); }

.workflow { min-height: 58px; padding: 0 20px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #fbfcfc; }
.workflow-step { color: #626f68; font-size: 14px; font-weight: 500; white-space: nowrap; }
.workflow-step.active { color: var(--accent-deep); font-weight: 700; }
.workflow-step.complete { color: #486355; }
.workflow-connector { width: clamp(16px, 5vw, 68px); height: 1px; background: #e0e5e2; }

.upload-card { position: relative; min-height: 128px; padding: 21px 24px; display: flex; align-items: center; gap: 19px; border: 1px dashed #c8d3ce; border-radius: 0 0 8px 8px; background: #fff; transition: border .2s ease, background .2s ease, box-shadow .2s ease; }
.upload-card.dragging { border-color: var(--accent); background: #fffafa; box-shadow: inset 0 0 0 2px rgba(180, 71, 59, .06); }
.upload-symbol { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border: 1px solid #e7ece9; border-radius: 50%; color: var(--green); background: #f7f9f8; }
.upload-symbol svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.upload-copy { display: flex; flex: 1; flex-direction: column; gap: 6px; }
.upload-copy strong { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.upload-copy span { color: #89948f; font-size: 13px; }
.button { min-height: 43px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .16s ease, background .16s ease, box-shadow .16s ease, opacity .16s ease; }
.button:not(:disabled):active { transform: translateY(1px); }
.button-dark { color: #fff; background: var(--ink); box-shadow: 0 3px 8px rgba(24, 33, 31, .12); }
.button-dark:hover { background: #283532; box-shadow: 0 5px 12px rgba(24, 33, 31, .16); }
.import-status { margin: 9px 0 0; color: #59675f; font-size: 14px; }
.import-status.warning { color: var(--accent-deep); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 22px; margin-top: 29px; }
.preview-column { min-width: 0; }
.section-heading, .asset-heading { margin-bottom: 13px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-heading h2, .asset-heading h2, .settings-head h2 { margin-top: 4px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 21px; font-weight: 500; letter-spacing: .025em; }
.preview-controls { display: flex; align-items: center; gap: 12px; color: #87928c; }
.text-button { padding: 4px 0; border: 0; color: #68766f; background: transparent; font-size: 13px; cursor: pointer; }
.text-button:hover { color: var(--accent); }
.preview-position { min-width: 42px; color: #8d9893; font: 12px "DM Mono", monospace; text-align: center; }
.preview-card { min-height: 438px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); box-shadow: var(--shadow); }
.empty-preview { min-height: 438px; padding: 38px 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty-art { position: relative; width: 250px; height: 218px; margin-bottom: 23px; }
.art-backdrop { position: absolute; inset: 21px 20px 8px 28px; background: #f0f2f0; transform: rotate(-4deg); }
.art-sheet { position: absolute; top: 2px; left: 55px; width: 147px; height: 197px; overflow: hidden; background: #fdfdfb; border: 1px solid #e6e8e2; box-shadow: 0 12px 23px rgba(28, 39, 34, .11); transform: rotate(2deg); }
.art-sheet::before { position: absolute; inset: 9px; content: ""; border: 1px solid #e9ebe5; }
.art-stamp { position: absolute; z-index: 2; top: 19px; right: 18px; width: 14px; height: 14px; border: 1px solid #bd5a4d; background: rgba(180, 71, 59, .05); }
.art-stroke { position: absolute; display: block; width: 1px; background: #3c4945; opacity: .74; }
.stroke-a { top: 32px; right: 43px; height: 93px; transform: rotate(1deg); }
.stroke-b { top: 46px; right: 64px; height: 115px; transform: rotate(-2deg); }
.stroke-c { top: 36px; right: 83px; height: 84px; transform: rotate(2deg); }
.art-ink { position: absolute; display: block; height: 2px; border-radius: 50%; background: #34413d; opacity: .75; }
.ink-a { top: 63px; right: 37px; width: 41px; transform: rotate(-18deg); }
.ink-b { top: 101px; right: 55px; width: 47px; transform: rotate(9deg); }
.ink-c { top: 139px; right: 39px; width: 34px; transform: rotate(-21deg); }
.art-corner { position: absolute; width: 27px; height: 27px; border-color: #9eaaa4; border-style: solid; opacity: .7; }
.corner-one { left: 19px; top: 71px; border-width: 1px 0 0 1px; }
.corner-two { right: 14px; bottom: 25px; border-width: 0 1px 1px 0; }
.empty-text { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.empty-text strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 17px; font-weight: 500; letter-spacing: .04em; }
.empty-text span { color: #8a9590; font-size: 13px; }

.loaded-preview { padding: 0 18px 12px; }
.preview-card-head { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf0ee; }
.current-file { min-width: 0; display: flex; align-items: center; gap: 11px; }
.file-kind { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; border: 1px solid #e6eae8; border-radius: 5px; color: #78857e; background: #f7f9f8; font: 10px "DM Mono", monospace; }
.file-title-wrap { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.file-title-wrap strong { max-width: min(420px, 45vw); overflow: hidden; color: #26322e; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-title-wrap span { color: #939d98; font-size: 12px; }
.subtle-button { padding: 7px 9px; border: 0; color: #9a5550; background: transparent; font-size: 12px; cursor: pointer; }
.subtle-button:hover { color: var(--accent-deep); background: var(--accent-pale); border-radius: 4px; }
.catalog-controls { padding: 15px 0 1px; }
.catalog-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; }
.catalog-heading h3 { font-size: 16px; font-weight: 650; }
.catalog-heading p { color: #5b6861; font-size: 14px; line-height: 1.5; }
.catalog-heading p.warning { color: var(--accent-deep); }
.catalog-views { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.catalog-view-row { display: inline-flex; align-items: center; min-width: 0; gap: 3px; }
.catalog-view-row input { width: 17px; height: 17px; margin: 0 4px; accent-color: var(--green); cursor: pointer; }
.catalog-view, .catalog-action {
  min-height: 40px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper);
  color: #3e4e46;
  font-size: 14px;
  cursor: pointer;
}
.catalog-view:hover, .catalog-action:hover { border-color: #91a99b; }
.catalog-view.selected, .catalog-view[aria-pressed="true"] { border-color: #718d7c; background: #eaf0ec; color: #304c40; font-weight: 650; }
.catalog-view:disabled, .catalog-action:disabled { opacity: .5; cursor: not-allowed; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.crop-trigger { border-color: #d8b3aa; color: var(--accent-deep); }
.crop-trigger[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-pale); font-weight: 650; }
.catalog-crop-hint { padding: 8px 10px; margin-top: 10px; border-radius: 4px; background: var(--accent-pale); color: var(--accent-deep); font-size: 14px; line-height: 1.55; }
.comparison-grid { padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.compare-figure { min-width: 0; margin: 0; }
.compare-label { min-height: 31px; color: #4c5954; font-size: 14px; font-weight: 600; }
.canvas-wrap { position: relative; width: 100%; height: clamp(230px, 31vw, 350px); overflow: hidden; display: grid; place-items: center; border: 1px solid #e7ece9; border-radius: 4px; background-color: #f3f5f4; background-image: linear-gradient(45deg, #e9eeeb 25%, transparent 25%), linear-gradient(-45deg, #e9eeeb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e9eeeb 75%), linear-gradient(-45deg, transparent 75%, #e9eeeb 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.canvas-wrap canvas { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.canvas-placeholder { position: absolute; color: #5b6861; font-size: 13px; line-height: 1.3; white-space: nowrap; pointer-events: none; }
.canvas-wrap canvas:not([width="0"]) + .canvas-placeholder { display: none; }
.before-media { position: relative; line-height: 0; }
.before-media canvas { max-width: none; max-height: none; }
.before-media .canvas-placeholder { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.crop-canvas-overlay { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.crop-canvas-overlay.editing { pointer-events: auto; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; outline: 1px dashed #fff; outline-offset: -1px; }
.crop-selection { position: absolute; border: 2px solid #fff; outline: 1px solid #924438; box-shadow: 0 0 0 200vmax rgba(15, 23, 20, .26); pointer-events: none; }
.crop-canvas-overlay.editing .crop-selection { border-style: dashed; }
.preview-caption { min-height: 38px; display: flex; align-items: center; gap: 7px; color: #5b6861; font-size: 13px; line-height: 1.45; }
.crop-mark { width: 10px; height: 10px; position: relative; border: 1px solid #8ba196; }
.crop-mark::before, .crop-mark::after { position: absolute; content: ""; background: #8ba196; }
.crop-mark::before { left: 4px; top: -3px; width: 1px; height: 14px; }
.crop-mark::after { top: 4px; left: -3px; width: 14px; height: 1px; }

.asset-section { margin-top: 27px; }
.asset-heading { margin-bottom: 12px; }
.asset-heading h2 { font-size: 19px; }
.asset-heading h2 span { margin-left: 4px; color: #9ca6a1; font: 12px "DM Mono", monospace; }
.asset-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.asset-item { min-width: 0; padding: 7px; display: grid; grid-template-columns: 55px minmax(0, 1fr) 27px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; transition: border .15s ease, box-shadow .15s ease, transform .15s ease; }
.asset-item:hover { border-color: #bdc9c3; transform: translateY(-1px); }
.asset-item.active { border-color: #a9b8b0; box-shadow: 0 0 0 2px rgba(101, 124, 113, .09); }
.asset-thumb { width: 55px; height: 48px; overflow: hidden; display: grid; place-items: center; border-radius: 3px; background: #f2f4f3; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-file-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.asset-file-info strong { overflow: hidden; color: #394640; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.asset-file-info span { color: #9aa39f; font-size: 11px; }
.asset-remove { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 4px; color: #a0aaa5; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; }
.asset-remove:hover { color: var(--accent); background: #fbf1ef; }

.settings-card { position: sticky; top: 15px; padding: 20px 20px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #edf0ee; }
.settings-head h2 { font-size: 19px; }
.reset-button { margin-top: 8px; padding: 4px 0; border: 0; color: #89948e; background: transparent; font-size: 12px; cursor: pointer; }
.reset-button:hover { color: var(--accent); }
.setting-group { padding: 17px 0 16px; border-bottom: 1px solid #edf0ee; }
.setting-title { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.setting-title label, .setting-title > span:not(.setting-hint) { color: #34413b; font-size: 14px; font-weight: 600; }
.setting-hint { color: #9ba5a0; font-size: 11px; }
.mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.mode-option { min-height: 56px; padding: 7px 9px; display: grid; align-content: center; gap: 3px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink-soft); background: var(--paper); text-align: left; cursor: pointer; }
.mode-option strong { font-size: 14px; font-weight: 650; }
.mode-option small { color: #5b6861; font-size: 12px; }
.mode-option:hover { border-color: #91a99b; }
.mode-option.selected, .mode-option[aria-pressed="true"] { border-color: #718d7c; background: #eaf0ec; color: #304c40; }
.mode-option:disabled { opacity: .5; cursor: not-allowed; }
.ratio-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ratio-option { min-height: 33px; padding: 0 7px; border: 1px solid #e5eae7; border-radius: 4px; color: #68756e; background: #fff; font-size: 12px; cursor: pointer; transition: all .15s ease; }
.ratio-option:hover { border-color: #becbc4; }
.ratio-option.selected { border-color: #83968b; color: #354b40; background: #f2f6f3; box-shadow: inset 0 0 0 1px #83968b; }
.custom-ratio { margin-top: 10px; display: flex; align-items: center; gap: 7px; color: #88938d; font-size: 13px; }
.custom-ratio input, .custom-size input { width: 58px; height: 32px; padding: 0 8px; border: 1px solid #dce3df; border-radius: 4px; color: #34413b; background: #fff; font-size: 13px; }
.ratio-help { margin-left: 4px; color: #a1aaa6; font-size: 11px; }
.tone-group { padding-bottom: 15px; }
.range-row { min-height: 31px; display: grid; grid-template-columns: 72px minmax(0, 1fr) 39px; align-items: center; gap: 9px; }
.range-row label, .quality-row label { color: #6f7b75; font-size: 12px; }
input[type="range"] { width: 100%; height: 20px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, #95a99d, #dfe6e2); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, #95a99d, #dfe6e2); }
input[type="range"]::-webkit-slider-thumb { width: 13px; height: 13px; margin-top: -5px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: #62796d; box-shadow: 0 0 0 1px #62796d, 0 1px 3px rgba(0,0,0,.14); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #62796d; box-shadow: 0 0 0 1px #62796d, 0 1px 3px rgba(0,0,0,.14); }
.range-row output, .quality-row output { color: #58675f; font: 11px "DM Mono", monospace; text-align: right; }
.output-group { padding-top: 15px; padding-bottom: 14px; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; height: 37px; padding: 0 34px 0 10px; appearance: none; border: 1px solid #dfe6e2; border-radius: 4px; outline-offset: 2px; color: #56625c; background: #fff; font-size: 12px; cursor: pointer; }
.select-chevron { position: absolute; top: 14px; right: 13px; width: 7px; height: 7px; border-right: 1px solid #87928c; border-bottom: 1px solid #87928c; transform: rotate(45deg); pointer-events: none; }
.custom-size { margin-top: 9px; display: flex; align-items: center; gap: 8px; color: #9aa39f; font-size: 11px; }
.custom-size input { width: 94px; }
.format-group { padding-top: 15px; padding-bottom: 15px; }
.format-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.format-option { min-height: 49px; padding: 6px 7px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; border: 1px solid #e5eae7; border-radius: 4px; color: #65716b; background: #fff; text-align: left; cursor: pointer; transition: all .15s ease; }
.format-option span { font: 500 11px "DM Mono", monospace; }
.format-option small { color: #a0a9a5; font-size: 10px; }
.format-option:hover { border-color: #becbc4; }
.format-option.selected { border-color: #83968b; color: #354b40; background: #f2f6f3; box-shadow: inset 0 0 0 1px #83968b; }
.format-option.selected small { color: #76867d; }
.quality-row { margin-top: 11px; display: grid; grid-template-columns: 72px minmax(0, 1fr) 28px; align-items: center; gap: 9px; }
.naming-group { padding-top: 14px; padding-bottom: 15px; }
.naming-group .setting-title { margin-bottom: 8px; }
.prefix-input { height: 36px; padding: 0 9px; display: flex; align-items: center; gap: 5px; border: 1px solid #dfe6e2; border-radius: 4px; color: #a0a9a5; }
.prefix-input:focus-within { border-color: #a9b8b0; box-shadow: 0 0 0 2px rgba(101, 124, 113, .08); }
.prefix-input input { width: 100%; min-width: 0; border: 0; outline: 0; color: #506059; background: transparent; font-size: 12px; }
.prefix-input input::placeholder { color: #aeb7b2; }
.prefix-input span { font: 10px "DM Mono", monospace; }
.export-area { padding-top: 16px; }
.export-button { width: 100%; min-height: 46px; justify-content: center; color: #fff; background: var(--accent); box-shadow: 0 4px 11px rgba(180, 71, 59, .17); letter-spacing: .015em; }
.export-button:hover:not(:disabled) { background: var(--accent-deep); box-shadow: 0 6px 14px rgba(180, 71, 59, .23); }
.export-button:disabled { color: #aeb5b1; background: #e5e9e7; box-shadow: none; cursor: not-allowed; }
.download-button { width: 100%; min-height: 46px; text-decoration: none; }
.download-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mount-cleanup { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; margin-top: 9px; color: var(--ink-soft); font-size: 14px; }
.mount-cleanup label { display: inline-flex; align-items: center; gap: 6px; }
.mount-cleanup input { accent-color: var(--green); }
.mount-cleanup span { color: var(--muted); font-size: 12px; }
.export-foot { margin-top: 11px; display: flex; align-items: center; gap: 6px; color: #97a19c; font-size: 10px; }
.export-size { margin-left: auto; color: #a3ada8; }
.export-progress { margin: 0 0 12px; }
.progress-copy { margin-bottom: 7px; display: flex; justify-content: space-between; color: #6e7c74; font-size: 11px; }
.progress-track { height: 4px; overflow: hidden; border-radius: 3px; background: #e9eeeb; }
.progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--green); transition: width .2s ease; }
.toast { min-height: 0; margin-top: 0; color: #6c806f; font-size: 11px; line-height: 1.5; text-align: center; }
.toast:not(:empty) { margin-top: 8px; }

.page-footer { margin-top: 32px; padding: 16px 1px 4px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); color: #a1aaa6; font-size: 11px; letter-spacing: .02em; }

.help-dialog { position: fixed; top: 50%; left: 50%; width: min(440px, calc(100vw - 30px)); padding: 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 20px 70px rgba(19, 32, 26, .22); transform: translate(-50%, -50%); }
.help-dialog::backdrop { background: rgba(20, 30, 26, .38); backdrop-filter: blur(2px); }
.help-dialog form { position: absolute; top: 12px; right: 13px; }
.dialog-close { width: 30px; height: 30px; border: 0; border-radius: 50%; color: #75817b; background: #f3f5f4; font-size: 21px; line-height: 1; cursor: pointer; }
.help-dialog h2 { margin: 6px 0 20px; font-family: "Noto Serif SC", serif; font-size: 23px; font-weight: 500; }
.help-dialog ol { padding-left: 21px; margin: 0; }
.help-dialog li { min-height: 46px; padding-bottom: 16px; }
.help-dialog li b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 650; }
.help-dialog li span, .help-dialog p { color: #5b6861; font-size: 14px; line-height: 1.6; }
.help-dialog p { padding-top: 13px; border-top: 1px solid #edf0ee; }
.dialog-ok { width: 100%; margin-top: 18px; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 10; background: rgba(20, 30, 26, .38); backdrop-filter: blur(2px); }
.help-dialog[open] { z-index: 11; }

@media (max-width: 1100px) {
  .page { padding-right: 24px; padding-left: 24px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 324px; gap: 16px; }
  .settings-card { padding: 17px 16px 14px; }
  .asset-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .canvas-wrap { height: clamp(220px, 30vw, 310px); }
}

@media (max-width: 800px) {
  .topbar { height: 66px; padding: 0 20px; }
  .page { padding: 36px 20px 20px; }
  .intro-row { align-items: flex-start; margin-bottom: 25px; }
  h1 { font-size: clamp(29px, 6vw, 38px); }
  .batch-summary { min-width: 145px; margin-top: 13px; }
  .workflow { gap: 11px; padding: 0 14px; }
  .workflow-step { font-size: 13px; }
  .workflow-connector { flex: 1; width: auto; }
  .upload-card { min-height: 116px; gap: 13px; padding: 17px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .settings-card { position: static; }
  .preview-card, .empty-preview { min-height: 400px; }
  .canvas-wrap { height: clamp(240px, 38vw, 350px); }
  .asset-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .topbar { height: 60px; padding: 0 16px; }
  .brand-seal { width: 31px; height: 31px; padding: 6px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 8px; }
  .topbar-right { gap: 11px; }
  .local-badge { gap: 6px; font-size: 11px; }
  .topbar-divider { height: 20px; }
  .icon-button { width: 30px; height: 30px; padding: 5px; }
  .page { padding: 31px 14px 16px; }
  .intro-row { flex-direction: column; gap: 16px; margin-bottom: 22px; }
  h1 { font-size: 30px; }
  .intro-copy { margin-top: 8px; font-size: 14px; }
  .batch-summary { width: 100%; min-width: 0; margin: 0; padding: 8px 0 0; grid-template-columns: 1fr auto; border-left: 0; border-top: 1px solid var(--line); }
  .summary-label { font-size: 11px; }
  .batch-summary strong { font-size: 12px; }
  .workflow { min-height: 51px; padding: 0 10px; gap: 7px; }
  .workflow-connector { min-width: 11px; align-self: center; }
  .upload-card { min-height: 126px; padding: 15px 13px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px 11px; }
  .upload-symbol { width: 38px; height: 38px; flex-basis: 38px; grid-row: 1; }
  .upload-symbol svg { width: 20px; height: 20px; }
  .upload-copy { gap: 4px; }
  .upload-copy strong { font-size: 14px; }
  .upload-copy span { font-size: 11px; line-height: 1.5; }
  .upload-card > .button { min-height: 37px; grid-column: 2; justify-self: start; padding: 0 14px; font-size: 12px; }
  .content-grid { gap: 19px; margin-top: 23px; }
  .section-heading h2, .settings-head h2 { font-size: 19px; }
  .preview-controls { gap: 9px; }
  .text-button { font-size: 12px; }
  .preview-card, .empty-preview { min-height: 340px; }
  .empty-preview { padding: 27px 16px; }
  .empty-art { transform: scale(.83); margin: -5px 0 12px; }
  .empty-text strong { font-size: 16px; }
  .empty-text span { max-width: 260px; font-size: 12px; line-height: 1.6; }
  .loaded-preview { padding: 0 10px 9px; }
  .preview-card-head { min-height: 61px; }
  .file-kind { width: 30px; height: 30px; flex-basis: 30px; }
  .file-title-wrap strong { max-width: 51vw; font-size: 12px; }
  .file-title-wrap span { font-size: 10px; }
  .subtle-button { font-size: 11px; }
  .comparison-grid { padding-top: 12px; gap: 7px; }
  .compare-label { min-height: 27px; }
  .canvas-wrap { height: clamp(185px, 58vw, 270px); }
  .preview-caption { min-height: 34px; gap: 5px; font-size: 12px; }
  .catalog-view, .catalog-action { min-height: 44px; padding-inline: 9px; }
  .asset-section { margin-top: 21px; }
  .asset-heading h2 { font-size: 17px; }
  .asset-list { grid-template-columns: 1fr; gap: 7px; }
  .asset-item { grid-template-columns: 51px minmax(0, 1fr) 27px; }
  .asset-thumb { width: 51px; height: 43px; }
  .settings-card { padding: 17px 14px 14px; }
  .setting-group { padding: 15px 0; }
  .range-row { grid-template-columns: 72px minmax(0, 1fr) 39px; }
  .page-footer { margin-top: 25px; flex-wrap: wrap; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
