:root {
  --ink: #17211b;
  --ink-2: #2c3730;
  --muted: #768078;
  --paper: #f3f4ef;
  --panel: #ffffff;
  --line: #e3e6df;
  --line-dark: #d3d8cf;
  --lime: #c9f651;
  --lime-dark: #9fca29;
  --coral: #ff775f;
  --violet: #7b68ee;
  --blue: #3b82f6;
  --shadow: 0 10px 35px rgba(35, 49, 39, .06);
  --sidebar: 244px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 0; min-height: 720px; background: var(--paper); color: var(--ink); font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif; }
body.project-dialog-open, body.action-confirm-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [role="button"]:focus-visible { outline: 3px solid rgba(129, 171, 31, .32); outline-offset: 2px; }
button:disabled { cursor: not-allowed; transform: none !important; box-shadow: none; opacity: .48; }
.hidden { display: none !important; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: #16201a; color: white; padding: 20px 18px 15px; display: flex; flex-direction: column; z-index: 10; overflow-y: auto; scrollbar-width: thin; }
.brand { height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 9px; }
.brand strong { display: block; font-size: 19px; letter-spacing: 2px; }
.brand small { display: block; color: #8e9a90; font-size: 8px; letter-spacing: 2.6px; margin-top: 4px; }
.brand-mark { width: 36px; height: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(45deg); padding: 3px; }
.brand-mark span { background: var(--lime); border-radius: 2px; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { opacity: .55; }

.nav-list { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.nav-system { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.nav-item { position: relative; min-height: 43px; height: 43px; border: 0; background: transparent; color: #9aa59d; display: flex; align-items: center; gap: 11px; border-radius: 10px; padding: 0 12px; text-align: left; transition: .2s ease; flex-shrink: 0; }
.nav-item:hover { color: white; background: rgba(255,255,255,.045); }
.nav-item.active { background: var(--lime); color: var(--ink); font-weight: 700; box-shadow: 0 8px 22px rgba(201,246,81,.12); }
.nav-icon { width: 22px; text-align: center; font-size: 20px; line-height: 1; }
.nav-item > span:nth-child(2) { font-size: 14px; }
.nav-new { margin-left: auto; font-style: normal; font-size: 8px; letter-spacing: .5px; padding: 3px 5px; border-radius: 4px; color: var(--ink); background: var(--lime); }
.nav-item.active .nav-new { color: white; background: var(--ink); }
.nav-badge { margin-left: auto; background: var(--coral); color: white; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-size: 10px; }
.nav-label { color: #627067; font-size: 9px; letter-spacing: 2px; padding: 14px 14px 6px; text-transform: uppercase; }
.sidebar-foot { margin-top: 10px; flex-shrink: 0; }
.service-mini { padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; color: #aab3ac; font-size: 11px; }
.service-mini-head { display: flex; justify-content: space-between; align-items: center; color: white; margin-bottom: 10px; }
.service-mini-head button { border: 0; background: transparent; color: var(--lime); font-size: 10px; padding: 0; }
.service-mini > div:not(:first-child) { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.service-mini small { margin-left: auto; color: #718078; font-size: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #69766e; }
.status-dot.ok { background: var(--lime); box-shadow: 0 0 0 3px rgba(201,246,81,.1); }
.status-dot.error { background: var(--coral); }
.service-mini > div:has(.status-dot.ok), .service-mini > div:has(.status-dot.ok) small { color: var(--lime); }
.service-mini > div:has(.status-dot.error), .service-mini > div:has(.status-dot.error) small { color: var(--coral); }
.profile { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 9px 0; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, #314038, #26322b); color: var(--lime); font-weight: 800; }
.profile strong { display: block; font-size: 11px; }
.profile small { display: block; font-size: 9px; color: #758179; margin-top: 3px; }
.online-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

.main-area { margin-left: var(--sidebar); width: calc(100% - var(--sidebar)); min-height: 100vh; }
.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(243,244,239,.94); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.system-page-no-topbar .topbar { display: none; }
.topbar p, .page-intro small, .panel-heading small, .section-title small, .side-setting-card > small, .diagnostic-hero small, .modal-head small { margin: 0 0 5px; font-size: 8px; letter-spacing: 2px; color: #94a098; font-weight: 700; }
.topbar h1 { margin: 0; font-size: 22px; letter-spacing: -.5px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.network-pill { height: 36px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.7); padding: 0 13px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.network-pill i { width: 7px; height: 7px; border-radius: 50%; background: #a4ada6; }
.network-pill.ok i { background: #64b83d; box-shadow: 0 0 0 3px rgba(100,184,61,.12); }
.network-pill.error i { background: var(--coral); }
.icon-button { width: 36px; height: 36px; border-radius: 50%; background: white; border: 1px solid var(--line); font-size: 18px; }
.primary-button, .ghost-button, .launch-button { border: 0; border-radius: 9px; padding: 0 18px; height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 12px; }
.primary-button { background: var(--ink); color: white; box-shadow: 0 8px 18px rgba(23,33,27,.13); }
.primary-button:hover { background: #26332b; transform: translateY(-1px); }
.primary-button.compact { height: 37px; padding: 0 15px; }
.primary-button span { color: var(--lime); }
.ghost-button { background: white; border: 1px solid var(--line-dark); }
.ghost-button:hover { border-color: var(--ink); }

.view { display: none; padding: 30px 38px 46px; animation: viewIn .25s ease; }
.view.active { display: block; }
.studio-reserved-view { min-height: 100vh; padding: 0; }
.studio-reserved-view > * { display: block; }
#projectListPane, #projectEditorPane { width: min(1540px, calc(100% - 64px)); margin-inline: auto; }
#projectListPane { padding: 30px 0 46px; }
#projectEditorPane { padding: 18px 0 46px; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.hero-panel { min-height: 333px; border-radius: 18px; overflow: hidden; background: var(--ink); color: white; display: grid; grid-template-columns: 52% 48%; position: relative; box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(201,246,81,.035); left: -100px; bottom: -210px; border: 1px solid rgba(201,246,81,.07); }
.hero-copy { padding: 47px 52px; position: relative; z-index: 1; }
.overline { color: var(--lime); font-size: 8px; letter-spacing: 2.8px; font-weight: 800; }
.hero-copy h2 { font-size: 38px; line-height: 1.2; letter-spacing: -1.8px; margin: 14px 0 13px; }
.hero-copy p { color: #9ba79f; font-size: 12px; line-height: 1.85; max-width: 510px; margin: 0; }
.hero-actions { display: flex; gap: 10px; margin-top: 27px; }
.hero-copy .primary-button { background: var(--lime); color: var(--ink); box-shadow: none; }
.hero-copy .primary-button span { color: var(--ink); }
.hero-copy .ghost-button { background: transparent; color: white; border-color: #3e4942; }
.hero-visual { position: relative; overflow: hidden; }
.visual-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 33px 33px; transform: perspective(450px) rotateY(-7deg) scale(1.1); }
.product-stage { position: absolute; width: 270px; height: 270px; top: 33px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; }
.stage-orbit { position: absolute; border: 1px solid rgba(201,246,81,.2); border-radius: 50%; }
.orbit-a { width: 250px; height: 250px; }
.orbit-b { width: 175px; height: 175px; border-style: dashed; transform: rotate(-20deg); }
.product-box { width: 104px; height: 138px; background: linear-gradient(145deg, var(--lime), #a9dd34); color: var(--ink); transform: rotate(-8deg) skewY(2deg); box-shadow: 20px 24px 50px rgba(0,0,0,.32); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.product-box::after { content: ""; position: absolute; top: 6px; bottom: 6px; left: 6px; right: 6px; border: 1px solid rgba(23,33,27,.3); }
.product-box span { font-size: 46px; font-weight: 900; line-height: 1; }
.product-box b { font-size: 7px; letter-spacing: 2px; }
.float-tag { position: absolute; background: rgba(30,43,34,.9); border: 1px solid rgba(255,255,255,.12); padding: 9px 12px; font-size: 9px; border-radius: 7px; backdrop-filter: blur(8px); box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.float-tag i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); margin-right: 6px; }
.tag-one { left: 5px; top: 70px; }
.tag-two { right: 5px; bottom: 52px; }
.tag-two i { background: #a992ff; }
.tag-three { left: 21px; bottom: 20px; color: var(--lime); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 16px; }
.stat-card { background: white; min-height: 102px; border: 1px solid var(--line); border-radius: 13px; padding: 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 5px 15px rgba(35,49,39,.025); }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; }
.stat-icon.lime { background: #effbd0; color: #668914; }
.stat-icon.ink { background: #eef0ed; }
.stat-icon.coral { background: #fff0ed; color: var(--coral); }
.stat-icon.violet { background: #f0edff; color: var(--violet); }
.stat-card small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.stat-card strong { font-size: 22px; }
.stat-card div > span { color: var(--muted); font-size: 9px; margin-left: 4px; }
.stat-card em { margin-left: auto; align-self: flex-end; color: #a0aaa2; font-style: normal; font-size: 8px; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 5px 20px rgba(30,45,34,.025); }
.quick-panel, .model-panel { padding: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.panel-heading h3 { margin: 0; font-size: 15px; }
.panel-heading button { border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.quick-card { text-align: left; border: 1px solid var(--line); background: #fafbf8; min-height: 90px; border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 11px; transition: .2s; }
.quick-card:hover { border-color: #b8c0b7; transform: translateY(-2px); background: white; box-shadow: 0 10px 20px rgba(20,35,24,.06); }
.quick-card > b { margin-left: auto; color: #8f9991; }
.quick-card strong { display: block; font-size: 11px; margin-bottom: 5px; }
.quick-card small { display: block; color: #8b958d; font-size: 8px; }
.quick-art { width: 48px; min-width: 48px; height: 54px; border-radius: 8px; position: relative; overflow: hidden; }
.image-art { background: #dff5b3; }
.image-art span:nth-child(1) { position: absolute; width: 20px; height: 31px; border-radius: 10px 10px 4px 4px; background: #314634; left: 14px; top: 12px; }
.image-art span:nth-child(2) { position: absolute; width: 40px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.45); left: 4px; bottom: -8px; }
.image-art span:nth-child(3) { position: absolute; width: 5px; height: 5px; background: white; border-radius: 50%; right: 7px; top: 7px; }
.video-art { background: #e9e4ff; display: grid; place-items: center; color: #6a57c8; }
.video-art span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: white; font-size: 9px; }
.copy-art { background: #ffe5dc; padding: 9px; color: #884f3e; }
.copy-art span { font: 700 14px Georgia, serif; }
.copy-art i { display: block; height: 2px; background: rgba(136,79,62,.35); margin-top: 5px; width: 100%; }
.copy-art i:last-child { width: 60%; }
.model-row { display: grid; grid-template-columns: 35px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #edf0eb; }
.model-row strong { display: block; font-size: 10px; }
.model-row small { display: block; font-size: 8px; color: var(--muted); margin-top: 3px; }
.model-row em, .preset-top em { font-style: normal; font-size: 7px; padding: 4px 6px; background: #effbd0; color: #618318; border-radius: 5px; }
.model-row em.outline, .preset-top em.outline { background: white; border: 1px solid var(--line); color: var(--muted); }
.model-logo { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; }
.openai-logo { background: #e8f7ae; color: #27371b; font-size: 17px; }
.seed-logo { background: #e8e3ff; color: #604db9; }
.mini-logo { background: #ffe6de; color: #ba5e47; }

.home-recent-panel { margin-top: 16px; padding: 22px; min-height: 260px; }
.home-recent-heading { align-items: flex-end; margin-bottom: 16px; }
.home-recent-heading h3 { font-size: 15px; }
.home-recent-heading p { margin: 5px 0 0; color: var(--muted); font-size: 8px; }
.home-recent-heading > div:last-child { display: flex; align-items: center; gap: 7px; }
.home-recent-heading > div:last-child button { height: 31px; border: 1px solid var(--line); background: white; border-radius: 7px; padding: 0 10px; font-size: 8px; }
.home-recent-heading > div:last-child .recent-new-button { background: var(--ink); color: white; border-color: var(--ink); }
.home-recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.home-recent-card { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; overflow: hidden; transition: .2s; }
.home-recent-card:hover { transform: translateY(-2px); border-color: #c3cac1; background: white; box-shadow: 0 10px 22px rgba(25,38,28,.065); }
.home-recent-cover { height: 105px; position: relative; overflow: hidden; background: linear-gradient(145deg, #eef1ea, #e2e7df); cursor: pointer; }
.home-recent-cover img { width: 100%; height: 100%; object-fit: cover; }
.home-recent-cover > span { width: 100%; height: 100%; display: grid; place-items: center; color: #96a097; font-size: 30px; }
.home-recent-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(17,28,20,.25)); pointer-events: none; }
.recent-time { position: absolute; z-index: 1; top: 8px; left: 8px; color: white; background: rgba(21,32,24,.74); border-radius: 5px; padding: 4px 6px; font-size: 7px; backdrop-filter: blur(5px); }
.home-recent-body { padding: 11px; }
.home-recent-title { display: flex; align-items: center; gap: 7px; }
.home-recent-title > span { width: 24px; height: 24px; min-width: 24px; border-radius: 7px; background: #e9f9bc; display: grid; place-items: center; font-size: 10px; }
.home-recent-title h4 { margin: 0; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-recent-title small { display: block; color: var(--muted); font-size: 7px; margin-top: 3px; }
.home-recent-meta { display: flex; gap: 9px; margin: 10px 0; color: var(--muted); font-size: 7px; }
.home-recent-meta b { color: var(--ink); margin-left: 2px; }
.home-recent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.home-recent-actions button { height: 29px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: 7px; font-weight: 700; }
.home-recent-actions button:first-child { background: var(--ink); color: white; border-color: var(--ink); }
.home-recent-empty { min-height: 155px; border: 1px dashed #c9cfc6; background: #fafbf8; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.home-recent-empty > span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #e9ece6; color: #829087; font-size: 18px; }
.home-recent-empty strong { display: block; font-size: 10px; }
.home-recent-empty small { display: block; color: var(--muted); font-size: 8px; margin-top: 4px; }
.home-recent-empty button { margin-left: 18px; height: 31px; border: 0; border-radius: 7px; background: var(--lime); font-size: 8px; font-weight: 700; padding: 0 11px; }

.studio-layout { display: grid; grid-template-columns: minmax(720px, 1fr) 300px; gap: 20px; align-items: start; }
.project-overview { min-height: 104px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; padding: 16px 20px; }
.project-overview > div { min-height: 58px; padding: 7px 22px; border-right: 1px solid var(--line); }
.project-overview small { display: block; color: #99a29b; font-size: 7px; letter-spacing: 1.4px; }
.project-overview strong { display: inline-block; margin-top: 8px; font-size: 24px; }
.project-overview div > span { color: var(--muted); font-size: 8px; margin-left: 6px; }
.project-overview > button { height: 60px; border: 1px dashed #bfc7bd; border-radius: 10px; background: #fafbf8; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 9px; font-weight: 700; }
.project-overview > button:hover { border-color: #8e9d87; background: #f7fce8; }
.project-overview > button b { width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; background: var(--lime); font-size: 15px; }
.project-toolbar { height: 65px; display: flex; justify-content: space-between; align-items: flex-end; padding: 24px 2px 10px; }
.project-toolbar strong { display: block; font-size: 13px; }
.project-toolbar small, .project-toolbar > span { display: block; color: var(--muted); font-size: 8px; margin-top: 4px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.project-card { background: white; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; box-shadow: 0 5px 18px rgba(30,45,34,.03); transition: .2s; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(25,38,28,.08); border-color: #c9cec7; }
.project-cover { height: 180px; background: #e9ece6; position: relative; overflow: hidden; cursor: pointer; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-cover-empty { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, #eef1ea, #e3e8df); color: #9aa49b; font-size: 38px; }
.project-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, rgba(16,27,19,.32)); pointer-events: none; }
.project-chip { position: absolute; z-index: 1; left: 10px; top: 10px; background: rgba(20,31,23,.8); color: white; border-radius: 6px; padding: 5px 8px; font-size: 7px; backdrop-filter: blur(5px); }
.project-card-body { padding: 15px; }
.project-card-title { display: flex; justify-content: space-between; align-items: flex-start; }
.project-card-title h3 { margin: 0; font-size: 13px; max-width: 75%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-card-title span { color: var(--muted); font-size: 7px; }
.project-card-body > p { color: var(--muted); font-size: 8px; line-height: 1.5; min-height: 25px; margin: 7px 0 12px; }
.project-metrics { display: flex; gap: 8px; padding: 10px 0; border-top: 1px solid #edf0eb; }
.project-metrics span { color: var(--muted); font-size: 8px; }
.project-metrics b { color: var(--ink); margin-left: 3px; }
.project-actions { display: grid; grid-template-columns: 1fr; gap: 7px; }
.project-actions button { height: 33px; border: 1px solid var(--line); border-radius: 7px; background: #fafbf8; font-size: 8px; font-weight: 700; }
.project-actions button:hover { border-color: var(--ink); background: white; }
.project-actions button:first-child { background: var(--ink); color: white; border-color: var(--ink); }
.project-manage-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 7px; }
.project-manage-actions button { min-width: 0; height: 30px; padding: 0 4px; border: 1px solid var(--line); border-radius: 7px; background: #fafbf8; color: #5f6b62; font-size: 9px; font-weight: 650; }
.project-manage-actions button:hover { border-color: #9ba79d; background: white; color: var(--ink); }
.project-manage-actions button.danger { color: #b44b3c; }
.project-manage-actions button.danger:hover { border-color: #e2b8b1; background: #fff8f6; }
.project-manage-actions button:disabled { cursor: wait; opacity: .6; }
.project-empty { min-height: 390px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.project-empty .primary-button { color: white; height: 37px; }
.project-editor-head { min-height: 72px; display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.project-editor-head .back-button { width: 38px; height: 38px; border: 1px solid var(--line-dark); border-radius: 10px; background: white; font-size: 17px; }
.project-editor-head small { display: block; color: #929c94; font-size: 7px; letter-spacing: 1.5px; margin-bottom: 4px; }
.project-editor-head h2 { margin: 0; font-size: 20px; }
.project-editor-head p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.project-editor-actions { margin-left: auto; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.project-editor-actions .ghost-button, .project-editor-actions .primary-button { height: 37px; }

/* 商品项目工作区 */
.project-workspace-dashboard { display: grid; gap: 16px; }
.project-identity-card { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 22px; }
.project-identity-copy small, .project-module-heading small { color: #8d9990; font-size: 8px; letter-spacing: 1.5px; }
.project-identity-copy h3, .project-module-heading h3 { margin: 6px 0; font-size: 17px; }
.project-identity-copy p, .project-module-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.project-identity-fields { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 9px; align-items: end; }
.project-identity-fields label > span { display: block; margin-bottom: 6px; color: #667169; font-size: 9px; }
.project-dashboard-name-field > span { display: flex !important; gap: 4px; }
.project-identity-fields input, .project-identity-fields select { width: 100%; height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcf9; color: var(--ink); }
.project-dashboard-name-field input.invalid { border-color: #db7b6b; background: #fffafa; }
.project-inline-error { display: block; margin-top: 5px; color: #bd4f40; font-size: 8px; }
.project-identity-fields button { height: 39px; white-space: nowrap; }
.project-module-heading { display: flex; align-items: end; justify-content: space-between; padding: 7px 2px 0; }
.project-module-heading > span { padding: 6px 9px; border-radius: 7px; background: #eef2eb; color: #6f7b72; font-size: 9px; }
.project-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.project-module-card { min-height: 168px; position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; text-align: left; transition: transform .18s, box-shadow .18s, border-color .18s; }
.project-module-card:hover { transform: translateY(-2px); border-color: #b8c6b5; box-shadow: 0 12px 28px rgba(31,49,36,.08); }
.project-module-card > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: #eff3ed; color: #607066; font-size: 20px; }
.project-module-card small { color: #97a199; font-size: 7px; letter-spacing: 1.2px; }
.project-module-card h3 { margin: 6px 0; font-size: 14px; }
.project-module-card p { margin: 0 0 12px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.project-module-card em { display: inline-flex; padding: 5px 7px; border-radius: 6px; background: #f2f5f0; color: #77827a; font-size: 8px; font-style: normal; }
.project-module-card > b { position: absolute; right: 16px; bottom: 17px; color: #4e5d53; font-size: 9px; }
.project-module-card.has-content { border-color: #c7d99d; background: #fcfef6; }
.project-module-card.has-content em { background: #eaf8c8; color: #5c7a1c; }
.project-module-card.photo > span { background: #e8f5ff; color: #3e77a3; }
.project-module-card.main > span { background: #fff5d8; color: #957020; }
.project-module-card.detail > span { background: #eef0ff; color: #5e64a8; }
.project-module-card.product-video > span { background: #e7f0ff; color: #3970b7; }
.project-module-card.functional-video > span { background: #e4f8f1; color: #14765d; }
.project-module-card.buyer > span { background: #fff0e8; color: #bd5a43; }
.project-module-card.seed > span { background: #f0e9ff; color: #7158b0; }

.functional-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr) auto); align-items: center; gap: 7px; margin: 0 0 18px; padding: 14px; border: 1px solid #d6e8df; border-radius: 12px; background: linear-gradient(90deg, #f4fbf7, #fbfdf9); }
.functional-flow span { min-height: 38px; display: grid; place-items: center; padding: 7px 9px; border: 1px solid #d9e9e1; border-radius: 9px; background: #fff; color: #265d4d; font-size: 10px; font-weight: 800; text-align: center; }
.functional-flow i { color: #74a08e; font-style: normal; transform: rotate(-90deg); }
.functional-flow span:last-child { background: #e8f9cb; border-color: #cae99b; color: #52731e; }
.functional-example { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 13px 15px; border: 1px solid #cfe5dc; border-radius: 11px; background: #f7fcf9; }
.functional-example > span { flex: 0 0 auto; padding: 5px 8px; border-radius: 6px; background: #dff5eb; color: #14765d; font-size: 8px; font-weight: 900; letter-spacing: .8px; }
.functional-example strong { display: block; color: #203a31; font-size: 11px; }
.functional-example p { margin: 5px 0 0; color: #66766e; font-size: 9px; line-height: 1.65; }
.functional-guide-card { border-color: #cfe4da; }
.functional-guide-card > small { color: #1f8067; }
.functional-script-edit-form textarea { line-height: 1.6; }
.project-storage-note { min-height: 72px; display: flex; align-items: center; gap: 13px; padding: 15px 18px; }
.project-storage-note > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--lime); }
.project-storage-note strong { display: block; font-size: 11px; }
.project-storage-note p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.project-storage-note button { margin-left: auto; }
.project-context-bar { min-height: 52px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 9px 13px; border: 1px solid #dce4d8; border-radius: 11px; background: #f9fdeb; }
.project-context-bar > button:first-child { width: 34px; height: 34px; border: 1px solid #d4ddcf; border-radius: 8px; background: white; font-size: 16px; }
.project-context-bar > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--lime); color: var(--ink); }
.project-context-bar div { min-width: 0; }
.project-context-bar strong { display: block; font-size: 11px; }
.project-context-bar small { display: block; margin-top: 2px; color: #71806f; font-size: 8px; }
.project-context-bar > button:last-child { margin-left: auto; height: 33px; padding: 0 11px; border: 1px solid #d4ddcf; border-radius: 8px; background: white; color: #536157; font-size: 9px; }
.result-project-meta { display: block; margin-top: 3px; color: #879188; font-size: 8px; }
.result-info .library-delete { color: #a64f43; }
.danger-button { color: #ad4d3f; }
.danger-button:hover { border-color: var(--coral); }
.project-production-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px; margin-bottom: 14px; background: #e9ece6; border-radius: 12px; }
.project-production-tabs button { min-height: 58px; border: 0; background: transparent; border-radius: 8px; padding: 9px 14px; display: flex; align-items: center; gap: 11px; text-align: left; color: #6f7971; }
.project-production-tabs button.active { background: white; color: var(--ink); box-shadow: 0 4px 15px rgba(25,38,28,.07); }
.project-production-tabs button > span { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.6); }
.project-production-tabs button.active > span { background: var(--lime); }
.project-production-tabs strong { display: block; font-size: 10px; }
.project-production-tabs small { display: block; font-size: 7px; margin-top: 4px; color: var(--muted); }
.project-activity { min-height: 32px; margin-top: 10px; padding: 8px 10px; border-radius: 7px; background: #222e26; display: flex; align-items: center; gap: 7px; color: #829087; font-size: 8px; }
.project-activity i { width: 6px; height: 6px; border-radius: 50%; background: #69776d; }
.project-activity.running { color: #dbe4dc; }
.project-activity.running i { background: var(--lime); box-shadow: 0 0 0 3px rgba(201,246,81,.1); animation: activityPulse 1s ease infinite; }
@keyframes activityPulse { 50% { opacity: .35; } }
.studio-form { padding: 26px; }
.section-title { display: flex; align-items: center; gap: 11px; margin: 3px 0 16px; }
.section-title > span { width: 29px; height: 29px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; font-size: 8px; color: var(--muted); }
.section-title h3 { margin: 0; font-size: 14px; }
.section-title small { margin-bottom: 3px; }
.section-title > em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 9px; }
.section-title > em b { color: var(--ink); }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.type-switch button { height: 73px; background: #fafbf8; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 11px; text-align: left; }
.type-switch button.active { border: 1.5px solid var(--ink); background: white; box-shadow: 0 6px 20px rgba(25,35,28,.06); }
.type-switch .switch-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 9px; background: #eef1ec; }
.type-switch button.active .switch-icon { background: var(--lime); }
.type-switch strong { display: block; font-size: 11px; }
.type-switch small { display: block; font-size: 8px; color: var(--muted); margin-top: 5px; }
.type-switch i { font-style: normal; font-size: 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; }
.asset-title { margin-top: 4px; }
.drop-zone { width: 100%; height: 105px; border: 1px dashed #bec6bd; border-radius: 10px; background: #fafbf8; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.drop-zone:hover { background: #f7fce9; border-color: #9db850; }
.upload-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--lime); display: grid; place-items: center; margin-bottom: 8px; font-weight: 800; }
.drop-zone strong { font-size: 10px; }
.drop-zone small { color: #949e96; font-size: 8px; margin-top: 5px; }
.asset-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 25px; }
.asset-card { aspect-ratio: 1; border-radius: 8px; background: #edf0eb; overflow: hidden; position: relative; border: 1px solid var(--line); }
.asset-card img { width: 100%; height: 100%; object-fit: cover; }
.asset-card .file-placeholder { height: 100%; display: grid; place-items: center; font-size: 20px; }
.asset-card button { position: absolute; right: 4px; top: 4px; width: 19px; height: 19px; border: 0; border-radius: 50%; background: rgba(20,30,23,.8); color: white; font-size: 11px; opacity: 0; transition: .2s; }
.asset-card:hover button { opacity: 1; }
.spark-button { margin-left: auto; border: 0; background: #eefbd1; color: #587617; border-radius: 7px; height: 29px; padding: 0 10px; font-size: 9px; font-weight: 700; }
.spark-button:disabled { opacity: .55; cursor: wait; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-size: 9px; font-weight: 700; color: #59645c; }
.field > span small, .seed-output-settings label > small { margin-left: 5px; color: #98a19a; font-size: .82em; font-weight: 500; }
.field > span b { color: var(--coral); }
.field input, .field textarea, .field select, .manual-proxy input { width: 100%; border: 1px solid var(--line); background: #fafbf8; border-radius: 8px; color: var(--ink); outline: none; padding: 0 12px; font-size: 10px; transition: .2s; }
.field input, .field select { height: 39px; }
.field textarea { resize: vertical; min-height: 67px; padding-top: 10px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus, .manual-proxy input:focus { border-color: #84947f; background: white; box-shadow: 0 0 0 3px rgba(132,148,127,.08); }
.ratio-control { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.ratio-control:has(input:not(.hidden)) { grid-template-columns: minmax(0, 1fr) minmax(88px, .72fr); }
.ratio-control input { min-width: 0; }
.launch-panel { position: sticky; top: 115px; }
.launch-card { background: var(--ink); color: white; border-radius: 14px; padding: 20px; box-shadow: 0 14px 35px rgba(20,31,23,.14); }
.launch-card > small { font-size: 8px; letter-spacing: 2px; color: #8e9a91; }
.launch-preview { height: 174px; background: #222e26; border-radius: 10px; margin: 12px 0 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #7b897f; text-align: center; overflow: hidden; }
.launch-preview img { width: 100%; height: 100%; object-fit: cover; }
.launch-preview > span { color: var(--lime); font-size: 24px; }
.launch-preview p { font-size: 9px; line-height: 1.6; }
.launch-info { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 9px; }
.launch-info span { color: #849087; }
.launch-info strong { font-size: 9px; }
.batch-control { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.batch-control span { display: block; font-size: 10px; }
.batch-control small { display: block; font-size: 7px; color: #7f8a82; margin-top: 3px; }
.stepper { display: flex; height: 29px; border: 1px solid #3e4a42; border-radius: 7px; overflow: hidden; }
.stepper button { width: 28px; border: 0; color: white; background: #2a362e; }
.stepper b { min-width: 29px; display: grid; place-items: center; font-size: 10px; }
.launch-button { width: 100%; background: var(--lime); color: var(--ink); }
.launch-button b { margin-left: auto; }
.launch-button:disabled { opacity: .6; cursor: wait; }
.launch-note { font-size: 7px; color: #738078; text-align: center; line-height: 1.6; margin: 10px 0 0; }
.tip-card { margin-top: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: white; display: flex; gap: 9px; align-items: flex-start; }
.tip-card > span { width: 19px; height: 19px; min-width: 19px; border-radius: 50%; background: #effbd0; color: #607c20; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.tip-card p { margin: 0; font-size: 8px; line-height: 1.6; color: var(--muted); }
.tip-card strong { color: var(--ink); display: block; }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.page-intro h2 { margin: 0; font-size: 24px; }
.page-intro p { color: var(--muted); font-size: 10px; margin: 7px 0 0; }
.settings-page-actions { display: flex; align-items: center; gap: 10px; }
.check-all-button { min-width: 150px; }
.check-all-button span { margin-right: 4px; font-size: 15px; line-height: 0; }
.check-all-button:disabled { cursor: wait; opacity: .62; }
.all-provider-test-summary { margin: -8px 0 18px; min-height: 42px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf6; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.all-provider-test-summary::before { content: "⌁"; width: 23px; height: 23px; flex: 0 0 23px; border-radius: 50%; display: grid; place-items: center; background: #e8ece7; color: #6f7a72; font-size: 13px; }
.all-provider-test-summary strong { color: var(--ink); }
.all-provider-test-summary.running::before { animation: radarSpin 1.2s linear infinite; }
.all-provider-test-summary.ok { border-color: #cfe5bf; background: #f5fbf1; color: #52733e; }
.all-provider-test-summary.ok::before { content: "✓"; background: #dff1d2; color: #4f7f31; }
.all-provider-test-summary.warning { border-color: #eadcae; background: #fffaf0; color: #82691e; }
.all-provider-test-summary.warning::before { content: "!"; background: #f7e8b9; color: #82691e; }
.all-provider-test-summary.error { border-color: #efcac2; background: #fff7f5; color: #a04b3b; }
.all-provider-test-summary.error::before { content: "!"; background: #f5d9d3; color: #a04b3b; }
.table-panel { padding: 0; overflow: hidden; min-height: 510px; }
.table-tools, .library-toolbar { height: 64px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; border-bottom: 1px solid var(--line); }
.table-tools > span, .library-toolbar > span { color: var(--muted); font-size: 9px; }
.filter-tabs { display: flex; align-items: center; gap: 6px; }
.filter-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 7px; height: 29px; padding: 0 11px; font-size: 9px; }
.filter-tabs button.active { background: var(--ink); color: white; }
.table-head, .task-row { display: grid; grid-template-columns: 2fr 1.2fr .9fr 1.2fr .8fr .5fr; gap: 15px; align-items: center; padding: 0 22px; }
.table-head { height: 39px; background: #f8f9f6; color: #939d95; font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }
.task-row { min-height: 72px; border-top: 1px solid #edf0eb; font-size: 9px; }
.task-row:first-child { border-top: 0; }
.task-name { display: flex; gap: 10px; align-items: center; }
.task-thumb { width: 38px; height: 38px; border-radius: 7px; overflow: hidden; background: #edf0eb; display: grid; place-items: center; font-size: 16px; }
.task-thumb img { width: 100%; height: 100%; object-fit: cover; }
.task-name strong, .task-model strong { display: block; font-size: 9px; }
.task-name small, .task-model small { display: block; color: var(--muted); font-size: 7px; margin-top: 4px; }
.task-time { color: var(--muted); line-height: 1.5; }
.progress-wrap { display: flex; align-items: center; gap: 8px; }
.progress-bar { flex: 1; height: 5px; border-radius: 3px; background: #e8ebe6; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--lime-dark); border-radius: 3px; transition: width .3s; }
.progress-wrap span { font-size: 8px; color: var(--muted); width: 25px; }
.task-status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; border-radius: 12px; padding: 5px 8px; font-size: 8px; }
.task-status.running { background: #fff5d8; color: #9a7312; }
.task-status.success { background: #edf9df; color: #557d25; }
.task-status.failed { background: #fff0ed; color: #bd5645; }
.task-status.queued { background: #eef0ed; color: #6d766f; }
.task-action { width: 27px; height: 27px; border: 1px solid var(--line); background: white; border-radius: 6px; }
.empty-state { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.empty-state > div { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: #eef0ed; color: #758078; font-size: 22px; }
.empty-state h3 { color: var(--ink); font-size: 13px; margin: 14px 0 4px; }
.empty-state p { font-size: 9px; margin: 0 0 15px; }
.empty-state .ghost-button { height: 35px; }

.library-toolbar { border: 1px solid var(--line); background: white; border-radius: 12px; min-height: 58px; height: auto; gap: 10px; }
.library-project-filter { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.library-project-filter select { height: 31px; min-width: 160px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #fafbf8; color: var(--ink); }
.library-group-filter { margin-left: 0; }
.library-group-filter select { min-width: 178px; }
.library-toolbar > #libraryCount { margin-left: 12px; }
.library-batch-bar { min-height: 52px; margin-top: 10px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf6; }
.library-batch-bar > div { display: flex; align-items: center; gap: 7px; }
.library-batch-bar .ghost-button { height: 34px; padding: 0 12px; font-size: 10px; }
.library-batch-bar span { margin-left: 5px; color: var(--muted); font-size: 10px; }
.library-batch-bar button:disabled { opacity: .42; cursor: default; }
.result-grid { display: block; margin-top: 16px; }
.library-result-group { margin-bottom: 20px; }
.library-result-group-head { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-bottom: 9px; padding: 0 3px; }
.library-result-group-head strong { font-size: 13px; }
.library-result-group-head span { padding: 5px 8px; border-radius: 6px; background: #edf1ea; color: #68746a; font-size: 9px; }
.library-result-group-head small { margin-left: auto; color: var(--muted); font-size: 9px; }
.library-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.result-card { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(25,40,28,.03); transition: border-color .16s, box-shadow .16s, transform .16s; }
.result-card.selected { border-color: #88a93a; box-shadow: 0 0 0 2px rgba(147,183,62,.18), 0 9px 22px rgba(25,40,28,.07); }
.result-media { aspect-ratio: 1; background: #e8ebe5; position: relative; overflow: hidden; }
.result-media img, .result-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-media .video-badge { position: absolute; left: 9px; top: 9px; background: rgba(20,30,23,.75); color: white; font-size: 8px; padding: 5px 7px; border-radius: 5px; }
.library-select-toggle { position: absolute; z-index: 3; right: 9px; top: 9px; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; background: rgba(20,30,23,.72); color: white; font-size: 15px; box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.library-select-toggle.selected { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.result-info { padding: 12px; display: flex; align-items: center; }
.result-info > div { min-width: 0; flex: 1; }
.result-info strong { display: block; font-size: 10px; }
.result-info small { display: block; color: var(--muted); font-size: 8px; margin-top: 4px; }
.result-info button { margin-left: auto; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.result-info button + button { margin-left: 6px; }
.library-empty { min-height: 420px; }

.settings-layout { display: grid; grid-template-columns: minmax(700px, 1fr) 260px; gap: 16px; align-items: start; }
.settings-section { padding: 22px; margin-bottom: 15px; }
.safe-badge { background: #effbd0; color: #5f7e1b; border-radius: 6px; padding: 5px 8px; font-size: 8px; }
.preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.preset-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fafbf8; cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s, background .18s; }
.preset-card:hover { transform: translateY(-2px); border-color: #b7c0b3; box-shadow: 0 9px 20px rgba(30,45,34,.06); }
.preset-card:focus-visible { outline: 3px solid rgba(129,171,31,.32); outline-offset: 2px; }
.preset-card.selected { border-color: #b8c49d; background: #fdfef9; }
.preset-top { display: flex; align-items: flex-start; justify-content: space-between; }
.preset-card h4 { margin: 11px 0 6px; font-size: 11px; }
.preset-card p { margin: 0; min-height: 32px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.preset-card > div:last-child { display: flex; gap: 5px; margin-top: 10px; }
.preset-card > div:last-child span { background: #eef0ed; border-radius: 4px; padding: 4px 6px; font-size: 7px; color: #69736b; }
.doubao-logo { color: #fff; background: linear-gradient(145deg, #2f65f5, #7656ef); }
.doubao-settings-section { border-color: #d9dcfb; }
.config-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 17px; border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.config-heading h3 { margin: 0; font-size: 13px; }
.config-heading p { margin: 4px 0 0; font-size: 8px; color: var(--muted); }
.config-heading .test-button { margin-left: auto; height: 31px; border: 1px solid var(--line-dark); background: white; border-radius: 7px; padding: 0 11px; font-size: 8px; }
.config-heading .test-button:disabled { cursor: wait; opacity: .6; }
.settings-form { gap: 13px; }
.secret-field > div { display: flex; position: relative; }
.secret-field > div input { padding-right: 55px; }
.reveal-button { position: absolute; right: 5px; top: 5px; bottom: 5px; border: 0; background: #eef0ed; border-radius: 5px; font-size: 8px; padding: 0 8px; }
.secret-field > small { color: #98a198; font-size: 7px; }
.provider-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px; background: #fff9e8; border-radius: 8px; margin-top: 13px; color: #82691e; }
.provider-note span { width: 17px; height: 17px; min-width: 17px; border-radius: 50%; background: #f2df9f; display: grid; place-items: center; font-size: 8px; font-weight: 700; }
.provider-note p { margin: 1px 0 0; font-size: 8px; line-height: 1.55; }
.test-result { margin-top: 12px; padding: 10px; border-radius: 8px; font-size: 9px; }
.test-result.ok { background: #edf9df; color: #4d7320; }
.test-result.error { background: #fff0ed; color: #aa4d3e; }
.side-setting-card { padding: 19px; margin-bottom: 14px; }
.side-setting-card h3 { margin: 6px 0 15px; font-size: 13px; }
.route-line { border: 1px solid var(--line); border-radius: 8px; padding: 9px; display: grid; gap: 6px; font-size: 9px; }
.route-line span { color: var(--muted); }
.route-line select { width: 100%; min-width: 0; height: 36px; padding: 0 30px 0 10px; border: 1px solid #dce2d8; border-radius: 7px; background-color: #fbfcf9; color: var(--ink); font-weight: 700; text-align: left; }
.route-line:focus-within { border-color: #b7c69e; box-shadow: 0 0 0 3px rgba(201,246,81,.12); }
.route-arrow { color: #96a197; padding: 5px 0; text-align: center; font-size: 10px; }
.side-setting-card > p { color: var(--muted); font-size: 8px; line-height: 1.6; margin: 13px 0 0; }
.side-setting-card ul { margin: 0; padding: 0; list-style: none; }
.side-setting-card li { font-size: 8px; color: var(--muted); padding: 7px 0 7px 15px; border-top: 1px solid #edf0eb; position: relative; }
.side-setting-card li::before { content: "✓"; color: #709321; position: absolute; left: 0; }

.diagnostic-hero { padding: 24px 30px; min-height: 126px; display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 23px; background: var(--ink); color: white; }
.diagnostic-actions { display: flex; align-items: center; gap: 10px; }
.diagnostic-actions .network-pill { background: white; min-width: 138px; justify-content: center; }
.diagnostic-hero h3 { margin: 5px 0 5px; font-size: 20px; }
.diagnostic-hero p { margin: 0; color: #8e9b92; font-size: 9px; }
.radar { width: 66px; height: 66px; border: 1px solid rgba(201,246,81,.25); border-radius: 50%; position: relative; display: grid; place-items: center; color: var(--lime); font-size: 22px; }
.radar i { position: absolute; width: 44px; height: 44px; border: 1px solid rgba(201,246,81,.15); border-radius: 50%; }
.radar i:nth-of-type(2) { width: 25px; height: 25px; }
.radar.running::after { content: ""; position: absolute; width: 50%; height: 1px; background: linear-gradient(90deg, var(--lime), transparent); transform-origin: left center; left: 50%; top: 50%; animation: radarSpin 1.2s linear infinite; }
@keyframes radarSpin { to { transform: rotate(360deg); } }
.health-score { text-align: right; }
.health-score strong { display: block; font-size: 34px; color: var(--lime); }
.health-score span { display: block; color: #849187; font-size: 8px; }
.diagnostic-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 15px; margin-top: 15px; }
.check-list-panel, .environment-panel, .proxy-panel { padding: 21px; }
.check-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; padding: 13px 0; border-top: 1px solid #edf0eb; }
.check-icon { width: 28px; height: 28px; border-radius: 50%; background: #eef0ed; display: grid; place-items: center; color: #849087; }
.check-row.ok .check-icon { background: #effbd0; color: #65871c; }
.check-row.error .check-icon { background: #fff0ed; color: #b64f3f; }
.check-row strong { display: block; font-size: 10px; }
.check-row small { display: block; color: var(--muted); font-size: 8px; margin-top: 4px; }
.check-row em { font-style: normal; color: var(--muted); font-size: 9px; }
.env-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid #edf0eb; font-size: 9px; }
.env-row span { color: var(--muted); }
.env-row button { border: 0; background: transparent; color: #557228; font-size: 8px; }
.proxy-panel { margin-top: 15px; }
.proxy-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.proxy-options label { border: 1px solid var(--line); border-radius: 9px; padding: 12px; display: flex; gap: 9px; cursor: pointer; }
.proxy-options label:has(input:checked) { border-color: #9dab94; background: #fbfdf5; }
.proxy-options input { accent-color: var(--ink); }
.proxy-options b { display: block; font-size: 9px; }
.proxy-options small { display: block; color: var(--muted); font-size: 7px; margin-top: 5px; }
.manual-proxy { display: flex; gap: 10px; margin-top: 12px; }
.manual-proxy input { height: 39px; flex: 1; }
.manual-proxy .ghost-button { height: 39px; }

.toast-stack { position: fixed; right: 24px; top: 106px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 280px; max-width: 380px; background: var(--ink); color: white; border-radius: 10px; padding: 13px 15px; box-shadow: 0 14px 35px rgba(15,25,18,.22); display: flex; align-items: flex-start; gap: 10px; animation: toastIn .25s ease; font-size: 9px; line-height: 1.5; }
.toast i { width: 18px; height: 18px; min-width: 18px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-style: normal; font-weight: 800; }
.toast.error i { background: var(--coral); color: white; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(16,26,19,.55); backdrop-filter: blur(4px); display: grid; place-items: center; }
.modal-card { width: 590px; max-height: 76vh; background: white; border-radius: 15px; padding: 23px; box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-head button { width: 31px; height: 31px; border: 0; background: #eef0ed; border-radius: 50%; font-size: 18px; }
.copy-output { margin: 18px 0; padding: 17px; min-height: 220px; max-height: 390px; overflow: auto; background: #f7f8f4; border-radius: 10px; font-size: 10px; line-height: 1.8; white-space: pre-wrap; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; }
.action-confirm-card { width: 520px; max-width: calc(100vw - 36px); max-height: calc(100vh - 36px); padding: 25px; animation: projectDialogIn .18s ease-out; }
.action-confirm-card .modal-head small { color: #8a978d; font-size: 7px; letter-spacing: 1.7px; }
.action-confirm-message { margin: 19px 0 15px; color: #59655d; font-size: 11px; line-height: 1.7; }
.action-confirm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.action-confirm-facts > div { min-width: 0; padding: 11px 12px; border: 1px solid #e4e9e1; border-radius: 9px; background: #f8faf6; }
.action-confirm-facts span { display: block; margin-bottom: 4px; color: #929d94; font-size: 8px; }
.action-confirm-facts strong { display: block; overflow-wrap: anywhere; color: var(--ink); font-size: 10px; }
.action-confirm-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 19px; padding: 12px; border: 1px solid #e5eadf; border-radius: 9px; background: #f8faf5; }
.action-confirm-note > span { width: 23px; height: 23px; min-width: 23px; display: grid; place-items: center; border-radius: 50%; background: #effbd0; color: #63821e; font-weight: 800; }
.action-confirm-note p { margin: 1px 0 0; color: #6e796f; font-size: 9px; line-height: 1.65; }
.action-confirm-card.danger .action-confirm-note { border-color: #efcbc4; background: #fff8f6; }
.action-confirm-card.danger .action-confirm-note > span { background: #ffe1db; color: #b94b3b; }
.action-confirm-card.danger .action-confirm-note p { color: #8a5f58; }
.action-confirm-card.danger #confirmActionConfirm { background: #b94f40; color: white; }
.action-confirm-actions button { min-width: 112px; height: 40px; }
.project-dialog-card { width: 500px; max-width: calc(100vw - 36px); max-height: calc(100vh - 36px); padding: 25px; animation: projectDialogIn .18s ease-out; }
@keyframes projectDialogIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.project-dialog-description { margin: 19px 0 17px; color: #68736b; font-size: 11px; line-height: 1.7; }
.project-dialog-name-field > label { display: flex; align-items: center; gap: 4px; margin-bottom: 7px; color: #4e5a52; font-size: 10px; font-weight: 700; }
.project-dialog-name-field > label b, .project-dashboard-name-field > span b { color: #d85c49; }
.project-dialog-input-wrap { position: relative; }
.project-dialog-input-wrap input { width: 100%; height: 48px; padding: 0 76px 0 13px; border: 1px solid #cfd6cc; border-radius: 10px; background: #fbfcf9; color: var(--ink); font-size: 13px; transition: border-color .16s, box-shadow .16s, background .16s; }
.project-dialog-input-wrap input:hover { border-color: #aeb8ac; }
.project-dialog-input-wrap input:focus { border-color: #75856f; background: white; box-shadow: 0 0 0 3px rgba(201,246,81,.16); outline: 0; }
.project-dialog-input-wrap input.invalid { border-color: #db7b6b; background: #fffafa; box-shadow: 0 0 0 3px rgba(255,119,95,.1); }
.project-dialog-input-wrap span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #9aa39c; font-size: 9px; pointer-events: none; }
#projectDialogError { display: block; min-height: 18px; padding-top: 5px; color: #bd4f40; font-size: 9px; }
.project-dialog-tip { display: flex; align-items: flex-start; gap: 10px; margin: 5px 0 20px; padding: 11px 12px; border: 1px solid #e5eadf; border-radius: 9px; background: #f8faf5; color: #6c786e; }
.project-dialog-tip > span { width: 22px; height: 22px; min-width: 22px; display: grid; place-items: center; border-radius: 6px; background: #effbd0; color: #618416; font-weight: 800; }
.project-dialog-tip p { margin: 1px 0 0; font-size: 9px; line-height: 1.65; }
.project-delete-warning { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 20px; padding: 14px; border: 1px solid #efcbc4; border-radius: 10px; background: #fff8f6; }
.project-delete-warning > span { width: 28px; height: 28px; min-width: 28px; display: grid; place-items: center; border-radius: 50%; background: #ffe1db; color: #b94b3b; font-weight: 800; }
.project-delete-warning strong { display: block; margin: 1px 0 5px; font-size: 12px; overflow-wrap: anywhere; }
.project-delete-warning p { margin: 0; color: #8a5f58; font-size: 9px; line-height: 1.65; }
.project-dialog-actions { padding-top: 2px; }
.project-dialog-actions .ghost-button, .project-dialog-actions .primary-button { min-width: 112px; height: 40px; }
.project-dialog-actions .primary-button.danger { background: #b94f40; color: white; }
.project-dialog-actions .primary-button.danger:hover { background: #a34134; }

/* 买家秀制作 */
.buyer-tag { background: #fff0e8 !important; color: #bd5a43 !important; }
.buyer-page-intro > div:last-child { display: flex; align-items: center; gap: 10px; }
.buyer-save-status { color: var(--muted); font-size: 8px; padding-right: 4px; }
.buyer-save-status.saving { color: #997423; }
.buyer-stepper { display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 10px; margin-bottom: 16px; padding: 13px 16px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.buyer-stepper > i { width: 100%; min-width: 22px; height: 1px; background: #dfe4dc; }
.buyer-stepper button { min-width: 130px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; gap: 9px; text-align: left; color: #849087; }
.buyer-stepper button b { width: 28px; height: 28px; min-width: 28px; border: 1px solid #d7ddd5; border-radius: 50%; display: grid; place-items: center; font-size: 8px; }
.buyer-stepper button span { font-size: 9px; font-weight: 700; }
.buyer-stepper button small { display: block; margin-top: 3px; color: #a0a9a1; font-size: 7px; font-weight: 400; }
.buyer-stepper button.active { color: var(--ink); }
.buyer-stepper button.active b { background: var(--lime); border-color: var(--lime); }
.buyer-layout { display: grid; grid-template-columns: minmax(650px, 1fr) 235px; gap: 15px; align-items: start; }
.buyer-main { display: flex; flex-direction: column; gap: 15px; }
.buyer-section { padding: 22px; scroll-margin-top: 105px; }
.buyer-section-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid #edf0eb; margin-bottom: 18px; }
.buyer-section-head > span { width: 30px; height: 30px; min-width: 30px; border: 1px solid var(--line-dark); border-radius: 50%; display: grid; place-items: center; color: #859087; font-size: 8px; }
.buyer-section-head h3 { margin: 2px 0 4px; font-size: 14px; }
.buyer-section-head p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.buyer-section-head > em { margin-left: auto; padding: 5px 8px; border-radius: 6px; background: #f1f4ee; color: #758078; font-style: normal; font-size: 8px; }
.buyer-section-head > button { margin-left: auto; white-space: nowrap; }
.buyer-reference-empty { min-height: 215px; border: 1px dashed #b9c3b8; border-radius: 12px; background: #fbfcf8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.buyer-upload-mark { width: 39px; height: 39px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-size: 19px; }
.buyer-reference-empty > strong { margin: 12px 0 4px; font-size: 12px; }
.buyer-reference-empty > small { margin: 0 0 13px; color: var(--muted); font-size: 8px; }
.buyer-reference-empty > div:last-child { display: flex; gap: 8px; }
.buyer-reference-card { display: grid; grid-template-columns: 250px 1fr; gap: 20px; padding: 15px; border-radius: 12px; background: #f7f9f5; border: 1px solid var(--line); }
.buyer-reference-preview { aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 9px; background: #e8ece6; overflow: hidden; position: relative; }
.buyer-reference-preview img { width: 100%; height: 100%; display: block; object-fit: contain; background: white; }
.buyer-reference-preview span { position: absolute; inset: auto 8px 8px; padding: 6px 8px; border-radius: 6px; background: rgba(19,31,22,.78); color: white; font-size: 7px; opacity: 0; transition: .2s; }
.buyer-reference-preview:hover span { opacity: 1; }
.buyer-reference-info h4 { margin: 10px 0 5px; font-size: 13px; }
.buyer-reference-info > p { margin: 0; color: var(--muted); font-size: 8px; }
.buyer-reference-info ul { margin: 12px 0; padding: 0; list-style: none; }
.buyer-reference-info li { padding: 4px 0 4px 15px; position: relative; color: #6e7971; font-size: 8px; }
.buyer-reference-info li::before { content: "✓"; position: absolute; left: 0; color: #6d8c25; }
.buyer-reference-info > div { display: flex; gap: 7px; }
.buyer-product-form, .buyer-style-form, .buyer-output-form { margin-bottom: 14px; }
.buyer-form-subhead { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; margin-top: 3px; padding: 10px 12px; border-left: 3px solid var(--lime); border-radius: 7px; background: #f5f8ef; }
.buyer-form-subhead strong { color: var(--ink); font-size: 11px; }
.buyer-form-subhead small { color: var(--muted); font-size: 9px; }
.buyer-output-form { grid-template-columns: minmax(220px, 1fr) 1fr; }
.buyer-authentic-note { display: flex; align-items: center; gap: 11px; padding: 11px 13px; margin-bottom: 14px; border: 1px solid #dfe8ca; background: #f8fce9; border-radius: 9px; }
.buyer-authentic-note > span { width: 34px; height: 34px; min-width: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 7px; font-weight: 900; }
.buyer-authentic-note p { margin: 0; color: #66715f; font-size: 8px; line-height: 1.6; }
.buyer-authentic-note strong { display: block; color: var(--ink); font-size: 9px; }
.buyer-script-list { display: grid; gap: 9px; }
.buyer-script-card { border: 1px solid var(--line); border-radius: 10px; background: #fbfcf9; overflow: hidden; }
.buyer-script-card-head { min-height: 48px; padding: 9px 11px; display: grid; grid-template-columns: 31px 1fr auto; gap: 9px; align-items: center; border-bottom: 1px solid #edf0eb; }
.buyer-script-index { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #eefbd0; color: #63821f; font-size: 9px; font-weight: 800; }
.buyer-script-card-head input { width: 100%; height: 31px; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 0 7px; font-weight: 700; font-size: 10px; }
.buyer-script-card-head input:focus { outline: 0; border-color: var(--line-dark); background: white; }
.buyer-script-card-head button { width: 27px; height: 27px; border: 0; border-radius: 6px; background: transparent; color: #a04f42; }
.buyer-script-card-tools { display: flex; align-items: center; gap: 5px; }
.buyer-script-card-head .ai-script-revise-trigger,
.seed-script-actions .ai-script-revise-trigger { width: auto; min-width: 88px; padding: 0 10px; border: 1px solid #cfe692; background: #f0fbd3; color: #557419; font-weight: 750; white-space: nowrap; }
.ai-script-revise-trigger span { margin-right: 4px; color: #70941d; }
.buyer-script-card-head .ai-script-revise-trigger:hover,
.seed-script-actions .ai-script-revise-trigger:hover { border-color: #b8d273; background: #e8f8bf; }
.buyer-script-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 11px; }
.buyer-script-fields label { color: var(--muted); font-size: 7px; }
.buyer-script-fields label.wide { grid-column: 1 / -1; }
.buyer-script-fields input, .buyer-script-fields textarea { width: 100%; margin-top: 5px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 8px; resize: vertical; outline: 0; }
.buyer-script-fields input { height: 32px; }
.buyer-script-fields textarea { min-height: 52px; line-height: 1.5; }
.buyer-script-empty, .buyer-result-empty { min-height: 100px; border: 1px dashed var(--line-dark); border-radius: 10px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 11px; }
.buyer-script-empty > span { color: #7ba024; font-size: 23px; }
.buyer-script-empty strong, .buyer-result-empty strong { display: block; color: var(--ink); font-size: 10px; }
.buyer-script-empty small, .buyer-result-empty small { display: block; margin-top: 4px; font-size: 8px; }
.buyer-quantity-bar { display: flex; align-items: center; gap: 10px; padding: 13px; margin-bottom: 14px; border-radius: 10px; background: var(--ink); color: white; }
.buyer-quantity-bar > div { display: flex; flex-direction: column; margin-right: auto; }
.buyer-quantity-bar span { font-size: 9px; }
.buyer-quantity-bar small { color: #859188; font-size: 7px; margin-top: 4px; }
.buyer-quantity-bar input { width: 68px; height: 36px; border: 1px solid #455148; border-radius: 7px; background: #26332b; color: var(--lime); text-align: center; font-size: 13px; font-weight: 800; outline: 0; }
.buyer-quantity-bar .ghost-button { color: white; border-color: #47544b; background: #26332b; }
.buyer-allocation-list { display: grid; gap: 7px; margin: 2px 0 14px; }
.buyer-allocation-row { min-height: 47px; display: grid; grid-template-columns: 29px 1fr auto; gap: 9px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf8; }
.buyer-allocation-row > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; background: #edf1ea; font-size: 8px; font-weight: 800; }
.buyer-allocation-row strong { display: block; font-size: 9px; }
.buyer-allocation-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }
.buyer-allocation-control { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; }
.buyer-allocation-control input { width: 56px; height: 31px; border: 1px solid var(--line-dark); border-radius: 7px; text-align: center; font-weight: 700; outline: 0; }
.generation-action-button { width: 100%; min-height: 64px; margin: 13px 0; border: 1px solid rgba(111,145,30,.16); border-radius: 11px; padding: 11px 15px; background: var(--lime); color: var(--ink); box-shadow: 0 8px 18px rgba(118,153,30,.09); display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; text-align: left; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.generation-action-button > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-size: 13px; font-weight: 800; }
.generation-action-button > div { min-width: 0; }
.generation-action-button strong { display: block; font-size: 12px; line-height: 1.35; }
.generation-action-button small { display: block; margin-top: 4px; color: #5d741c; font-size: 10px; line-height: 1.4; }
.generation-action-button > b { font-size: 17px; font-weight: 500; }
.generation-action-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(110,145,27,.15); filter: saturate(1.03); }
.generation-action-button:focus-visible { outline: 3px solid rgba(111,145,30,.24); outline-offset: 2px; }
.generation-action-button:disabled { opacity: .56; cursor: not-allowed; box-shadow: none; }
.generation-action-button.is-busy { cursor: wait; }
.generation-action-button.is-busy > span { animation: generationPulse 1s ease-in-out infinite; }
.section-generation-action { margin: 12px 0; }
.launch-card .generation-action-button { margin: 0; }
.generation-action-button.launch-button { height: auto; }
@keyframes generationPulse { 50% { transform: scale(.87); opacity: .7; } }
.buyer-progress { display: flex; align-items: center; gap: 11px; padding: 11px 13px; margin-bottom: 12px; border-radius: 8px; background: #f4f8e9; }
.buyer-progress > div { flex: 1; height: 6px; border-radius: 5px; background: #dfe6d0; overflow: hidden; }
.buyer-progress i { display: block; width: 0; height: 100%; border-radius: 5px; background: #8eb72d; transition: width .25s; }
.buyer-progress span { min-width: 90px; font-size: 8px; color: #617829; }
.buyer-result-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.buyer-result-toolbar > div { display: flex; gap: 5px; }
.buyer-result-toolbar button { height: 27px; padding: 0 10px; border: 0; border-radius: 6px; background: #f0f2ee; color: var(--muted); font-size: 8px; }
.buyer-result-toolbar button.active { background: var(--ink); color: white; }
.buyer-result-toolbar > span { color: var(--muted); font-size: 8px; }
.buyer-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.buyer-result-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; }
.buyer-result-media { aspect-ratio: 3 / 4; position: relative; background: #e9ede7; overflow: hidden; }
.buyer-result-media > img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.buyer-result-state { position: absolute; left: 8px; top: 8px; padding: 5px 7px; border-radius: 6px; background: rgba(20,31,23,.82); color: white; font-size: 7px; }
.buyer-result-state.kept { background: rgba(91,121,27,.9); }
.buyer-result-parent { position: absolute; right: 8px; top: 8px; padding: 5px 7px; border-radius: 6px; background: rgba(92,73,144,.85); color: white; font-size: 7px; }
.buyer-result-body { padding: 10px; }
.buyer-result-body h4 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.buyer-result-body small { display: block; color: var(--muted); font-size: 7px; margin: 4px 0 9px; }
.buyer-result-actions { display: grid; grid-template-columns: minmax(64px, .8fr) minmax(128px, 1.4fr) 30px; gap: 5px; }
.buyer-result-actions button { min-width: 0; height: 28px; padding: 0 5px; border: 1px solid var(--line); border-radius: 6px; background: #fafbf8; color: #59655c; font-size: 7px; }
.buyer-result-actions button.keep-on { background: #effbd0; border-color: #d7e8ad; color: #56731b; }
.buyer-result-actions button.delete { color: #aa4b3e; }
.buyer-result-actions button:disabled { opacity: .55; cursor: wait; }
.buyer-extend-control { height: 30px; display: grid; grid-template-columns: auto 38px auto 55px; align-items: center; gap: 3px; padding: 0 3px 0 7px; border: 1px solid var(--line); border-radius: 6px; background: #fafbf8; color: #68736b; font-size: 9px; white-space: nowrap; }
.buyer-extend-control input { width: 38px; height: 22px; padding: 0 2px; border: 1px solid #d5dbd2; border-radius: 4px; background: white; text-align: center; color: var(--ink); font-size: 10px; outline: none; }
.buyer-extend-control input:focus { border-color: #91a285; }
.buyer-extend-control button { width: 43px; height: 22px; padding: 0; border: 0; background: var(--ink); color: white; }

/* 可读性优化：保留界面密度，同时提高正文、表单和操作文字的最小字号 */
body [class] small { font-size: 10px; line-height: 1.45; }
body [class] em { font-size: 9px; }
body input, body textarea, body select { font-size: 12px; }
body .field > span { font-size: 11px; }
body .page-intro p, body .config-heading p, body .buyer-section-head p, body .provider-note p, body .side-setting-card > p, body .tip-card p { font-size: 10px; }
body .primary-button, body .ghost-button, body .launch-button { font-size: 12px; }
body .overline { font-size: 10px; }
body .quick-card strong, body .model-row strong, body .task-name strong, body .task-model strong { font-size: 11px; }
body .project-card-body > p, body .project-metrics span, body .project-actions button, body .project-manage-actions button, body .home-recent-meta, body .home-recent-actions button { font-size: 10px; }
body .type-switch strong, body .drop-zone strong, body .launch-info, body .launch-info strong, body .batch-control span { font-size: 11px; }
body .filter-tabs button, body .table-tools > span, body .library-toolbar > span, body .task-row, body .task-status, body .result-info small { font-size: 10px; }
body .route-line, body .env-row, body .check-row em, body .proxy-options b, body .test-result, body .toast { font-size: 11px; }
body .buyer-save-status, body .buyer-stepper button span, body .buyer-section-head > em, body .buyer-reference-info > p, body .buyer-reference-info li, body .buyer-authentic-note p { font-size: 10px; }
body .buyer-script-card-head input { font-size: 12px; }
body .buyer-script-fields label { font-size: 10px; }
body .buyer-script-fields input, body .buyer-script-fields textarea { font-size: 11px; line-height: 1.55; }
body .buyer-allocation-row strong, body .buyer-allocation-control, body .generation-action-button small, body .buyer-progress span, body .buyer-result-toolbar button, body .buyer-result-toolbar > span { font-size: 10px; }
body .buyer-result-body h4 { font-size: 11px; }
body .buyer-result-actions button, body .buyer-extend-control { font-size: 10px; }
body .buyer-guide-card li, body .buyer-guide-card li b { font-size: 10px; }
.buyer-result-empty { min-height: 180px; flex-direction: column; text-align: center; }
.buyer-result-empty > span { font-size: 25px; color: #9aa59c; }
.buyer-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 12px; }
.buyer-guide-card { padding: 17px; }
.buyer-guide-card > small { color: #91a092; font-size: 7px; letter-spacing: 1.6px; }
.buyer-guide-card h3 { margin: 5px 0 12px; font-size: 13px; }
.buyer-guide-card ol { margin: 0; padding: 0; list-style: none; counter-reset: buyerGuide; }
.buyer-guide-card li { counter-increment: buyerGuide; position: relative; padding: 9px 0 9px 27px; border-top: 1px solid #edf0eb; color: var(--muted); font-size: 8px; line-height: 1.5; }
.buyer-guide-card li b { display: block; color: var(--ink); font-size: 8px; }
.buyer-guide-card li::before { content: counter(buyerGuide); position: absolute; left: 0; top: 8px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #effbd0; color: #66851f; font-size: 7px; font-weight: 800; }
.principle-card { position: relative; }
.principle-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: -2px 0 10px; }
.principle-card-actions button { min-width: 0; height: 30px; padding: 0 7px; border: 1px solid #e0e5dd; border-radius: 7px; background: #fafbf8; color: #56645a; font-size: 9px; font-weight: 700; }
.principle-card-actions button:hover { border-color: #a8b982; background: #f7fce9; color: #3f5c1a; }
.principle-card-actions button:focus-visible { outline: 2px solid #9ac52d; outline-offset: 2px; }
.buyer-guide-card li.principle-empty-item { padding-left: 0; color: #8e9990; text-align: center; }
.buyer-guide-card li.principle-empty-item::before { display: none; }
.principle-editor-card { width: min(760px, 92vw); max-height: min(760px, 88vh); overflow: auto; }
.principle-editor-card > p { margin: 2px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.principle-editor-list { display: flex; flex-direction: column; gap: 9px; }
.principle-editor-row { display: grid; grid-template-columns: 34px minmax(0, .8fr) minmax(0, 1.45fr) 36px; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e1e6de; border-radius: 10px; background: #fafbf8; }
.principle-editor-row > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #effbd0; color: #607d22; font-size: 10px; font-weight: 800; }
.principle-editor-row label { min-width: 0; }
.principle-editor-row label small { display: block; margin: 0 0 4px; color: #7b877e; font-size: 9px; }
.principle-editor-row input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #dce2da; border-radius: 7px; background: white; color: var(--ink); outline: none; }
.principle-editor-row input:focus { border-color: #9fbc5a; box-shadow: 0 0 0 3px rgba(184, 226, 78, .15); }
.principle-editor-row button { width: 34px; height: 34px; padding: 0; border: 1px solid #eadedb; border-radius: 7px; background: white; color: #ad5548; font-size: 15px; }
.principle-editor-row button:hover { background: #fff3f0; }
.principle-editor-empty { padding: 24px 14px; border: 1px dashed #d5ddd2; border-radius: 10px; background: #fafbf8; color: #879188; text-align: center; font-size: 11px; }
.principle-add-button { width: 100%; height: 42px; margin-top: 10px; border: 1px dashed #a9bc7a; border-radius: 9px; background: #fbfff2; color: #516f18; font-size: 11px; font-weight: 800; }
.principle-add-button span { margin-right: 5px; font-size: 15px; vertical-align: -1px; }
.principle-add-button:disabled { opacity: .45; cursor: not-allowed; }
.principle-editor-footnote { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px; border-radius: 8px; background: #f4f6f2; color: #69746c; }
.principle-editor-footnote span { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e3eadf; font-size: 9px; font-weight: 800; }
.principle-editor-footnote p { margin: 0; font-size: 10px; line-height: 1.55; }
.principle-editor-actions { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; }
.principle-editor-actions #restorePrincipleDefaults { color: #6b772f; }
@media (max-width: 720px) {
  .principle-editor-row { grid-template-columns: 28px minmax(0, 1fr) 34px; }
  .principle-editor-row label:nth-of-type(2) { grid-column: 2 / 4; }
  .principle-editor-actions { grid-template-columns: 1fr 1fr; }
  .principle-editor-actions span { display: none; }
}
.module-shortcut-panel { padding: 16px; }
.module-shortcut-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.module-shortcut-heading small { color: #91a092; font-size: 7px; letter-spacing: 1.6px; }
.module-shortcut-heading h3 { margin: 5px 0 0; font-size: 13px; }
.module-shortcut-heading > span { padding: 4px 7px; border-radius: 6px; background: #f2f5ef; color: #839087; font-size: 7px; white-space: nowrap; }
.module-shortcut-panel > p { margin: 8px 0 12px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.module-shortcut-list { display: flex; flex-direction: column; gap: 7px; }
.module-shortcut-list button { width: 100%; min-height: 48px; display: grid; grid-template-columns: 31px minmax(0, 1fr) 14px; align-items: center; gap: 9px; padding: 7px 8px; border: 1px solid #e1e6de; border-radius: 9px; background: #fbfcfa; color: var(--ink); text-align: left; transition: border-color .16s, background .16s, transform .16s; }
.module-shortcut-list button:hover { border-color: #b6c18e; background: #fbfff0; transform: translateY(-1px); }
.module-shortcut-list button:focus-visible { outline: 2px solid #9ac52d; outline-offset: 2px; }
.module-shortcut-list button i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #edf3e7; color: #4d6a26; font-size: 13px; font-style: normal; }
.module-shortcut-list button b { display: block; font-size: 9px; }
.module-shortcut-list button small { display: block; margin-top: 3px; overflow: hidden; color: #8a958c; font-size: 7px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.module-shortcut-list button em { color: #7d8980; font-size: 12px; font-style: normal; }
.buyer-library-modal { width: 720px; overflow: auto; }
.buyer-library-modal > p { color: var(--muted); font-size: 9px; }
.buyer-library-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 15px; }
.buyer-library-grid.grouped { display: block; }
.buyer-library-project-group { margin-bottom: 18px; }
.buyer-library-project-head { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; padding: 8px 10px; border-radius: 8px; background: #f1f4ee; }
.buyer-library-project-head strong { font-size: 11px; }
.buyer-library-project-head span { margin-left: auto; color: var(--muted); font-size: 9px; }
.buyer-library-module-group { margin: 0 0 13px; }
.buyer-library-module-head { margin: 0 0 7px; color: #778279; font-size: 9px; font-weight: 700; }
.buyer-library-group-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.buyer-library-item { aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #edf0eb; overflow: hidden; position: relative; }
.buyer-library-item:hover { border-color: var(--lime-dark); }
.buyer-library-item img { width: 100%; height: 100%; object-fit: cover; }
.buyer-library-item span { position: absolute; inset: auto 5px 5px; padding: 5px; border-radius: 5px; background: rgba(20,31,23,.78); color: white; font-size: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-library-empty { min-height: 170px; display: grid; place-items: center; color: var(--muted); font-size: 9px; }
#imagePreviewModal .image-preview-modal { width: min(850px, 100%); padding: 14px; display:flex; flex-direction:column; height:82vh; height:min(82dvh,900px); max-height:calc(100dvh - 32px); overflow:hidden; }
.image-preview-modal .modal-head { padding: 3px 4px 10px; flex:0 0 auto; min-width:0; }
.image-preview-surface { flex:1 1 0; min-height:0; width:100%; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y pinch-zoom; background:#f1f3ef; border-radius:9px; }
.image-preview-modal img { display:block; width:100%; height:100%; max-width:none; max-height:none; object-fit:contain; }
.image-preview-surface.is-zoomed img { width:200%; height:200%; cursor:zoom-out; }
.image-preview-modal .modal-head { gap:8px; }
.image-preview-modal .modal-head strong { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.image-preview-modal .modal-head button { flex-shrink:0; min-width:44px; height:44px; }
.image-preview-modal #imagePreviewZoom { width:auto; padding:0 12px; border-radius:10px; font-size:14px; }
.image-preview-feedback { flex:0 0 32px; display:flex; align-items:center; justify-content:center; gap:12px; font-size:12px; color:var(--muted); }
.image-preview-feedback button { font:inherit; }

/* 商品图片制作 */
.photo-tag { background: #e8f6ff !important; color: #27749a !important; font-size: 8px !important; }
.photo-stepper { grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; }
.photo-stepper button { min-width: 120px; }
.photo-brief-grid { margin-bottom: 15px; }
.photo-category-hint { display: block; margin-top: 5px; color: #5f7827; font-size: 9px; line-height: 1.45; }
.photo-model-controls { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(320px, 1.45fr); align-items: stretch; gap: 12px; margin-bottom: 14px; }
.photo-model-controls .field { margin: 0; }
.photo-model-count-note { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 62px; padding: 10px 12px; border: 1px solid #d9e6ba; border-radius: 9px; background: #f8fce9; }
.photo-model-count-note strong { color: #4f6716; font-size: 10px; }
.photo-model-count-note span { color: #64705f; font-size: 9px; line-height: 1.55; }
.photo-wide-field { display: block; margin-bottom: 14px; }
.photo-wide-field textarea { width: 100%; margin-top: 7px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; outline: 0; background: #fbfcf9; }
.photo-source-empty { min-height: 92px; padding: 16px; border: 1px dashed var(--line-dark); border-radius: 11px; background: #fbfcf9; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 13px; }
.photo-source-empty > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #e8f6ff; color: #27749a; font-size: 20px; }
.photo-source-empty strong { display: block; font-size: 12px; }
.photo-source-empty small { display: block; margin-top: 5px; color: var(--muted); }
.photo-source-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.photo-source-grid.model { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.photo-source-card { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #fafbf8; overflow: hidden; }
.photo-source-card.missing { border-color: #e1a99e; }
.photo-source-card button.preview { width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #edf0eb; overflow: hidden; position: relative; }
.photo-source-card button.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-source-card button.preview span { position: absolute; inset: auto 6px 6px; padding: 4px 6px; border-radius: 5px; color: white; background: rgba(18,30,22,.78); font-size: 9px; opacity: 0; transition: .2s; }
.photo-source-card button.preview:hover span { opacity: 1; }
.photo-source-card > div { display: grid; grid-template-columns: 1fr 30px; align-items: center; gap: 6px; padding: 7px; }
.photo-source-card strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.photo-source-card button.remove { width: 30px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #a64f43; }
.photo-model-slot { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; padding: 0 7px 7px; color: var(--muted); font-size: 9px; }
.photo-model-slot select { min-width: 0; height: 30px; padding: 0 27px 0 8px; font-size: 9px; }
.photo-board-row { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(330px, 1.1fr); gap: 12px; margin-top: 13px; align-items: stretch; }
.photo-board-actions { display: grid; align-content: start; gap: 8px; }
.photo-build-button { min-height: 92px; margin: 0; }
.photo-board-upload-button { min-height: 66px; padding: 10px 13px; border: 1px solid #b9c1b7; border-radius: 10px; background: white; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; text-align: left; transition: .2s; }
.photo-board-upload-button:hover { border-color: var(--ink); background: #f8faf5; transform: translateY(-1px); }
.photo-board-upload-button:disabled { cursor: not-allowed; opacity: .52; transform: none; }
.photo-board-upload-button > span { width: 34px; height: 34px; border-radius: 9px; background: #e9f6ff; color: #287aa1; display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.photo-board-upload-button > div { min-width: 0; display: grid; gap: 3px; }
.photo-board-upload-button strong { color: var(--ink); font-size: 11px; }
.photo-board-upload-button small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.photo-board-upload-button > b { color: var(--ink); font-size: 10px; white-space: nowrap; }
.photo-board-card { min-width: 0; display: grid; grid-template-columns: 150px 1fr; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; }
.photo-board-card > button { aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 8px; overflow: hidden; position: relative; background: white; }
.photo-board-card.landscape > button { aspect-ratio: 16 / 9; }
.photo-board-card > button img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo-board-card > button span { position: absolute; inset: auto 6px 6px; padding: 4px 6px; border-radius: 5px; background: rgba(18,30,22,.78); color: white; font-size: 9px; }
.photo-board-card > div { display: flex; min-width: 0; flex-direction: column; justify-content: center; align-items: flex-start; }
.photo-board-card strong { font-size: 11px; }
.photo-board-card small { margin: 5px 0 9px; color: #668020; }
.photo-board-card small.stale { color: #a66a22; }
.photo-board-card .ghost-button { min-height: 30px; padding: 0 10px; }
.photo-output-form { margin-bottom: 14px; }
.photo-locked-brief { display: flex; align-items: flex-start; gap: 12px; padding: 13px; margin-bottom: 14px; border: 1px solid #d9e6ba; border-radius: 10px; background: #f8fce9; }
.photo-locked-brief > span { padding: 6px 8px; border-radius: 6px; background: var(--ink); color: var(--lime); font-size: 9px; font-weight: 800; }
.photo-locked-brief strong { font-size: 11px; }
.photo-locked-brief p { margin: 5px 0 0; color: #64705f; font-size: 10px; line-height: 1.6; }
.photo-final-button { background: #c9f651; }
.photo-result-grid .buyer-result-actions { grid-template-columns: 1fr 1fr 34px; }
.photo-result-grid .buyer-result-actions button.download { color: #315f7b; }
.photo-result-grid .buyer-result-media { aspect-ratio: 3 / 4; }
.photo-guide-card li:nth-child(1)::before, .photo-guide-card li:nth-child(2)::before, .photo-guide-card li:nth-child(3)::before, .photo-guide-card li:nth-child(4)::before, .photo-guide-card li:nth-child(5)::before { background: #e8f6ff; color: #27749a; }

/* 主图制作与详情页制作 */
.main-image-tag { background: #fff1c9 !important; color: #956e18 !important; font-size: 8px !important; }
.detail-page-tag { background: #e5f2ff !important; color: #356f9c !important; font-size: 8px !important; }
.design-stepper { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.design-stepper button { flex: 1 1 100px; min-width: 92px; }
.design-stepper i { flex: 0 1 12px; min-width: 8px; }
.design-settings-grid, .detail-brief-grid, .detail-output-settings { margin-bottom: 15px; }
.design-asset-empty { min-height: 94px; padding: 16px; border: 1px dashed var(--line-dark); border-radius: 11px; background: #fbfcf9; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 13px; }
.design-asset-empty.compact { min-height: 72px; padding: 11px; }
.design-asset-empty.no-action { grid-template-columns: 40px 1fr; }
.design-asset-empty > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fff2ca; color: #9b721c; font-size: 20px; }
.design-asset-empty strong { display: block; font-size: 12px; }
.design-asset-empty small { display: block; margin-top: 4px; color: var(--muted); }
.design-asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.design-asset-grid.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 11px; }
.design-asset-card { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #fafbf8; overflow: hidden; }
.design-asset-card.missing { border-color: #e2a99f; }
.design-asset-card > button.preview { width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #ebefea; overflow: hidden; position: relative; }
.design-asset-card > button.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.design-asset-card > button.preview span { position: absolute; inset: auto 6px 6px; padding: 4px 6px; border-radius: 5px; background: rgba(18,30,22,.8); color: white; font-size: 9px; }
.design-asset-card-body { padding: 8px; }
.design-asset-title { display: grid; grid-template-columns: 1fr 29px; align-items: center; gap: 5px; }
.design-asset-title strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.design-asset-title button { width: 29px; height: 27px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #a64f43; }
.design-asset-analysis { margin-top: 7px; padding-top: 7px; border-top: 1px solid #e9ede7; }
.design-asset-analysis > div { display: flex; flex-wrap: wrap; gap: 4px; }
.design-asset-analysis em { padding: 3px 5px; border-radius: 4px; background: #edf6d8; color: #607925; font-style: normal; font-size: 8px; }
.design-asset-analysis p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.design-drag-handle { width: 30px; height: 30px; border: 0; background: transparent; color: #96a098; cursor: grab; font-size: 16px; }
.design-module-card { border: 1px solid var(--line); border-radius: 10px; background: #fbfcf9; overflow: hidden; transition: .2s; }
.design-module-card.active { border-color: #a7c957; box-shadow: 0 0 0 3px rgba(167,201,87,.12); }
.design-module-card.dragging { opacity: .45; }
.design-module-card.drag-over { border-color: #769827; }
.simple-design-inputs { margin-bottom: 15px; }
.design-ratio-settings { margin: 16px 0 0; padding-top: 15px; border-top: 1px solid var(--line); grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr); }
.model-managed-note { align-self: end; min-height: 62px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 12px; border: 1px solid #dce6c6; border-radius: 9px; background: #f7fbe9; }
.model-managed-note b { color: #506820; font-size: 10px; }
.model-managed-note span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.simple-style-library { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(160px, 1fr) auto; gap: 8px; margin-bottom: 12px; }
.simple-style-library select, .simple-style-library input { width: 100%; min-width: 0; height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.simple-style-library button { min-height: 36px; height: 36px; white-space: nowrap; }
.simple-module-list { display: grid; gap: 9px; }
.simple-module-card { display: grid; grid-template-columns: 42px 30px minmax(180px, 1fr) 120px 90px; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcf9; overflow: visible; }
.simple-module-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #effbd0; color: #658221; font-weight: 800; }
.simple-module-card label { color: var(--muted); font-size: 9px; }
.simple-module-card input, .simple-module-card textarea { width: 100%; margin-top: 4px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.simple-module-card input { height: 34px; }
.simple-module-card textarea { min-height: 58px; resize: vertical; line-height: 1.45; }
.simple-module-description, .module-image-input { grid-column: 3 / -1; }
.simple-module-description > small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.module-delete-button { height: 34px; align-self: end; border: 1px solid #efcbc5; border-radius: 7px; background: #fff8f6; color: #a64f43; font-size: 9px; font-weight: 700; }
.module-delete-button:disabled { opacity: .42; cursor: not-allowed; }
.module-image-input { min-width: 0; padding-top: 9px; border-top: 1px solid #e5e9e2; }
.module-reference-input { margin-top: 3px; padding: 11px; border: 1px solid #ddd8ef; border-radius: 9px; background: #faf9ff; }
.module-image-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.module-image-heading strong { display: block; color: #263229; font-size: 11px; }
.module-image-heading small { display: block; max-width: 720px; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.module-image-heading > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 6px; background: #f0f4e8; color: #62704e; font-size: 9px; font-weight: 700; }
.module-reference-input .module-image-heading > span { background: #ece8f8; color: #62578d; }
.module-image-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.module-image-actions button { min-height: 34px; padding: 0 13px; }
.module-image-actions .reference-button { border: 1px solid #7568a4; border-radius: 8px; background: #7568a4; color: white; font-weight: 800; }
.module-image-actions .reference-button:hover { background: #655991; }
.module-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.module-image-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.module-reference-card { border-color: #d6d0ea; }
.module-image-card.missing { opacity: .46; border-color: #e2a99f; }
.module-image-preview { width: 100%; padding: 0; border: 0; background: #e9ede7; position: relative; }
.module-image-preview img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; }
.module-image-preview span { position: absolute; right: 6px; bottom: 6px; left: 6px; padding: 4px 6px; border-radius: 5px; background: rgba(18,30,22,.8); color: white; font-size: 8px; }
.module-image-card > div { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 5px; padding: 6px; }
.module-image-card > div small { overflow: hidden; color: #5f695f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.module-image-card > div button { width: 28px; height: 27px; padding: 0; border: 1px solid #efcbc5; border-radius: 6px; background: #fff8f6; color: #a64f43; }
.module-image-empty { grid-column: 1 / -1; padding: 15px; border: 1px dashed var(--line-dark); border-radius: 8px; color: var(--muted); background: white; font-size: 10px; text-align: center; }
.simple-module-total { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #f3f7e8; color: #526b1f; font-weight: 800; text-align: right; }
.design-generate-button { margin-bottom: 12px; }
.design-failure-report { margin: 0 0 12px; padding: 12px 13px; border: 1px solid #efc4bd; border-radius: 10px; background: #fff7f5; color: #64352e; }
.design-failure-report > div { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.design-failure-report > div > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #a84d40; color: white; font-weight: 800; }
.design-failure-report strong { display: block; font-size: 11px; }
.design-failure-report p { margin: 3px 0 0; color: #8b5b54; font-size: 10px; line-height: 1.45; }
.design-failure-report ol { margin: 10px 0 0 40px; padding: 9px 12px 9px 25px; border-top: 1px solid #f0d4cf; }
.design-failure-report li { padding: 3px 0; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.design-failure-report li b { color: #923e32; }
.design-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.design-result-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; }
.design-result-media { aspect-ratio: 3 / 4; position: relative; background: #edf0eb; overflow: hidden; }
.design-result-media img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.design-result-media > span { position: absolute; top: 7px; padding: 4px 6px; border-radius: 5px; color: white; background: rgba(18,30,22,.82); font-size: 9px; }
.design-result-media .keep-state { left: 7px; }
.design-result-media .order-state { right: 7px; background: rgba(96,77,157,.88); }
.design-result-body { padding: 9px; }
.design-result-body h4 { margin: 0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.design-result-body small { display: block; margin: 4px 0 8px; color: var(--muted); }
.design-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.design-result-actions button { min-height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: #fafbf8; color: #59655d; font-size: 9px; }
.design-result-actions .keep-on { background: #effbd0; color: #58761c; border-color: #d6e9aa; }
.design-result-actions .danger { color: #a64f43; }
.simple-result-toolbar { min-height: 38px; padding: 0 3px; }
.simple-result-toolbar strong { font-size: 11px; }
.simple-download-action { display: block; padding: 9px; }
.simple-download-action button { width: 100%; min-height: 36px; background: var(--ink); border-color: var(--ink); color: white; font-weight: 800; }
.compact-result-actions { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto; padding: 9px; gap: 7px; }
.compact-result-actions button { min-height: 36px; padding: 0 9px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.compact-result-actions .result-edit-redraw { background: var(--ink); border-color: var(--ink); color: white; }
.compact-result-actions .danger { min-width: 54px; background: #fff8f6; border-color: #edcfc9; }
.design-result-edit-card { width: min(720px, calc(100vw - 36px)); max-height: 88vh; overflow: auto; }
.design-result-edit-card > p { margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.design-result-edit-form { margin: 0; }
.design-result-edit-form textarea { resize: vertical; }
.design-result-edit-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 11px 12px; border: 1px solid #ead8a7; border-radius: 9px; background: #fffaf0; color: #705d2f; }
.design-result-edit-note > span { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f1d98d; color: #6d571b; font-weight: 900; }
.design-result-edit-note p { margin: 1px 0 0; font-size: 10px; line-height: 1.6; }
.design-result-edit-actions { margin-top: 14px; }
.detail-parameter-box { margin-bottom: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; }
.detail-parameter-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 11px; }
.detail-parameter-head strong { display: block; font-size: 11px; }
.detail-parameter-head small { display: block; margin-top: 4px; color: var(--muted); }
.detail-parameter-head > div:last-child { display: flex; gap: 6px; }
.detail-parameter-head button { min-height: 32px; height: 32px; padding: 0 10px; }
.detail-parameter-warning { margin: -6px 0 0; color: #9a6825; font-size: 9px; line-height: 1.55; }
.detail-output-settings { padding-top: 15px; border-top: 1px solid var(--line); }
.design-guide-card li::before { background: #fff2ca; color: #8c681d; }

/* 买家视频制作 */
.seed-tag { background: #eee9ff !important; color: #6853be !important; font-size: 8px !important; }
.seed-stepper { grid-template-columns: auto 1fr auto 1fr auto; }
.seed-head-actions { margin-left: auto; display: flex; gap: 7px; white-space: nowrap; }
.buyer-result-head-actions { flex-wrap: nowrap; justify-content: flex-end; }
.buyer-result-head-actions button { height: 38px; padding: 0 11px; font-size: 10px; }
.buyer-result-head-actions .clear-output-button { min-width: auto; }
.clear-output-button { min-width: 116px; }
.seed-project-form { margin-bottom: 15px; }
.seed-bulk-reference-control { display: grid; grid-template-columns: minmax(0, 1fr) 210px auto; align-items: end; gap: 12px; margin-bottom: 15px; padding: 13px 14px; border: 1px solid #dfe7d4; border-radius: 10px; background: #f5f9ed; }
.seed-bulk-reference-control > div { align-self: center; }
.seed-bulk-reference-control strong { display: block; color: var(--ink); font-size: 11px; }
.seed-bulk-reference-control small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.seed-bulk-reference-control label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.seed-bulk-reference-control select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.seed-bulk-reference-control button { min-width: 136px; height: 36px; }
.seed-duration-range { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 7px; }
.seed-duration-range input { min-width: 0; }
.seed-duration-range i { color: var(--muted); font-style: normal; font-size: 10px; }
.seed-asset-empty { min-height: 100px; padding: 18px; border: 1px dashed var(--line-dark); border-radius: 11px; background: #fbfcf9; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; }
.seed-asset-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #eee9ff; color: #654fc0; font-size: 20px; font-weight: 800; }
.seed-asset-empty strong { display: block; font-size: 12px; }
.seed-asset-empty small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.seed-asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.seed-asset-card { min-width: 0; display: grid; grid-template-columns: 155px 1fr; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; }
.seed-asset-preview { aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: 8px; background: #e9ede7; overflow: hidden; position: relative; }
.seed-asset-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seed-asset-preview span { position: absolute; inset: auto 6px 6px; padding: 5px 7px; border-radius: 5px; color: white; background: rgba(18,30,22,.78); font-size: 9px; }
.seed-asset-body { min-width: 0; display: flex; flex-direction: column; }
.seed-asset-body h4 { margin: 1px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.seed-asset-body > small { color: var(--muted); font-size: 10px; }
.seed-asset-controls { display: grid; grid-template-columns: 1fr 90px; gap: 7px; margin: 10px 0; }
.seed-asset-controls label { color: var(--muted); font-size: 10px; }
.seed-asset-controls select, .seed-asset-controls input { width: 100%; height: 32px; margin-top: 5px; border: 1px solid var(--line); border-radius: 7px; background: white; padding: 0 8px; }
.seed-asset-actions { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: auto; }
.seed-asset-actions button { min-height: 31px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 10px; }
.seed-asset-actions button:first-child { background: var(--ink); color: white; border-color: var(--ink); }
.seed-asset-actions button:last-child { width: 34px; color: #a64f43; }
.seed-script-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.seed-script-toolbar > div { display: flex; gap: 5px; }
.seed-script-toolbar button { height: 29px; padding: 0 11px; border: 0; border-radius: 7px; background: #eef1ed; color: var(--muted); font-size: 10px; }
.seed-script-toolbar button.active { color: white; background: var(--ink); }
.seed-script-toolbar > span { color: var(--muted); font-size: 10px; }
.seed-script-list { display: grid; gap: 10px; }
.seed-script-card { display: grid; grid-template-columns: 100px 1fr; border: 1px solid var(--line); border-radius: 11px; background: #fbfcf9; overflow: hidden; }
.seed-script-card.reviewed { border-color: #d4e5ab; box-shadow: inset 3px 0 #9ec63b; }
.seed-script-thumb { width: 100%; height: 100%; min-height: 170px; object-fit: cover; background: #e8ece7; }
.seed-script-body { min-width: 0; padding: 12px; }
.seed-script-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.seed-script-meta span { padding: 4px 7px; border-radius: 5px; background: #eff1ee; color: #69756c; font-size: 9px; }
.seed-script-meta .reviewed { color: #5f7b20; background: #effbd0; }
.seed-script-meta .pending { color: #9b6922; background: #fff4df; }
.seed-script-body h4 { margin: 0 0 5px; font-size: 13px; }
.seed-script-body > p { margin: 0; color: #667169; font-size: 10px; line-height: 1.55; }
.seed-script-hook { margin-top: 7px !important; padding: 8px 9px; border-radius: 7px; background: white; border: 1px solid #edf0eb; color: #313d35 !important; }
.seed-script-actions { display: flex; gap: 6px; margin-top: 10px; }
.seed-script-actions button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #59655d; font-size: 10px; }
.seed-script-actions .review { margin-left: auto; background: #effbd0; border-color: #d5e8aa; color: #56751a; font-weight: 700; }
.seed-script-actions .review.reviewed { background: var(--ink); border-color: var(--ink); color: white; }
.seed-script-actions .danger { color: #a64f43; }
.ai-script-revision-card { width: min(660px, calc(100vw - 36px)); max-height: min(84vh, 760px); overflow: auto; }
.ai-script-revision-summary { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 13px 14px; margin: 4px 0 16px; border: 1px solid #dfe6da; border-radius: 10px; background: #f8faf5; }
.ai-script-revision-summary span { color: var(--muted); font-size: 10px; }
.ai-script-revision-summary strong { color: var(--ink); font-size: 12px; }
.ai-script-revision-summary small { grid-column: 1 / -1; color: #78837b; font-size: 9px; line-height: 1.55; }
.ai-script-revision-field > span b { color: #a94f42; }
.ai-script-revision-field textarea { min-height: 150px; font-size: 12px; line-height: 1.7; }
.ai-script-revision-field > small { display: block; margin-top: 6px; color: #89938c; font-size: 9px; }
.ai-script-revision-impact { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; padding: 11px 12px; border-radius: 9px; background: #f3fbdc; color: #5b751f; }
.ai-script-revision-impact span { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 50%; background: #dff3a9; font-weight: 800; }
.ai-script-revision-impact p { margin: 1px 0 0; font-size: 10px; line-height: 1.6; }
.ai-script-revision-actions { margin-top: 18px; }
.seed-output-settings { display: grid; grid-template-columns: minmax(190px, 250px) 120px 1fr; gap: 9px; align-items: end; margin-bottom: 14px; padding: 13px; border-radius: 10px; background: #f7f8f4; }
.seed-output-settings label { color: var(--muted); font-size: 10px; }
.seed-output-settings select, .seed-output-settings input { width: 100%; height: 35px; margin-top: 6px; border: 1px solid var(--line); border-radius: 7px; background: white; padding: 0 8px; }
.seed-output-settings .ratio-control { gap: 7px; }
.seed-output-settings .ratio-control input { margin-top: 6px; }
.seed-output-settings .generation-action-button { grid-column: 1 / -1; margin: 0; }
.seed-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.seed-video-card { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: white; overflow: hidden; }
.seed-video-media { aspect-ratio: 9 / 12; position: relative; display: grid; place-items: center; overflow: hidden; background: #16201a; color: white; }
.seed-video-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.seed-video-media > span { text-align: center; color: #b7c1ba; font-size: 10px; line-height: 1.6; }
.seed-video-media > span b { display: block; color: var(--lime); font-size: 18px; }
.seed-video-status { position: absolute; left: 8px; top: 8px; padding: 5px 7px; border-radius: 6px; background: rgba(20,31,23,.84); color: white; font-size: 9px; }
.seed-video-status.success { background: rgba(90,122,25,.9); }
.seed-video-status.failed { background: rgba(165,73,61,.9); }
.seed-video-body { padding: 11px; }
.seed-video-body h4 { margin: 0; font-size: 12px; }
.seed-video-body small { display: block; margin: 4px 0 9px; color: var(--muted); font-size: 9px; }
.seed-video-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.seed-video-actions button { height: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fafbf8; color: #5b675e; font-size: 10px; }
.seed-video-actions .keep-on { background: #effbd0; color: #57751b; border-color: #d6e9aa; }
.seed-video-actions .delete { width: 34px; color: #a64f43; }
.seed-video-actions [data-pv-resume-video], .seed-video-actions [data-seed-resume-video] { grid-column: 1 / 3; grid-row: 2; width: auto; }
.seed-video-actions:has([data-pv-resume-video]) .delete, .seed-video-actions:has([data-seed-resume-video]) .delete { grid-column: 3; grid-row: 1 / 3; height: 66px; }
.seed-script-modal { width: min(920px, 88vw); max-height: 88vh; overflow: auto; }
.seed-script-edit-form { margin: 16px 0; }
.seed-shot-editor-head { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); }
.seed-shot-editor-head h4 { margin: 3px 0 0; font-size: 13px; }
.seed-shot-editor-head span { color: #9a6b27; font-size: 10px; }
.seed-shot-editor { display: grid; gap: 8px; margin: 11px 0 16px; }
.seed-shot-edit-card { padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf8; }
.seed-shot-edit-card > strong { display: block; margin-bottom: 8px; font-size: 11px; }
.seed-shot-edit-grid { display: grid; grid-template-columns: 80px 80px 1fr 1fr; gap: 7px; }
.seed-shot-edit-grid label { color: var(--muted); font-size: 9px; }
.seed-shot-edit-grid label.wide { grid-column: span 2; }
.seed-shot-edit-grid input, .seed-shot-edit-grid textarea { width: 100%; margin-top: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: white; resize: vertical; }
.seed-confirm-modal { width: 610px; }
.seed-confirm-modal > p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.seed-confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0; }
.seed-confirm-grid > div { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf8; }
.seed-confirm-grid span { display: block; color: var(--muted); font-size: 9px; }
.seed-confirm-grid strong { display: block; margin-top: 5px; font-size: 13px; }
.seed-library-selected { border-color: var(--lime-dark) !important; opacity: .72; }
.seed-library-selected::after { content: "✓ 已选择"; position: absolute; inset: 6px 6px auto auto; padding: 4px 6px; border-radius: 5px; background: var(--lime); color: var(--ink); font-size: 9px; font-weight: 700; }

/* 商品视频制作 */
.product-video-tag { background: #e6f0ff !important; color: #3970b7 !important; font-size: 8px !important; }
.pv-stepper { grid-template-columns: auto 1fr auto 1fr auto 1fr auto; }
.pv-direction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pv-direction-grid > button { min-height: 88px; display: grid; grid-template-columns: 37px 1fr; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; text-align: left; }
.pv-direction-grid > button > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; background: #edf1ec; color: #758078; font-size: 17px; }
.pv-direction-grid strong { display: block; margin-bottom: 5px; font-size: 13px; }
.pv-direction-grid small { display: block; color: var(--muted); line-height: 1.55; }
.pv-direction-grid > button.active { border-color: #b7d462; background: #f8fce9; box-shadow: inset 3px 0 #a5cf38; }
.pv-direction-grid > button.active > span { background: var(--lime); color: var(--ink); }
.pv-project-form { margin-bottom: 15px; }
.pv-scene-control { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf8; }
.pv-scene-control > label { display: flex; align-items: center; gap: 10px; }
.pv-scene-control input { width: 18px; height: 18px; accent-color: #9fc52f; }
.pv-scene-control strong, .pv-scene-control small { display: block; }
.pv-scene-control strong { font-size: 11px; }
.pv-scene-control small { margin-top: 4px; color: var(--muted); }
.pv-scene-actions { display: flex; gap: 7px; white-space: nowrap; }
.pv-scene-actions button { min-height: 34px; height: 34px; padding: 0 11px; }
.pv-scene-preview { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; margin-top: 10px; padding: 11px; border: 1px solid #d8e4bd; border-radius: 10px; background: #fbfdec; }
.pv-scene-preview > button { position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #e7ece6; }
.pv-scene-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-scene-preview button span { position: absolute; inset: auto 6px 6px; padding: 4px 6px; border-radius: 5px; color: white; background: rgba(18,30,22,.78); font-size: 9px; }
.pv-scene-preview strong { display: block; font-size: 12px; }
.pv-scene-preview small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.55; }
.pv-firstframe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.pv-firstframe-card { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: white; overflow: hidden; }
.pv-firstframe-card.confirmed { border-color: #c7dd8d; box-shadow: inset 0 -3px #a2cc35; }
.pv-firstframe-media { position: relative; aspect-ratio: 9 / 12; display: grid; place-items: center; overflow: hidden; background: #e8ece7; color: var(--muted); }
.pv-firstframe-media img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.pv-firstframe-media > span { max-width: 80%; text-align: center; line-height: 1.6; }
.pv-firstframe-state { position: absolute; left: 8px; top: 8px; padding: 5px 7px; border-radius: 6px; background: rgba(20,31,23,.84); color: white; font-size: 9px; }
.pv-firstframe-state.confirmed { background: rgba(89,121,26,.92); }
.pv-firstframe-body { padding: 11px; }
.pv-firstframe-body h4 { margin: 0; font-size: 12px; }
.pv-firstframe-body small { display: block; margin: 5px 0 10px; color: var(--muted); }
.pv-firstframe-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pv-firstframe-actions button { min-height: 31px; border: 1px solid var(--line); border-radius: 7px; background: #fafbf8; color: #59655d; }
.pv-firstframe-actions button.primary { background: var(--ink); border-color: var(--ink); color: white; }
.pv-firstframe-actions button.confirmed { background: #effbd0; border-color: #d2e6a2; color: #55741a; font-weight: 700; }
.pv-guide-card li::before { background: #e6f0ff; color: #3970b7; }
.generation-action-compact { border-color: #d2e6a2 !important; background: #effbd0 !important; color: #55741a !important; font-weight: 750 !important; }
.generation-action-compact::before { content: '✦'; margin-right: 4px; color: #6f921d; }
.generation-action-compact:hover:not(:disabled) { background: #e5f7b9 !important; border-color: #bcd579 !important; }
.generation-action-compact:disabled { opacity: .55; cursor: wait; }
.buyer-extend-control .generation-action-compact { width: 55px; }

/* Local usage statistics */
#view-statistics { max-width: 1660px; margin: 0 auto; }
.statistics-intro-actions { display: flex; align-items: center; gap: 12px; }
.statistics-intro-actions > span { color: var(--muted); font-size: 11px; }
.statistics-toolbar { min-height: 58px; margin-bottom: 14px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.statistics-range-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 10px; background: #f1f3ee; }
.statistics-range-tabs button { min-height: 34px; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; color: #6f7a72; font-size: 11px; font-weight: 700; }
.statistics-range-tabs button.active { background: var(--ink); color: white; box-shadow: 0 5px 12px rgba(23,33,27,.12); }
.statistics-legend { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 10px; }
.statistics-legend span { display: flex; align-items: center; gap: 6px; }
.statistics-legend i { width: 8px; height: 8px; border-radius: 50%; background: #b7c0b8; }
.statistics-legend i.tracked { background: #83b822; }
.statistics-legend i.baseline { background: #a7b1aa; }
.statistics-summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.statistics-summary-card { position: relative; min-width: 0; min-height: 116px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; display: flex; align-items: flex-start; gap: 12px; box-shadow: var(--shadow); overflow: hidden; }
.statistics-summary-card::after { content: ''; position: absolute; width: 68px; height: 68px; right: -28px; bottom: -34px; border-radius: 50%; background: currentColor; opacity: .06; }
.statistics-summary-card > span { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; background: #eff2ed; color: var(--ink); font-weight: 850; }
.statistics-summary-card.image > span { background: #e9f5ff; color: #3473a6; }
.statistics-summary-card.video > span { background: #eeeaff; color: #7157ca; }
.statistics-summary-card.analysis > span { background: #effbd0; color: #688d15; }
.statistics-summary-card.script > span { background: #fff0e9; color: #bc6752; }
.statistics-summary-card.cost > span { background: #17211b; color: var(--lime); }
.statistics-summary-card.average > span { background: #f1f3ee; color: #536057; }
.statistics-summary-card small { display: block; color: var(--muted); font-size: 10px; margin: 1px 0 6px; }
.statistics-summary-card strong { display: block; font-size: 22px; line-height: 1.15; white-space: nowrap; letter-spacing: -.5px; }
.statistics-summary-card em { display: block; margin-top: 8px; color: #98a199; font-size: 9px; font-style: normal; line-height: 1.45; }
.statistics-main-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(290px, .7fr); gap: 14px; margin-top: 14px; }
.statistics-breakdown-panel, .statistics-cost-panel, .statistics-pricing-panel, .statistics-history-panel { padding: 20px; }
.statistics-breakdown-panel .panel-heading > span, .statistics-history-panel .panel-heading > span { color: var(--muted); font-size: 10px; }
.statistics-breakdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.statistics-breakdown-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf8; }
.statistics-breakdown-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.statistics-breakdown-card header strong { font-size: 12px; }
.statistics-breakdown-card header span { min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; background: #edf0eb; color: #667168; font-size: 9px; }
.statistics-breakdown-card > strong { display: block; margin: 14px 0 4px; font-size: 22px; }
.statistics-breakdown-card > p { min-height: 30px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.statistics-breakdown-card footer { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e8ebe5; color: #778179; font-size: 9px; }
.statistics-cost-panel { background: var(--ink); color: white; }
.statistics-cost-panel .panel-heading small, .statistics-cost-panel .panel-heading h3 { color: white; }
.statistics-cost-panel .panel-heading b { color: var(--lime); font-size: 9px; font-weight: 700; }
.statistics-cost-ring { width: 152px; height: 152px; margin: 5px auto 15px; border-radius: 50%; padding: 11px; background: conic-gradient(var(--lime) 0 72%, rgba(255,255,255,.08) 72% 100%); }
.statistics-cost-ring > div { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--ink); border: 1px solid rgba(255,255,255,.1); }
.statistics-cost-ring strong { display: block; font-size: 22px; color: var(--lime); }
.statistics-cost-ring span { display: block; margin-top: 6px; color: #9eaba1; font-size: 9px; }
.statistics-cost-panel > p { margin: 0; color: #9eaba1; font-size: 10px; line-height: 1.75; }
.statistics-pricing-panel { margin-top: 14px; }
.statistics-pricing-panel .panel-heading { align-items: flex-start; }
.statistics-pricing-panel .panel-heading p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.statistics-pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.statistics-pricing-grid label { min-width: 0; }
.statistics-pricing-grid label > span { display: block; margin-bottom: 6px; color: #465249; font-size: 10px; font-weight: 700; }
.statistics-pricing-grid input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line-dark); border-radius: 8px; background: #fafbf8; outline: 0; }
.statistics-pricing-grid input:focus { border-color: #9fc747; background: white; box-shadow: 0 0 0 3px rgba(159,199,71,.1); }
.statistics-pricing-grid small { display: block; min-height: 28px; margin-top: 5px; color: #929c94; font-size: 8px; line-height: 1.5; }
.statistics-pricing-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.statistics-pricing-footer > span { color: var(--muted); font-size: 10px; }
.statistics-history-panel { margin-top: 14px; }
.statistics-history-head, .statistics-history-row { display: grid; grid-template-columns: 145px minmax(130px, .8fr) minmax(180px, 1.4fr) 110px 100px; gap: 12px; align-items: center; }
.statistics-history-head { min-height: 34px; padding: 0 12px; border-radius: 8px; background: #f3f5f1; color: #7a857d; font-size: 9px; font-weight: 700; }
.statistics-history-row { min-height: 52px; padding: 8px 12px; border-bottom: 1px solid #ecefea; font-size: 10px; }
.statistics-history-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statistics-history-row .history-type strong { display: block; font-size: 10px; }
.statistics-history-row .history-type small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.statistics-history-row .history-result { justify-self: start; padding: 4px 7px; border-radius: 6px; background: #effbd0; color: #5d8116; font-weight: 700; }
.statistics-history-row .history-result.failed { background: #fff0ed; color: #b55445; }
.statistics-history-row .history-cost { font-weight: 800; }
.statistics-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 11px; }
.statistics-baseline-note { margin-top: 13px; padding: 11px 13px; border-radius: 9px; background: #f4f7ed; color: #66725f; font-size: 10px; line-height: 1.65; }

/* Keep long project and result lists cheap to scroll. Off-screen cards are laid out on demand. */
.project-card,
.result-card,
.buyer-script-card,
.buyer-result-card,
.photo-source-card,
.design-asset-card,
.design-module-card,
.simple-module-card,
.module-image-card,
.design-result-card,
.seed-asset-card,
.seed-script-card,
.pv-firstframe-card,
.seed-video-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

/* Touch scrolling must keep real card geometry. A 360px skipped-content estimate
   differs substantially from mobile image cards and can collapse the scroll range
   while the browser is painting it. Native lazy image/video loading still applies. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .project-card,
  .result-card,
  .buyer-script-card,
  .buyer-result-card,
  .photo-source-card,
  .design-asset-card,
  .design-module-card,
  .simple-module-card,
  .module-image-card,
  .design-result-card,
  .seed-asset-card,
  .seed-script-card,
  .pv-firstframe-card,
  .seed-video-card {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }
}

@media (max-width: 1420px) {
  .project-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .functional-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .functional-flow i { display: none; }
  .project-identity-card { grid-template-columns: 1fr; }
  .project-identity-fields { grid-template-columns: 1fr auto; }
  .buyer-layout { grid-template-columns: minmax(610px, 1fr) 215px; }
  .buyer-stepper button { min-width: 108px; }
  .buyer-result-grid { grid-template-columns: repeat(2, 1fr); }
  .seed-asset-card { grid-template-columns: 125px 1fr; }
  .photo-stepper button { min-width: 96px; }
  .photo-source-grid.model { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .design-stepper button { min-width: 98px; }
  .design-asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .simple-module-card { grid-template-columns: 42px 30px minmax(150px, 1fr) 110px 86px; }
  .simple-module-description { grid-column: 3 / -1; }
  .statistics-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statistics-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1260px) {
  :root { --sidebar: 218px; }
  .view, .topbar { padding-left: 25px; padding-right: 25px; }
  .view.studio-reserved-view { padding-left: 0; padding-right: 0; }
  #projectListPane { padding-top: 24px; }
  #projectEditorPane { padding-top: 12px; }
  .hero-copy { padding-left: 38px; }
  .result-grid { grid-template-columns: repeat(3, 1fr); }
  .buyer-layout { grid-template-columns: 1fr; }
  .buyer-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .module-shortcut-panel { grid-column: 1 / -1; }
  .module-shortcut-list { display: grid; grid-template-columns: 1fr 1fr; }
  .buyer-stepper button { min-width: 95px; }
  .seed-output-settings { grid-template-columns: repeat(3, 1fr); }
  .seed-output-settings .generation-action-button { grid-column: 1 / -1; }
  .photo-board-row { grid-template-columns: 1fr; }
  .photo-model-controls { grid-template-columns: 1fr; }
  .design-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simple-style-library { grid-template-columns: 1fr auto; }
  .project-identity-fields { grid-template-columns: 1fr 1fr; }
  .statistics-main-grid { grid-template-columns: 1fr; }
  .statistics-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Shared AI confirmation: model IDs left, actions right. */
.action-confirm-actions {display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.ai-model-fields {display:flex;gap:12px;flex:1;min-width:210px;margin-right:auto;text-align:left}
.ai-model-fields[hidden] {display:none}
.ai-model-fields label {display:flex;flex:1;min-width:0;flex-direction:column;gap:8px}
.ai-model-fields label>span {font-size:13px;color:#6e7d68}
.ai-model-fields select {width:100%;min-width:0;height:48px;border:1px solid #d4decc;border-radius:12px;background:#fafcf7;padding:0 12px;color:#18251c;font:inherit}
.action-confirm-card:has(.ai-model-fields:not([hidden])) {width:min(760px,calc(100vw - 40px))}
.action-confirm-actions>button {flex:0 0 auto;min-width:110px}
#actionConfirmModal {z-index:12000}
@media(max-width:600px){.ai-model-fields{flex-basis:100%;flex-wrap:wrap}.action-confirm-actions>button{flex:1}}

/* Project overview and persistent sidebar footer. */
.project-overview > div:last-child { border-right: 0; }
.sidebar > * { flex-shrink: 0; }
.sidebar .nav-system { margin-top: 20px; }
.sidebar .sidebar-foot { margin-top: auto; padding-top: 16px; }
.sidebar .profile { padding-bottom: 8px; }
.project-grid { align-items: stretch; }
.project-card { display: flex; flex-direction: column; }
.project-card-body { flex: 1; display: flex; flex-direction: column; }
.project-card-body .project-actions { margin-top: auto; padding-top: 12px; }
#photoCustomCategoryField[hidden] { display: none; }

/* Keep the workspace focused on project creation and recent projects. */
#view-home > .stats-grid, #view-home > .dashboard-grid { display: none !important; }

.account-key-input{position:relative;display:flex!important;width:100%;align-items:center}.account-key-input input{width:100%;padding-right:58px!important}.account-key-input button{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:40px;height:40px;padding:0!important;border:0!important;background:transparent!important;color:#657794}.account-key-input button[aria-pressed="true"]{color:#315bf5}.account-inline-pricing{margin-top:24px;padding:28px;background:#fff;border:1px solid #dce3ef;border-radius:20px}.account-inline-pricing input{max-width:420px}.account-inline-pricing p{line-height:1.7}

.account-inline-pricing{padding:0;border:0;background:transparent}.account-price-content{padding:28px;border:1px solid #dce3ef;border-radius:20px;background:#fff}.account-price-actions{display:flex;justify-content:flex-end;margin-top:24px}
.account-panel section.account-inline-pricing{padding:0;border:0;background:transparent;margin-top:24px}

.account-price-actions{gap:12px;flex-wrap:wrap}.account-inline-pricing [data-sync-schedule]{align-items:end}.account-inline-pricing [data-sync-schedule] input{max-width:140px}.account-inline-pricing details summary{cursor:pointer;font-weight:600}

#view-productphoto .photo-person-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px;align-items:start}
#view-productphoto .photo-person-options>.field,#view-productphoto .photo-person-options>.photo-model-controls{margin:0;min-width:0}
#view-productphoto .photo-person-options .field>span{display:block;min-height:24px;margin-bottom:8px}
#view-productphoto .photo-person-options select{width:100%;margin-top:0}
#view-productphoto .photo-person-options .field{display:block}
@media(max-width:760px){#view-productphoto .photo-person-options{grid-template-columns:1fr;gap:16px}}

/* Product identity: stable header action, aligned fields, contextual category detail. */
.project-identity-card{display:block;padding:24px!important}
.project-identity-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.project-identity-copy{display:flex;align-items:center;gap:14px;min-width:0}
.project-identity-copy h3{margin:0!important;font-size:20px!important}
#projectIdentitySaveStatus{font-size:12px;color:#738477;white-space:nowrap}
#projectIdentitySaveStatus[data-state="error"]{color:#b44136}
.project-identity-header #openProjectFolder{width:auto!important;min-height:36px;height:auto;padding:8px 12px!important;font-size:13px!important;white-space:nowrap}
.project-identity-fields{grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr)!important;align-items:start;gap:20px}
.project-identity-fields label{display:block;margin:0;min-width:0}
.project-identity-fields label[hidden]{display:none!important}
.project-identity-fields label>span{font-size:13px!important;font-weight:600;margin:0 0 8px!important;line-height:20px}
.project-identity-fields input,.project-identity-fields select{box-sizing:border-box;height:46px!important;min-height:46px!important;padding:0 13px!important;font-size:15px!important;background:#fff}
.project-category-group{display:grid;gap:12px;min-width:0}
.project-category-group:has(#projectCustomCategoryControl:not([hidden])){gap:0}
#projectCustomCategoryControl{position:relative}
#projectCustomCategoryControl[hidden],#projectDashboardCategory[hidden]{display:none!important}
#projectCustomCategoryControl input{padding-right:44px!important}
#projectCategoryChoose{position:absolute;right:1px;top:1px;width:40px;height:44px;border:0;background:transparent;color:#35465f;font-size:22px;cursor:pointer}
#projectCategoryHint{font-size:12px;line-height:1.5;color:#7a8798}
#projectCategoryHint:empty{display:none}
@media(max-width:760px){
 .project-identity-card{padding:18px!important}
 .project-identity-header{align-items:flex-start;margin-bottom:18px;gap:10px}
 .project-identity-copy{display:block}
 .project-identity-copy h3{font-size:18px!important;margin-bottom:4px!important}
 .project-identity-header #openProjectFolder{font-size:12px!important}
 .project-identity-fields{grid-template-columns:1fr!important;gap:16px}
 .project-identity-fields input,.project-identity-fields select{font-size:16px!important}
}

.photo-start-status:not([hidden]) { display: block; margin: 14px 0 0; padding: 11px 14px; border: 1px solid #e7d5b4; border-radius: 10px; background: #fff8eb; color: #805a20; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
