:root {
  --bg: #090a10;
  --panel: rgba(21, 22, 32, 0.88);
  --panel-2: #171821;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(151, 133, 255, 0.42);
  --text: #f4f2fb;
  --muted: #9b9aa9;
  --soft: #c9c7d4;
  --purple: #9d77ff;
  --blue: #5e9cff;
  --pink: #da77ff;
  --green: #59dfb2;
  --danger: #ff8d9a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; }
input, textarea, select { outline: none; color: var(--text); }
input::placeholder, textarea::placeholder { color: #6f7080; }

.ambient { position: fixed; pointer-events: none; filter: blur(5px); opacity: .7; z-index: 0; }
.ambient-a { width: 520px; height: 520px; top: -210px; left: 24%; background: radial-gradient(circle, rgba(83, 63, 255, .26), transparent 65%); }
.ambient-b { width: 580px; height: 580px; right: -160px; top: 26%; background: radial-gradient(circle, rgba(227, 81, 255, .13), transparent 68%); }

.app-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 230px; display: flex; flex-direction: column; padding: 25px 16px 18px; background: rgba(10, 11, 17, .86); border-right: 1px solid var(--line); backdrop-filter: blur(24px); z-index: 4; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px 30px; }
.brand strong { display: block; font-size: 15px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 3px; color: #838493; font-size: 9px; letter-spacing: .16em; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #5862ff, #d877ff); box-shadow: 0 9px 25px rgba(124, 92, 255, .33); font-size: 21px; }
.primary-nav { display: grid; gap: 7px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 12px; border-radius: 12px; background: transparent; color: var(--muted); text-align: left; transition: .2s ease; }
.nav-item:hover, .nav-item.active { color: var(--text); background: linear-gradient(100deg, rgba(119, 95, 255, .21), rgba(51, 49, 87, .08)); }
.nav-item.active { box-shadow: inset 2px 0 0 #9a7aff; }
.nav-icon { width: 21px; text-align: center; font-size: 16px; color: #b9a7ff; }
.nav-item em { margin-left: auto; color: #807f91; font-style: normal; font-size: 11px; }
.nav-divider { margin: 20px 7px 17px; height: 1px; background: var(--line); }
.side-caption { padding: 0 12px 9px; color: #646573; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.nav-item.subtle { font-size: 13px; }
.nav-item.subtle .nav-icon { color: #828294; }
.new-dot { margin-left: auto; font-size: 8px; color: #9e7dff; letter-spacing: .08em; }
.sidebar-footer { margin-top: auto; }
.mini-balance { padding: 13px; border: 1px solid rgba(160, 130, 255, .22); border-radius: 16px; background: linear-gradient(145deg, rgba(112, 77, 223, .18), rgba(35, 34, 54, .35)); }
.balance-head, .balance-foot { display: flex; align-items: center; justify-content: space-between; }
.balance-head { color: #aaa8bb; font-size: 11px; }
.balance-head b { color: var(--text); font-size: 15px; }
.balance-head small { color: #77778a; font-weight: 400; font-size: 10px; }
.balance-foot { margin-top: 10px; color: #76778a; font-size: 10px; }
.balance-foot button { color: #c3a7ff; background: transparent; font-size: 11px; }
.progress-track { overflow: hidden; height: 5px; margin-top: 11px; border-radius: 9px; background: rgba(255, 255, 255, .08); }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6e83ff, #d17bff); box-shadow: 0 0 18px rgba(175, 120, 255, .75); }
.account-row { display: flex; align-items: center; gap: 9px; padding: 17px 5px 0; cursor: pointer; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ffaf78, #b26eff); font-weight: 700; }
.avatar.small { width: 28px; height: 28px; font-size: 12px; }
.avatar.large { width: 45px; height: 45px; }
.account-copy { min-width: 0; display: grid; gap: 3px; }
.account-copy strong { font-size: 12px; }
.account-copy span { overflow: hidden; color: #7e7f90; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.account-more { margin-left: auto; color: #737487; }

.main-content { width: calc(100% - 230px); margin-left: 230px; padding: 0 44px 70px; }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.crumbs { display: flex; gap: 11px; align-items: center; color: #737483; font-size: 12px; }
.crumbs b { color: #4a4b59; font-weight: 400; }
.crumbs strong { color: #dddbe8; font-weight: 500; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn, .credit-chip, .profile-chip { border: 1px solid var(--line); background: rgba(22, 23, 33, .82); }
.icon-btn { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: #b3b2c1; }
.credit-chip, .profile-chip { height: 35px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border-radius: 11px; color: #aaa8b8; font-size: 11px; }
.credit-chip strong { color: #d2beff; }
.spark { color: #bd91ff; }
.chevron { color: #6d6d7e; font-size: 15px; }

.view { display: none; max-width: 1380px; margin: 0 auto; padding-top: 42px; animation: rise .35s ease both; }
.view.active-view { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-row { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding: 13px 3px 28px; }
.eyebrow { margin: 0 0 11px; color: #9996b3; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1, h2, p { margin: 0; }
.hero-row h1 { font-size: clamp(35px, 4vw, 56px); line-height: 1.03; letter-spacing: -.055em; }
.hero-row h1 span { background: linear-gradient(90deg, #a1a5ff, #e39eff 65%, #ffc0d5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { margin-top: 17px; color: #898999; line-height: 1.75; font-size: 13px; }
.hero-metrics { display: flex; gap: 14px; }
.metric { min-width: 142px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(19, 20, 28, .62); }
.metric span { display: block; color: #818292; font-size: 10px; }
.metric strong { display: inline-block; margin-top: 7px; font-size: 23px; letter-spacing: -.04em; }
.metric strong small { color: #a1a0ae; font-size: 11px; font-weight: 400; }
.metric .unit { color: #a3a2b0; font-size: 11px; font-weight: 400; }
.metric i { margin-left: 7px; color: var(--green); font-size: 9px; font-style: normal; }
.metric i.muted { color: #7d7d8c; }

.glass-card { border: 1px solid rgba(255, 255, 255, .11); background: linear-gradient(145deg, rgba(28, 28, 41, .9), rgba(17, 18, 25, .83)); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.workspace-card { overflow: hidden; border-radius: 24px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px 19px; }
.step-label { color: #827f98; font-size: 9px; letter-spacing: .16em; }
.card-heading h2 { margin-top: 4px; font-size: 18px; letter-spacing: -.02em; }
.autosave { color: #77788a; font-size: 10px; }
.save-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.creative-tabs { display: flex; gap: 8px; padding: 0 20px 17px; border-bottom: 1px solid var(--line); }
.creative-tab { position: relative; min-height: 55px; flex: 1; display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #9695a4; text-align: left; transition: .2s; }
.creative-tab:hover, .creative-tab.active { border-color: rgba(148, 116, 255, .35); color: #f2effc; background: linear-gradient(135deg, rgba(125, 89, 239, .23), rgba(54, 50, 83, .16)); }
.creative-tab .tab-icon { color: #b99bff; font-size: 22px; }
.creative-tab b { display: block; font-size: 12px; }
.creative-tab small { display: block; margin-top: 4px; color: #777789; font-size: 9px; }
.creative-tab i { position: absolute; top: -7px; right: 7px; padding: 3px 6px; border-radius: 5px; color: #cab6ff; background: rgba(127, 87, 242, .28); font-size: 8px; font-style: normal; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.form-main { padding: 27px 28px 28px; border-right: 1px solid var(--line); }
.form-side { padding: 23px 24px 25px; }
.field-label { display: block; margin: 0 0 8px; color: #e0deeb; font-size: 11px; font-weight: 600; }
.field-label > span { color: #bd91ff; }
.field-label em { margin-left: 7px; color: #777789; font-size: 9px; font-style: normal; font-weight: 400; }
.input-wrap { display: flex; align-items: center; min-height: 43px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(9, 10, 16, .56); }
.input-wrap:focus-within { border-color: rgba(150, 115, 255, .75); box-shadow: 0 0 0 3px rgba(130, 98, 255, .09); }
.input-wrap input, .input-wrap textarea { width: 100%; border: 0; background: transparent; }
.input-wrap input { padding: 0 12px; font-size: 12px; }
.input-icon { width: 40px; flex: 0 0 40px; color: #a995ff; text-align: center; }
.product-input { min-height: 51px; }
.product-input input { font-size: 15px; font-weight: 600; }
.input-count { padding-right: 12px; color: #5e5e6b; font-size: 9px; white-space: nowrap; }
.input-count b { color: #858393; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 19px; }
textarea { width: 100%; min-height: 82px; resize: vertical; padding: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(9, 10, 16, .56); line-height: 1.6; font-size: 11px; }
textarea:focus { border-color: rgba(150, 115, 255, .75); }
.second-row { align-items: end; }
.upload-row { display: flex; align-items: center; gap: 8px; min-height: 54px; }
.upload-previews { display: flex; gap: 6px; }
.upload-previews .uploaded-thumb { background: #171823; }
.upload-previews .uploaded-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-tile { width: 57px; height: 54px; display: grid; place-items: center; border: 1px dashed rgba(169, 142, 255, .5); border-radius: 10px; color: #bba4ff; background: rgba(139, 102, 251, .08); }
.upload-tile span { font-size: 19px; line-height: 1; }
.upload-tile small { margin-top: -11px; color: #8d84ae; font-size: 8px; }
.uploaded-thumb { position: relative; width: 54px; height: 54px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: linear-gradient(145deg, #f2c99e, #dc846b 54%, #2e2b44); }
.uploaded-thumb > button { position: absolute; top: 2px; right: 4px; width: 15px; height: 15px; border-radius: 50%; color: #fff; background: rgba(0,0,0,.55); font-size: 12px; line-height: 12px; }
.juice-illustration { position: absolute; left: 16px; top: 10px; width: 22px; height: 36px; border-radius: 8px 8px 9px 9px; transform: rotate(-9deg); background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(219, 95, 65, .75)); box-shadow: 0 4px 9px rgba(0,0,0,.25); }
.juice-illustration span { position: absolute; left: 4px; top: 6px; width: 14px; height: 8px; border-radius: 50%; background: #f1b58a; }
.upload-hint { max-width: 115px; color: #727384; font-size: 9px; line-height: 1.45; }
.ai-assist-row { display: flex; align-items: center; gap: 12px; margin-top: 25px; padding: 13px 14px; border: 1px solid rgba(142, 115, 255, .24); border-radius: 13px; background: linear-gradient(100deg, rgba(120, 84, 235, .11), rgba(53, 45, 87, .12)); }
.ai-orb { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(175, 142, 255, .5); border-radius: 50%; color: #d4b7ff; background: radial-gradient(circle, #735bff, #2a2347 65%); box-shadow: 0 0 18px rgba(141, 98, 255, .45); }
.ai-assist-row div:nth-child(2) { display: grid; gap: 3px; }
.ai-assist-row b { font-size: 11px; }
.ai-assist-row span { color: #838297; font-size: 9px; }
.ai-write-btn { margin-left: auto; white-space: nowrap; }
.selected-prompt-panel { margin-top: 14px; padding: 16px; border: 1px solid rgba(144, 115, 255, .42); border-radius: 13px; background: rgba(81, 57, 151, .1); }
.selected-prompt-panel[hidden] { display: none; }
.selected-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.selected-prompt-head strong { display: block; color: #eee9ff; font-size: 12px; }
.selected-prompt-head span { display: block; margin-top: 4px; color: #8f86a8; font-size: 9px; }
.selected-prompt-head button { white-space: nowrap; }
.prompt-editor-list { display: grid; gap: 9px; }
.prompt-editor { display: grid; gap: 5px; }
.prompt-editor label { color: #bba7ed; font-size: 9px; font-weight: 700; }
.prompt-editor textarea { min-height: 76px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; color: #d5d1df; background: rgba(7,8,13,.48); font: inherit; font-size: 10px; line-height: 1.55; resize: vertical; }
.prompt-editor:first-child textarea { min-height: 92px; }
.secondary-btn, .primary-btn, .text-btn { transition: .2s; }
.secondary-btn { min-height: 34px; padding: 0 13px; border: 1px solid rgba(180, 160, 255, .26); border-radius: 9px; color: #cdbdff; background: rgba(118, 86, 231, .1); font-size: 11px; }
.secondary-btn:hover { border-color: rgba(183, 156, 255, .65); background: rgba(134, 99, 251, .2); }
.primary-btn { min-height: 37px; padding: 0 17px; border-radius: 10px; color: #fff; background: linear-gradient(110deg, #5e83ff, #a466ff 55%, #db82ef); box-shadow: 0 10px 23px rgba(113, 91, 255, .22); font-size: 11px; font-weight: 700; }
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(148, 98, 255, .32); }
.primary-btn:disabled { opacity: .42; transform: none; cursor: not-allowed; }
.text-btn, .link-btn { color: #a99aff; background: transparent; font-size: 11px; }
.text-btn:hover, .link-btn:hover { color: #dacfff; }
.side-section { padding: 0 0 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.side-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #c6c4d3; font-size: 11px; }
.tip { width: 16px; height: 16px; border: 1px solid #555469; border-radius: 50%; color: #858495; background: transparent; font-size: 10px; }
.model-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.model-btn { padding: 10px 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; color: #9d9ba9; background: rgba(7,8,13,.45); text-align: left; }
.model-btn.active { border-color: rgba(159, 128, 255, .68); color: #f1edff; background: linear-gradient(135deg, rgba(117, 88, 235, .27), rgba(45, 43, 75, .18)); }
.model-name { display: block; font-size: 11px; font-weight: 700; }
.model-name i { margin-left: 3px; padding: 2px 4px; border-radius: 3px; color: #e2ccff; background: rgba(174, 105, 255, .25); font-size: 7px; font-style: normal; }
.model-btn small { display: block; margin-top: 4px; color: #777788; font-size: 8px; }
.selected-count { color: #c7afff; font-size: 11px; font-weight: 500; }
.count-toggle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.count-toggle button { height: 29px; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; color: #8f8d9c; background: rgba(8,9,14,.55); font-size: 10px; }
.count-toggle button.active { border-color: #9f83ff; color: #f1eaff; background: rgba(136, 98, 252, .24); }
.side-help { margin: 9px 0 0; color: #707180; font-size: 9px; }
.advanced-link { color: #a58eff; background: transparent; font-size: 9px; }
.select-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: #858494; font-size: 10px; }
.select-row:last-child { border: 0; }
.select-row select { border: 0; color: #d3d0df; background: transparent; font-size: 10px; text-align: right; }
.estimate { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 14px; }
.estimate span { display: block; color: #7f7e8e; font-size: 9px; }
.estimate strong { display: block; margin-top: 4px; font-size: 12px; }
.estimate strong b { color: #c5a8ff; }
.estimate-points { text-align: right; }
.estimate-points strong { color: #dfc9ff; font-size: 18px; }
.estimate-points small { color: #9c94ad; font-size: 9px; font-weight: 400; }
.generate-btn { width: 100%; min-height: 45px; font-size: 12px; }
.button-spark { margin-right: 3px; font-size: 15px; }
.button-cost { margin-left: 5px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.76); font-size: 9px; font-weight: 400; }
.quota-note { margin: 10px 0 0; color: #717283; text-align: center; font-size: 9px; }
.quota-note span { padding: 0 4px; color: #4e4f5a; }

/* 精简聊天式创作台 */
.simple-hero { width: 100%; max-width: 1380px; align-items: center; margin: 0 auto; padding: 22px 2px 34px; }
.simple-hero > div:first-child { min-width: 0; }
.simple-hero h1 { max-width: none; white-space: nowrap; font-size: clamp(34px, 3.35vw, 58px); }
.simple-hero .hero-copy { margin-top: 15px; }
.hero-status { flex: 0 0 auto; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: #888898; background: rgba(18, 19, 28, .66); font-size: 10px; }

.chat-workspace { max-width: 1060px; margin: 0 auto; padding: 28px; border-radius: 26px; }
.chat-intro { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.chat-ai-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; border: 1px solid rgba(173, 143, 255, .55); border-radius: 13px; background: radial-gradient(circle at 35% 30%, #8f72ff, #302650 68%); box-shadow: 0 0 24px rgba(140, 97, 255, .32); }
.chat-intro strong, .chat-intro span { display: block; }
.chat-intro strong { font-size: 15px; }
.chat-intro span { margin-top: 4px; color: #858494; font-size: 10px; }
.chat-composer { position: relative; min-height: 190px; padding: 18px 18px 14px; border: 1px solid rgba(169, 144, 255, .34); border-radius: 21px; background: linear-gradient(145deg, rgba(9, 10, 17, .86), rgba(18, 17, 29, .82)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 20px 50px rgba(0,0,0,.18); transition: .2s ease; }
.chat-composer:focus-within { border-color: rgba(164, 125, 255, .78); box-shadow: 0 0 0 4px rgba(126, 91, 255, .08), 0 24px 60px rgba(0,0,0,.23); }
.chat-composer textarea { min-height: 96px; max-height: 210px; padding: 2px 210px 10px 2px; border: 0; color: #f2eefc; background: transparent; font-size: 18px; font-weight: 550; line-height: 1.6; resize: none; }
.chat-composer textarea:focus { border: 0; }
.chat-composer textarea::placeholder { color: #676777; font-weight: 450; }
.composer-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.composer-previews:empty { display: none; }
.composer-previews .uploaded-thumb { width: 60px; height: 60px; border-radius: 12px; }
.composer-previews .uploaded-thumb img { width: 100%; height: 100%; object-fit: cover; }
.composer-footer { display: flex; align-items: center; gap: 9px; min-height: 42px; }
.composer-add { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: #d7c6ff; background: rgba(255,255,255,.055); font-size: 25px; font-weight: 300; transition: .2s; }
.composer-add:hover { border-color: rgba(174, 142, 255, .62); background: rgba(139, 100, 255, .14); }
.composer-upload-copy { color: #777687; font-size: 10px; }
.composer-spacer { flex: 1; }
.ai-float-btn { position: absolute; right: 18px; bottom: 15px; min-height: 42px; padding: 0 18px; border: 1px solid rgba(185, 159, 255, .55); border-radius: 13px; color: #fff; background: linear-gradient(110deg, #5f79f7, #9769f8 55%, #d77ce4); box-shadow: 0 10px 28px rgba(126, 88, 247, .35); font-size: 12px; font-weight: 700; animation: ai-arrive .22s ease both; }
.ai-float-btn span { margin-right: 5px; }
.ai-float-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(143, 90, 255, .46); }
@keyframes ai-arrive { from { opacity: 0; transform: translateY(5px) scale(.96); } to { opacity: 1; transform: none; } }

.selected-prompt-panel.compact { margin-top: 14px; padding: 14px 16px; background: linear-gradient(120deg, rgba(100, 70, 188, .14), rgba(28, 25, 44, .34)); }
.selected-prompt-panel.compact .selected-prompt-head { margin-bottom: 0; }
.selected-prompt-panel.compact .chosen-kicker { margin: 0 0 4px; color: #8fdcc6; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.selected-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.selected-insights div { padding: 9px 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(7,8,13,.25); }
.selected-insights b, .selected-insights span { display: block; }
.selected-insights b { margin-bottom: 4px; color: #bda7f0; font-size: 8px; }
.selected-insights span { color: #9692a5; font-size: 9px; line-height: 1.55; }
.prompt-edit-details { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.prompt-edit-details summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 1px 0; color: #aa9eca; font-size: 10px; cursor: pointer; list-style: none; }
.prompt-edit-details summary::-webkit-details-marker { display: none; }
.prompt-edit-details[open] summary { margin-bottom: 12px; }

.composer-settings { display: flex; align-items: center; gap: 15px; margin-top: 17px; }
.setting-group { display: flex; align-items: center; gap: 9px; }
.setting-label { color: #7e7d8e; font-size: 9px; white-space: nowrap; }
.setting-label b { color: #c8b4ff; font-weight: 600; }
.setting-divider { width: 1px; height: 32px; background: var(--line); }
.model-compact .model-toggle { display: flex; gap: 5px; }
.model-compact .model-btn { min-width: 82px; padding: 8px 9px; text-align: center; }
.count-compact .count-toggle { display: flex; gap: 4px; }
.count-compact .count-toggle button { width: 30px; height: 30px; }
.composer-cost { min-width: 130px; margin-left: auto; text-align: right; }
.composer-cost span, .composer-cost strong { display: block; }
.composer-cost span { color: #777687; font-size: 9px; }
.composer-cost strong { margin-top: 3px; color: #dac6ff; font-size: 14px; }
.composer-cost small { color: #8d869c; font-size: 8px; }
.composer-settings .generate-btn { width: auto; min-width: 164px; padding: 0 20px; }
.composer-note { margin-top: 12px; }

.recent-section { margin-top: 42px; }
.section-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; }
.section-heading h2 { margin-top: 4px; font-size: 22px; letter-spacing: -.035em; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 17px; }
.project-card, .new-project { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(22,23,31,.72); }
.project-cover { position: relative; height: 170px; overflow: hidden; }
.cover-juice { background: radial-gradient(circle at 72% 30%, rgba(255, 207, 146, .9), transparent 27%), linear-gradient(135deg, #3d1e35, #f39d62 57%, #f6d7a9); }
.cover-lamp { background: radial-gradient(circle at 70% 31%, rgba(250, 221, 147, .85), transparent 23%), linear-gradient(135deg, #101b30, #395a78 56%, #edb15a); }
.cover-badge { position: absolute; top: 12px; left: 12px; padding: 5px 8px; border-radius: 6px; color: #f2e9f5; background: rgba(0,0,0,.3); font-size: 9px; backdrop-filter: blur(4px); }
.cover-word { position: absolute; left: 16px; bottom: 13px; color: rgba(255,255,255,.8); font-size: 13px; letter-spacing: .12em; }
.cover-word b { color: #fff; font-size: 17px; letter-spacing: .02em; }
.cover-product { position: absolute; right: 22%; bottom: 22px; width: 57px; height: 110px; border-radius: 18px 18px 14px 14px; transform: rotate(12deg); background: linear-gradient(130deg, rgba(255,255,255,.86), rgba(255,235,202,.34) 40%, rgba(188,65,48,.75)); box-shadow: -17px 14px 28px rgba(91, 22, 43, .34); }
.cover-product span { position: absolute; left: 9px; top: 18px; width: 40px; height: 12px; border-radius: 50%; background: rgba(255,236,204,.62); }
.lamp-shape { position: absolute; right: 27%; bottom: 26px; width: 65px; height: 92px; border-radius: 32px 32px 16px 16px; background: linear-gradient(130deg, #dae7ee, #f3b857 65%, #b85e3c); box-shadow: 0 20px 45px rgba(229, 163, 74, .42); }
.lamp-shape:after { content: ""; position: absolute; left: 10px; right: 10px; top: 24px; height: 24px; border-radius: 50%; background: rgba(255, 242, 182, .9); box-shadow: 0 0 30px rgba(255, 228, 118, .8); }
.project-info { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 15px; }
.project-info strong, .project-info span { display: block; }
.project-info strong { font-size: 12px; }
.project-info span { margin-top: 5px; color: #7e7e8d; font-size: 9px; }
.more-btn { padding: 7px; color: #777788; background: transparent; }
.new-project { min-height: 224px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #92909f; border-style: dashed; }
.new-plus { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 12px; border: 1px dashed #9e8aff; border-radius: 50%; color: #c2abff; font-size: 20px; }
.new-project strong { color: #d0cce0; font-size: 12px; }
.new-project span { margin-top: 5px; color: #6e6e7b; font-size: 9px; }

.page-heading { display: block; padding: 17px 2px 27px; }
.page-heading h1 { font-size: 38px; letter-spacing: -.05em; }
.page-heading p { margin-top: 10px; color: #878696; font-size: 13px; }
.filter-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.filter-tabs { display: flex; gap: 6px; }
.filter-tabs button { padding: 9px 13px; border-radius: 8px; color: #888794; background: transparent; font-size: 10px; }
.filter-tabs button.active, .filter-tabs button:hover { color: #e8e4f4; background: rgba(122, 91, 242, .19); }
.search-box { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: #767787; background: rgba(15,16,23,.6); }
.search-box input { width: 170px; height: 34px; border: 0; background: transparent; font-size: 10px; }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.asset-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: rgba(21,22,31,.76); }
.asset-image { height: 145px; background: linear-gradient(140deg, #302044, #d89472 56%, #f3ddb3); }
.asset-image.alt { background: linear-gradient(140deg, #111f35, #8c9db7 54%, #f1be83); }
.asset-card footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; }
.asset-card footer strong { font-size: 10px; }
.asset-card footer span { display: block; margin-top: 3px; color: #777788; font-size: 8px; }
.asset-card footer button { color: #af99ff; background: transparent; font-size: 10px; }
.history-table { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(19,20,27,.7); }
.history-head, .history-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.2fr .8fr .5fr; gap: 12px; align-items: center; padding: 15px 18px; }
.history-head { border-bottom: 1px solid var(--line); color: #777887; font-size: 9px; }
.history-row { border-bottom: 1px solid rgba(255,255,255,.05); color: #aaa8b6; font-size: 10px; }
.history-row:last-child { border: 0; }
.history-row strong { color: #e9e5f3; font-size: 11px; }
.history-row button { color: #b19aff; background: transparent; font-size: 10px; }
.model-tag { display: inline-block; width: fit-content; padding: 4px 6px; border-radius: 5px; color: #adadbb; background: rgba(255,255,255,.07); font-size: 9px; }
.model-tag.pro { color: #d3bbff; background: rgba(144, 106, 251, .18); }
.status { font-size: 9px; }
.status.success { color: var(--green); }
.status.failed { color: var(--danger); }
.member-account { display: flex; align-items: center; gap: 12px; margin-top: 19px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(18,19,28,.65); }
.member-account > div:nth-child(2) { display: grid; gap: 4px; }
.member-account strong { font-size: 12px; }
.member-account span { color: #858494; font-size: 9px; }
.member-account button { margin-left: auto; }
.member-layout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.plan-card, .usage-card { position: relative; overflow: hidden; min-height: 305px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(22,23,32,.77); }
.plan-card.featured { border-color: rgba(151, 116, 255, .48); background: linear-gradient(145deg, rgba(83, 53, 154, .4), rgba(24, 23, 38, .83)); }
.plan-glow { position: absolute; width: 180px; height: 180px; top: -95px; right: -50px; border-radius: 50%; background: radial-gradient(circle, rgba(191, 123, 255, .45), transparent 67%); }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan-label { color: #898698; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.plan-pill { padding: 4px 7px; border-radius: 5px; color: #9491a0; background: rgba(255,255,255,.08); font-size: 8px; }
.plan-pill.violet { color: #ead6ff; background: rgba(168, 111, 255, .26); }
.plan-card h2 { margin-top: 28px; font-size: 22px; }
.plan-card h2 small { color: #8d8a9b; font-size: 10px; font-weight: 400; }
.plan-card p { margin-top: 7px; color: #858494; font-size: 10px; }
.plan-credit { display: flex; align-items: baseline; gap: 5px; margin: 20px 0 15px; }
.plan-credit strong { font-size: 38px; letter-spacing: -.07em; }
.plan-credit span, .plan-price span { color: #898697; font-size: 10px; }
.plan-price { margin: 18px 0 14px; }
.plan-price strong { font-size: 30px; }
.plan-benefits { display: grid; gap: 9px; color: #b4b1c0; font-size: 10px; }
.plan-benefits span:last-child { color: #777687; }
.full { width: 100%; margin-top: 20px; }
.usage-card h2 { margin-top: 4px; font-size: 18px; }
.usage-period { color: #858494; font-size: 9px; }
.usage-ring { width: 142px; height: 142px; display: grid; place-items: center; margin: 18px auto 15px; border-radius: 50%; background: conic-gradient(#b277ff 0 32%, #4e5fbb 32% 51%, rgba(255,255,255,.09) 51% 100%); }
.ring-inner { width: 115px; height: 115px; display: grid; place-items: center; align-content: center; border-radius: 50%; background: #191a25; }
.ring-inner strong { font-size: 27px; }
.ring-inner span { color: #858494; font-size: 9px; }
.usage-lines { display: grid; gap: 9px; }
.usage-lines div { display: flex; align-items: center; justify-content: space-between; color: #92909e; font-size: 10px; }
.usage-lines b { color: #d9d5e5; font-weight: 500; }
.dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; }
.dot.purple { background: #b378ff; }.dot.blue { background: #708bff; }.dot.gray { background: #646574; }

.modal-backdrop { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(2, 3, 8, .76); backdrop-filter: blur(10px); z-index: 10; }
.modal-backdrop.open { display: flex; animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; width: min(780px, 100%); max-height: min(740px, calc(100vh - 40px)); overflow: auto; border: 1px solid rgba(184, 160, 255, .28); border-radius: 22px; background: linear-gradient(145deg, #201b34, #13141d 36%, #161720); box-shadow: 0 30px 90px rgba(0,0,0,.58); }
.modal-close { position: absolute; top: 17px; right: 20px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; color: #aaa7b6; background: rgba(255,255,255,.07); font-size: 20px; }
.login-modal { width: min(430px, 100%); padding: 38px 36px 30px; }
.modal-brand { text-align: center; }
.modal-brand .brand-mark { margin: 0 auto 15px; }
.modal-brand h2 { font-size: 23px; }
.modal-brand p { margin-top: 7px; color: #8d8b9c; font-size: 11px; }
#loginForm { margin-top: 28px; }
#loginForm > label { display: block; margin: 16px 0 7px; color: #d1cedd; font-size: 11px; }
.login-modal .input-wrap { background: rgba(8, 9, 15, .52); }
.field-action { padding-right: 10px; color: #ae9aff; background: transparent; font-size: 10px; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 19px; }
.check-label { color: #878696; font-size: 10px; }
.check-label input { accent-color: #9578ff; }
.login-divider { display: flex; justify-content: center; gap: 5px; margin-top: 19px; color: #858394; font-size: 10px; }
.legal-note { margin-top: 20px; color: #666676; text-align: center; font-size: 8px; }
.prompt-modal { width: min(920px, 100%); padding: 30px; }
.prompt-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 4px 34px 20px 0; border-bottom: 1px solid var(--line); }
.prompt-head h2 { margin-top: 4px; font-size: 23px; letter-spacing: -.04em; }
.prompt-head h2 span { color: #c09cff; }
.prompt-head p { margin-top: 9px; color: #858494; font-size: 10px; }
.prompt-refresh { display: flex; align-items: center; gap: 8px; color: #858494; font-size: 10px; }
.refresh-btn { border-radius: 8px; }
.prompt-loading { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 10px; color: #c0b3e4; }
.loading-orb { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid #a477ff; border-radius: 50%; color: #fff; background: radial-gradient(circle, #7958f4, #221d3e); box-shadow: 0 0 32px rgba(155, 103, 255, .55); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); box-shadow: 0 0 45px rgba(176, 103, 255, .85); } }
.prompt-loading strong { color: #eee9ff; font-size: 14px; }
.prompt-loading span { color: #777588; font-size: 10px; }
.prompt-loading.hidden { display: none; }
.prompt-candidates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 19px 0; }
.prompt-card { padding: 16px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(9,10,16,.44); cursor: pointer; transition: .2s; }
.prompt-card:hover, .prompt-card.selected { border-color: #9b7aff; background: linear-gradient(140deg, rgba(119, 88, 237, .18), rgba(17,17,26,.63)); box-shadow: inset 0 0 0 1px rgba(164, 123, 255, .2); }
.prompt-card-top { display: flex; align-items: start; justify-content: space-between; gap: 9px; }
.prompt-card h3 { font-size: 13px; }
.prompt-card .angle { margin-top: 4px; color: #aa98dc; font-size: 9px; }
.prompt-check { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #59586c; border-radius: 50%; color: transparent; font-size: 11px; }
.prompt-card.selected .prompt-check { border-color: #a786ff; color: #fff; background: #8b6cf4; }
.prompt-card p { min-height: 53px; margin-top: 13px; color: #aaa8b7; font-size: 10px; line-height: 1.55; }
.prompt-insights { display: grid; gap: 6px; margin-top: 11px; }
.prompt-insights div { padding: 7px 8px; border-left: 2px solid rgba(159, 126, 255, .48); color: #8e8b9c; background: rgba(126, 91, 235, .055); font-size: 8px; line-height: 1.55; }
.prompt-insights b { margin-right: 7px; color: #bba4ef; }
.prompt-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.prompt-tags span { padding: 4px 6px; border-radius: 4px; color: #aaa2bf; background: rgba(171, 142, 255, .1); font-size: 8px; }
.prompt-more { display: none; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); color: #888696; font-size: 9px; line-height: 1.6; }
.prompt-more b { display: block; margin-bottom: 5px; color: #c8b6f1; }
.prompt-more ol { display: grid; gap: 4px; margin: 0; padding-left: 18px; }
.prompt-card.selected .prompt-more { display: block; }
.prompt-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.prompt-footnote { display: flex; align-items: center; gap: 6px; color: #7e7c8c; font-size: 9px; }
.prompt-footnote span:first-child { color: #bd9bff; }
.prompt-actions { display: flex; gap: 8px; }
.generate-modal { width: min(690px, 100%); padding: 31px; }
.generate-top { display: flex; align-items: center; gap: 13px; }
.generation-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #9676ff; border-radius: 14px; color: #fff; background: radial-gradient(circle, #7653f2, #251e45); box-shadow: 0 0 23px rgba(136, 95, 255, .45); }
.generate-top h2 { margin-top: 3px; font-size: 20px; }
.generate-top p { margin-top: 5px; color: #888797; font-size: 10px; }
.queue-id { margin-left: auto; color: #777587; font-size: 9px; }
.overall-progress { margin-top: 30px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7,8,13,.4); }
.progress-meta { display: flex; justify-content: space-between; color: #aaa8b8; font-size: 10px; }
.progress-meta strong { color: #d5bcff; }
.progress-track.large { height: 8px; margin-top: 12px; }
.job-list { display: grid; gap: 7px; margin-top: 13px; }
.job-row { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(9,10,15,.35); }
.job-thumb { width: 34px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #c77767, #f2d29f); }
.job-row:nth-child(even) .job-thumb { background: linear-gradient(135deg, #38567b, #f0bd75); }
.job-row b { flex: 1; color: #cbc8d6; font-size: 10px; font-weight: 500; }
.job-state { color: #8f8d9c; font-size: 9px; }
.job-state.done { color: var(--green); }
.job-state.processing { color: #c4a6ff; }
.generation-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.generation-cost { color: #858494; font-size: 9px; }
.generation-cost b { color: #d5bcff; }
.result-modal { width: min(900px, 100%); padding: 30px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 2px 32px 19px 0; border-bottom: 1px solid var(--line); }
.result-head h2 { margin-top: 4px; font-size: 23px; }
.result-head p { margin-top: 7px; color: #858494; font-size: 10px; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 0; }
.result-card { overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: #13141c; }
.result-image { height: 210px; background-color: #0a0b10; background-position: center !important; background-size: contain !important; background-repeat: no-repeat !important; }
.result-card:nth-child(2n) .result-image { background-color: #0c0d14; }
.result-card:nth-child(3n) .result-image { background-color: #0b0d11; }
.result-card footer { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px; color: #9996a6; font-size: 8px; }
.result-card footer button { color: #bba2ff; background: transparent; }
.result-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }

.toast { position: fixed; right: 25px; bottom: 25px; z-index: 30; display: flex; align-items: center; gap: 8px; min-width: 200px; padding: 12px 14px; border: 1px solid rgba(113, 218, 179, .35); border-radius: 11px; background: rgba(26, 44, 43, .95); box-shadow: 0 16px 40px rgba(0,0,0,.3); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: none; }
.toast > span { color: var(--green); }.toast p { color: #c8eade; font-size: 10px; }

@media (max-width: 1050px) {
  .sidebar { width: 200px; }
  .main-content { width: calc(100% - 200px); margin-left: 200px; padding: 0 25px 55px; }
  .form-layout { grid-template-columns: 1fr; }
  .form-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .member-layout { grid-template-columns: 1fr 1fr; }
  .usage-card { grid-column: span 2; }
  .composer-settings { flex-wrap: wrap; }
  .composer-cost { margin-left: 0; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 66px; padding: 18px 9px; }
  .brand { justify-content: center; padding: 0 0 25px; }.brand > div:last-child, .nav-item span:not(.nav-icon), .nav-item em, .side-caption, .nav-divider, .mini-balance, .account-copy, .account-more, .new-dot { display: none; }
  .nav-item { justify-content: center; padding: 12px 0; }.nav-icon { width: auto; }
  .account-row { justify-content: center; padding-top: 16px; }
  .main-content { width: calc(100% - 66px); margin-left: 0; padding: 0 14px 45px; }
  .topbar { height: 65px; }.crumbs span, .crumbs b { display: none; }.profile-chip span:not(.avatar) { display: none; }.credit-chip span:nth-child(2), .credit-chip .chevron { display: none; }
  .view { padding-top: 25px; }.hero-row { align-items: start; flex-direction: column; }.hero-row h1 { font-size: 41px; }.hero-metrics { width: 100%; }.metric { flex: 1; min-width: 0; }.metric strong { font-size: 19px; }
  .card-heading { padding: 20px 16px 15px; }.creative-tabs { overflow-x: auto; padding: 0 12px 13px; }.creative-tab { min-width: 130px; }.form-main, .form-side { padding: 21px 16px; }.field-grid { grid-template-columns: 1fr; gap: 13px; }.project-grid { grid-template-columns: 1fr 1fr; }.new-project { min-height: 200px; }.project-cover { height: 130px; }
  .page-heading h1 { font-size: 33px; }.filter-row { align-items: start; flex-direction: column; gap: 10px; }.asset-grid { grid-template-columns: 1fr 1fr; }.member-layout { grid-template-columns: 1fr; }.usage-card { grid-column: auto; }.history-table { overflow-x: auto; }.history-head, .history-row { min-width: 720px; }
  .prompt-modal, .generate-modal, .result-modal { padding: 20px; }.prompt-candidates { grid-template-columns: 1fr; }.prompt-footer, .result-foot { align-items: stretch; flex-direction: column; }.prompt-actions { width: 100%; }.prompt-actions button { flex: 1; }.result-grid { grid-template-columns: repeat(2, 1fr); }.result-image { height: 125px; }.ai-assist-row { align-items: start; flex-wrap: wrap; }.ai-write-btn { width: 100%; margin-left: 42px; }
  .simple-hero { padding-top: 10px; }.simple-hero h1 { white-space: normal; font-size: 36px; }.hero-status { display: none; }
  .chat-workspace { padding: 16px; border-radius: 20px; }.chat-composer { min-height: 180px; padding: 15px; }.chat-composer textarea { padding-right: 2px; padding-bottom: 52px; font-size: 15px; }.ai-float-btn { right: 14px; bottom: 13px; }
  .composer-settings { align-items: stretch; gap: 12px; }.setting-group { justify-content: space-between; width: 100%; }.setting-divider { display: none; }.composer-cost { flex: 1; text-align: left; }.composer-settings .generate-btn { min-width: 155px; }.model-compact .model-btn { min-width: 96px; }
  .selected-insights { grid-template-columns: 1fr; }
}
/* Dynamic role-based navigation must override component display rules. */
[hidden] { display: none !important; }
