:root {
  --ink: #171815;
  --muted: #6d7068;
  --paper: #f4f2eb;
  --surface: #fffef9;
  --line: #dedbd0;
  --lime: #d9ff57;
  --lime-dark: #a5d600;
  --orange: #ff6b3d;
  --blue: #5878ff;
  --shadow: 0 16px 48px rgba(34, 35, 29, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
body.lightbox-open { overflow: hidden; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(28px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); background: rgba(244,242,235,.88); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--lime); font-weight: 900; letter-spacing: -.05em; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); margin-top: 4px; font-size: 11px; }
.top-status { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #56c948; box-shadow: 0 0 0 4px rgba(86,201,72,.14); }
.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 360px; display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 64px 4px 52px; }
.eyebrow, .step-tag { font-size: 11px; letter-spacing: .18em; font-weight: 800; color: #777b70; }
.hero h1 { font-size: clamp(42px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; margin: 16px 0 24px; }
.hero h1 em { font-style: normal; position: relative; z-index: 0; }
.hero h1 em::after { content: ""; position: absolute; height: 18px; background: var(--lime); left: -4px; right: -4px; bottom: 3px; z-index: -1; transform: rotate(-1deg); }
.hero-copy { max-width: 620px; color: var(--muted); line-height: 1.8; margin: 0; }
.flow-legend { width: 280px; background: var(--ink); color: white; padding: 24px; border-radius: 24px; display: grid; gap: 8px; box-shadow: var(--shadow); flex: 0 0 auto; }
.flow-legend span { font-size: 13px; }
.flow-legend i { height: 18px; border-left: 1px dashed #75786d; margin-left: 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.upload-panel { padding: 34px; margin-bottom: 100px; }
.panel-heading, .section-heading, .job-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.panel-heading h2, .section-heading h2, .job-header h2 { margin: 8px 0 0; font-size: 26px; letter-spacing: -.03em; }
.panel-heading p, .section-heading p, .job-header p { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 22px; }
.dropzone { min-height: 310px; border: 1.5px dashed #c5c5bb; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; position: relative; overflow: hidden; transition: .2s ease; background: #faf9f4; }
.dropzone:hover, .dropzone.dragging { border-color: var(--ink); transform: translateY(-2px); }
.dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.drop-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font-size: 28px; margin-bottom: 8px; }
.dropzone small { color: var(--muted); }
.dropzone img { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #eee; }
.dropzone.has-image img { display: block; }
.dropzone .replace { display: none; position: absolute; bottom: 14px; color: white; background: rgba(0,0,0,.68); padding: 7px 12px; border-radius: 99px; font-size: 12px; }
.dropzone.has-image .replace { display: block; }
.primary-action, .secondary-action, .ghost-button { border: 0; border-radius: 13px; cursor: pointer; text-decoration: none; transition: .2s ease; font-weight: 750; }
.primary-action { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 16px; background: var(--ink); color: white; }
.primary-action:hover { background: #30322d; transform: translateY(-1px); }
.primary-action span { color: var(--lime); font-size: 20px; }
.primary-action.compact { width: auto; min-width: 240px; padding: 0 22px; }
.secondary-action { min-height: 48px; padding: 0 20px; background: #eeece4; color: var(--ink); }
.secondary-action:hover { background: #dedbd1; }
.ghost-button { background: transparent; border: 1px solid var(--line); padding: 11px 15px; }
button:disabled { opacity: .5; cursor: wait; transform: none !important; }
.inline-error { color: #c03624; font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.job-view { padding-bottom: 100px; }
.job-header { padding: 26px 30px; align-items: center; }
.state-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 0 10px; border-radius: 99px; background: #e8e6de; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.state-badge.complete { background: var(--lime); }
.stepper { list-style: none; margin: 38px 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.stepper::before { content: ""; position: absolute; height: 1px; top: 17px; left: 12.5%; right: 12.5%; background: var(--line); }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #9a9c95; font-size: 12px; position: relative; }
.stepper b { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); z-index: 1; }
.stepper li.active, .stepper li.done { color: var(--ink); }
.stepper li.active b { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.stepper li.done b { background: var(--lime); border-color: var(--lime-dark); }
.processing-card, .error-card { min-height: 150px; padding: 30px; display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
.processing-card h3, .error-card h3 { margin: 0 0 8px; }
.processing-card p, .error-card p { margin: 0; color: var(--muted); }
.loader { display: flex; gap: 5px; align-items: center; width: 52px; }
.loader span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: bounce 1.1s infinite alternate; }
.loader span:nth-child(2) { animation-delay: .18s; background: var(--orange); }
.loader span:nth-child(3) { animation-delay: .36s; background: var(--blue); }
@keyframes bounce { to { transform: translateY(-12px); } }
.error-card { border-color: #ffc5b5; background: #fff8f4; }
.error-card .secondary-action { margin-left: auto; flex: 0 0 auto; }
.error-symbol { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: white; font-weight: 900; }
.section-heading { margin: 0 4px 24px; }
.notice { border-left: 4px solid var(--orange); background: #fff8e9; padding: 15px 18px; border-radius: 0 12px 12px 0; color: #685c43; font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.notice.audit { border-left-color: var(--blue); background: #f2f4ff; color: #414c76; }
.blueprint-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.screen-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
.screen-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.screen-number { font-size: 11px; font-weight: 850; color: var(--orange); letter-spacing: .12em; }
.density { font-size: 10px; padding: 5px 8px; border-radius: 20px; background: #efede5; color: var(--muted); }
.screen-card h3 { margin: 0 0 9px; font-size: 18px; }
.buyer-question { color: var(--muted); font-size: 13px; line-height: 1.6; min-height: 42px; }
.screen-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.screen-meta div { border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.screen-meta small { color: #95978f; display: block; margin-bottom: 5px; }
.screen-meta span { font-size: 12px; overflow-wrap: anywhere; }
.copy-preview { margin-top: 15px; background: #f5f3ec; border-radius: 12px; padding: 13px; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.risk-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.risk-list span { background: #fff0e7; color: #b8522e; padding: 5px 8px; border-radius: 7px; font-size: 10px; }
.approval-box { margin-top: 26px; padding: 28px; }
.approval-box h3 { margin: 0 0 6px; }
.approval-box p { margin: 0; color: var(--muted); font-size: 13px; }
.approval-box textarea { width: 100%; margin: 20px 0 14px; resize: vertical; border: 1px solid var(--line); background: #faf9f4; border-radius: 13px; padding: 14px; outline: none; line-height: 1.6; }
.approval-box textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217,255,87,.5); }
.approval-actions { display: flex; justify-content: flex-end; gap: 10px; }
.sample-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.asset-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.asset-card.preview { grid-column: span 3; }
.asset-card .image-wrap { background: #deddd6; max-height: 560px; overflow: auto; display: flex; align-items: flex-start; justify-content: center; }
.image-preview-button { position: relative; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: zoom-in; flex: 0 0 auto; display: block; }
.image-preview-button img { width: 100%; height: auto; object-fit: contain; display: block; }
.asset-card.preview .image-preview-button { width: min(100%, 560px); }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 99px; color: white; background: rgba(0,0,0,.68); font-size: 11px; opacity: 0; transform: translateY(4px); transition: .18s ease; pointer-events: none; }
.image-preview-button:hover .zoom-hint, .image-preview-button:focus-visible .zoom-hint { opacity: 1; transform: translateY(0); }
.image-preview-button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.asset-card figcaption { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.asset-card figcaption span { color: var(--muted); }
.image-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; padding: 20px; background: rgba(12,13,11,.94); color: white; backdrop-filter: blur(10px); }
.lightbox-close { justify-self: end; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.1); color: white; cursor: pointer; font-size: 28px; line-height: 1; }
.lightbox-close:hover, .lightbox-close:focus-visible { background: rgba(255,255,255,.2); outline: 2px solid var(--lime); }
.lightbox-stage { min-height: 0; overflow: auto; display: flex; align-items: flex-start; justify-content: center; border-radius: 14px; }
.lightbox-stage img { display: block; width: auto; max-width: min(100%, 1100px); height: auto; background: #e7e6df; }
.image-lightbox p { margin: 0; text-align: center; color: #d8d9d3; font-size: 13px; }
.completion-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.completion-heading > span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font-size: 25px; font-weight: 900; }
.completion-heading h2 { margin: 5px 0; font-size: 30px; }
.completion-heading p { margin: 0; color: var(--muted); }
.final-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.final-preview { max-height: 900px; overflow: auto; border-radius: 20px; background: #ddd; box-shadow: var(--shadow); }
.final-preview img { display: block; width: 100%; }
.delivery-card { position: sticky; top: 94px; padding: 25px; }
.delivery-card h3 { margin: 18px 0 8px; }
.delivery-card p { color: var(--muted); font-size: 13px; line-height: 1.65; margin-bottom: 22px; }
footer { text-align: center; color: #92958d; padding: 30px 20px 50px; font-size: 11px; letter-spacing: .05em; }
@media (max-width: 820px) {
  .topbar { padding: 0 20px; }
  .shell { width: min(100% - 28px, 680px); }
  .hero { min-height: auto; padding: 48px 2px 36px; flex-direction: column; align-items: stretch; gap: 30px; }
  .hero h1 { font-size: 44px; }
  .flow-legend { width: 100%; grid-template-columns: repeat(7, auto); align-items: center; padding: 18px; }
  .flow-legend i { width: 100%; height: 1px; border-left: 0; border-top: 1px dashed #75786d; margin: 0; }
  .drop-grid, .blueprint-grid { grid-template-columns: 1fr; }
  .dropzone { min-height: 240px; }
  .upload-panel { padding: 22px; }
  .sample-gallery { grid-template-columns: 1fr; }
  .asset-card.preview { grid-column: auto; }
  .final-layout { grid-template-columns: 1fr; }
  .delivery-card { position: static; }
}
@media (max-width: 560px) {
  .top-status { display: none; }
  .hero h1 { font-size: 38px; }
  .hero h1 em::after { height: 11px; }
  .flow-legend { display: none; }
  .panel-heading, .section-heading { flex-direction: column; gap: 4px; }
  .job-header { align-items: flex-start; padding: 22px; }
  .stepper { margin: 30px 0; }
  .stepper li span { font-size: 10px; }
  .approval-actions { flex-direction: column-reverse; }
  .approval-actions button, .primary-action.compact { width: 100%; }
  .processing-card, .error-card { align-items: flex-start; flex-wrap: wrap; }
  .error-card .secondary-action { margin-left: 0; width: 100%; }
  .screen-meta { grid-template-columns: 1fr; }
}
