:root {
  --bg: #080b12;
  --panel: #10141e;
  --panel-2: #151a26;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --text: #f2f3f7;
  --muted: #939bac;
  --violet: #a58aff;
  --violet-2: #7059d6;
  --mint: #65e0b8;
  --amber: #eeb56a;
  --danger: #ef8d98;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--text); min-width: 320px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 5%, rgba(112,89,214,.16), transparent 28rem),
    radial-gradient(circle at 92% 85%, rgba(45,113,105,.12), transparent 30rem), var(--bg);
}
button, select, textarea, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.shell { width: min(1480px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.view-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: #0c1017; }
.view-switch button { border: 0; border-radius: 8px; padding: 7px 10px; background: transparent; color: #747d8d; cursor: pointer; font-size: 11px; }
.view-switch button.active { background: rgba(165,138,255,.13); color: #d5cdf7; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(165,138,255,.42); border-radius: 14px; color: var(--violet); background: rgba(165,138,255,.08); font-size: 13px; font-weight: 900; letter-spacing: .06em; }
.eyebrow, .step-label { color: var(--violet); font-size: 10px; letter-spacing: .19em; font-weight: 800; }
h1 { font-size: 22px; margin: 2px 0 0; letter-spacing: -.02em; }
.engine-badge { border: 1px solid rgba(101,224,184,.18); background: rgba(101,224,184,.045); border-radius: 99px; padding: 9px 13px; color: #c7d8d2; font-size: 12px; white-space: nowrap; }
.engine-badge span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: engineGlow 2.2s ease-in-out infinite; }
@keyframes engineGlow { 0%,100% { opacity: .55; box-shadow: 0 0 6px rgba(101,224,184,.45); } 50% { opacity: 1; box-shadow: 0 0 15px rgba(101,224,184,.9); } }
.flow { width: min(680px, 100%); margin: 34px auto 26px; display: flex; align-items: center; justify-content: center; }
.flow-step { color: #6e7585; display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 12px; }
.flow-step b { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #343a48; border-radius: 50%; font-size: 10px; }
.flow-step.active { color: #e5e1f5; }
.flow-step.active b { color: #12101c; background: var(--violet); border-color: var(--violet); box-shadow: 0 0 18px rgba(165,138,255,.22); }
.flow-step.complete { color: #9da5b4; }
.flow-step.complete b { color: #07130f; background: var(--mint); border-color: var(--mint); }
.flow-line { height: 1px; flex: 1; margin: 0 16px; background: linear-gradient(90deg, #3b344f, #252a35); }
.workspace { display: grid; grid-template-columns: 390px minmax(0,1fr); gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16,20,30,.92); box-shadow: 0 24px 80px rgba(0,0,0,.25); overflow: hidden; }
.input-panel { padding: 22px; position: sticky; top: 18px; }
.output-panel { min-height: 720px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h2 { font-size: 18px; margin: 5px 0 18px; }
.privacy { color: #87bda9; background: rgba(101,224,184,.07); border: 1px solid rgba(101,224,184,.16); border-radius: 99px; padding: 6px 9px; font-size: 10px; }
.dropzone { min-height: 260px; border: 1px dashed #3c4250; border-radius: 17px; display: grid; place-items: center; position: relative; overflow: hidden; cursor: pointer; background: #0d1119; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.dragover { border-color: var(--violet); background: #111520; }
.dropzone.paste-success { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(101,224,184,.09); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-empty { display: flex; align-items: center; flex-direction: column; gap: 8px; color: var(--muted); text-align: center; }
.drop-empty strong { color: #d6d9e1; font-size: 14px; }
.drop-empty span { font-size: 11px; }
.paste-shortcut { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: #697183; }
.paste-shortcut kbd { min-width: 27px; padding: 4px 6px; border: 1px solid #3a4150; border-bottom-color: #505869; border-radius: 6px; background: #151a24; color: #c4c9d3; font-family: inherit; font-size: 9px; font-weight: 800; box-shadow: 0 2px 0 #07090d; }
.paste-shortcut b { color: #555e6e; font-size: 9px; }
.paste-shortcut em { margin-left: 5px; color: #777f8e; font-size: 10px; font-style: normal; }
.upload-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 5px; background: rgba(165,138,255,.08); border: 1px solid rgba(165,138,255,.2); color: var(--violet); font-size: 25px; font-weight: 200; }
.preview-grid { display: none; width: 100%; min-height: 260px; padding: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 118px; gap: 8px; background: #080a0f; }
.dropzone.has-image .preview-grid { display: grid; }
.dropzone.has-image .drop-empty { display: none; }
.preview-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #0e121a; }
.preview-item:first-child:nth-last-child(1) { grid-column: 1 / -1; grid-row: span 2; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item b { position: absolute; left: 7px; top: 7px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; background: rgba(5,7,11,.76); font-size: 9px; }
.preview-item button { position: absolute; right: 6px; top: 6px; width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; background: rgba(5,7,11,.76); cursor: pointer; font-size: 11px; }
.replace-button { display: none; position: absolute; right: 10px; bottom: 10px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 10px; background: rgba(8,11,18,.8); cursor: pointer; font-size: 11px; }
.dropzone.has-image .replace-button { display: block; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; color: #b8becb; font-size: 12px; margin-bottom: 7px; }
.field em { color: #686f7e; font-style: normal; }
select, textarea { width: 100%; color: #e3e5eb; border: 1px solid var(--line); border-radius: 11px; background: #0c1017; outline: none; padding: 11px 12px; font-size: 12px; }
select:focus, textarea:focus { border-color: rgba(165,138,255,.65); box-shadow: 0 0 0 3px rgba(165,138,255,.08); }
textarea { resize: vertical; line-height: 1.6; }
.primary { width: 100%; margin-top: 17px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 12px; padding: 13px 15px; cursor: pointer; font-size: 13px; font-weight: 800; background: linear-gradient(135deg, #a58aff, #8068e8); color: #100d19; }
.primary:disabled { cursor: not-allowed; filter: grayscale(.5); opacity: .42; }
.primary i { font-size: 18px; font-style: normal; }
.microcopy { text-align: center; color: #656d7c; font-size: 10px; margin: 9px 0 0; }
.history { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }
.history-title { display: flex; align-items: center; justify-content: space-between; color: #b9bec9; font-size: 11px; font-weight: 700; }
.history-title button, .result-tabs button, .prompt-card button, .dna-card button { border: 0; background: none; color: #7e8798; cursor: pointer; font-size: 11px; }
.history-list { display: grid; gap: 7px; margin-top: 10px; }
.history-empty { color: #676e7b; font-size: 11px; padding: 10px 0; }
.history-item { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; text-align: left; padding: 10px; border-radius: 10px; cursor: pointer; background: #0c1017; border: 1px solid var(--line); }
.history-item strong { color: #d8dbe3; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item span { color: #6f7787; font-size: 10px; }
.history-item i { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.history-item i.complete { background: var(--mint); }
.state { min-height: 720px; padding: 54px; }
.welcome-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.welcome-hero { display: flex; flex-direction: column; align-items: center; width: 100%; }
.orbit { width: 126px; height: 126px; position: relative; display: grid; place-items: center; margin-bottom: 30px; border-radius: 50%; border: 1px solid rgba(165,138,255,.25); box-shadow: inset 0 0 40px rgba(165,138,255,.06), 0 0 50px rgba(165,138,255,.05); animation: orbitFloat 5s ease-in-out infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(165,138,255,.16); animation: orbitSpin 18s linear infinite; }
.orbit::before { inset: -13px; } .orbit::after { inset: 18px; animation-direction: reverse; animation-duration: 12s; }
.orbit div { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, rgba(165,138,255,.22), rgba(112,89,214,.06)); color: #c5b7ff; font-weight: 900; letter-spacing: .08em; }
@keyframes orbitFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.welcome-state h2, .pending-state h2 { margin: 10px 0; font-size: 28px; letter-spacing: -.035em; }
.welcome-hero > p, .pending-state > p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.8; font-size: 13px; }
.welcome-cta { display: flex; align-items: center; gap: 24px; margin-top: 22px; padding: 12px 16px; border: 1px solid rgba(165,138,255,.35); border-radius: 12px; background: linear-gradient(135deg, rgba(165,138,255,.2), rgba(112,89,214,.12)); color: #e7e1ff; cursor: pointer; font-size: 12px; font-weight: 800; transition: transform .2s, border-color .2s, background .2s; }
.welcome-cta:hover { transform: translateY(-2px); border-color: rgba(165,138,255,.62); background: linear-gradient(135deg, rgba(165,138,255,.28), rgba(112,89,214,.16)); }
.welcome-cta i { font-size: 16px; font-style: normal; }
.welcome-features { width: min(760px,100%); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 34px; text-align: left; }
.welcome-features article { min-height: 132px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(165,138,255,.025)); }
.welcome-features b { color: var(--violet); font-size: 10px; letter-spacing: .15em; }
.welcome-features h3 { margin: 13px 0 7px; font-size: 13px; }
.welcome-features p { margin: 0; color: #7f8797; font-size: 10px; line-height: 1.65; }
.dimension-preview { max-width: 640px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.dimension-preview span { border: 1px solid var(--line); color: #8991a0; background: rgba(255,255,255,.02); border-radius: 99px; padding: 7px 11px; font-size: 10px; }
.pending-state { display: flex; align-items: center; flex-direction: column; justify-content: center; text-align: center; }
.pending-pulse { display: flex; gap: 7px; margin-bottom: 25px; }
.pending-pulse span { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); animation: pulse 1.2s infinite ease-in-out; }
.pending-pulse span:nth-child(2){ animation-delay: .15s; }.pending-pulse span:nth-child(3){ animation-delay: .3s; }
@keyframes pulse { 0%, 70%, 100% { opacity: .28; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-5px); } }
.analysis-progress { width: min(660px,100%); margin-top: 24px; padding: 18px; border: 1px solid rgba(165,138,255,.24); border-radius: 16px; background: linear-gradient(135deg, rgba(165,138,255,.07), rgba(255,255,255,.018)); text-align: left; }
.analysis-progress-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.analysis-progress-head strong { font-size: 12px; }
.analysis-progress-head span { color: #778091; font-size: 10px; }
.analysis-track { height: 4px; margin: 13px 0 15px; overflow: hidden; border-radius: 99px; background: #262b37; }
.analysis-track i { display: block; width: 44%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--mint)); animation: analysisTrack 3.2s ease-in-out infinite; }
@keyframes analysisTrack { 0% { transform: translateX(-105%); } 55% { transform: translateX(120%); } 100% { transform: translateX(245%); } }
.analysis-checklist { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.analysis-checklist li { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9,12,18,.45); color: #747d8d; font-size: 10px; animation: analysisItem 5s ease-in-out infinite; }
.analysis-checklist li:nth-child(2) { animation-delay: .55s; }.analysis-checklist li:nth-child(3) { animation-delay: 1.1s; }.analysis-checklist li:nth-child(4) { animation-delay: 1.65s; }.analysis-checklist li:nth-child(5) { animation-delay: 2.2s; }
.analysis-checklist b { width: 17px; height: 17px; flex: 0 0 17px; display: grid; place-items: center; border-radius: 50%; background: rgba(101,224,184,.08); color: var(--mint); font-size: 9px; }
@keyframes analysisItem { 0%,100% { opacity: .45; border-color: var(--line); transform: translateY(0); } 22%,44% { opacity: 1; color: #d8dce5; border-color: rgba(101,224,184,.28); transform: translateY(-2px); } }
.task-created-card { width: min(660px,100%); display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #0b0f17; text-align: left; }
.task-created-card > div:first-child { display: flex; flex-direction: column; gap: 5px; }
.task-created-card span { color: #7b8494; font-size: 10px; }
.task-created-card strong { color: #d8dce5; font-size: 12px; }
.task-created-card code { color: #bcaeff; font-family: inherit; }
.processing-status { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.processing-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(238,181,106,.65); animation: statusBlink 1.4s ease-in-out infinite; }
.processing-status span { color: var(--amber); }
@keyframes statusBlink { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.pending-images { width: min(560px,100%); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin-top: 18px; }
.pending-images img { width: 100%; height: 105px; object-fit: cover; border-radius: 10px; background: #080a0f; border: 1px solid var(--line); }
.result-state { padding: 32px; }
.result-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 9px 4px 25px; }
.result-hero h2 { font-size: 28px; margin: 7px 0; letter-spacing: -.03em; }
.result-hero p { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.7; font-size: 13px; }
.confidence-ring { flex: 0 0 78px; height: 78px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle, #131825 55%, transparent 57%), conic-gradient(var(--mint) 0 80%, #252b38 80%); }
.confidence-ring strong { font-size: 18px; }.confidence-ring span { color: #828a9a; font-size: 9px; }
.save-style-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 22px; padding: 14px 15px; border: 1px solid rgba(165,138,255,.22); border-radius: 14px; background: linear-gradient(110deg, rgba(165,138,255,.08), rgba(101,224,184,.035)); }
.save-style-bar > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.save-style-bar strong { color: #d9dce5; font-size: 12px; }
.save-style-bar span { color: #7f8797; font-size: 10px; line-height: 1.5; }
.save-style-bar button { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(165,138,255,.36); border-radius: 10px; padding: 9px 12px; background: rgba(165,138,255,.12); color: #cabfff; cursor: pointer; font-size: 11px; font-weight: 800; }
.save-style-bar button i { font-size: 15px; font-style: normal; }
.save-style-bar button:hover { background: rgba(165,138,255,.18); }
.save-style-bar button:disabled { cursor: default; border-color: rgba(101,224,184,.25); background: rgba(101,224,184,.08); color: #8bd7bd; }
.save-style-bar.saved { border-color: rgba(101,224,184,.2); background: rgba(101,224,184,.045); }
.save-style-bar.saved strong { color: #9fe1ca; }
.result-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.result-tabs button { padding: 0 2px 12px; position: relative; }
.result-tabs button.active { color: #dcdfe6; }
.result-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--violet); }
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.info-card, .prompt-card, .dna-card { border: 1px solid var(--line); border-radius: 15px; background: #0d1119; padding: 17px; }
.info-card h3, .prompt-card h3, .dna-card h3 { margin: 0 0 13px; font-size: 13px; }
dl { margin: 0; display: grid; grid-template-columns: 78px 1fr; gap: 9px; font-size: 11px; line-height: 1.55; }
dt { color: #6e7686; } dd { color: #c8ccd5; margin: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 25px 2px 12px; }
.section-heading span { color: var(--violet); letter-spacing: .16em; font-size: 9px; font-weight: 800; }
.section-heading h3 { margin: 3px 0 0; font-size: 16px; }.section-heading small { color: #757d8d; }
.subject-profile-card { margin-bottom: 13px; border: 1px solid rgba(238,181,106,.2); border-radius: 15px; background: linear-gradient(135deg, rgba(238,181,106,.05), #0d1119 45%); padding: 4px 17px 17px; }
.subject-heading { margin-top: 14px; }
.subject-profile-grid { grid-template-columns: 82px 1fr 82px 1fr; gap: 10px 14px; }
.consensus-card { margin-bottom: 13px; border: 1px solid rgba(101,224,184,.22); border-radius: 15px; background: linear-gradient(135deg, rgba(101,224,184,.055), #0d1119 48%); padding: 16px; }
.consensus-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.consensus-head span { color: var(--mint); letter-spacing: .15em; font-size: 9px; font-weight: 800; }
.consensus-head h3 { margin: 4px 0 0; font-size: 15px; }
.consensus-head strong { color: var(--mint); font-size: 20px; }
.consensus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
.consensus-grid > div { border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: rgba(0,0,0,.1); }
.consensus-grid h4 { margin: 0 0 8px; font-size: 11px; }
.consensus-grid ul { margin: 0; padding-left: 16px; color: #aeb5c1; font-size: 10px; line-height: 1.55; }
.consensus-card > p { margin: 11px 0 0; color: #798292; font-size: 10px; line-height: 1.6; }
.dimension-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.dimension-card { border: 1px solid var(--line); border-radius: 14px; background: #0d1119; padding: 14px; }
.dimension-header { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.dimension-name { font-size: 12px; font-weight: 800; }
.dimension-meta { display: flex; align-items: center; gap: 7px; }
.dimension-meta b { color: var(--violet); font-size: 10px; }.dimension-meta span { border: 1px solid var(--line); border-radius: 99px; padding: 3px 7px; color: #8f97a6; font-size: 9px; }
.dimension-value { margin-top: 9px; color: #c6cad4; font-size: 11px; line-height: 1.6; }
.dimension-evidence { margin-top: 7px; color: #6f7786; font-size: 10px; line-height: 1.5; }
.feature-cards { margin-top: 13px; }.info-card ul { margin: 0; padding-left: 18px; color: #aeb4c1; font-size: 11px; line-height: 1.6; }.info-card li + li { margin-top: 5px; }
.stable { border-top-color: rgba(101,224,184,.4); }.accidental { border-top-color: rgba(238,181,106,.4); }
.prompt-card + .prompt-card { margin-top: 13px; }
.prompt-card > div, .dna-card > div { display: flex; align-items: center; justify-content: space-between; }
.prompt-card button, .dna-card button { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
.prompt-card textarea { margin-top: 2px; min-height: 230px; }
.dna-card pre { margin: 5px 0 0; color: #b7c0cf; overflow: auto; white-space: pre-wrap; line-height: 1.6; font-size: 11px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%,20px); background: #e8e9ee; color: #151820; padding: 9px 13px; border-radius: 9px; opacity: 0; pointer-events: none; transition: .2s; font-size: 11px; font-weight: 700; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.library-view { margin-top: 34px; }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 0 4px; }
.library-heading h2 { margin: 6px 0; font-size: 27px; }.library-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.library-count { text-align: right; }.library-count strong { display: block; color: var(--violet); font-size: 25px; }.library-count span { color: #798292; font-size: 10px; }
.style-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.library-empty { grid-column: 1 / -1; min-height: 300px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 18px; color: #747c8b; font-size: 12px; }
.style-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: rgba(16,20,30,.93); }
.style-cover { position: relative; height: 270px; overflow: hidden; background: #090c12; }
.style-cover > img { width: 100%; height: 100%; object-fit: cover; }
.style-cover .asset-badge { position: absolute; left: 10px; top: 10px; padding: 6px 8px; border-radius: 8px; background: rgba(8,10,16,.75); backdrop-filter: blur(8px); font-size: 9px; }
.style-thumbs { position: absolute; left: 9px; right: 9px; bottom: 9px; display: flex; gap: 6px; }
.style-thumbs img { width: 42px; height: 42px; object-fit: cover; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: #0b0e15; }
.style-card-body { padding: 15px; }.style-card-body h3 { margin: 0 0 7px; font-size: 15px; }.style-card-body p { min-height: 44px; margin: 0; color: #858e9e; font-size: 10px; line-height: 1.5; }
.style-card-meta { display: flex; gap: 8px; margin: 12px 0; }.style-card-meta span { border: 1px solid var(--line); border-radius: 99px; padding: 5px 8px; color: #7d8696; font-size: 9px; }
.add-example { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 1px solid rgba(165,138,255,.25); border-radius: 10px; padding: 9px 10px; background: rgba(165,138,255,.07); color: #bbb0e8; cursor: pointer; font-size: 10px; }
.add-example input { position: absolute; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 1100px) { .style-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 980px) { .workspace { grid-template-columns: 1fr; }.input-panel { position: static; }.output-panel, .state { min-height: 600px; }.shell { width: min(100% - 24px, 760px); }.dimension-list { grid-template-columns: 1fr; }.topbar-actions { align-items: flex-end; flex-direction: column-reverse; } }
@media (max-width: 600px) { .shell { width: calc(100% - 18px); padding-top: 15px; }.topbar { align-items: flex-start; }.topbar-actions { gap: 8px; }.engine-badge { padding: 7px 9px; font-size: 10px; }.flow-step span { display: none; }.workspace { gap: 10px; }.input-panel, .result-state { padding: 17px; }.state { padding: 25px 18px; }.split-cards, .consensus-grid { grid-template-columns: 1fr; }.result-hero { align-items: flex-start; }.result-hero h2 { font-size: 23px; }.save-style-bar { align-items: stretch; flex-direction: column; }.save-style-bar button { justify-content: space-between; }.subject-profile-grid { grid-template-columns: 82px 1fr; }.style-gallery { grid-template-columns: 1fr; }.library-heading { align-items: flex-start; flex-direction: column; }.pending-images { grid-template-columns: repeat(3,minmax(0,1fr)); } }

@media (max-width: 760px) {
  .welcome-features { grid-template-columns: 1fr; }
  .welcome-features article { min-height: auto; }
  .analysis-checklist { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .task-created-card { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit, .orbit::before, .orbit::after, .engine-badge span, .pending-pulse span, .analysis-track i, .analysis-checklist li, .processing-status i { animation: none !important; }
}
@media (min-width: 761px) {
  .welcome-state h2, .pending-state h2 { white-space: nowrap; }
}

/* Public-facing home */
.home-view { margin-top: 34px; }
.home-hero { min-height: 530px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr); align-items: center; gap: 58px; padding: 58px 64px; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; position: relative; background: linear-gradient(135deg, rgba(18,22,34,.98), rgba(10,13,20,.98)); box-shadow: 0 28px 90px rgba(0,0,0,.25); }
.home-hero::before { content: ""; position: absolute; inset: -20% 48% 35% -8%; background: radial-gradient(circle, rgba(112,89,214,.22), transparent 65%); pointer-events: none; }
.home-copy { position: relative; z-index: 2; }
.home-copy h2 { max-width: 720px; margin: 13px 0 18px; font-size: clamp(38px,4vw,62px); line-height: 1.08; letter-spacing: -.055em; }
.home-copy > p { max-width: 650px; margin: 0; color: #a0a8b8; font-size: 15px; line-height: 1.9; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-primary, .home-secondary { border-radius: 12px; padding: 13px 17px; cursor: pointer; font-size: 12px; font-weight: 800; }
.home-primary { display: flex; align-items: center; gap: 28px; border: 0; color: #100d19; background: linear-gradient(135deg, #aa91ff, #8068e8); box-shadow: 0 10px 28px rgba(112,89,214,.22); }
.home-primary i { font-size: 17px; font-style: normal; }
.home-secondary { border: 1px solid var(--line-strong); color: #c9ced8; background: rgba(255,255,255,.025); }
.home-primary:hover, .home-secondary:hover { transform: translateY(-2px); }
.home-capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.home-capabilities span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: #828b9c; background: rgba(255,255,255,.018); font-size: 10px; }
.home-visual { width: min(100%,520px); aspect-ratio: 1 / 1; justify-self: end; position: relative; display: grid; place-items: center; }
.home-visual::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(165,138,255,.11), transparent 62%); filter: blur(6px); }
.dna-core { width: 134px; height: 134px; position: relative; z-index: 5; display: grid; place-content: center; text-align: center; border-radius: 42px; border: 1px solid rgba(165,138,255,.38); background: linear-gradient(145deg, rgba(165,138,255,.22), rgba(14,17,26,.92)); box-shadow: inset 0 0 40px rgba(165,138,255,.08), 0 20px 60px rgba(0,0,0,.32); transform: rotate(-6deg); }
.dna-core span { color: #9385cb; font-size: 10px; letter-spacing: .22em; }
.dna-core strong { margin-top: 5px; color: #ddd5ff; font-size: 31px; letter-spacing: .06em; }
.dna-orbit { position: absolute; border: 1px solid rgba(165,138,255,.2); border-radius: 50%; animation: homeOrbit 22s linear infinite; }
.orbit-one { width: 72%; height: 42%; transform: rotate(23deg); }
.orbit-two { width: 43%; height: 78%; transform: rotate(-32deg); animation-direction: reverse; animation-duration: 17s; }
@keyframes homeOrbit { to { rotate: 360deg; } }
.dna-node { min-width: 105px; position: absolute; z-index: 4; display: grid; grid-template-columns: 22px 1fr; gap: 1px 9px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(13,17,25,.9); box-shadow: 0 12px 32px rgba(0,0,0,.24); backdrop-filter: blur(12px); }
.dna-node i { grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 8px; background: linear-gradient(145deg, var(--violet), var(--mint)); opacity: .75; }
.dna-node span { color: #727b8d; font-size: 8px; letter-spacing: .14em; }
.dna-node b { color: #d6dae3; font-size: 11px; }
.node-color { left: 0; top: 20%; }.node-light { right: 0; top: 25%; }.node-texture { left: 8%; bottom: 16%; }.node-space { right: 4%; bottom: 10%; }
.home-process { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 18px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: rgba(16,20,30,.78); }
.home-process > i { color: #4c5361; font-style: normal; }
.home-process article { display: flex; align-items: flex-start; gap: 14px; }
.home-process article > b { flex: 0 0 auto; color: var(--violet); font-size: 11px; letter-spacing: .14em; }
.home-process h3 { margin: 0 0 7px; font-size: 13px; }
.home-process p { margin: 0; color: #7d8595; font-size: 10px; line-height: 1.65; }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 44px 4px 17px; }
.home-section-heading h3 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.035em; }
.home-section-heading > p { margin: 0; color: #7c8494; font-size: 11px; }
.home-examples { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.home-examples-loading { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 18px; color: #737c8c; font-size: 12px; }
.home-example-card { min-height: 350px; position: relative; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #0c1017; cursor: pointer; text-align: left; }
.home-example-card > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .45s ease; }
.home-example-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,11,.03) 28%, rgba(5,7,11,.9) 78%, rgba(5,7,11,.98)); }
.home-example-card:hover > img { transform: scale(1.035); }
.home-example-overlay { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 20px; }
.home-example-overlay small { margin-bottom: 8px; color: #aa9ceb; font-size: 9px; letter-spacing: .08em; }
.home-example-overlay strong { color: #f0f1f5; font-size: 17px; line-height: 1.35; }
.home-example-overlay p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 8px 0 13px; color: #a1a8b5; font-size: 10px; line-height: 1.55; }
.home-example-overlay em { color: #83d8bc; font-size: 9px; font-style: normal; }

@media (max-width: 1100px) {
  .home-hero { grid-template-columns: 1fr 390px; gap: 30px; padding: 48px 42px; }
  .home-copy h2 { font-size: 46px; }
  .home-examples { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-visual { width: min(100%,460px); justify-self: center; }
  .home-process { grid-template-columns: 1fr; }
  .home-process > i { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 600px) {
  .home-view { margin-top: 20px; }
  .home-hero { min-height: auto; padding: 34px 22px; border-radius: 20px; }
  .home-copy h2 { font-size: 37px; }
  .home-copy > p { font-size: 13px; }
  .home-actions { flex-direction: column; }
  .home-primary, .home-secondary { width: 100%; justify-content: space-between; }
  .home-visual { transform: scale(.9); margin: -16px 0; }
  .home-section-heading { align-items: flex-start; flex-direction: column; }
  .home-examples { grid-template-columns: 1fr; }
  .home-example-card { min-height: 320px; }
}

/* Cloud account, login and quota */
.auth-area { display: flex; align-items: center; }
.google-login-button, .google-login-large { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.055); color: #eef0f5; cursor: pointer; font-weight: 800; }
.google-login-button { min-height: 36px; padding: 8px 12px; border-radius: 11px; font-size: 11px; }
.google-login-button:hover, .google-login-large:hover { border-color: rgba(165,138,255,.45); background: rgba(165,138,255,.11); }
.google-g { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #4285f4; font: 900 12px/1 Arial, sans-serif; }
.user-chip { min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 5px 7px 5px 5px; border: 1px solid var(--line); border-radius: 13px; background: rgba(13,17,25,.88); }
.user-chip img { width: 29px; height: 29px; object-fit: cover; border-radius: 9px; background: linear-gradient(145deg, #8f78eb, #3f356b); }
.user-chip > div { min-width: 82px; display: flex; flex-direction: column; gap: 2px; }
.user-chip strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e4e6ec; font-size: 10px; }
.user-chip span { color: #7f8899; font-size: 8px; }
.user-chip button { border: 0; padding: 5px 6px; background: transparent; color: #777f8f; cursor: pointer; font-size: 9px; }
.user-chip button:hover { color: #e1a0a8; }
.account-quota { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -3px 0 14px; }
.account-quota > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.account-quota span { color: #737c8d; font-size: 9px; }
.account-quota strong { color: #b8c0cf; font-size: 9px; text-align: right; }
.history-item i.failed { background: var(--danger); box-shadow: 0 0 8px rgba(239,141,152,.45); }

.login-modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(3,5,9,.76); backdrop-filter: blur(12px); }
.login-card { width: min(430px,100%); position: relative; display: flex; flex-direction: column; align-items: center; padding: 36px; border: 1px solid rgba(165,138,255,.25); border-radius: 22px; background: linear-gradient(145deg, #171c29, #0d1119); box-shadow: 0 35px 120px rgba(0,0,0,.55); text-align: center; }
.login-card .brand-mark { margin-bottom: 18px; }
.login-card h2 { margin: 0 0 12px; font-size: 24px; }
.login-card p { max-width: 340px; margin: 0; color: #929baa; font-size: 12px; line-height: 1.75; }
.google-login-large { width: 100%; margin: 24px 0 14px; padding: 13px 16px; border-radius: 12px; font-size: 12px; }
.login-card small { color: #6e7686; font-size: 9px; line-height: 1.6; }
.login-close { position: absolute; right: 13px; top: 11px; width: 31px; height: 31px; border: 0; border-radius: 9px; background: rgba(255,255,255,.04); color: #848c9c; cursor: pointer; font-size: 20px; }

.style-card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.delete-style { border: 1px solid rgba(239,141,152,.2); border-radius: 10px; padding: 0 11px; background: rgba(239,141,152,.055); color: #bd7f88; cursor: pointer; font-size: 9px; }
.delete-style:hover { background: rgba(239,141,152,.12); color: #efa1aa; }

/* Admin */
.admin-view { margin-top: 34px; }
.admin-refresh { border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; background: rgba(255,255,255,.035); color: #b9c0cd; cursor: pointer; font-size: 10px; }
.admin-summary { margin-bottom: 12px; color: #858e9d; font-size: 10px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 17px; background: rgba(16,20,30,.9); }
.admin-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; vertical-align: middle; }
.admin-table th { color: #7d8595; background: rgba(255,255,255,.018); font-weight: 700; }
.admin-table td { color: #b4bbc7; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td:first-child strong, .admin-table td:first-child span { display: block; }
.admin-table td:first-child strong { color: #e0e3e9; margin-bottom: 3px; }
.admin-table td:first-child span { color: #737c8c; }
.role { display: inline-block; padding: 4px 7px; border: 1px solid var(--line); border-radius: 99px; color: #8e96a6; font-size: 8px; }
.role.whitelist { border-color: rgba(101,224,184,.2); color: #83d5b9; background: rgba(101,224,184,.05); }
.role.admin { border-color: rgba(165,138,255,.25); color: #b7a8f2; background: rgba(165,138,255,.07); }
.admin-controls { display: flex; flex-wrap: wrap; gap: 5px; }
.admin-controls button { border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; background: rgba(255,255,255,.025); color: #9ba3b1; cursor: pointer; font-size: 8px; }
.admin-controls button:hover { border-color: rgba(165,138,255,.35); color: #d2c9f4; }

@media (max-width: 1180px) {
  .topbar { align-items: flex-start; }
  .topbar-actions { flex-wrap: wrap; justify-content: flex-end; }
  .engine-badge { display: none; }
}
@media (max-width: 760px) {
  .topbar { flex-direction: column; }
  .topbar-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .view-switch { width: 100%; overflow-x: auto; }
  .view-switch button { flex: 1 0 auto; }
  .google-login-button, .user-chip { width: 100%; }
  .user-chip { justify-content: space-between; }
  .account-quota { grid-template-columns: 1fr; }
  .login-card { padding: 31px 21px; }
}
