:root {
  color-scheme: light;
  --ink: #142d35;
  --muted: #647b80;
  --line: #dce6e5;
  --paper: #fff;
  --canvas: #f2f6f5;
  --teal: #0c6665;
  --teal-dark: #073e43;
  --teal-soft: #e3f0eb;
  --orange: #d86638;
  --radius: 18px;
  font: 16px/1.6 "DM Sans", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.save-photo-list { display: grid; gap: 24px; }
.copy-package-entry .section-head { margin-bottom: 8px; gap: 8px; }
.copy-package-entry .section-head > strong { font-size: 16px; }
.copy-extra-summary { display: grid; gap: 6px; margin-bottom: 6px; overflow-wrap: anywhere; }
.copy-package-choices { display: grid; gap: 10px; }
.copy-package-choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.copy-package-choice > input { flex: 0 0 22px; width: 22px; height: 22px; margin: 3px 0; accent-color: var(--teal); }
.copy-package-choice > span { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.copy-package-choice small { color: var(--muted); }
.required-project-groups { display: grid; gap: 22px; }
.required-project-group { margin: 0; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfa; }
.required-project-group legend { margin-inline: auto; margin-bottom: 6px; padding: 6px 22px; border: 1px solid #c8ddd7; border-radius: 10px; background: var(--teal-soft); color: var(--teal-dark); font-size: 20px; font-weight: 700; line-height: 1.4; text-align: center; letter-spacing: .04em; }
.required-project-group .subtle { margin: 0; }
.quick-rule-controls { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 12px; margin-bottom: 14px; }
.quick-mode-field { min-width: 0; font-size: 14px; font-weight: 600; }
.quick-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 7px; }
.quick-mode-option { position: relative; min-width: 0; cursor: pointer; }
.quick-mode-option > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.quick-mode-option > span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted); }
.quick-mode-option > input:checked + span { border-color: var(--teal); background: var(--teal); color: white; }
.quick-mode-option > input:focus-visible + span { outline: 3px solid #df9d4d; outline-offset: 2px; }
.quick-rule-summary { margin-top: 12px !important; color: var(--teal-dark); }
.save-photo-list figure { margin: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.save-photo-list figcaption { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.save-photo-list img { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto 12px; border-radius: 12px; -webkit-touch-callout: default; user-select: auto; }
.modal-foot .save-primary { min-width: 170px; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; }
button, input, select, textarea { outline-offset: 3px; }
button:focus-visible, a:focus-visible { outline: 3px solid #df9d4d; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #cbdad9; border-radius: 10px; padding: 10px 12px; color: var(--ink); background: white; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); flex: 0 0 auto; }
input[type="range"] { padding: 0; accent-color: var(--teal); }
input[type="color"] { height: 45px; padding: 4px; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); outline: 2px solid #8dd1c675; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg,transparent 50%,#617b7a 50%),linear-gradient(135deg,#617b7a 50%,transparent 50%); background-position: calc(100% - 18px) 20px,calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
label { display: block; font-size: 14px; font-weight: 600; }
label > input, label > select, label > textarea { margin-top: 7px; font-weight: 400; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(26px,3vw,36px); line-height: 1.3; letter-spacing: -.04em; margin-bottom: 9px; }
h2 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 6px; }
h3 { font-size: 17px; margin-bottom: 7px; }
p { margin-bottom: 12px; }
small { font-size: 13px; }
.icon { width: 21px; height: 21px; display: inline-block; vertical-align: -.2em; flex-shrink: 0; }
.boot { min-height: 100svh; display: grid; place-content: center; text-align: center; color: var(--muted); gap: 18px; }
.loading-ring { width: 30px; height: 30px; border: 3px solid #c9ded9; border-top-color: var(--teal); border-radius: 50%; display: inline-block; justify-self: center; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shell { display: grid; grid-template-columns: 222px minmax(0,1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; padding: 34px 18px 20px; border-right: 1px solid var(--line); background: #fbfdfc; display: flex; flex-direction: column; gap: 30px; }
.brand { display: flex; gap: 10px; align-items: center; padding-left: 12px; }
.brand-mark { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-dark); color: #e9df93; }
.brand-title { font-weight: 800; font-size: 18px; letter-spacing: -.04em; }
.brand-subtitle { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.nav { display: grid; gap: 7px; }
.nav-button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 15px; color: #61777b; border: 0; background: transparent; border-radius: 12px; font-size: 15px; }
.nav-button.active { background: var(--teal-soft); color: #0d605b; font-weight: 700; }
.nav-button:hover { background: #eaf2ef; }
.sidebar-foot { margin-top: auto; padding: 16px 13px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sidebar-foot p { margin: 0 0 8px; }
.workspace { min-width: 0; padding: 0 42px 46px; max-width: 1600px; width: 100%; margin: auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb strong { color: var(--ink); margin-left: 12px; font-weight: 500; }
.top-actions,.toolbar,.button-row,.section-head,.field-row,.split-row { display: flex; align-items: center; gap: 12px; }
.section-head { justify-content: space-between; margin-bottom: 18px; }
.section-head h2,.section-head h3 { margin: 0; }
.section-head p { margin: 3px 0 0; }
.section-head > div { min-width: 0; }
.create-entry-head { flex-wrap: wrap; }
.toolbar { flex-wrap: wrap; }
.toolbar > input { flex: 1; min-width: 170px; }
.toolbar > select { width: auto; min-width: 145px; }
.page-heading { margin-bottom: 25px; }
.page-heading p { color: var(--muted); font-size: 15px; margin: 0; }
.btn { min-height: 43px; padding: 9px 17px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #9bbcb6; background: #f7faf9; }
.btn.primary { background: var(--teal); color: white; border-color: var(--teal); }
.btn.primary:hover { background: #075653; }
.btn.soft { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.btn.danger { color: #b33c31; background: #fff5f2; border-color: #f0c9c0; }
.btn.small { font-size: 13px; min-height: 34px; padding: 5px 11px; }
.btn.icon-only { width: 42px; padding: 8px; }
.btn .icon { width: 18px; height: 18px; }
.muted { color: var(--muted); }
.subtle { font-size: 14px; color: var(--muted); }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; background: #edf2f1; color: #587473; font-weight: 500; }
.tag.teal { background: var(--teal-soft); color: #14685f; }
.tag.orange { background: #fff0db; color: #a86116; }
.tag.red { background: #fde7e3; color: #ab4135; }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.panel + .panel { margin-top: 20px; }
.hero { position: relative; overflow: hidden; min-height: 220px; border-radius: 21px; background: #0a4d56; color: white; padding: 34px 36px; margin-bottom: 28px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-photo { position: absolute; right: 0; top: 0; height: 100%; width: 65%; object-fit: cover; opacity: .8; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#073e43 15%,#073e43e8 35%,#073e430a 90%); }
.hero > :not(.hero-photo) { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(28px,3vw,38px); max-width: 470px; margin-bottom: 12px; }
.hero p { font-size: 14px; color: #cce4df; margin-bottom: 0; }
.hero.hero-water { min-height: 260px; }
.hero-water .hero-photo { width: 58%; min-width: 420px; opacity: 1; object-position: 50% 80%; }
.hero-water::after { background: linear-gradient(90deg, #073e43 25%, #073e43ed 40%, #073e4355 66%, #073e4300 90%); }
.entry-tabs { display: flex; gap: 6px; background: #e7efec; padding: 5px; border-radius: 12px; width: fit-content; }
.entry-tab { border: 0; background: transparent; padding: 8px 20px; border-radius: 8px; color: #647b7a; font-size: 14px; }
.entry-tab.active { color: var(--teal); background: white; box-shadow: 0 2px 7px #244b4110; font-weight: 700; }
.create-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: start; }
.create-main { min-width: 0; }
.series-selector { max-width: 370px; }
.package-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.package-card { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: white; cursor: pointer; transition: border-color .15s,box-shadow .15s; min-width: 0; }
.package-card:hover { border-color: #7daea4; }
.package-card.selected { border: 2px solid var(--teal); padding: 17px; box-shadow: 0 0 0 3px #e7f2ec; }
.package-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; }
.package-name { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.selection-check { width: 21px; height: 21px; border: 1px solid #cbd9d6; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; margin-top: 3px; }
.selected .selection-check { background: var(--teal); border-color: var(--teal); color: white; }
.selection-check .icon { width: 14px; height: 14px; }
.price { font-size: 29px; font-weight: 800; color: #0a5f5c; letter-spacing: -.05em; line-height: 1.4; }
.price .currency { font-size: 16px; margin-right: 2px; }
.price small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.package-summary { min-height: 45px; margin: 9px 0 13px; font-size: 13px; color: var(--muted); }
.photo-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-bottom: 12px; }
.photo-strip img,.photo-placeholder { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; background: #dce9e5; }
.photo-placeholder { display: grid; place-items: center; color: #8baba2; }
.package-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf1ef; padding-top: 10px; }
.generate-panel { position: sticky; top: 24px; }
.generate-panel .field { margin: 20px 0; }
.generate-panel h2 { font-size: 18px; }
.quantity-presets { display: flex; gap: 6px; margin-bottom: 9px; }
.quantity-presets button { flex: 1; padding: 7px; border: 1px solid var(--line); background: #fff; border-radius: 8px; color: var(--muted); }
.quantity-presets button.active { color: var(--teal); border-color: var(--teal); background: #eff7f3; font-weight: 700; }
.generate-panel .btn.primary { width: 100%; min-height: 49px; font-size: 15px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin: 8px 0; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.notice { padding: 12px 14px; border-radius: 10px; background: #f0f5f3; color: #5b7770; font-size: 13px; line-height: 1.7; }
.notice.warning { background: #fff5e8; color: #94621e; }
.notice.error { background: #fff0ed; color: #ac4839; }
.empty { padding: 45px 20px; text-align: center; color: var(--muted); border: 1px dashed #c5d7d1; border-radius: 15px; }
.empty .icon { width: 36px; height: 36px; color: #86a79e; margin-bottom: 12px; }
.empty h3 { color: var(--ink); }
.empty p { font-size: 14px; }
.empty .button-row { justify-content: center; }
.work-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 24px; }
.work-card { background: white; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; min-width: 0; }
.work-cover { aspect-ratio: 3/4; background: #dce9e6; position: relative; overflow: hidden; cursor: pointer; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-cover .tag { position: absolute; top: 10px; left: 10px; background: #fffffff0; }
.work-cover .favorite-button { position: absolute; top: 9px; right: 9px; border: 0; border-radius: 50%; width: 34px; height: 34px; background: #fffffff0; color: #687c76; }
.favorite-button.is-favorite { color: #d19322; }
.work-cover .work-open { position: absolute; bottom: 12px; left: 12px; right: 12px; opacity: 0; transform: translateY(5px); transition: .15s; }
.work-cover:hover .work-open { opacity: 1; transform: translateY(0); }
.work-meta { padding: 15px; }
.work-meta h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 5px; }
.work-meta .split-row { justify-content: space-between; font-size: 12px; color: var(--muted); }
.work-meta .button-row { margin-top: 13px; flex-wrap: wrap; }
.jobs { display: grid; gap: 10px; margin-bottom: 24px; }
.job { padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.job .split-row { justify-content: space-between; }
.job-title { font-size: 14px; font-weight: 600; }
.progress { height: 5px; background: #e7eeea; border-radius: 8px; margin-top: 12px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--teal); transition: width .4s; }
.job-error { font-size: 13px; color: #ae4f3e; margin-top: 8px; white-space: pre-wrap; }
.asset-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.asset-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.asset-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: pointer; }
.asset-info { padding: 10px; }
.asset-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.asset-tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 7px 0; }
.asset-info .btn { width: 100%; }
.asset-card.disabled { opacity: .55; }
.import-bar { display: flex; gap: 10px; padding: 18px; background: var(--teal-soft); border: 1px solid #cfe3d9; border-radius: 13px; margin-bottom: 20px; align-items: end; }
.import-bar label { flex: 1; }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; cursor: pointer; }
.checkbox-label input { margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.check-grid .checkbox-label { padding: 8px 9px; background: #f4f7f5; border: 1px solid #e6eeea; border-radius: 8px; }
.field { margin-bottom: 18px; }
.field-row { align-items: start; }
.field-row > label,.field-row > div { flex: 1; min-width: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.settings-grid .panel { margin: 0; }
.settings-grid .panel h2 { margin-bottom: 20px; }
.list-row { padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.list-row:last-child { border: 0; }
.list-row p { margin: 4px 0 0; }
.project-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.project-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.project-table td { padding: 13px 8px; border-bottom: 1px solid #edf2ef; }
.project-table td:last-child { text-align: right; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: #0e292c88; backdrop-filter: blur(5px); padding: 30px; display: flex; align-items: center; justify-content: center; }
.modal { width: min(800px,100%); max-height: calc(100svh - 60px); overflow: auto; background: #f8fbf9; border-radius: 20px; box-shadow: 0 25px 100px #02242650; }
.modal.wide { width: min(1280px,100%); }
.modal-head { padding: 21px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; position: sticky; top: 0; z-index: 3; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-body { padding: 25px; }
.modal-foot { padding: 18px 25px; border-top: 1px solid var(--line); background: white; display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; z-index: 3; flex-wrap: wrap; }
.editor-notices { margin-bottom:18px; border:1px solid var(--line); border-radius:12px; background:#f0f5f3; color:var(--muted); font-size:13px; }
.editor-notices summary { display:flex; align-items:center; gap:8px; padding:11px 13px; cursor:pointer; list-style:none; }
.editor-notices summary::-webkit-details-marker,.editor-more summary::-webkit-details-marker { display:none; }
.editor-notice-caret { margin-left:auto; }
.editor-notices[open] .editor-notice-caret { transform:rotate(180deg); }
.editor-notice-body { padding:0 14px 12px; max-height:240px; overflow:auto; line-height:1.7; }
.editor-notice-body p { margin:8px 0 0; }
.editor-package-info { color:var(--ink); font-weight:600; }
.editor-footer { width:100%; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:10px; }
.editor-footer > .btn,.editor-more > summary { width:100%; min-height:48px; margin:0; }
.editor-more { position:relative; min-width:0; }
.editor-more > summary { display:flex; justify-content:center; list-style:none; cursor:pointer; }
.editor-more-menu { position:absolute; left:0; bottom:calc(100% + 10px); min-width:190px; padding:6px; border:1px solid var(--line); border-radius:12px; background:white; box-shadow:0 10px 32px #123e3028; z-index:5; }
.editor-more-menu .btn { display:flex; width:100%; justify-content:flex-start; white-space:nowrap; min-height:46px; }
.form-error { color: #b44432; font-size: 14px; white-space: pre-wrap; margin: 12px 0; }
.form-error:empty { display: none; }
.group-editor { margin: 15px 0; background: #f0f5f2; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.group-editor .check-grid { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; }
.group-editor .check-grid .checkbox-label { background: white; }
.group-title-row { display: grid; grid-template-columns: 1fr 95px 36px; gap: 10px; align-items: end; }
.service-row { display: grid; grid-template-columns: 1fr 100px 1fr 36px; gap: 8px; margin: 10px 0; align-items: end; }
.editor-layout { display: grid; grid-template-columns: minmax(300px,.95fr) minmax(0,1.05fr); gap: 28px; align-items: start; }
.editor-preview { position: sticky; top: 92px; min-width: 0; }
.preview-stage { display: flex; justify-content: center; background: #e3ebe7; border-radius: 12px; padding: 12px; }
.preview-stage img { width: auto; max-width: 100%; height: min(58svh,620px); object-fit: contain; border-radius: 6px; box-shadow: 0 4px 14px #123e3020; }
.image-thumbs { display: flex; gap: 8px; overflow: auto; padding: 12px 0; }
.image-thumb { width: 62px; padding: 0; background: white; border: 2px solid transparent; border-radius: 7px; flex-shrink: 0; overflow: hidden; position: relative; }
.image-thumb.active { border-color: var(--teal); }
.image-thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.image-thumb input { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; }
.image-thumb .thumb-label { display: block; font-size: 11px; padding: 2px; }
.editor-text { min-width: 0; }
.copy-section { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.copy-section .section-head { margin-bottom: 10px; gap: 5px; }
.copy-section .section-head strong { font-size: 14px; }
.copy-section textarea { border: 0; padding: 0; border-radius: 0; min-height: 110px; background: transparent; }
.copy-section textarea:focus { outline: 0; }
.copy-section input { border: 0; border-radius: 0; padding: 0; background: transparent; font-weight: 700; }
.copy-section input:focus { outline: 0; }
.lock-button { border: 0; background: transparent; padding: 4px; color: #9bada7; }
.lock-button.locked { color: var(--teal); }
.image-tools { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.image-tools .btn { flex: 1; }
.image-config { padding: 15px; background: white; border-radius: 12px; border: 1px solid var(--line); margin-top: 12px; }
.image-config .field { margin-bottom: 10px; }
.image-config .field-row { gap: 10px; }
.selected-label { font-size: 13px; color: var(--muted); margin: 6px 0; }
.validation-list { margin: 8px 0; padding-left: 21px; }
.candidate-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.candidate { border: 2px solid transparent; background: white; border-radius: 10px; padding: 0; overflow: hidden; }
.candidate:hover { border-color: var(--teal); }
.candidate img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.candidate span { display: block; padding: 6px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-shell { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; background: white; }
.auth-scene { background: linear-gradient(155deg,#0c7775,#073c47); color: white; padding: 54px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-scene::after { content: ""; width: 70vw; height: 70vw; border: 1px solid #b3ded030; border-radius: 50%; position: absolute; right: -37vw; bottom: -40vw; box-shadow: 0 0 0 70px #b3ded008,0 0 0 140px #b3ded008; }
.auth-scene .brand { padding: 0; }
.auth-scene .brand-mark { background: #ffffff18; }
.auth-scene .brand-subtitle { color: #adccc5; }
.auth-scene h1 { font-size: clamp(38px,5vw,62px); max-width: 470px; line-height: 1.3; font-weight: 700; }
.auth-scene p { color: #bdd8d0; font-size: 15px; }
.auth-area { display: grid; place-items: center; padding: 40px; }
.auth-card { width: min(390px,100%); }
.auth-card h2 { font-size: 27px; margin-bottom: 10px; }
.auth-card > p { color: var(--muted); margin-bottom: 30px; font-size: 14px; }
.auth-card .btn.primary { width: 100%; margin-top: 10px; min-height: 48px; }
.password-input { position: relative; }
.password-input input { padding-right: 48px; }
.password-input button { position: absolute; right: 7px; top: 6px; background: transparent; border: 0; color: var(--muted); padding: 7px; }
.auth-card .field label { margin-bottom: 7px; }
#toast-root { position: fixed; z-index: 120; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(480px,calc(100% - 32px)); pointer-events: none; display: grid; gap: 8px; }
.toast { padding: 13px 18px; background: #153d3beF; color: white; box-shadow: 0 6px 25px #092f3029; border-radius: 12px; font-size: 14px; animation: appear .2s ease; white-space: pre-wrap; }
.toast.error { background: #a24635; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-brand { display: none; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 24px; }
.tab-row { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow: auto; }
.text-tab { background: transparent; border: 0; padding: 11px 2px; border-bottom: 2px solid transparent; font-size: 14px; white-space: nowrap; color: var(--muted); }
.text-tab.active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width:1550px) { .work-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } .package-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:1200px) { .workspace { padding-left: 26px; padding-right: 26px; } .shell { grid-template-columns: 190px minmax(0,1fr); } .sidebar { padding-left: 10px; padding-right: 10px; } .create-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 18px; } .package-grid { grid-template-columns: 1fr; } .asset-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } .work-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:900px) { .shell { grid-template-columns: 78px minmax(0,1fr); } .sidebar { padding: 28px 10px 20px; } .sidebar .brand { padding: 0; justify-content: center; } .sidebar .brand-text,.sidebar .nav-label,.sidebar-foot { display: none; } .nav-button { padding: 14px; justify-content: center; } .create-layout { grid-template-columns: minmax(0,1fr) 250px; } .workspace { padding-left: 22px; padding-right: 22px; } .hero { padding: 30px; min-height: 200px; } .settings-grid { grid-template-columns: 1fr; } .editor-layout { gap: 18px; grid-template-columns: minmax(250px,.9fr) minmax(0,1.1fr); } .modal-backdrop { padding: 15px; } .modal { max-height: calc(100svh - 30px); } .modal-body { padding: 20px; } .asset-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:680px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .shell { display: block; }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); z-index: 20; border: 0; border-top: 1px solid var(--line); background: #fffffff5; backdrop-filter: blur(12px); }
  .sidebar > .brand { display: none; }
  .nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; }
  .nav-button { flex-direction: column; padding: 6px 2px; gap: 2px; border-radius: 8px; font-size: 11px; }
  .sidebar .nav-label { display: block; }
  .nav-button .icon { width: 21px; height: 21px; }
  .workspace { padding: 0 17px 26px; }
  .topbar { height: 66px; margin-bottom: 20px; }
  .breadcrumb { display: none; }
  .mobile-brand { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 17px; }
  .mobile-brand .brand-mark { width: 29px; height: 29px; border-radius: 9px; }
  .top-actions .btn { font-size: 12px; padding: 7px 9px; min-height: 35px; }
  .hero { min-height: 180px; padding: 24px; margin-bottom: 22px; border-radius: 16px; }
  .hero h1 { font-size: 28px; max-width: 260px; }
  .hero-photo { width: 85%; }
  .hero::after { background: linear-gradient(90deg,#073e43 5%,#073e43d9 45%,#073e4320); }
  .hero p { max-width: 225px; font-size: 13px; }
  .hero.hero-water { min-height: 300px; justify-content: flex-start; }
  .hero-water .hero-photo { top: auto; bottom: 0; width: 100%; min-width: 290px; height: 180px; object-position: 50% 50%; }
  .hero-water::after { background: linear-gradient(180deg, #073e43 0%, #073e43 32%, #073e43cc 42%, #073e4300 70%); }
  .create-layout { display: flex; flex-direction: column; gap: 20px; }
  .create-main,.generate-panel { width: 100%; }
  .generate-panel { position: static; }
  .package-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .package-card { padding: 13px; }
  .package-card.selected { padding: 12px; }
  .package-name { font-size: 14px; }
  .price { font-size: 25px; }
  .price small { font-size: 11px; }
  .photo-strip img,.photo-placeholder { height: 58px; }
  .package-summary { font-size: 12px; min-height: 54px; }
  .package-foot { flex-wrap: wrap; }
  .package-foot .tag { font-size: 11px; }
  .package-foot .btn { padding: 3px 5px; min-height: 30px; }
  .section-head { gap: 10px; }
  .section-head h2 { font-size: 19px; }
  .panel { padding: 18px; border-radius: 14px; }
  .work-grid { gap: 11px; margin-top: 17px; }
  .work-meta { padding: 11px; }
  .work-meta h3 { font-size: 14px; }
  .work-meta .split-row { flex-wrap: wrap; gap: 3px; font-size: 11px; }
  .work-meta .button-row { gap: 3px; }
  .work-meta .btn { font-size: 11px; padding: 3px 6px; }
  .work-cover .work-open { display: none; }
  .toolbar { gap: 8px; }
  .toolbar > input { width: 100%; flex-basis: 100%; }
  .toolbar > select { min-width: 145px; flex: 1 1 calc(50% - 4px); width: calc(50% - 4px); }
  .toolbar > #library-date { min-width: 145px !important; flex: 1 1 calc(50% - 4px) !important; width: calc(50% - 4px); }
  .toolbar .btn { font-size: 12px; padding: 8px; }
  .asset-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .asset-info { padding: 7px; }
  .asset-name { font-size: 11px; }
  .asset-tags .tag { font-size: 10px; padding: 2px 4px; }
  .asset-info .btn { font-size: 11px; min-height: 29px; padding: 3px; }
  .import-bar { align-items: stretch; flex-direction: column; padding: 14px; }
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal,.modal.wide { width: 100%; max-height: 100svh; border-radius: 0; }
  .modal-head { padding: 14px 17px; }
  .modal-head h2 { font-size: 18px; }
  .modal-body { padding: 17px; }
  .modal-foot { padding: 12px 17px calc(12px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; min-width: 80px; }
  .editor-layout { display: block; }
  .editor-preview { position: static; margin-bottom: 24px; }
  .preview-stage img { height: min(53svh,570px); }
  .editor-text .button-row { flex-wrap: wrap; }
  .check-grid,.group-editor .check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .check-grid .checkbox-label { font-size: 12px; }
  .service-row { grid-template-columns: 1fr 90px 34px; }
  .service-row .service-condition { grid-column: 1/3; grid-row: 2; }
  .service-row .btn { grid-column: 3; grid-row: 1; }
  .candidate-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .field-row { gap: 10px; }
  .auth-shell { display: block; min-height: calc(100svh - 72px); }
  .auth-scene { padding: 24px; min-height: 180px; }
  .auth-scene h1 { font-size: 27px; margin: 24px 0 5px; }
  .auth-scene p { display: none; }
  .auth-scene small { display: none; }
  .auth-area { padding: 35px 25px; }
  .project-table .description-column { display: none; }
  #toast-root { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration: .01ms!important; transition-duration: .01ms!important; } }

.work-meta .work-mobile-entry { width:100%; min-height:42px; margin-top:5px; padding:9px 10px; font-size:13px; justify-content:center; }

/* Keep library actions compact and aligned on two-column phone cards. */
.work-meta .work-card-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin-top:16px; padding-top:12px; border-top:1px solid #edf2f1; }
.work-card-actions .btn { min-width:0; min-height:38px; margin:0; padding:8px 9px; font-size:12px; border-radius:10px; justify-content:center; white-space:nowrap; }
.work-card-actions .work-mobile-entry { grid-column:1/-1; width:100%; min-height:40px; margin:0; font-size:13px; }
.work-card-actions .work-save-entry { background:#f0f7f6; border-color:#dceae7; color:#0d6668; }
.work-card-actions .work-save-entry svg { width:15px; height:15px; }
.work-card-actions .work-more-entry { padding-inline:10px; color:#617b7e; background:transparent; }
.work-meta > .button-row { gap:5px; }
.work-meta > .button-row .tag { font-size:10px; padding:4px 6px; }
.work-action-menu { display:grid; gap:10px; }
.work-action-menu .btn { justify-content:flex-start; min-height:48px; padding:12px 16px; border-radius:12px; }

/* Compact creation page, with a single-line studio name and shorter photo banner. */
.mobile-brand,.brand-title { white-space:nowrap; }
.create-entry-head { flex-wrap:wrap; }
.hero,.hero.hero-water { min-height:190px; padding:28px; align-items:center; text-align:center; }
.hero h1,.hero p { max-width:none; width:100%; text-align:center; }
.hero::after,.hero-water::after { background:linear-gradient(90deg,#073e43ed,#073e4380); }
.create-place-panel { display:flex; align-items:center; gap:18px; padding:20px 24px; }
.create-place-title { font-size:17px; font-weight:700; flex-shrink:0; }
.create-place-panel .series-selector { flex:1; min-width:0; max-width:420px; }
@media(max-width:600px) {
  .topbar { gap:8px; }
  .mobile-brand { font-size:17px; gap:7px; flex-shrink:0; }
  .mobile-brand .brand-mark { width:30px; height:30px; flex-shrink:0; }
  .top-actions { gap:4px; margin-left:auto; }
  .top-actions .btn { padding:7px; font-size:12px; white-space:nowrap; }
  .hero,.hero.hero-water { min-height:218px; padding:18px 16px 130px; margin-bottom:18px; justify-content:flex-start; }
  .hero h1 { font-size:24px; margin-bottom:6px; line-height:1.35; }
  .hero p { font-size:12px; line-height:1.6; }
  .hero .hero-photo,.hero-water .hero-photo { top:auto; bottom:0; width:100%; min-width:0; height:128px; object-position:50% 50%; }
  .hero::after,.hero-water::after { background:linear-gradient(180deg,#073e43 0%,#073e43 35%,#073e4370 55%,#073e4300 75%); }
  .create-place-panel { padding:16px; display:block; }
  .create-place-title { display:block; margin-bottom:10px; }
  .create-place-panel .series-selector { width:100%; max-width:none; }
  .create-main > .panel > .section-head { gap:8px; }
  .create-main > .panel > .section-head .btn { flex-shrink:0; padding:8px; font-size:12px; }
}

.create-place-panel { flex-wrap:wrap; }
.place-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; }
.place-heading .create-place-title { margin:0; }
.place-actions { display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
.place-actions .btn { padding:7px 8px; white-space:nowrap; }
@media(max-width:600px) { .place-heading { margin-bottom:10px; } .place-heading .create-place-title { font-size:16px; } .place-actions .btn { font-size:12px; padding:7px 5px; } }

/* 作品库：优先保存，筛选和批量操作集中展示。 */
.work-card-actions .work-save-entry { grid-column:1/-1; min-height:40px; background:var(--primary,#0d6668); color:white; border-color:transparent; }
.work-card-actions .work-mobile-entry { grid-column:auto; min-height:38px; font-size:12px; background:#f0f7f6; color:#0d6668; }
.library-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:20px 0; }
.library-toolbar select { flex:1; min-width:130px; }
.library-toolbar .btn { padding:9px 10px; }
.library-grid.single-column { grid-template-columns:minmax(0,1fr); max-width:720px; margin-inline:auto; }
.library-jobs { margin:18px 0; }
.library-jobs h2 { font-size:17px; margin-bottom:10px; }
.compact-job { padding:14px; margin-bottom:10px; }
.compact-job summary { display:flex; gap:10px; justify-content:space-between; cursor:pointer; font-weight:600; }
.compact-job summary::marker { content:''; }
.compact-job p { margin:12px 0; overflow-wrap:anywhere; }
.library-bulk { display:flex; flex-wrap:wrap; gap:8px; align-items:center; background:#e3f0ec; padding:12px; border-radius:12px; margin-bottom:16px; }
.library-check { position:absolute; right:10px; top:10px; width:28px; height:28px; border:2px solid #0d6668; border-radius:50%; background:white; color:white; display:grid; place-items:center; }
.library-check.checked { background:#0d6668; }
.library-preview-image { display:block; max-width:100%; max-height:68svh; margin:auto; object-fit:contain; }
.library-preview-nav { display:flex; align-items:center; justify-content:center; gap:20px; margin-top:14px; }
@media(max-width:600px) { .library-toolbar select { flex-basis:100%; } .library-toolbar .btn { flex:1; } .work-meta .split-row { flex-wrap:wrap; gap:4px; } }

.work-card-actions .work-copy-entry, .work-card-actions .work-copy-all-entry { grid-column:1/-1; width:100%; min-height:40px; padding:8px 9px; font-size:12px; justify-content:center; background:#f0f7f6; color:#0d6668; }
.work-card-actions .work-save-entry { font-size:12px; }
.work-card-actions .work-delete-entry { min-height:38px; }

.library-jobs { margin:0 0 12px; }
.compact-job { padding:10px 12px; margin-bottom:8px; }
.compact-job summary { display:block; font-size:13px; }
.job-summary-line { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.compact-job summary .progress { display:block; height:4px; margin:8px 0 0; overflow:hidden; }
.compact-job summary .progress > span { display:block; height:100%; background:#0d7877; }

.task-entry { position:relative; padding-right:14px; min-width:70px; overflow:hidden; }
.task-unread { display:inline-block; width:6px; height:6px; border-radius:50%; background:#e68d2d; flex-shrink:0; }
.task-progress { position:absolute; height:3px; bottom:0; left:0; width:100%; background:#d8e8e4; }
.task-progress > span { display:block; height:100%; background:#0d7877; }
.task-sheet-backdrop { align-items:flex-end; padding:0; }
.task-sheet { width:min(720px,100%); max-height:72svh; border-radius:20px 20px 0 0; margin:0; }
@media(max-width:600px) { .top-actions .refresh-label { display:none; } .top-actions .task-entry { font-size:11px; } .task-sheet-backdrop { align-items:flex-end; } .task-sheet { height:auto; max-height:72svh; border-radius:20px 20px 0 0; } }

/* Phone-first shared material operations. */
.asset-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 16px;}
.asset-heading h1 {margin:0;}
.asset-heading .btn {white-space:nowrap;}
.asset-tools {display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap;}
.asset-tools .subtle {margin-left:auto;font-size:13px;}
.asset-filters {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px;}
.asset-filters select {min-width:0;width:100%;}
.asset-selection {display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px;background:var(--surface,#fff);border:1px solid #d4e3e1;border-radius:12px;margin-bottom:16px;}
.asset-selection span {flex:1;white-space:nowrap;}
.asset-photo {position:relative;display:block;width:100%;padding:0;border:0;background:#e7efed;cursor:pointer;}
.asset-photo img {display:block;width:100%;aspect-ratio:1;object-fit:cover;}
.asset-check {position:absolute;top:8px;right:8px;display:grid;place-items:center;width:28px;height:28px;border:2px solid white;background:#ffffffb8;border-radius:50%;color:#fff;font-size:18px;}
.asset-card.selected {outline:3px solid #0c7174;}
.asset-card.selected .asset-check {background:#0c7174;}
.asset-actions {display:flex;gap:8px;}
.asset-actions .btn {flex:1;min-height:40px;}
.asset-status {font-size:12px;margin:8px 0;}
#asset-upload-status {margin:16px 0;overflow-wrap:anywhere;}
#asset-upload-form input[type=file] {width:100%;min-width:0;}
@media(max-width:680px) {
 .mobile-assets.asset-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .mobile-assets .asset-info {padding:10px;}
 .mobile-assets .asset-tags .tag {font-size:12px;}
 .mobile-assets .asset-info .btn {font-size:13px;min-height:42px;}
 .asset-heading h1 {font-size:26px;}
 .asset-heading .btn {font-size:14px;padding:10px 12px;}
}

.work-card-actions .work-copy-all-entry svg { width:15px; height:15px; }

/* Two creation choices remain readable on phones. */
.create-entry-head .entry-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:420px}
.create-entry-head .entry-tab{min-width:0;white-space:nowrap;padding:12px 10px;font-size:16px}

.work-card-actions .work-xhs-entry,.work-card-actions .xhs-help{grid-column:1/-1}.work-xhs-entry{color:#a83249;background:#fff7f8;border-color:#efd8de}.xhs-help{font-size:12px;text-align:center;padding:5px 0}

.subject-progress{padding:10px 0 12px;font-size:13px}.subject-progress progress{display:block;appearance:none;width:100%;height:4px;margin-top:8px;accent-color:#0d6668}.subject-progress small{display:block;margin-top:6px;color:#986132}
