:root {
  color-scheme: dark;
  --bg: #090e12;
  --panel: rgba(18, 24, 29, 0.9);
  --panel-soft: rgba(23, 29, 34, 0.78);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f4;
  --muted: #9da3a8;
  --gold: #e4b66e;
  --gold-strong: #f2c67f;
  --danger: #e66d6d;
  --radius: 14px;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 0; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body { overflow-x: auto; }
button, input, textarea { font: inherit; }
button { color: inherit; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.screen { min-height: 100vh; }
[hidden] { display: none !important; }
.auth-bootstrap { min-height: 100dvh; display: grid; place-content: center; gap: 12px; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.auth-bootstrap-brand { color: var(--text); font-size: 22px; letter-spacing: .2em; }

.glass-bar { background: rgba(10, 14, 17, .9); backdrop-filter: blur(18px); }
.glass-card { background: linear-gradient(135deg, rgba(51, 52, 52, .92), rgba(24, 27, 28, .95)); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 30px 80px rgba(0,0,0,.42); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; white-space: nowrap; }
.brand-logo { display: block; width: 283px; height: 50px; object-fit: contain; }
.eyebrow { margin: 0 0 10px; color: var(--gold); letter-spacing: 3px; font-size: 11px; }

/* Login */
.login-screen { position: relative; display: grid; grid-template-rows: 96px minmax(0,1fr) 72px; min-height: 100dvh; overflow: hidden; background: #111310; font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; isolation: isolate; }
.login-art { position: absolute; inset: 0; z-index: 0; background: url("assets/login-background-preserved-v3.png") center/cover no-repeat; filter: saturate(.86) contrast(.94) brightness(.86); }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,10,.16) 0%, rgba(7,9,9,.05) 44%, rgba(7,9,9,.02) 100%); }
.login-header, .login-footer, .login-main { position: relative; z-index: 2; }
.login-header { display: flex; align-items: center; justify-content: center; padding: 0 40px; background: linear-gradient(180deg, rgba(10,11,10,.42), rgba(10,11,10,.08)); }
.login-header .brand { position: absolute; left: 50%; width: 328px; height: 60px; transform: translateX(-50%); }
.login-header .brand-logo { width: 328px; height: 60px; mix-blend-mode: screen; }
@supports (mask-mode: luminance) {
  .login-header .brand::before { content: ""; position: absolute; inset: 0; clip-path: inset(0 8px 0 0); background: #f4f3f0; mask: url("assets/x-design-logo.png") center/contain no-repeat luminance; }
  .login-header .brand-logo { opacity: 0; }
}
.login-header-actions { margin-left: auto; display: flex; align-items: center; gap: 31px; }
.text-button, .link-button, .gold-link { padding: 0; background: transparent; }
.text-button { display: inline-flex; align-items: center; gap: 7px; color: #e3e1dd; font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,.48); transition: color .25s ease; }
.text-button .ti-world { font-size: 16px; }
.text-button .ti-chevron-down { margin-left: -3px; font-size: 13px; }
.text-button:hover { color: var(--gold-strong); }
.outline-button { min-width: 102px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; color: #f2f0eb; background: rgba(18,19,18,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.045); transition: border-color .25s ease, color .25s ease, background .25s ease, transform .16s ease; }
.outline-button:hover { border-color: rgba(228,182,110,.78); color: var(--gold-strong); background: rgba(22,21,18,.5); }
.outline-button:active { transform: scale(.98); }
.login-main { display: grid; grid-template-columns: 462px minmax(320px,1fr); align-items: center; column-gap: 75px; padding: 0 max(8vw,80px); }
.login-main::before { content: none; }
.login-card { width: 462px; min-height: 650px; padding: 49px 48px 48px 55px; border-radius: 27px; background: linear-gradient(135deg,rgba(34,35,34,.86),rgba(20,22,22,.9)); border-color: rgba(255,255,255,.2); box-shadow: 0 30px 80px rgba(4,5,4,.34), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(18px) saturate(112%); -webkit-backdrop-filter: blur(18px) saturate(112%); transform: translateY(-3px); }
.login-card .eyebrow { margin-bottom: 23px; color: #efb351; font-size: 12px; line-height: 1; letter-spacing: 3.2px; }
.login-title-wrap h1 { margin: 0 0 8px; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: 37px; line-height: 1.2; font-weight: 400; letter-spacing: .5px; }
.login-title-wrap > p:last-child { margin: 0; color: #f0efec; font-size: 17px; }
.login-tabs { display: flex; gap: 34px; margin: 51px 0 28px; }
.login-tab { position: relative; padding: 0 0 14px; background: transparent; color: #9f9f9f; font-size: 17px; font-weight: 600; transition: color .22s ease; }
.login-tab:hover { color: #d8d5d0; }
.login-tab.active { color: #f4f2ee; }
.login-tab.active::after { content: ""; position: absolute; bottom: 0; left: 21%; width: 58%; height: 2px; background: #e9af51; }
.field { display: flex; height: 56px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(16,18,18,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.02); transition: border-color .22s ease, background .22s ease, box-shadow .22s ease; }
.field:focus-within { border-color: rgba(232,180,97,.78); background: rgba(13,15,15,.36); box-shadow: 0 0 0 3px rgba(228,182,110,.1); }
.field input { flex: 1; width: 100%; min-width: 0; padding: 0 16px; border: 0; color: #f4f2ed; background: transparent; outline: 0; }
.field input::placeholder { color: #999896; opacity: 1; }
.country-code { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 87px; background: transparent; color: #f2f0eb; }
.country-code .ti { font-size: 13px; }
.phone-field input { border-left: 1px solid rgba(255,255,255,.14); }
.code-field { margin-bottom: 40px; }
.code-field button { width: 118px; background: transparent; color: #f2f0eb; font-weight: 600; }
.code-field button:hover { color: var(--gold-strong); }
.login-options { display: flex; align-items: center; justify-content: space-between; margin: 0 0 51px; }
.password-field { margin-bottom: 22px; }
.field-action { display: inline-flex; align-items: center; justify-content: center; width: 56px; flex: 0 0 56px; color: #9f9f9f; background: transparent; transition: color .22s ease; }
.field-action:hover { color: var(--gold-strong); }
.auth-progress { display: flex; align-items: center; gap: 11px; margin: 0 0 28px; color: #8e8d89; }
.auth-progress span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; font-size: 13px; font-weight: 700; }
.auth-progress i { flex: 1; height: 1px; background: rgba(232,180,97,.48); }
.auth-progress span.active, .auth-progress span.done { border-color: rgba(232,180,97,.86); color: #1b1711; background: var(--gold-strong); }
.registration-progress { display: flex; list-style: none; padding: 0; margin: 0 0 34px; }
.registration-progress li { flex: 1; position: relative; display: grid; justify-items: center; gap: 10px; color: #aaa9a5; }
.registration-progress li::after { content: ""; position: absolute; height: 1px; background: rgba(232,180,97,.28); top: 18px; left: calc(50% + 26px); width: calc(100% - 52px); }
.registration-progress li:last-child::after { content: none; }
.registration-progress span { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-weight: 600; }
.registration-progress b { font-size: 13px; font-weight: 400; white-space: nowrap; }
.registration-progress .active, .registration-progress .done { color: #efbc67; }
.registration-progress .active span, .registration-progress .done span { color: #21180c; border-color: #efbc67; background: #efbc67; }
.registration-form .field { margin-bottom: 20px; }
.registration-hint { color: #aaa9a5; font-size: 13px; line-height: 1.7; margin: 4px 0 20px; }
.registration-form .login-error { position: static; margin: 0 0 12px; }
.registration-form .login-submit { color: #21180c; background: #efbc67; }
.registration-form .login-submit:disabled { cursor: wait; background: #3c3d39; color: #c4c3be; }
.registration-phone { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin: 0 0 24px; }
.registration-phone span { color: #aaa9a5; font-size: 13px; }
.registration-phone strong { grid-column: 1; font-size: 19px; font-weight: 400; }
.registration-phone button { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #efbc67; background: transparent; font-size: 13px; }
.registration-password { margin: 0 0 20px; color: #bbb9b3; font-size: 13px; }
.registration-password summary { cursor: pointer; padding: 0 0 14px; }
.registration-success { text-align: center; padding: 10px 0 34px; }
.registration-success > .ti { font-size: 44px; color: #efbc67; }
.registration-success h2 { font-size: 24px; margin: 14px 0 10px; font-weight: 400; }
.registration-success p { color: #bbb9b3; font-size: 14px; line-height: 1.7; }
.auth-test-notice { color: #c9c0ae; font-size: 12px; line-height: 1.5; padding: 0 0 16px; margin: 0; }
.auth-status { display: flex; align-items: center; gap: 9px; min-height: 30px; margin: 0 0 22px; color: var(--gold-strong); font-size: 14px; }
.auth-inline-switch { display: block; width: fit-content; margin: 18px auto 0; color: #c9c7c1; background: transparent; font-size: 14px; }
.login-options + .auth-inline-switch { margin: -29px auto 25px; }
.auth-inline-switch:hover { color: var(--gold-strong); }
.auth-inline-switch + .login-error { bottom: 64px; }
.remember-label { display: flex; gap: 9px; align-items: center; cursor: pointer; }
.remember-label input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; background: rgba(9,11,11,.22); }
.remember-label input:checked { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 4px #252626; }
.link-button { color: #f2f0ec; transition: color .22s ease; }
.link-button:hover { color: var(--gold-strong); }
.login-card form { position: relative; }
.login-error { position: absolute; right: 0; bottom: 64px; left: 0; min-height: 18px; margin: 0; color: #f2aa9d; font-size: 13px; line-height: 18px; }
.login-error:empty { visibility: hidden; }
.login-submit { width: 100%; height: 56px; border-radius: 28px; color: #f1f0ed; background: rgba(7,9,9,.88); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); font-size: 17px; font-weight: 600; transition: color .25s ease, background .25s ease, transform .16s ease, box-shadow .25s ease; }
.login-submit:hover { color: #21170d; background: linear-gradient(90deg, #e5ae59, #f3c77f); box-shadow: 0 10px 28px rgba(139,95,37,.22); }
.login-submit:active { transform: scale(.985); }
.gold-link { color: var(--gold); }
.hero-copy { min-width: 360px; margin: 0; visibility: visible; transform: translateY(63px); text-shadow: 0 2px 16px rgba(0,0,0,.56); }
.hero-title { display: grid; gap: 0; margin: 0 0 27px; padding: 0 0 6px; color: #d99a43; font: 400 29px/1.28 "Segoe Script", "Brush Script MT", cursive; letter-spacing: 0; }
.hero-title span { display: block; }
.hero-copy > p:nth-child(2) { margin: 0; color: #efede9; font-size: 16px; letter-spacing: .8px; }
.hero-copy > span { display: block; width: 24px; height: 2px; margin-top: 31px; background: #d99b41; }
.login-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 40px; color: #bab9b6; font-size: 14px; border-top: 1px solid rgba(255,255,255,.035); background: rgba(8,12,13,.68); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.login-footer nav, .dash-footer nav { display: flex; align-items: center; gap: 28px; }
.login-footer button, .dash-footer button { background: transparent; color: #c6c4c0; }
.login-footer button { transition: color .22s ease; }
.login-footer button:hover { color: var(--gold-strong); }
.login-footer i, .dash-footer i { width: 1px; height: 14px; background: rgba(255,255,255,.15); }

/* Dashboard */
.dashboard-screen { display: grid; grid-template-rows: 70px 1fr 58px; min-width: 1120px; min-height: 100vh; background: radial-gradient(circle at 70% 26%, rgba(30,40,45,.18), transparent 34%), #081015; }
.dash-header { position: relative; z-index: 12; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(7,12,16,.96); }
.menu-button { width: 72px; height: 70px; font-size: 26px !important; }
.dash-brand { position: absolute; left: 50%; transform: translateX(-50%); }
.dash-brand .brand-logo { width: 226px; height: 40px; }
.icon-button { background: transparent; font-size: 20px; }
.dash-head-actions { margin-left: auto; padding-right: 30px; display: flex; align-items: center; gap: 17px; }
.credit-pill { display: flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 24px; background: #0c1216; }
.credit-pill b { color: var(--gold); }
.credit-pill .credit-label { color: #ece9e2; font-weight: 600; }
.credit-pill em { font-style: normal; color: #c9cccf; }
.profile-menu-wrap { position: relative; }
.profile-button { display: flex; align-items: center; gap: 9px; background: transparent; }
.profile-button .ti { color: #9ba5a9; font-size: 14px; }
.profile-button .ti { transition: transform .16s ease; }
.profile-button.profile-menu-open .ti { transform: rotate(180deg); }
.profile-menu { position: absolute; z-index: 82; top: calc(100% + 9px); right: 0; display: grid; min-width: 132px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 11px; background: #11191e; box-shadow: 0 14px 34px rgba(0,0,0,.42); }
.profile-menu[hidden] { display: none; }
.profile-menu button { padding: 9px 12px; border-radius: 7px; color: #cbd1d3; background: transparent; text-align: left; white-space: nowrap; }
.profile-menu button:hover, .profile-menu button:focus-visible { color: var(--gold); background: rgba(228,182,110,.1); outline: none; }
.profile-menu button + button { margin-top: 2px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #23150f; background: var(--profile-avatar-color, linear-gradient(150deg, #fff5e6, #d18a6c)); }
.notification-button { position: relative; }
.notification-unread-badge { position: absolute; top: 1px; right: 0; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid #0c1216; border-radius: 99px; color: #211609; background: var(--gold); font-size: 9px; font-weight: 800; line-height: 1; }
.dashboard-body { display: grid; grid-template-columns: 220px 1fr; min-height: 0; }
.sidebar { position: relative; display: flex; flex-direction: column; min-height: 896px; padding: 24px 20px 16px; border-right: 1px solid var(--line); background: rgba(8,14,18,.88); transition: width .25s; }
.side-nav { display: grid; gap: 8px; }
.side-nav button { display: flex; align-items: center; gap: 17px; width: 100%; height: 54px; padding: 0 18px; border-radius: 11px; background: transparent; text-align: left; font-size: 16px; }
.side-nav button > i { flex: 0 0 23px; width: 23px; color: #d7dcde; font-size: 23px; text-align: center; transition: color .18s ease, transform .18s ease; }
.side-nav button b { font-weight: 500; white-space: nowrap; }
.side-nav button:hover { background: rgba(255,255,255,.055); }
.side-nav button:hover > i { color: #fff; transform: translateY(-1px); }
.side-nav button.active { border: 1px solid rgba(228,182,110,.45); color: #edc484; background: linear-gradient(100deg, rgba(228,182,110,.22), rgba(228,182,110,.08)); }
.side-nav button.active > i { color: #edc484; }
.sidebar-shortcuts { display: flex; justify-content: flex-end; margin-top: auto; }
.sidebar-shortcuts button { background: transparent; color: #c3c8cb; font-size: 18px; }
.sidebar.collapsed { width: 76px; padding-inline: 11px; }
.sidebar.collapsed .side-nav button { padding-inline: 15px; }
.sidebar.collapsed .side-nav b { display: none; }
.dashboard-body:has(.sidebar.collapsed) { grid-template-columns: 76px 1fr; }

.workspace { display: grid; grid-template-columns: minmax(740px, 1fr) 362px; min-width: 0; }
.workspace-main { min-width: 0; padding: 26px 22px 28px 34px; }
.workspace-title { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.workspace-title h1 { margin: 0; padding-bottom: 2px; color: var(--gold); font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 24px; font-weight: 400; letter-spacing: .2px; line-height: 1.25; }
.workspace-title p { margin: 0; color: var(--muted); font-size: 13px; }
.workspace-title > div:first-child { display: grid; gap: 5px; }
.task-context { display: flex; align-items: center; gap: 8px; }
.current-task-name { max-width: 210px; overflow: hidden; padding: 7px 10px; border-radius: 8px; color: #e7c487; background: rgba(228,182,110,.1); text-overflow: ellipsis; white-space: nowrap; }
.current-task-name:hover { background: rgba(228,182,110,.17); }
.task-status { padding: 5px 8px; border: 1px solid var(--line); border-radius: 12px; color: #aeb5b8; font-size: 11px; white-space: nowrap; }
.task-status[data-status="queued"] { color: #e7c487; border-color: rgba(228,182,110,.35); }
.task-status[data-status="generating"] { color: #8fc7e5; border-color: rgba(97,171,213,.4); }
.task-status[data-status="completed"] { color: #8dd2a1; border-color: rgba(101,195,128,.4); }
.task-status[data-status="partial-failed"], .task-status[data-status="failed"] { color: #efaaaa; border-color: rgba(230,109,109,.4); }
.task-status[data-status="canceled"] { color: #aeb5b8; }
.task-context-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: #c4c9cb; background: #10171b; white-space: nowrap; }
.task-context-button:hover { color: var(--gold); border-color: rgba(228,182,110,.5); }
.panel { border: 1px solid rgba(255,255,255,.055); border-radius: 15px; background: linear-gradient(140deg, rgba(16,23,27,.9), rgba(12,18,22,.72)); }
.prompt-panel { padding: 15px; }
.reference-row + .prompt-panel { margin-top: 14px; }
.prompt-panel h2, .reference-row h2, .results-section h2 { margin: 0 0 12px; font-size: 15px; }
.textarea-wrap { position: relative; }
.textarea-wrap textarea { display: block; width: 100%; min-height: 140px; resize: vertical; padding: 17px 18px 38px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: #ddd; background: rgba(255,255,255,.025); line-height: 1.7; }
.textarea-wrap textarea:focus { border-color: rgba(228,182,110,.5); }
.textarea-wrap > span { position: absolute; left: 16px; bottom: 11px; color: #8f969a; font-size: 13px; }
.textarea-wrap > button { position: absolute; right: 13px; bottom: 9px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(10,15,18,.68); color: #aeb3b6; }
.prompt-actions { position: relative; display: flex; flex-wrap: wrap; gap: 11px; margin-top: 11px; }
.prompt-actions button { min-width: 128px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 9px; background: #10171b; }
.prompt-actions .gold-outline { border-color: rgba(228,182,110,.65); color: #e8cfaa; }
.prompt-actions .undo-prompt { min-width: 104px; color: #b9bec1; }
.prompt-actions button:disabled { cursor: wait; opacity: .62; }
.prompt-actions button.active { color: var(--gold); border-color: rgba(228,182,110,.55); background: rgba(228,182,110,.08); }
.prompt-actions [data-testid="personal-style"][aria-pressed="true"] { color: #e9c98f; border-color: rgba(228,182,110,.58); background: rgba(228,182,110,.1); box-shadow: inset 0 0 0 1px rgba(228,182,110,.06); }
.personal-style-picker-backdrop { z-index: 91; }
.personal-style-menu { grid-template-rows: auto auto auto auto minmax(0,1fr) auto; }
.personal-style-menu[hidden] { display: none; }
.personal-style-menu > p { margin: 0; padding: 18px 8px; color: #899398; font-size: 12px; line-height: 1.5; }
.personal-style-picker-content { display: grid; min-height: 0; grid-template-rows: auto minmax(0,1fr); overflow: hidden; }
.personal-style-picker-section { display: grid; min-width: 0; gap: 14px; padding: 22px 0; }
.personal-style-picker-section + .personal-style-picker-section { border-top: 1px solid rgba(190,207,214,.13); }
.personal-style-picker-section > header { display: flex; min-height: 24px; align-items: center; justify-content: space-between; gap: 16px; color: #eef1f2; font-size: 17px; }
.personal-style-picker-filter-status { color: #7f8b90; font-size: 11px; font-weight: 400; }
.personal-style-picker-tags { display: flex; flex-wrap: wrap; gap: 9px; overflow: visible; padding: 2px 0; }
.personal-style-tag { display: inline-flex; min-height: 38px; align-items: center; padding: 0 15px; border: 1px solid rgba(190,207,214,.18); border-radius: 999px; color: #aeb8bc; background: rgba(7,13,16,.25); font-size: 13px; }
.personal-style-tag:hover, .personal-style-tag:focus-visible { color: #f0d394; border-color: rgba(228,182,110,.52); outline: 0; }
.personal-style-tag.active { color: #f0d394; border-color: rgba(228,182,110,.68); background: rgba(228,182,110,.1); }
.personal-style-picker-list { display: grid; min-height: 0; align-content: start; gap: 9px; padding: 2px 6px 4px 0; overflow-y: auto; overflow-anchor: none; overscroll-behavior: contain; scrollbar-gutter: stable both-edges; }
.personal-style-option { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding: 15px 17px; border: 1px solid rgba(190,207,214,.14); border-radius: 11px; color: #dfe3e4; background: rgba(7,13,16,.28); text-align: left; transition: border-color .18s, background .18s; }
.personal-style-option:hover, .personal-style-option:focus-visible { border-color: rgba(228,182,110,.44); background: rgba(14,24,29,.72); outline: 0; }
.personal-style-option.active { border-color: rgba(228,182,110,.65); background: rgba(228,182,110,.08); box-shadow: inset 0 0 0 1px rgba(228,182,110,.06); }
.personal-style-option > span { display: grid; min-width: 0; gap: 6px; }
.personal-style-option b { overflow: hidden; color: #f0f2f2; font-size: 16px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.personal-style-option small { color: #8d989d; font-size: 12px; }
.personal-style-option em { min-width: 24px; align-self: center; color: #e9c27d; font-size: 24px; font-style: normal; text-align: center; }
.personal-style-option.is-disabled { background: transparent; }
.personal-style-option.is-disabled b { font-size: 14px; }
.personal-style-option.is-disabled small { font-size: 11px; }
.personal-style-option-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.personal-style-option-tags span { display: inline-flex; min-height: 23px; align-items: center; padding: 0 8px; border: 1px solid rgba(190,207,214,.15); border-radius: 999px; color: #aab5b8; background: rgba(190,207,214,.045); font-size: 10px; }
.personal-style-picker-empty { margin: 0; padding: 12px 7px 7px; color: #899398; font-size: 12px; line-height: 1.5; }
.personal-style-picker-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(190,207,214,.13); }
.personal-style-picker-footer > button { min-width: 110px; min-height: 44px; padding: 10px 16px; border: 1px solid rgba(190,207,214,.3); border-radius: 9px; color: #dfe3e4; background: #0b1317; font-size: 14px; }
.personal-style-picker-footer > button:hover, .personal-style-picker-footer > button:focus-visible { color: #f0d394; border-color: rgba(228,182,110,.55); outline: 0; }
.personal-style-picker-footer > button.primary { color: #10171b; border-color: #e6b96e; background: #e6b96e; }
.personal-style-picker-footer > button.primary:hover, .personal-style-picker-footer > button.primary:focus-visible { color: #10171b; background: #f0c780; }
.painting-skill-menu.personal-style-menu { width: min(860px,calc(100vw - 48px),calc(100dvh - 48px)); height: min(860px,calc(100vw - 48px),calc(100dvh - 48px)); max-height: none; }
.personal-style-menu .personal-style-picker-list { grid-template-columns: repeat(8,minmax(0,1fr)); }
.personal-style-menu .personal-style-option { grid-template-columns: minmax(0,1fr) auto; gap: 16px; min-height: 96px; padding: 15px 17px; }
.personal-style-menu .personal-style-option:not(.is-disabled) { position: relative; grid-template-columns: minmax(0,1fr); gap: 8px; min-height: 102px; padding: 12px 10px; }
.personal-style-menu .personal-style-option:not(.is-disabled) > span { padding-right: 12px; gap: 5px; }
.personal-style-menu .personal-style-option:not(.is-disabled) > em { position: absolute; top: 7px; right: 7px; min-width: 18px; font-size: 19px; }
.personal-style-menu .personal-style-option.is-disabled { grid-column: 1 / -1; min-height: 70px; }
.personal-style-menu .personal-style-option span:first-child { gap: 6px; }
.personal-style-menu .personal-style-option b { font-size: 13px; }
.personal-style-menu .personal-style-option small { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.personal-style-menu .personal-style-option-tags { max-height: 23px; overflow: hidden; gap: 3px; }
.personal-style-menu .personal-style-option-tags span { min-height: 20px; padding-inline: 6px; font-size: 9px; }
.xfont-picker-wrap { position: relative; display: flex; min-width: 0; }
.prompt-actions .xfont-picker-wrap > button { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; max-width: 238px; padding-inline: 12px; }
.prompt-actions .xfont-picker-wrap > button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-actions .xfont-picker-wrap > button > i { flex: 0 0 auto; font-size: 13px; }
.painting-skill-picker-wrap { position: relative; display: flex; min-width: 0; }
.prompt-actions .painting-skill-picker-wrap > button { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; max-width: 238px; padding-inline: 12px; }
.prompt-actions .painting-skill-picker-wrap > button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-actions .painting-skill-picker-wrap > button > i { flex: 0 0 auto; font-size: 13px; }
.xfont-menu { position: relative; display: grid; }
.xfont-menu[hidden] { display: none; }
.painting-skill-picker-backdrop { position: fixed; z-index: 92; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.painting-skill-picker-backdrop[hidden] { display: none; }
.painting-skill-menu { position: relative; display: grid; width: min(1040px,calc(100vw - 48px)); max-height: min(920px,calc(100dvh - 48px)); grid-template-rows: auto auto auto minmax(0,1fr) auto auto; padding: 42px 46px 32px; overflow: hidden; border: 1px solid rgba(190,207,214,.24); border-radius: 22px; background: #11191e; box-shadow: 0 30px 90px rgba(0,0,0,.58); }
.painting-skill-menu[hidden] { display: none; }
.xfont-menu.painting-skill-menu { grid-template-rows: auto auto auto minmax(0,1fr) auto auto; }
.xfont-picker-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.xfont-picker-title-row h2 { margin: 0; color: #f1f3f4; font-size: clamp(27px,3vw,38px); line-height: 1.05; }
.xfont-picker-title-row > span { flex: 0 0 auto; color: #8d989d; font-size: 12px; }
.xfont-picker-modal-content { display: grid; min-height: 0; grid-template-rows: auto minmax(0,1fr); overflow: hidden; }
.xfont-picker-modal-section { display: grid; min-width: 0; gap: 14px; padding: 22px 0; }
.xfont-picker-modal-section + .xfont-picker-modal-section { border-top: 1px solid rgba(190,207,214,.13); }
.xfont-picker-modal-section > header { display: flex; min-height: 24px; align-items: center; justify-content: space-between; gap: 16px; color: #eef1f2; font-size: 17px; }
.xfont-picker-filter-status { color: #7f8b90; font-size: 11px; font-weight: 400; }
.xfont-picker-current { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid rgba(228,182,110,.3); border-radius: 11px; background: rgba(228,182,110,.07); }
.xfont-picker-current em { min-width: 24px; color: var(--gold); font-size: 22px; font-style: normal; text-align: center; }
.xfont-picker-current-empty { margin: 0; padding: 10px 2px; color: #7f8b90; font-size: 12px; }
.xfont-picker-library-section { min-height: 0; grid-template-rows: auto auto minmax(0,1fr); }
.xfont-picker-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 6px 8px; color: #e7bd76; font-size: 12px; }
.xfont-picker-heading span { color: #8e999e; font-size: 10px; }
.xfont-picker-categories { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 2px 2px; }
.xfont-picker-categories > .xfont-category-tag { min-width: 0; max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xfont-picker-category-more { position: relative; flex: 0 0 auto; }
.xfont-picker-category-more-toggle { display: inline-flex; min-height: 30px; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid rgba(190,207,214,.2); border-radius: 8px; color: #aab4b8; background: rgba(14,23,27,.74); font-size: 11px; white-space: nowrap; }
.xfont-picker-category-more-toggle:hover, .xfont-picker-category-more-toggle.active { border-color: rgba(228,182,110,.52); color: #edc77f; background: rgba(228,182,110,.09); }
.xfont-picker-category-more-toggle i { font-size: 12px; }
.xfont-picker-category-more-menu { position: absolute; z-index: 2; top: calc(100% + 7px); right: 0; display: grid; width: min(246px,calc(100vw - 58px)); max-height: 188px; gap: 5px; padding: 7px; overflow-y: auto; border: 1px solid rgba(228,182,110,.32); border-radius: 9px; background: rgba(9,16,19,.99); box-shadow: 0 16px 34px rgba(0,0,0,.42); }
.xfont-picker-category-more-menu[hidden] { display: none; }
.xfont-picker-category-more-option { min-height: 30px; padding: 0 9px; overflow-wrap: anywhere; border: 1px solid transparent; border-radius: 7px; color: #bac3c6; background: transparent; font-size: 11px; text-align: left; }
.xfont-picker-category-more-option:hover, .xfont-picker-category-more-option.active { border-color: rgba(228,182,110,.38); color: #edc77f; background: rgba(228,182,110,.08); }
.xfont-picker-list { display: grid; gap: 7px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-gutter: stable; }
.xfont-picker-modal-list { min-height: 0; align-content: start; }
.xfont-picker-option { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 8px; border: 1px solid transparent; border-radius: 8px; color: #d9dfe1; background: transparent; text-align: left; }
.xfont-picker-option:hover, .xfont-picker-option.active { border-color: rgba(228,182,110,.36); color: #f1cf94; background: rgba(228,182,110,.08); }
.xfont-picker-option em { min-width: 14px; color: var(--gold); font-size: 14px; font-style: normal; text-align: center; }
.xfont-picker-clear { min-height: 32px; border: 1px solid rgba(190,207,214,.22); border-radius: 8px; color: #abb4b7; background: rgba(255,255,255,.025); font-size: 11px; }
.xfont-picker-clear:hover:not(:disabled) { border-color: rgba(228,182,110,.38); color: #e7bd76; }
.xfont-picker-clear:disabled { cursor: not-allowed; opacity: .5; }
.xfont-picker-preview { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border: 1px solid rgba(228,182,110,.2); border-radius: 7px; color: #899398; background: rgba(228,182,110,.04); font-size: 9px; line-height: 1.25; text-align: center; }
.xfont-picker-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.xfont-picker-preview.is-unavailable { color: #a98c72; }
.xfont-picker-meta { display: grid; min-width: 0; gap: 3px; }
.xfont-picker-meta b, .xfont-picker-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xfont-picker-meta b { font-size: 12px; font-weight: 650; }
.xfont-picker-meta small { color: #8d989d; font-size: 10px; }
.xfont-picker-empty { margin: 0; padding: 12px 7px 7px; color: #899398; font-size: 11px; line-height: 1.5; }
.xfont-menu .xfont-picker-categories { gap: 9px; overflow: visible; padding: 2px 0; }
.xfont-menu .xfont-picker-categories > .xfont-category-tag { display: inline-flex; max-width: 190px; min-height: 38px; align-items: center; padding-inline: 15px; font-size: 13px; }
.xfont-menu .xfont-picker-category-more-toggle { min-height: 38px; padding-inline: 15px; font-size: 13px; }
.xfont-menu .xfont-picker-category-more-menu { z-index: 5; top: calc(100% + 9px); width: min(280px,calc(100vw - 72px)); max-height: 230px; }
.xfont-menu .xfont-picker-category-more-option { min-height: 36px; font-size: 12px; }
.xfont-menu .xfont-picker-option { grid-template-columns: 70px minmax(0,1fr) auto; gap: 16px; padding: 12px 14px; border-color: rgba(190,207,214,.14); border-radius: 11px; background: rgba(7,13,16,.28); }
.xfont-menu .xfont-picker-option em { min-width: 22px; font-size: 24px; }
.xfont-menu .xfont-picker-preview { width: 70px; height: 70px; border-radius: 10px; }
.xfont-menu .xfont-picker-current .xfont-picker-preview { width: 58px; height: 58px; }
.xfont-menu .xfont-picker-meta { gap: 5px; }
.xfont-menu .xfont-picker-meta b { font-size: 16px; }
.xfont-menu .xfont-picker-meta small { font-size: 12px; }
.painting-skill-picker-close { position: absolute; top: 22px; right: 24px; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; color: #e8ecee; background: transparent; font-size: 25px; }
.painting-skill-picker-close:hover { color: #efc982; background: rgba(255,255,255,.045); }
.painting-skill-picker-brand { margin: 0 0 20px; color: #e6b96e; font-size: 13px; letter-spacing: .28em; }
.painting-skill-menu > h2 { margin: 0; color: #f1f3f4; font-size: clamp(27px,3vw,38px); line-height: 1.05; }
.painting-skill-picker-intro { margin: 18px 0 8px; color: #929da2; font-size: 17px; }
.painting-skill-picker-content { display: grid; min-height: 0; grid-template-rows: auto minmax(0,1fr); overflow: hidden; }
.painting-skill-picker-list { display: grid; min-height: 0; align-content: start; gap: 7px; padding-right: 6px; }
.painting-skill-picker-scroll { display: grid; min-height: 0; gap: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.painting-skill-picker-section { display: grid; min-width: 0; gap: 16px; padding: 26px 0 28px; border: 0; border-radius: 0; background: transparent; }
.painting-skill-picker-section + .painting-skill-picker-section { border-top: 1px solid rgba(190,207,214,.13); }
.painting-skill-picker-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; color: #eef1f2; font-size: 18px; }
.painting-skill-picker-section > header > button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 0; color: #b3bdc0; background: transparent; font-size: 10px; }
.painting-skill-picker-section > header > button:hover { color: #edc77f; }
.painting-skill-picker-section > header > span { color: #7f8b90; font-size: 10px; }
.painting-skill-preset-section { padding: 20px 0 18px; }
.painting-skill-preset-section.is-empty { gap: 6px; padding: 12px 0 14px; }
.painting-skill-preset-section.is-empty .painting-skill-picker-empty { padding: 2px 4px 5px; }
.painting-skill-user-section { min-height: 0; grid-template-rows: auto auto minmax(0,1fr); padding: 20px 0 0; }
.painting-skill-user-section.is-empty { grid-template-rows: auto auto; }
.painting-skill-user-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.painting-skill-picker-filter-status { flex: 0 0 auto; white-space: nowrap; }
.painting-skill-picker-current { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 6px; border: 1px solid rgba(228,182,110,.3); border-radius: 8px; background: rgba(228,182,110,.07); }
.painting-skill-picker-current > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.painting-skill-picker-current b, .painting-skill-picker-current small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.painting-skill-picker-current b { color: #e8d1aa; font-size: 11px; }
.painting-skill-picker-current small { color: #849096; font-size: 9px; }
.painting-skill-picker-current em { color: var(--gold); font-style: normal; }
.painting-skill-picker-current-empty { margin: 0; padding: 7px 6px; color: #7f8b90; font-size: 10px; }
.painting-skill-picker-tags { display: flex; max-height: 68px; flex-wrap: wrap; gap: 5px; overflow-y: auto; padding: 1px 0; }
.painting-skill-picker-tags button { display: inline-flex; min-height: 25px; align-items: center; gap: 3px; padding: 0 8px; border: 1px solid rgba(190,207,214,.16); border-radius: 7px; color: #98a3a7; background: rgba(14,23,27,.74); font-size: 9px; }
.painting-skill-picker-tags button:hover, .painting-skill-picker-tags button.active { border-color: rgba(228,182,110,.48); color: #ebc47f; background: rgba(228,182,110,.09); }
.painting-skill-picker-tags i { font-size: 9px; }
.painting-skill-chip-row { gap: 9px; padding: 2px 0; overflow: visible; }
.painting-skill-chip-row > .xfont-category-tag { display: inline-flex; max-width: 190px; min-height: 38px; align-items: center; gap: 6px; padding-inline: 15px; font-size: 13px; }
.painting-skill-chip-row > .painting-skill-advanced-chip { position: relative; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.painting-skill-advanced-chip small { color: #edc77f; font-size: 9px; line-height: 1.1; }
.painting-skill-advanced-chip[data-tooltip]::after { position: absolute; z-index: 8; left: 0; top: calc(100% + 8px); display: none; width: min(320px, calc(100vw - 72px)); padding: 9px 11px; border: 1px solid rgba(228,182,110,.35); border-radius: 8px; color: #e8edef; background: rgba(8,14,17,.98); box-shadow: 0 12px 28px rgba(0,0,0,.4); content: attr(data-tooltip); font-size: 11px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; }
.painting-skill-advanced-chip[data-tooltip]:hover::after, .painting-skill-advanced-chip[data-tooltip]:focus-visible::after { display: block; }
.painting-skill-case-panel { display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: 15px; padding: 12px; border: 1px solid rgba(228,182,110,.22); border-radius: 11px; background: rgba(228,182,110,.045); }
.painting-skill-case-image { display: block; width: 132px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(228,182,110,.2); }
.painting-skill-case-copy { display: grid; gap: 5px; min-width: 0; }
.painting-skill-case-copy b { color: #e9c98f; font-size: 13px; }
.painting-skill-case-copy p, .painting-skill-case-copy small { margin: 0; color: #9da8ac; font-size: 11px; line-height: 1.5; }
.painting-skill-case-copy small { color: #728087; font-size: 10px; }
.painting-skill-chip-row > .xfont-category-tag i { flex: 0 0 auto; font-size: 13px; }
.painting-skill-chip-row .xfont-picker-category-more-toggle { min-height: 38px; padding-inline: 15px; font-size: 13px; }
.painting-skill-more-menu { z-index: 5; top: calc(100% + 9px); width: min(280px,calc(100vw - 72px)); max-height: 230px; }
.painting-skill-more-menu .xfont-picker-category-more-option { min-height: 36px; font-size: 12px; }
.painting-skill-picker-list.is-recommended { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.painting-skill-picker-list.is-recommended .painting-skill-picker-option { flex: 0 0 156px; grid-template-columns: 32px minmax(0,1fr) auto; }
.painting-skill-picker-list.is-recommended .painting-skill-picker-cover { width: 32px; height: 32px; }
.painting-skill-picker-option { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; align-items: center; gap: 16px; min-width: 0; padding: 12px 14px; border: 1px solid rgba(190,207,214,.14); border-radius: 11px; color: #d9dfe1; background: rgba(7,13,16,.28); text-align: left; }
.painting-skill-picker-option:hover, .painting-skill-picker-option.active { border-color: rgba(228,182,110,.36); color: #f1cf94; background: rgba(228,182,110,.08); }
.painting-skill-picker-option em { min-width: 22px; color: var(--gold); font-size: 24px; font-style: normal; text-align: center; }
.painting-skill-picker-cover { display: grid; width: 70px; height: 70px; place-items: center; overflow: hidden; border: 1px solid rgba(228,182,110,.2); border-radius: 10px; color: #899398; background: rgba(228,182,110,.04); font-size: 9px; line-height: 1.25; text-align: center; }
.painting-skill-picker-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.painting-skill-picker-meta { display: grid; min-width: 0; gap: 3px; }
.painting-skill-picker-meta b, .painting-skill-picker-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.painting-skill-picker-meta b { font-size: 16px; font-weight: 650; }
.painting-skill-picker-meta small { color: #8d989d; font-size: 12px; line-height: 1.45; }
.painting-skill-picker-empty { margin: 0; padding: 14px 4px; color: #899398; font-size: 13px; line-height: 1.5; }
.painting-skill-picker-clear { justify-self: start; min-height: 34px; margin: 14px 0 6px; padding: 0 2px; border: 0; border-radius: 0; color: #d9ad67; background: transparent; font-size: 13px; text-align: left; }
.painting-skill-picker-clear:hover:not(:disabled) { color: #f0c982; }
.painting-skill-picker-clear:disabled { cursor: not-allowed; opacity: .5; }
.painting-skill-picker-footer { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 16px; padding-top: 10px; }
.painting-skill-picker-footer > button { min-height: 52px; padding: 0 18px; border: 1px solid rgba(190,207,214,.22); border-radius: 11px; color: #d1d7d9; background: rgba(255,255,255,.025); font-size: 16px; }
.painting-skill-picker-footer > button.primary { border-color: rgba(228,182,110,.58); color: #281b0e; background: #e7b963; }
.painting-skill-picker-footer > button:disabled { cursor: not-allowed; opacity: .45; }
.personal-style-option { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; color: #bfc5c8; background: transparent; text-align: left; }
.personal-style-option:hover { color: #f0d09a; border-color: rgba(228,182,110,.2); background: rgba(228,182,110,.06); }
.personal-style-option.active { color: #f1cd91; border-color: rgba(228,182,110,.36); background: rgba(228,182,110,.1); }
.personal-style-option span:first-child { display: grid; min-width: 0; gap: 3px; }
.personal-style-option b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.personal-style-option small { color: #7f898e; font-size: 9px; }
.personal-style-option em { color: #e8be78; font-size: 12px; font-style: normal; }
.prompt-enhance-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.prompt-enhance-modes button { min-width: 54px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 7px; color: #8f989c; background: rgba(10,16,19,.66); font-size: 10px; line-height: 1.2; }
.prompt-enhance-modes button:hover:not(:disabled) { color: #c6ccce; border-color: rgba(255,255,255,.2); }
.prompt-enhance-modes button.active,
.prompt-enhance-modes button[aria-pressed="true"] { color: #e9c98f; border-color: rgba(228,182,110,.62); background: rgba(228,182,110,.12); box-shadow: inset 0 0 0 1px rgba(228,182,110,.08); font-weight: 600; }
.prompt-enhance-modes button:focus-visible { outline: 1px solid rgba(228,182,110,.72); outline-offset: 2px; }
.prompt-enhance-modes button:disabled { cursor: not-allowed; color: #596166; border-color: rgba(255,255,255,.045); background: rgba(7,11,13,.42); opacity: .7; }
.prompt-actions [data-testid="enhance-prompt"].is-running { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.prompt-actions [data-testid="enhance-prompt"] .trace-x-mark { width: 22px; height: 22px; border-radius: 7px; font-size: 12px; }
.prompt-actions [data-testid="enhance-prompt"].is-running .trace-x-mark { animation: x-mark-pulse 1.15s ease-in-out infinite; }
.prompt-version-bar { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.065); border-radius: 9px; background: rgba(7,12,15,.45); }
.prompt-version-bar[hidden] { display: none; }
.prompt-version-bar > span { margin-right: 3px; color: #727d82; font-size: 9px; letter-spacing: .06em; }
.prompt-version-bar button { padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; color: #929ca0; background: transparent; font-size: 9px; }
.prompt-version-bar button:hover { color: #d5d9da; background: rgba(255,255,255,.04); }
.prompt-version-bar button.active { color: #e8c487; border-color: rgba(228,182,110,.3); background: rgba(228,182,110,.07); }
.prompt-history-list { display: grid; gap: 10px; }
.prompt-history-section + .prompt-history-section { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.prompt-history-section > h3 { margin: 0 0 9px; color: #7f898d; font-size: 10px; font-weight: 500; }
.prompt-history-card { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #0b1317; }
.prompt-history-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.prompt-history-card b { color: #e5c182; font-size: 11px; }
.prompt-history-card time { color: #707b80; font-size: 9px; }
.prompt-history-card p { margin: 0; color: #b5bdc0; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.task-prompt-versions { justify-self: start; margin-top: 8px; padding: 5px 8px; border: 1px solid rgba(228,182,110,.22); border-radius: 7px; color: #d6b271; background: rgba(228,182,110,.045); font-size: 9px; }
.negative-prompt-status { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 11px; border: 1px solid rgba(228,182,110,.22); border-radius: 9px; color: #cbd0d2; background: rgba(228,182,110,.045); font-size: 12px; }
.negative-prompt-status > i { color: var(--gold); font-size: 17px; }
.negative-prompt-status span { display: flex; min-width: 0; gap: 8px; }
.negative-prompt-status b { flex: 0 0 auto; color: #e7c487; font-weight: 600; }
.negative-prompt-status em { overflow: hidden; color: #aeb5b8; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.negative-prompt-status button { padding: 3px 7px; border-radius: 6px; color: #aeb5b8; background: transparent; font-size: 11px; }
.negative-prompt-status button:hover { color: #fff; background: rgba(255,255,255,.06); }
.reference-row { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 176px; margin-top: 14px; overflow: hidden; }
.upload-zone, .suggestion-zone { padding: 17px 15px; }
.upload-zone { border-right: 1px solid var(--line); }
.reference-row small { color: var(--muted); font-size: 13px; font-weight: normal; }
.reference-drop-zone { display: flex; align-items: center; gap: 8px; min-height: 108px; padding: 12px; border: 1px dashed rgba(255,255,255,.17); border-radius: 10px; transition: border-color .2s, background .2s, box-shadow .2s; }
.reference-drop-zone.drag-active { border-color: var(--gold); background: rgba(228,182,110,.07); box-shadow: inset 0 0 0 1px rgba(228,182,110,.18); }
.reference-empty { display: grid; flex: 1; place-items: center; gap: 4px; color: #c7cace; text-align: center; cursor: pointer; }
.reference-empty span, .reference-empty small { color: #8f9699; font-size: 12px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 7px; }
.upload-preview-item { position: relative; width: 58px; height: 58px; }
.upload-preview img { width: 58px; height: 58px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); cursor: zoom-in; }
.upload-preview-actions { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 4px; border-radius: 7px; opacity: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.78)); transition: opacity .18s; }
.upload-preview-item:hover .upload-preview-actions, .upload-preview-item:focus-within .upload-preview-actions { opacity: 1; }
.upload-preview-actions button { width: 16px; height: 16px; border-radius: 4px; color: #fff; background: rgba(20,25,28,.88); font-size: 10px; line-height: 16px; }
.reference-add { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; border: 1px dashed rgba(255,255,255,.24); border-radius: 7px; color: #c7cace; cursor: pointer; }
.reference-add[hidden], .reference-empty[hidden] { display: none; }
.reference-add:hover { color: var(--gold); border-color: var(--gold); }
.reference-add strong { font-size: 22px; font-weight: 300; }
.reference-large-preview { display: block; width: 100%; max-height: 65vh; object-fit: contain; border-radius: 10px; }
.suggestion-zone h2 { color: #9fa5a8; font-weight: normal; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: #0d1519; color: #bbc0c3; font-size: 13px; }
.tag-list button:hover { border-color: var(--gold); color: var(--gold); }
.tag-list .refresh-tags { margin-left: auto; border-color: transparent; background: transparent; }
.results-section { margin-top: 21px; }
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.results-head > div { display: flex; gap: 10px; }
.results-head button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 18px; background: #0c1418; font-size: 12px; }
.results-head .view-button { width: 36px; border-radius: 9px; font-size: 18px; }
.results-head .view-button.active { color: var(--gold); border-color: rgba(228,182,110,.45); }
.results-head .view-button[data-tooltip] { position: relative; }
.results-head .view-button[data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; padding: 5px 8px; border: 1px solid rgba(228,182,110,.32); border-radius: 6px; color: #e4e8e9; background: #10181c; box-shadow: 0 8px 18px rgba(0,0,0,.28); opacity: 0; pointer-events: none; transform: translateY(-2px); transition: opacity .16s ease, transform .16s ease; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.results-head .view-button[data-tooltip]:hover::after, .results-head .view-button[data-tooltip]:focus-visible::after { opacity: 1; transform: translateY(0); }
.result-card-size-control { display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 3px 7px 4px 8px; border: 1px solid var(--line); border-radius: 18px; background: #0c1418; }
.result-card-size-control.is-expanded { min-width: 232px; }
.result-card-size-toggle { display: inline-flex; align-items: center; gap: 4px; min-width: 50px; padding: 7px 8px !important; border-color: transparent !important; border-radius: 14px !important; color: #899297; background: transparent !important; }
.result-card-size-toggle:hover, .result-card-size-toggle:focus-visible { color: #e7c486; border-color: rgba(228,182,110,.35) !important; background: rgba(228,182,110,.06) !important; }
.result-card-size-toggle i { color: currentColor; font-size: 11px; font-style: normal; line-height: 1; }
.result-card-size-panel { display: inline-flex; align-items: center; min-width: 0; }
.result-card-size-slider { position: relative; display: grid; width: 192px; min-width: 0; gap: 1px; }
.result-card-size-slider input[type="range"] { width: 100%; height: 18px; margin: 0; appearance: none; cursor: pointer; background: transparent; }
.result-card-size-slider input[type="range"]:focus-visible { outline: 1px solid rgba(228,182,110,.78); outline-offset: 2px; border-radius: 6px; }
.result-card-size-slider input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: rgba(174,182,185,.36); }
.result-card-size-slider input[type="range"]::-webkit-slider-thumb { width: 13px; height: 13px; margin-top: -5px; appearance: none; border: 2px solid #18120b; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px rgba(228,182,110,.52); }
.result-card-size-slider input[type="range"]::-moz-range-track { height: 3px; border-radius: 99px; background: rgba(174,182,185,.36); }
.result-card-size-slider input[type="range"]::-moz-range-progress { height: 3px; border-radius: 99px; background: rgba(228,182,110,.78); }
.result-card-size-slider input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #18120b; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px rgba(228,182,110,.52); }
.result-card-size-ticks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.results-head .result-card-size-control .result-card-size-tick { min-width: 0; padding: 3px 2px; border-color: transparent; border-radius: 9px; color: #899297; background: transparent; font-size: 10px; line-height: 1.1; }
.results-head .result-card-size-control .result-card-size-tick:hover { color: #e7c486; border-color: rgba(228,182,110,.35); background: rgba(228,182,110,.06); }
.results-head .result-card-size-control .result-card-size-tick.active { color: #24190c; border-color: rgba(228,182,110,.58); background: var(--gold); }
.result-grid { --result-card-min: 260px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--result-card-min), 1fr)); gap: 12px; }
.result-grid:not(.list-view)[data-card-size="125"] { --result-card-min: 190px; gap: 8px; }
.result-grid:not(.list-view)[data-card-size="150"] { --result-card-min: 260px; gap: 12px; }
.result-grid:not(.list-view)[data-card-size="200"] { --result-card-min: 360px; gap: 16px; }
.result-grid:empty::before { content: "暂无生成结果"; grid-column: 1 / -1; padding: 32px; border: 1px dashed var(--line); border-radius: 11px; color: #858d91; text-align: center; }
.result-grid.list-view { grid-template-columns: 1fr; }
.result-grid.list-view .result-card { display: grid; grid-template-columns: 180px 1fr; grid-template-rows: auto auto; }
.result-grid.list-view .result-image { height: 120px; }
.result-grid.list-view .result-card > .result-image { grid-row: 1 / 3; }
.result-grid.list-view .result-meta { grid-column: 2; grid-row: 1; }
.result-grid.list-view .result-card > .result-actions { grid-column: 2; grid-row: 2; }
.result-card { overflow: hidden; border-radius: 11px; background: #2c3235; transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease; }
.result-card[draggable="true"] .result-image { cursor: grab; }
.result-card.is-dragging { opacity: .24; transform: scale(.985); }
.result-card.is-dragging .result-image { cursor: grabbing; }
.result-drop-placeholder { min-height: 260px; border: 1px dashed rgba(228,182,110,.72); border-radius: 11px; background: rgba(228,182,110,.075); animation: result-placeholder 1.15s ease-in-out infinite; }
.result-image { position: relative; width: 100%; height: auto; overflow: hidden; aspect-ratio: 216 / 226; background: #171e22; }
.result-image.has-result-ratio { aspect-ratio: auto; }
.result-card.is-pending .result-image { background: #020304; }
.result-loading-shell { position: absolute; z-index: 0; inset: 0; overflow: hidden; background: radial-gradient(circle at center, rgba(92,105,114,.16), #020304 66%); pointer-events: none; }
.result-particle-fallback { position: absolute; z-index: 0; inset: 0; opacity: .34; transition: opacity .3s ease; }
.result-particle-fallback::before,
.result-particle-fallback::after { content: ""; position: absolute; top: 50%; left: 50%; width: min(42%, 150px); height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(211,220,224,.82), transparent); box-shadow: 0 0 16px rgba(193,213,222,.38); transform-origin: center; animation: result-particle-fallback-pulse 1.55s ease-in-out infinite; }
.result-particle-fallback::before { transform: translate(-50%, -50%) rotate(45deg); }
.result-particle-fallback::after { transform: translate(-50%, -50%) rotate(-45deg); animation-delay: -.775s; }
.result-particle-video { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .24s ease; pointer-events: none; }
.result-loading-shell.is-recovering .result-particle-fallback,
.result-loading-shell.is-fallback-active .result-particle-fallback { opacity: 1; }
.result-loading-shell.is-recovering .result-particle-video { opacity: .38; }
.result-loading-shell.is-fallback-active .result-particle-video { opacity: 0; }
.result-card.is-pending .result-actions button { opacity: .35; pointer-events: none; }
.generated-image { display: block; width: 100%; height: 100%; cursor: zoom-in; object-fit: cover; }
.generated-image.is-final-image-staging { position: relative; z-index: 1; opacity: 0; }
.generated-image.is-final-image-staging.is-final-image-visible { opacity: 1; }
.result-image.has-result-ratio .generated-image { object-fit: contain; }
.result-failure-message { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; margin: 0; padding: 30px 24px; color: #d9dddf; text-align: center; font-size: 14px; font-weight: 500; line-height: 1.65; text-wrap: balance; }
.result-failure-message[data-accounting-verified="true"] { color: #e7c68e; }
.result-failure-message.is-content-review { align-content: center; gap: 7px; color: #d9dddf; }
.result-failure-message.is-content-review strong { color: #e8c484; font-size: 15px; font-weight: 650; }
.result-failure-message.is-content-review span { max-width: 26ch; color: #aeb6b9; font-size: 12px; font-weight: 400; }
.result-failure-message.is-content-review small { margin-top: 4px; color: #7f898e; font-size: 10px; font-weight: 400; }
.result-image b { display: none; }
.result-meta { display: grid; gap: 3px; padding: 8px 9px; color: #c2c7c9; background: #242a2d; font-size: 10px; line-height: 1.4; }
.result-meta p { overflow: hidden; margin: 0; color: #aeb4b7; text-overflow: ellipsis; white-space: nowrap; }
.result-meta strong { color: #e0b66f; font-weight: 600; }
.result-meta .result-title { color: #f0cc91; font-size: 11px; }
.result-meta .result-status-row { display: flex; min-width: 0; align-items: baseline; gap: 2px; }
.result-meta .result-status-row em { overflow: hidden; color: #cbd1d3; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.result-grid:not(.list-view)[data-card-size="125"] .result-meta { gap: 3px; padding: 8px 9px; font-size: 10px; }
.result-grid:not(.list-view)[data-card-size="125"] .result-meta .result-title { font-size: 11px; }
.result-grid:not(.list-view)[data-card-size="150"] .result-meta { gap: 4px; padding: 10px 11px; font-size: 11px; }
.result-grid:not(.list-view)[data-card-size="150"] .result-meta .result-title { font-size: 12px; }
.result-grid:not(.list-view)[data-card-size="200"] .result-meta { gap: 5px; padding: 12px 13px; font-size: 12px; }
.result-grid:not(.list-view)[data-card-size="200"] .result-meta .result-title { font-size: 13px; }
.result-source-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.result-source-tag {
  padding: 2px 6px;
  border: 1px solid rgba(228,182,110,.34);
  border-radius: 5px;
  color: #eac47e;
  background: rgba(228,182,110,.08);
  font-size: 9px;
  line-height: 1.3;
}
.result-grid:not(.list-view)[data-card-size="150"] .result-source-tag { font-size: 10px; }
.result-grid:not(.list-view)[data-card-size="200"] .result-source-tag { padding: 3px 7px; font-size: 11px; }
.art-1 { background-position: 19.318% 82.08%; }
.art-2 { background-position: 36.364% 82.08%; }
.art-3 { background-position: 52.879% 82.08%; }
.art-4 { background-position: 69.394% 82.08%; }
.result-card > .result-actions { display: grid; border-top: 1px solid rgba(255,255,255,.055); background: #272d30; }
.result-action-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.result-action-row + .result-action-row { border-top: 1px solid rgba(255,255,255,.045); }
.result-card > .result-actions .result-action-row button { display: inline-flex; min-width: 0; min-height: 38px; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; border-right: 1px solid rgba(255,255,255,.045); color: #bdc4c6; background: transparent; font-size: 9px; line-height: 1.2; white-space: nowrap; transition: color .16s ease, background-color .16s ease, transform .1s ease, opacity .16s ease; }
.result-grid:not(.list-view)[data-card-size="150"] .result-card > .result-actions .result-action-row button { min-height: 42px; gap: 5px; padding: 7px 5px; font-size: 10px; }
.result-grid:not(.list-view)[data-card-size="200"] .result-card > .result-actions .result-action-row button { min-height: 48px; gap: 6px; padding: 8px 7px; font-size: 11px; }
.result-card > .result-actions .result-action-row button:last-child { border-right: 0; }
.result-card > .result-actions .result-action-row button:hover { color: var(--gold); background: rgba(255,255,255,.035); }
.result-card > .result-actions .result-action-row button:active { transform: translateY(1px) scale(.985); }
.result-card > .result-actions button.primary-action { color: #e8c486; }
.result-card > .result-actions button.bedding-action { color: #d7bd91; }
.result-card > .result-actions button.danger-action { color: #d79a9a; }
.result-card > div.result-actions button:disabled { cursor: not-allowed; color: #626b6f; background: transparent; opacity: .62; transform: none; }
.result-card > .result-actions button .ti { flex: 0 0 auto; font-size: 13px; }
.result-grid:not(.list-view)[data-card-size="150"] .result-card > .result-actions button .ti { font-size: 14px; }
.result-grid:not(.list-view)[data-card-size="200"] .result-card > .result-actions button .ti { font-size: 16px; }
.result-card > .result-actions button.is-loading .ti { animation: result-action-spin .8s linear infinite; }
.result-action-row-3 .regenerate-corner-action { grid-column: 3; }
.result-card button.liked { color: #f0b0b6; }
@keyframes result-loading { to { background-position: -220% 0; } }
@keyframes result-placeholder { 50% { border-color: rgba(228,182,110,.38); background: rgba(228,182,110,.035); } }
@keyframes result-action-spin { to { transform: rotate(360deg); } }
@keyframes result-particle-fallback-pulse {
  0%, 100% { filter: blur(0); opacity: .28; }
  50% { filter: blur(.4px); opacity: 1; box-shadow: 0 0 28px rgba(193,213,222,.54); }
}
@media (prefers-reduced-motion: reduce) { .result-card > .result-actions button.is-loading .ti { animation: none; } }
.scroll-sentinel { height: 1px; margin-top: 12px; }

.settings-panel { margin: 48px 24px 10px 0; padding: 0 20px 16px; border-radius: 15px; }
.settings-tabs { display: grid; grid-template-columns: 1fr 1fr; height: 52px; border-bottom: 1px solid var(--line); }
.settings-tabs button { position: relative; background: transparent; color: #9ba0a4; }
.settings-tabs button.active { color: var(--gold); font-weight: 700; }
.settings-tabs button.active::after { content: ""; position: absolute; bottom: 0; left: 10%; width: 80%; height: 2px; background: var(--gold); }
.setting-group { margin-top: 23px; }
.setting-group h3 { margin: 0 0 13px; font-size: 14px; }
.ratio-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ratio-grid button { display: grid; place-items: center; gap: 5px; height: 66px; border: 1px solid var(--line); border-radius: 9px; color: #b2b6b8; background: #10171b; font-size: 11px; }
.ratio-grid button.active, .option-grid button.active { border-color: rgba(228,182,110,.75); color: var(--gold); }
.ratio-grid i { display: block; width: 18px; height: 18px; border: 1px solid #bbb; border-radius: 2px; font-style: normal; }
.ratio-grid i.portrait { width: 15px; height: 19px; }
.ratio-grid i.landscape { width: 21px; height: 14px; }
.size-row { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; gap: 6px; }
.size-row label { display: flex; align-items: center; gap: 7px; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: #b2b6b9; font-size: 12px; }
.size-row input { width: 61px; border: 0; outline: 0; color: #fff; background: transparent; text-align: right; }
.ratio-link { background: transparent; color: var(--muted); font-size: 22px; }
.ratio-link.active { color: var(--gold); }
.option-grid { display: grid; gap: 9px; }
.quantity-grid { grid-template-columns: repeat(4, 1fr); }
.quantity-grid button[data-testid="quantity-4"] { display: grid; height: 39px; place-content: center; gap: 1px; color: #b8bdc0; }
.quantity-grid button[data-testid="quantity-4"] small { font-size: 7px; line-height: 1; }
.option-grid button { height: 39px; border: 1px solid var(--line); border-radius: 8px; background: #10171b; color: #b8bdc0; font-size: 12px; }
.pattern-setting { margin-inline: -6px; padding: 17px 8px 15px; border-top: 1px solid rgba(228,182,110,.13); border-bottom: 1px solid rgba(228,182,110,.13); background: linear-gradient(90deg, transparent, rgba(228,182,110,.025), transparent); }
.setting-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.setting-heading h3 { margin: 0; }
.setting-heading button { display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; color: #b4b9bc; background: transparent; font-size: 11px; white-space: nowrap; }
.setting-heading button:hover { color: var(--gold); }
.pattern-carousel-shell { position: relative; overflow: hidden; }
.pattern-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 9px; overflow-x: auto; padding: 1px 34px 3px 1px; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; }
.pattern-carousel::-webkit-scrollbar { display: none; }
.pattern-choice { display: grid; min-height: 92px; padding: 10px 8px 9px; place-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; color: #b8bdc0; background: #10171b; scroll-snap-align: start; }
.pattern-choice:hover { border-color: rgba(228,182,110,.4); background: #121b20; }
.pattern-choice.active { color: var(--gold); border-color: rgba(228,182,110,.82); box-shadow: inset 0 0 0 1px rgba(228,182,110,.12); }
.pattern-choice b { font-size: 12px; font-weight: 500; }
.pattern-thumb { display: block; width: 58px; height: 42px; border-radius: 6px; background-color: #0a1115; box-shadow: inset 0 0 0 1px rgba(255,255,255,.035); }
.thumb-scatter { background-image: radial-gradient(circle at 20% 28%, #d8b274 0 2px, transparent 3px), radial-gradient(circle at 62% 18%, #d8b274 0 2px, transparent 3px), radial-gradient(circle at 45% 62%, #d8b274 0 2.5px, transparent 3.5px), radial-gradient(circle at 78% 72%, #d8b274 0 2px, transparent 3px), radial-gradient(circle at 16% 78%, #d8b274 0 1.8px, transparent 3px); }
.thumb-row { background-image: radial-gradient(ellipse at center, #c7b18c 0 3px, transparent 4px); background-position: 4px 19px; background-size: 14px 10px; background-repeat: repeat-x; }
.thumb-full { background-image: radial-gradient(circle, #c4c9ad 0 2px, transparent 2.8px); background-size: 12px 12px; }
.thumb-border { border: 6px solid #0a1115; box-shadow: inset 0 0 0 2px #b9aa8a, inset 0 0 0 8px #0a1115; }
.thumb-diagonal { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(216,178,116,.75) 9px 11px, transparent 12px 18px); }
.thumb-center { background-image: radial-gradient(circle, #d8b274 0 4px, transparent 5px), radial-gradient(circle, transparent 0 10px, rgba(216,178,116,.6) 11px 12px, transparent 13px); }
.thumb-stripe { background-image: repeating-linear-gradient(90deg, rgba(190,199,174,.72) 0 4px, transparent 4px 11px); }
.thumb-half-drop { background-image: radial-gradient(circle, #d4b986 0 2px, transparent 3px); background-position: 0 0, 8px 8px; background-size: 16px 16px; }
.pattern-scroll-next { position: absolute; z-index: 2; top: 50%; right: 4px; display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; color: #d6dbdd; background: rgba(17,25,30,.94); box-shadow: 0 6px 18px rgba(0,0,0,.32); transform: translateY(-50%); }
.pattern-scroll-next:hover { color: var(--gold); border-color: rgba(228,182,110,.52); }
.pattern-scroll-hint { display: block; margin-top: 7px; color: #798287; font-size: 10px; text-align: center; }
.color-setting { margin-top: 18px; }
.color-palette-trigger { display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; align-items: center; gap: 11px; width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; color: #c9ced0; background: #10171b; text-align: left; }
.color-palette-trigger:hover, .color-palette-trigger[aria-expanded="true"] { border-color: rgba(228,182,110,.5); background: #121b20; }
.color-palette-trigger > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.color-palette-trigger b { overflow: hidden; color: #e4e7e8; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.color-palette-trigger small { color: #858e92; font-size: 10px; }
.color-palette-trigger > .ti { color: #828b8f; font-size: 15px; }
.color-palette-disc { position: relative; display: grid; width: 46px; height: 46px; place-items: center; border: 2px solid rgba(228,182,110,.62); border-radius: 50%; background: conic-gradient(#dedbd3, #eac3bc, #efc9ae, #d8cba8, #aebfc2, #c4c9ad, #dedbd3); box-shadow: inset 0 0 0 4px rgba(9,14,18,.2), 0 6px 16px rgba(0,0,0,.24); }
.color-palette-disc::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: rgba(11,17,21,.78); backdrop-filter: blur(2px); }
.color-palette-disc .ti { position: relative; z-index: 1; color: #f1d5a8; font-size: 18px; }
.draft-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 22px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 10px; background: #10171b; text-align: left; }
.draft-toggle span { display: grid; gap: 8px; }
.draft-toggle b { font-size: 13px; }
.draft-toggle small { color: #8d9498; font-size: 11px; }
.draft-toggle i { position: relative; width: 39px; height: 23px; border-radius: 15px; background: #3b4246; }
.draft-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #eee; transition: transform .2s; }
.draft-toggle.active i { background: var(--gold); }
.draft-toggle.active i::after { transform: translateX(16px); }
.generate-button { width: 100%; height: 52px; margin-top: 20px; border-radius: 8px; color: #251a0e; background: linear-gradient(100deg, #f3cc8b, #e5a84e); font-weight: 800; }
.generate-button.loading { color: transparent; position: relative; }
.generate-button.loading::after { content: attr(data-loading-label); position: absolute; inset: 0; display: grid; place-items: center; color: #251a0e; }
.api-cost-panel { margin-top: 10px; overflow: hidden; border: 1px solid rgba(228,182,110,.2); border-radius: 10px; background: rgba(8,13,16,.62); }
.api-cost-toggle { display: grid; grid-template-columns: minmax(0,1fr) auto 14px; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 9px 10px; color: #d7dcde; background: rgba(20,27,31,.78); text-align: left; }
.api-cost-toggle:hover { background: rgba(25,32,36,.9); }
.api-cost-toggle-title { display: flex; min-width: 0; align-items: center; gap: 7px; }
.api-cost-toggle-title b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.api-cost-test-badge { display: inline-grid; min-width: 30px; height: 17px; place-items: center; border: 1px solid rgba(228,182,110,.46); border-radius: 4px; color: #dcb678; font-size: 8px; letter-spacing: .09em; }
.api-cost-toggle-total { color: #efc47c; font-size: 11px; font-variant-numeric: tabular-nums; }
.api-cost-toggle .ti { color: #7f898e; font-size: 12px; }
.api-cost-body { max-height: 430px; overflow: auto; overflow-anchor: none; padding: 9px; border-top: 1px solid rgba(255,255,255,.055); scrollbar-gutter: stable; scrollbar-width: thin; }
.api-cost-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.api-cost-summary > span { display: grid; min-width: 0; gap: 3px; padding: 7px; border: 1px solid rgba(255,255,255,.055); border-radius: 7px; background: rgba(255,255,255,.025); }
.api-cost-summary small { overflow: hidden; color: #788287; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.api-cost-summary b { color: #dce0e2; font-size: 11px; font-variant-numeric: tabular-nums; }
.api-cost-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 1px 6px; color: #6f797e; font-size: 8px; }
.api-cost-toolbar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-cost-toolbar button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 3px; padding: 3px 5px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; color: #9da6aa; background: transparent; font-size: 8px; }
.api-cost-status { padding: 12px 6px; color: #7f898e; font-size: 9px; text-align: center; }
.api-cost-list { display: grid; gap: 6px; }
.api-cost-entry { overflow: hidden; border: 1px solid rgba(255,255,255,.065); border-radius: 8px; background: rgba(18,24,28,.7); }
.api-cost-entry > summary { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 8px; cursor: pointer; list-style: none; }
.api-cost-entry > summary::-webkit-details-marker { display: none; }
.api-cost-entry-status { width: 6px; height: 6px; border-radius: 50%; background: #788287; box-shadow: 0 0 0 3px rgba(120,130,135,.09); }
.api-cost-entry.is-success .api-cost-entry-status { background: #70b894; box-shadow: 0 0 0 3px rgba(112,184,148,.1); }
.api-cost-entry.is-failed .api-cost-entry-status { background: #d57777; box-shadow: 0 0 0 3px rgba(213,119,119,.1); }
.api-cost-entry.is-pending .api-cost-entry-status { background: #e0b76d; animation: api-cost-pulse 1.3s ease-in-out infinite; }
.api-cost-entry-title { display: grid; min-width: 0; gap: 2px; }
.api-cost-entry-title b { overflow: hidden; color: #dce0e2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.api-cost-entry-title small { overflow: hidden; color: #778186; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.api-cost-entry-amount { color: #efc47c; font-size: 10px; font-variant-numeric: tabular-nums; }
.api-cost-entry-detail { display: grid; gap: 6px; padding: 0 8px 9px 23px; border-top: 1px solid rgba(255,255,255,.045); }
.api-cost-entry-detail dl { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 4px 7px; margin: 8px 0 0; font-size: 8px; line-height: 1.45; }
.api-cost-entry-detail dt { color: #717b80; }
.api-cost-entry-detail dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #aeb6ba; }
.api-cost-entry-detail dd.is-verified { color: #78bd99; }
.api-cost-entry-detail dd.is-warning { color: #e2ba73; }
.api-cost-entry-detail dd.is-error { color: #db8585; }
.api-cost-params { margin: 0; padding: 6px; overflow: auto; border-radius: 6px; color: #8e999e; background: rgba(4,8,10,.45); font: 8px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.api-cost-note { margin: 8px 2px 0; color: #626d72; font-size: 8px; line-height: 1.45; }
@keyframes api-cost-pulse { 50% { opacity: .4; transform: scale(.82); } }

/* Professional workflow modules */
.reference-row { grid-template-columns: 212px minmax(0, 1fr); min-height: 0; overflow: visible; }
.upload-zone { padding: 15px; border-right: 1px solid var(--line); }
.reference-section-heading, .trace-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reference-section-heading h2, .trace-heading h2 { margin: 0; }
.reference-section-heading small { font-size: 11px; }
.reference-drop-zone { position: relative; display: grid; width: 180px; height: 180px; min-height: 0; margin-top: 12px; overflow: hidden; place-items: center; padding: 10px; border-style: solid; background: rgba(5,9,11,.42); }
.reference-empty { position: absolute; inset: 0; align-content: center; pointer-events: none; }
.reference-empty > i { color: #cda462; font-size: 26px; }
.reference-empty b { font-size: 12px; font-weight: 600; }
.reference-empty small { font-size: 10px; letter-spacing: .04em; }
.upload-preview { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 74px); align-content: start; gap: 6px; width: 100%; height: 100%; }
.upload-preview-item, .upload-preview img { width: 74px; height: 74px; }
.reference-add { position: absolute; z-index: 3; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 9px; background: rgba(10,15,18,.88); backdrop-filter: blur(8px); }
.reference-add .ti { font-size: 18px; }
.trace-zone { display: grid; min-width: 0; padding: 24px; place-items: center; }
.trace-start-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; width: min(280px,100%); min-height: 58px; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 12px; color: #c4cacc; background: #10171b; font-size: 12px; white-space: nowrap; }
.trace-start-button:hover:not(:disabled) { color: #e0c28d; border-color: rgba(228,182,110,.45); background: rgba(228,182,110,.055); }
.trace-start-button:disabled { cursor: wait; opacity: .7; }
.trace-start-button.active { color: #a8d6b3; border-color: rgba(125,192,144,.34); background: rgba(80,150,100,.06); }
.trace-start-button.is-running { color: #e8c487; border-color: rgba(228,182,110,.62); background: rgba(228,182,110,.09); box-shadow: inset 0 0 0 1px rgba(228,182,110,.05); }
.trace-start-button.is-running:disabled { opacity: 1; }
.trace-x-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid currentColor; border-radius: 8px; font: 700 16px/1 "Segoe UI",sans-serif; }
.trace-start-button.is-running .trace-x-mark { transform-origin: center; will-change: transform,opacity,box-shadow; animation: trace-x-breathe 1.1s ease-in-out infinite; }
@keyframes trace-x-breathe {
  0%,100% { opacity: .5; transform: scale(.88); box-shadow: 0 0 0 rgba(228,182,110,0); }
  50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 24px rgba(228,182,110,.42); }
}
.reference-suggestions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 11px 15px; border-top: 1px solid var(--line); }
.reference-suggestions h2 { flex: 0 0 auto; margin: 0; font-size: 12px; }
.reference-suggestions .tag-list { gap: 7px; }
.reference-suggestions .tag-list button { padding: 6px 9px; font-size: 10px; }
.x-loading-slot { margin-top: 12px; }
.x-loading { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 12px; border: 1px solid rgba(228,182,110,.18); border-radius: 10px; background: linear-gradient(110deg, rgba(228,182,110,.055), rgba(8,13,16,.72)); }
.x-loading-mark { position: relative; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(228,182,110,.35); border-radius: 10px; color: #f0c77f; background: #0a0f12; font: 700 21px/1 "Segoe UI", sans-serif; }
.x-loading.is-running .x-loading-mark { animation: x-mark-pulse 1.15s ease-in-out infinite; }
.x-loading.is-complete .x-loading-mark { color: #9bd0a8; border-color: rgba(125,192,144,.38); box-shadow: 0 0 16px rgba(90,170,112,.12); animation: none; }
.x-loading-copy { min-width: 0; }
.x-loading-copy > b { display: block; margin-bottom: 7px; color: #e2e5e6; font-size: 12px; }
.x-loading-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.x-loading-steps span { overflow: hidden; color: #737e83; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.x-loading-steps span.is-pending { color: #657075; }
.x-loading-steps span.active, .x-loading-steps span.is-active { color: #e4b66e; }
.x-loading-steps span.done, .x-loading-steps span.is-done { color: #8fc79f; }
.x-loading-title { display: block; margin-bottom: 7px; color: #e2e5e6; font-size: 12px; }
@keyframes x-mark-pulse { 0%,100% { opacity: .72; box-shadow: 0 0 0 rgba(228,182,110,0); } 50% { opacity: 1; box-shadow: 0 0 22px rgba(228,182,110,.28); } }
.prompt-loading-slot { max-width: 640px; }
.generation-mode-setting { padding-bottom: 14px; }
.generation-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.generation-mode-switch button { display: grid; min-width: 0; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: #aeb5b8; background: #0d1519; text-align: left; }
.generation-mode-switch button.active { color: #edc484; border-color: rgba(228,182,110,.56); background: rgba(228,182,110,.075); }
.generation-mode-switch b { font-size: 11px; }
.generation-mode-switch small { color: #858e92; font-size: 9px; line-height: 1.35; white-space: normal; }
.generation-mode-hint { margin: 8px 0 0; color: #778187; font-size: 9px; }
.setting-heading > div { display: flex; align-items: center; gap: 10px; }
.pattern-setting { overflow: visible; }
.pattern-panel { display: block; }
.pattern-group + .pattern-group { margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.055); }
.pattern-group-label { display: block; margin-bottom: 8px; color: #717b80; font-size: 9px; letter-spacing: .08em; }
.pattern-group-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.pattern-panel:not(.is-expanded) .pattern-group-label { display: none; }
.pattern-choice { position: relative; min-height: 82px; padding: 8px 5px; }
.pattern-choice.active::after { content: "✓"; position: absolute; top: 6px; right: 7px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; color: #21170d; background: #e4b66e; font-size: 10px; font-weight: 800; }
.pattern-thumb { width: 52px; height: 36px; }
.exploration-badge { position: absolute; z-index: 3; top: 9px; left: 9px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; color: #e8e9e7; background: rgba(6,10,12,.72); backdrop-filter: blur(8px); font-size: 9px; }
.exploration-select { position: absolute; z-index: 4; right: 9px; bottom: 9px; padding: 7px 10px; border: 1px solid rgba(228,182,110,.55); border-radius: 8px; color: #f0cf99; background: rgba(8,12,14,.82); backdrop-filter: blur(8px); font-size: 10px; }
.exploration-select:hover, .result-card.is-exploration-selected .exploration-select { color: #21170d; background: #e4b66e; }
.result-card.is-exploration-selected { box-shadow: 0 0 0 1px #e4b66e, 0 12px 32px rgba(0,0,0,.24); }
.exploration-deepening { margin-top: 14px; padding: 16px; }
.exploration-deepening-head { display: flex; align-items: center; justify-content: space-between; }
.exploration-deepening-head span { display: grid; gap: 3px; }
.exploration-deepening-head small { color: #7d878b; font-size: 9px; }
.exploration-deepening-head b { color: #ecc787; }
.exploration-deepening-head > button { width: 30px; height: 30px; border-radius: 8px; background: transparent; }
.exploration-deepening > p { margin: 10px 0 13px; color: #899398; font-size: 11px; }
.exploration-deepening-actions, .exploration-prompt-tools > div { display: flex; flex-wrap: wrap; gap: 8px; }
.exploration-deepening-actions button, .exploration-prompt-tools button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: #c2c8ca; background: #0c1418; font-size: 10px; }
.exploration-deepening-actions button.primary { color: #251a0e; border-color: #e4b66e; background: #e4b66e; font-weight: 700; }
.exploration-prompt-tools { margin-top: 12px; }
.exploration-prompt-tools textarea { width: 100%; min-height: 92px; margin-bottom: 8px; padding: 11px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: #e5e7e7; background: #081014; line-height: 1.6; }
.modal.task-center-modal { width: min(1080px, 94vw); }
.task-center-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.task-center-toolbar button { padding: 7px 11px; border: 1px solid transparent; border-radius: 8px; color: #899397; background: transparent; font-size: 11px; }
.task-center-toolbar button.active { color: #e8c487; border-color: rgba(228,182,110,.28); background: rgba(228,182,110,.07); }
.task-center-card { position: relative; grid-template-columns: 120px minmax(0,1fr) auto; align-items: stretch; gap: 15px; min-height: 146px; padding: 12px; border-radius: 13px; background: #0b1216; }
.task-center-thumb { position: relative; display: grid; width: 120px; height: 120px; overflow: hidden; place-items: center; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; color: #59646a; background: #070c0f; cursor: zoom-in; }
.task-center-thumb img { width: 100%; height: 100%; object-fit: cover; }
.task-center-thumb .ti { font-size: 26px; }
.task-center-content { display: grid; align-content: start; min-width: 0; }
.task-center-card h3 { margin-bottom: 8px; font-size: 15px; }
.task-center-card p { display: -webkit-box; line-height: 1.55; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-center-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 12px; margin-top: auto; padding-top: 11px; }
.task-center-meta span { overflow: hidden; color: #768187; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.task-status-line { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.task-status-line strong { color: #9ca6aa; font-size: 10px; }
.task-status-line strong[data-tone="running"] { color: #8fc7e5; }
.task-status-line strong[data-tone="complete"] { color: #8dd2a1; }
.task-status-line strong[data-tone="failed"] { color: #efaaaa; }
.task-center-actions { position: relative; align-content: flex-start; max-width: none; }
.task-open-primary { min-width: 72px; color: #21170d !important; border-color: #e4b66e !important; background: #e4b66e !important; font-weight: 700; }
.task-more-trigger { width: 34px; font-size: 16px !important; letter-spacing: .08em; }
.task-more-menu { position: absolute; z-index: 8; top: 38px; right: 0; display: grid; width: 152px; padding: 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(10,16,19,.98); box-shadow: 0 14px 36px rgba(0,0,0,.38); }
.task-more-menu button { justify-content: flex-start; border-color: transparent; background: transparent; text-align: left; }
.task-retry-button { position: absolute; right: 12px; bottom: 12px; color: #efb1a8 !important; }
.dash-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-top: 1px solid var(--line); color: #8c9499; font-size: 12px; }

/* Left navigation feature pages */
.workspace.feature-mode { grid-template-columns: 1fr; }
.feature-page { grid-column: 1 / -1; min-width: 0; padding: 34px; }
.feature-content { max-width: 1280px; margin: 0 auto; }
.feature-hero, .feature-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.feature-hero { min-height: 154px; padding: 32px 36px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle at 80% 20%, rgba(228,182,110,.15), transparent 35%), linear-gradient(120deg, #11191e, #0d1418); }
.feature-hero h1, .feature-heading h1 { margin: 0 0 9px; font-size: 28px; }
.feature-hero p:last-child, .feature-heading p:last-child { margin: 0; color: var(--muted); }
.feature-heading > button { padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 9px; background: #10181c; }
.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.overview-grid article, .overview-grid .overview-action { display: grid; gap: 8px; padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: #0f171b; }
.overview-grid span, .overview-grid small { color: var(--muted); }
.overview-grid b { font-size: 29px; }
.overview-grid small { font-size: 11px; }
.overview-grid .overview-action { width: 100%; color: inherit; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.overview-grid .overview-action:hover, .overview-grid .overview-action:focus-visible { border-color: rgba(228,182,110,.64); background: rgba(228,182,110,.07); }
.overview-grid .overview-action:active { transform: translateY(1px); }
.overview-grid .overview-stat { cursor: pointer; }
.feature-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-card { padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(17,25,30,.96), rgba(11,18,22,.96)); }
.feature-card h2 { margin: 0 0 20px; font-size: 17px; }
.home-favorites-entry { width: 100%; min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; color: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.home-favorites-entry:hover, .home-favorites-entry:focus-visible { border-color: rgba(228,182,110,.64); background: rgba(228,182,110,.07); }
.home-favorites-entry:active { transform: translateY(1px); }
.home-favorites-entry h2 { margin: 0; }
.home-favorites-entry p { margin: 0; color: var(--muted); }
.home-favorites-arrow { margin-top: auto; align-self: flex-end; color: var(--gold); font-size: 24px; line-height: 1; }
.quick-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.quick-action-grid button { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #0b1317; text-align: left; }
.quick-action-grid button:hover { border-color: var(--gold); }
.quick-action-grid button > b { color: var(--gold); font-size: 22px; }
.quick-action-grid button span { display: grid; gap: 5px; }
.quick-action-grid small { color: var(--muted); font-size: 10px; }
.my-skills-feature { max-width: 1280px; }
.my-skills-heading > button { min-height: 38px; padding: 0 15px; border: 1px solid rgba(228,182,110,.46); border-radius: 9px; color: #edc484; background: rgba(228,182,110,.07); font-weight: 650; }
.my-skills-primary-tabs, .my-skills-asset-tabs { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.my-skills-primary-tabs { margin: 0 0 14px; padding-bottom: 2px; }
.my-skills-primary-tabs button, .my-skills-asset-tabs button { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; color: #9ba6aa; background: transparent; font-size: 12px; font-weight: 650; white-space: nowrap; }
.my-skills-primary-tabs button[aria-selected="true"], .my-skills-asset-tabs button[aria-selected="true"] { border-color: rgba(228,182,110,.52); color: #efc77f; background: rgba(228,182,110,.08); }
.my-skills-primary-tabs button:not([aria-selected="true"]):hover, .my-skills-asset-tabs button:not([aria-selected="true"]):hover { color: #dbe1e3; background: rgba(255,255,255,.035); }
.my-skills-primary-tabs button span { color: #849095; font-size: 10px; font-weight: 500; }
.my-skills-workspace { padding: 22px; }
.my-skills-workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid rgba(190,207,214,.13); }
.my-skills-workspace-heading h2 { margin: 0 0 5px; font-size: 17px; }
.my-skills-workspace-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.my-skills-workspace-heading > i { color: var(--gold); font-size: 25px; }
.my-skills-asset-tabs { margin-top: 15px; padding-bottom: 12px; border-bottom: 1px solid rgba(190,207,214,.11); }
.my-skills-asset-tabs button { min-height: 32px; padding: 0 11px; border-radius: 7px; font-size: 11px; }
.my-skills-asset-panel { min-width: 0; }
.my-skills-xfont-grid, .my-skills-personal-font-grid { display: grid; gap: 9px; margin-top: 11px; }
.my-skills-xfont-card, .my-skills-personal-font-card { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 78px; padding: 9px; border: 1px solid rgba(190,207,214,.14); border-radius: 10px; background: rgba(8,15,19,.46); }
.my-skills-xfont-card:hover, .my-skills-personal-font-card:hover { border-color: rgba(228,182,110,.3); }
.my-skills-xfont-preview { display: grid; width: 62px; height: 58px; place-items: center; overflow: hidden; border: 1px solid rgba(228,182,110,.17); border-radius: 8px; color: #8e999d; background: rgba(228,182,110,.04); font-size: 10px; text-align: center; }
.my-skills-xfont-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.my-skills-xfont-info, .my-skills-personal-font-info { display: grid; min-width: 0; gap: 4px; }
.my-skills-xfont-info h3, .my-skills-personal-font-info h3 { overflow: hidden; margin: 0; color: #e5e9ea; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.my-skills-xfont-info small, .my-skills-personal-font-info small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.my-skills-asset-state { color: #d2d9db !important; }
.my-skills-asset-state.completed { color: #80c9a6 !important; }
.my-skills-asset-state.in-progress { color: #e9be75 !important; }
.my-skills-card-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 360px; }
.my-skills-card-actions button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 7px; color: #dfe4e5; background: #131e23; font-size: 11px; white-space: nowrap; }
.my-skills-card-actions button.primary { border-color: rgba(228,182,110,.64); color: #edc484; }
.my-skills-personal-font-preview { display: grid; width: 62px; height: 58px; place-items: center; overflow: hidden; border: 1px solid rgba(228,182,110,.17); border-radius: 8px; color: #e9be75; background: rgba(228,182,110,.04); font-size: 24px; white-space: nowrap; }
.my-skills-subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; }
.my-skills-subheading h3 { margin: 0; font-size: 14px; }
.my-skills-subheading span { color: var(--muted); font-size: 11px; }
.my-skills-coming-soon { display: grid; min-height: 238px; place-items: center; align-content: center; gap: 8px; text-align: center; }
.my-skills-coming-soon > i { color: #8f989b; font-size: 34px; }
.my-skills-coming-soon h2 { margin: 4px 0 0; font-size: 17px; }
.my-skills-coming-soon p { margin: 0; color: var(--muted); font-size: 12px; }
.my-skills-coming-soon strong { margin-top: 6px; color: #edc484; font-size: 13px; }
.work-a { background: radial-gradient(circle at 25% 30%, #f6d69c 0 4%, transparent 5%), radial-gradient(circle at 70% 60%, #e6b8aa 0 5%, transparent 6%), #eee5cf; }
.work-b { background: radial-gradient(circle at 30% 60%, #f2d4c8 0 4%, transparent 5%), radial-gradient(circle at 68% 31%, #f1eee2 0 5%, transparent 6%), #9fb7bc; }
.work-c { background: radial-gradient(circle at 24% 35%, #dfb7a2 0 4%, transparent 5%), radial-gradient(circle at 70% 65%, #e8ceb0 0 5%, transparent 6%), #d9d1b9; }
.training-layout { grid-template-columns: 1.15fr .85fr; }
.training-form label:not(.feature-upload) { display: grid; gap: 9px; color: #c9cdcf; }
.training-form input, .works-toolbar input { height: 45px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; color: #fff; background: #0a1216; }
.inline-actions { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 14px; color: var(--muted); font-size: 12px; }
.inline-actions button { background: transparent; color: var(--gold); }
.feature-upload { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 114px; border: 1px dashed rgba(255,255,255,.22); border-radius: 11px; background: #0b1317; cursor: pointer; }
.feature-upload:hover { border-color: var(--gold); }
.feature-upload.drag-active { border-color: var(--gold); background: rgba(228,182,110,.09); box-shadow: inset 0 0 0 1px rgba(228,182,110,.18), 0 0 26px rgba(228,182,110,.08); }
.feature-upload > b { color: var(--gold); font-size: 27px; font-weight: 300; }
.feature-upload span { display: grid; gap: 7px; }
.feature-upload small { color: var(--muted); }
.style-upload-count { width: max-content; padding: 4px 8px; border: 1px solid rgba(228,182,110,.2); border-radius: 999px; color: #b6bec1; background: rgba(5,10,13,.48); font-size: 10px; font-style: normal; }
.style-upload-drop-zone.has-files .style-upload-count { color: #ecc57f; border-color: rgba(228,182,110,.38); }
.feature-upload.tall { min-height: 180px; }
.file-preview-row { display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; margin-top: 10px; }
.file-preview-row img { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; object-fit: cover; }
.style-preview-item { position: relative; display: block; width: 44px; height: 44px; }
.style-preview-item img { display: block; }
.style-preview-remove { position: absolute; top: -5px; right: -5px; display: grid; width: 18px; height: 18px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #f3d1d1; background: rgba(25,15,17,.94); box-shadow: 0 3px 9px rgba(0,0,0,.34); font-size: 14px; line-height: 1; }
.style-preview-remove:hover { color: #fff; border-color: rgba(232,117,117,.62); background: #a14e55; }
.file-preview-overflow { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid rgba(228,182,110,.24); border-radius: 7px; color: #e9c27d; background: rgba(228,182,110,.06); font-size: 10px; }
.full-button { width: 100%; margin-top: 18px; }
.training-status { display: grid; align-content: center; justify-items: center; text-align: center; }
.status-orb { display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid rgba(228,182,110,.55); border-radius: 50%; color: var(--gold); background: radial-gradient(circle, rgba(228,182,110,.17), transparent 64%); font-size: 24px; }
.training-status h3 { margin: 21px 0 7px; }
.training-status p { margin: 0; color: var(--muted); }
.style-training-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; width: 84%; margin-top: 16px; }
.style-training-summary span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; color: #7f898d; background: rgba(7,12,15,.55); font-size: 10px; }
.style-training-summary b { color: #e7c181; font-weight: 600; }
.progress-track { width: 84%; height: 7px; margin-top: 24px; overflow: hidden; border-radius: 6px; background: #273036; }
.progress-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #dca455, #f6d497); transition: width .9s linear; }
.training-pool { margin-top: 18px; }
.training-pool-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.training-pool-header h2 { margin-bottom: 7px; }
.training-pool-header p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.training-pool-header > div:last-child { display: flex; gap: 8px; }
.training-pool-header button { padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: #bfc5c7; background: #0b1317; font-size: 11px; }
.training-pool-header button:hover, .training-pool-header button:focus-visible { color: #e8c484; border-color: rgba(228,182,110,.48); outline: 0; }
.training-pool-grid { display: grid; grid-template-columns: repeat(auto-fill,176px); gap: 12px; min-height: 176px; }
.training-pool-item { display: grid; grid-template-rows: minmax(0,1fr) 35px; gap: 8px; width: 176px; aspect-ratio: 1; min-height: 0; color: #dfe3e4; background: transparent; text-align: left; }
.training-pool-view { display: flex; flex-direction: column; min-height: 0; padding: 14px 15px 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; color: inherit; background: #0b1317; text-align: left; transition: border-color .18s, background .18s, transform .18s; }
.training-pool-view:hover { border-color: rgba(228,182,110,.42); background: #0e181d; transform: translateY(-1px); }
.training-pool-view:active, .training-pool-edit:active, .training-pool-more:active { transform: translateY(1px); }
.training-pool-view:focus-visible, .training-pool-edit:focus-visible, .training-pool-more:focus-visible { outline: 2px solid rgba(228,182,110,.7); outline-offset: 2px; }
.training-pool-copy { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
.training-pool-copy strong { overflow: hidden; color: #eef0f0; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.training-pool-copy small { display: -webkit-box; overflow: hidden; color: #79848a; font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.training-pool-tags { display: flex; flex-wrap: wrap; gap: 4px; max-height: 24px; overflow: hidden; }
.training-pool-tags span { display: inline-flex; min-height: 18px; align-items: center; padding: 0 6px; border: 1px solid rgba(190,207,214,.14); border-radius: 999px; color: #9da9ad; background: rgba(190,207,214,.04); font-size: 8px; }
.training-pool-code { margin-top: 10px; color: #e9c27d; font-size: 11px; font-weight: 600; }
.training-pool-view-hint { margin-top: 3px; color: #788287; font-size: 9px; }
.training-pool-actions { display: flex; min-width: 0; gap: 6px; }
.training-pool-edit { flex: 1; min-width: 0; min-height: 35px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; color: #9ba4a8; background: #0b1317; font-size: 9px; text-align: left; transition: color .18s, border-color .18s, background .18s, transform .18s; }
.training-pool-edit:hover { color: #d8dde0; border-color: rgba(255,255,255,.18); background: #101a1f; }
.training-pool-edit.is-active, .training-pool-edit[aria-pressed="true"] { color: #e9c27d; border-color: rgba(228,182,110,.65); background: rgba(228,182,110,.075); }
.training-pool-more-wrap { position: relative; flex: 0 0 35px; }
.training-pool-more { width: 35px; min-height: 35px; padding: 0; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; color: #9ba4a8; background: #0b1317; font-size: 18px; line-height: 1; transition: color .18s, border-color .18s, background .18s, transform .18s; }
.training-pool-more:hover { color: #e8c484; border-color: rgba(228,182,110,.48); background: #101a1f; }
.style-pool-more-menu { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; display: grid; gap: 2px; min-width: 118px; padding: 5px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #0b1317; box-shadow: 0 12px 26px rgba(0,0,0,.34); }
.style-pool-more-menu[hidden] { display: none; }
.style-pool-more-menu button { width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; color: #d8dde0; background: transparent; font-size: 11px; text-align: left; }
.style-pool-more-menu button:hover, .style-pool-more-menu button:focus-visible { color: #f0d394; background: rgba(228,182,110,.09); outline: 0; }
.style-pool-more-menu button:last-child { color: #e1a5a5; }
.style-pool-more-menu button:last-child:hover, .style-pool-more-menu button:last-child:focus-visible { color: #ffd0d0; background: rgba(224,112,112,.1); }
.training-pool-state { display: grid; min-height: 92px; place-items: center; grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 10px; color: #7f898e; background: rgba(7,12,15,.3); font-size: 12px; text-align: center; }
.training-pool-state.is-error { color: #dfa2a2; border-color: rgba(224,112,112,.25); }
.works-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.works-tabs { display: flex; gap: 8px; }
.works-tabs button { min-width: 82px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: #0f171b; }
.works-tabs button.active { color: var(--gold); border-color: var(--gold); }
.works-search { display: flex; align-items: center; width: 320px; height: 43px; padding-left: 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: #727c81; background: #0a1216; }
.works-search:focus-within { color: var(--gold); border-color: rgba(228,182,110,.65); }
.works-search input { width: 100%; height: 100%; padding: 0 12px 0 9px; border: 0; outline: 0; color: #eef0f0; background: transparent; }
.works-batch-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 10px 12px; border: 1px solid rgba(228,182,110,.24); border-radius: 10px; background: rgba(228,182,110,.055); }
.works-batch-bar > span { color: #aeb5b8; font-size: 12px; }
.works-batch-bar > span b { color: var(--gold); }
.works-batch-bar > div { display: flex; gap: 7px; }
.works-batch-bar button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: #c7ccce; background: #0c1418; font-size: 11px; }
.works-batch-bar .danger-action { color: #e99999; border-color: rgba(230,109,109,.28); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.works-grid article { position: relative; overflow: hidden; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #10181c; transition: border-color .2s, transform .2s, background .2s; content-visibility: auto; contain-intrinsic-size: 390px; }
.works-grid article:hover { transform: translateY(-2px); border-color: rgba(228,182,110,.27); background: #121c21; }
.works-grid article.is-selected { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(228,182,110,.22); }
.work-image-button { position: relative; display: block; width: 100%; height: 238px; overflow: hidden; padding: 0; border-radius: 9px; background: #0a1013; }
.work-image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.works-grid article:hover .work-image-button img { transform: scale(1.025); }
.work-image-button::after { position: absolute; inset: 0; background: linear-gradient(180deg,transparent 62%,rgba(2,5,7,.5)); opacity: 0; transition: opacity .2s; content: ""; }
.works-grid article:hover .work-image-button::after { opacity: 1; }
.work-select { position: absolute; z-index: 3; top: 19px; left: 19px; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.48); border-radius: 6px; color: transparent; background: rgba(7,11,13,.72); backdrop-filter: blur(9px); }
.work-select.is-selected { color: #171009; border-color: var(--gold); background: var(--gold); }
.work-card-copy { padding: 12px 3px 3px; }
.work-card-copy h3 { margin: 0 0 5px; overflow: hidden; color: #edf0f0; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.work-bedding-badge { display: inline-block; margin-left: 7px; padding: 2px 6px; border: 1px solid rgba(228,182,110,.32); border-radius: 5px; color: #e8c58c; background: rgba(228,182,110,.07); vertical-align: 1px; font-size: 8px; font-weight: 500; }
.work-card-date { margin: 0 0 8px; color: #758086; font-size: 10px; }
.work-card-prompt { display: -webkit-box; min-height: 34px; margin: 0; overflow: hidden; color: #9aa3a7; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.work-card-actions { display: grid; grid-template-columns: 1fr 1fr 1fr 42px; gap: 7px; margin-top: 11px; }
.work-card-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 35px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: #aeb6b9; background: #0b1317; font-size: 11px; white-space: nowrap; }
.work-card-actions button:hover { color: #f0f2f2; border-color: rgba(228,182,110,.38); }
.work-card-actions button.active { color: #ef9da8; border-color: rgba(239,157,168,.5); }
.works-empty { display: grid; justify-items: center; gap: 7px; padding: 72px 20px; border: 1px dashed var(--line); border-radius: 12px; color: #778187; }
.works-empty i { font-size: 30px; }
.works-empty b { color: #b7bdc0; }
.works-empty span { font-size: 11px; }
.works-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; margin: 28px 0 8px; color: #8e989c; }
.works-pagination-pages { display: flex; align-items: center; justify-content: center; gap: 6px; }
.works-pagination button { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #9ca6aa; background: #0c1418; font-size: 12px; }
.works-pagination button:hover:not(:disabled) { color: #edf0f0; border-color: rgba(228,182,110,.45); }
.works-pagination button.active { color: #1b1309; border-color: var(--gold); background: var(--gold); font-weight: 700; }
.works-pagination button:disabled { opacity: .42; cursor: not-allowed; }
.works-pagination-ellipsis { min-width: 18px; color: #6f7a7f; text-align: center; }

.work-more-menu { position: fixed; z-index: 88; width: 210px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(13,20,24,.98); box-shadow: 0 18px 60px rgba(0,0,0,.48); backdrop-filter: blur(18px); }
.work-more-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: 7px; color: #b8bfc2; background: transparent; text-align: left; font-size: 11px; }
.work-more-menu button:hover { color: #fff; background: rgba(255,255,255,.055); }
.work-more-menu button.danger-action { color: #e89898; }
.work-more-menu hr { height: 1px; margin: 5px 4px; border: 0; background: var(--line); }

.work-detail-layer { position: fixed; z-index: 87; inset: 0; }
body.work-detail-open { overflow: hidden; }
.work-detail-scrim { position: absolute; inset: 0; width: 100%; background: rgba(2,6,8,.72); backdrop-filter: blur(6px); }
.work-detail-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(1240px,94vw); overflow: hidden; border-left: 1px solid rgba(255,255,255,.13); background: #0c1317; box-shadow: -28px 0 80px rgba(0,0,0,.46); animation: work-drawer-in .28s cubic-bezier(.16,1,.3,1); }
@keyframes work-drawer-in { from { transform: translateX(34px); opacity: .65; } to { transform: translateX(0); opacity: 1; } }
.work-detail-drawer > header { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 24px; border-bottom: 1px solid var(--line); background: #0d1519; }
.work-detail-drawer > header p { margin: 0 0 3px; color: #798389; font-size: 10px; letter-spacing: 1.5px; }
.work-detail-drawer > header h2 { margin: 0; color: #eef0f0; font-size: 16px; }
.work-detail-drawer > header > button { width: 36px; height: 36px; border-radius: 8px; color: #9da5a9; background: #101a1f; }
.work-detail-body { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(390px,.75fr); height: calc(100% - 72px); }
.work-detail-media { display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 12px; min-width: 0; padding: 22px; border-right: 1px solid var(--line); background: #080e11; }
.work-detail-viewer { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; border-radius: 12px; background: radial-gradient(circle at 50% 50%,#192228,#090e11 70%); cursor: grab; touch-action: none; }
.work-detail-viewer.is-panning { cursor: grabbing; }
.work-detail-viewer img { display: block; max-width: 92%; max-height: 92%; object-fit: contain; transform-origin: center; user-select: none; will-change: transform; }
.work-detail-viewer-toolbar { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(9,14,17,.82); backdrop-filter: blur(12px); }
.work-detail-viewer-toolbar button { min-width: 32px; height: 30px; padding: 0 8px; border-radius: 6px; color: #c2c8ca; background: transparent; }
.work-detail-viewer-toolbar button:hover { background: rgba(255,255,255,.07); }
.work-detail-media-actions { display: flex; justify-content: flex-end; gap: 8px; }
.work-detail-media-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: #c5cbcd; background: #10191e; }
.work-detail-info { min-width: 0; overflow-y: auto; padding: 22px 24px; scrollbar-width: thin; }
.work-info-section { padding: 0 0 20px; }
.work-info-section + .work-info-section { padding-top: 20px; border-top: 1px solid var(--line); }
.work-info-section h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 11px; color: #e8ebec; font-size: 12px; }
.work-info-section h3 > span { display: flex; gap: 6px; }
.work-info-section h3 button { padding: 5px 7px; border-radius: 6px; color: #aab2b5; background: #111a1f; font-size: 10px; }
.work-metadata-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.work-metadata-grid div { min-width: 0; padding: 9px 10px; border-radius: 8px; background: #10191e; }
.work-metadata-grid small { display: block; margin-bottom: 3px; color: #69747a; font-size: 9px; }
.work-metadata-grid b { display: block; overflow: hidden; color: #bdc4c6; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.work-reference-field { margin-top: 9px; padding: 10px; border-radius: 8px; background: #10191e; }
.work-reference-field > small { display: block; margin-bottom: 8px; color: #69747a; font-size: 9px; }
.work-reference-empty { display: block; color: #bdc4c6; font-size: 11px; font-weight: 500; }
.work-reference-list { display: flex; flex-wrap: wrap; gap: 8px; }
.work-reference-preview { position: relative; width: 78px; height: 68px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: #080e11; }
.work-reference-preview:hover, .work-reference-preview:focus-visible { border-color: rgba(228,182,110,.58); outline: 0; }
.work-reference-preview img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.work-reference-preview:hover img { transform: scale(1.04); }
.work-reference-preview span { position: absolute; right: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 5px; border-radius: 5px; color: #f0d19b; background: rgba(6,10,12,.84); font-size: 8px; backdrop-filter: blur(6px); }
.work-prompt-full { max-height: 210px; margin: 0; overflow-y: auto; color: #b3bbbe; font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.work-prompt-editor { width: 100%; min-height: 150px; padding: 11px; resize: vertical; border: 1px solid rgba(228,182,110,.38); border-radius: 8px; outline: 0; color: #eceeee; background: #091115; line-height: 1.7; }
.work-inline-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 9px; }
.work-inline-actions button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: #bfc5c7; background: #10191e; }
.work-prompt-comparison { display: grid; gap: 9px; margin-top: 10px; padding: 11px; border: 1px solid rgba(228,182,110,.22); border-radius: 9px; background: rgba(228,182,110,.04); }
.work-prompt-comparison small { color: #7b858a; }
.work-prompt-comparison p { max-height: 120px; margin: 0; overflow-y: auto; color: #bac1c3; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.work-prompt-comparison > i { color: var(--gold); text-align: center; }
.work-version-list { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; }
.work-version-list button { min-width: 47px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: #929ca0; background: #10191e; }
.work-version-list button.active { color: var(--gold); border-color: rgba(228,182,110,.52); }

.bedding-plan-layer { position: fixed; z-index: 96; inset: 0; }
body.bedding-plan-open { overflow: hidden; }
.bedding-plan-scrim { position: absolute; inset: 0; width: 100%; background: rgba(2,6,8,.76); backdrop-filter: blur(7px); }
.bedding-plan-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px,96vw); overflow: hidden; border-left: 1px solid rgba(255,255,255,.13); background: #0c1317; box-shadow: -30px 0 84px rgba(0,0,0,.5); animation: work-drawer-in .28s cubic-bezier(.16,1,.3,1); }
.bedding-plan-drawer > header { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 24px; border-bottom: 1px solid var(--line); background: #0d1519; }
.bedding-plan-drawer > header p { margin: 0 0 3px; color: #7f898e; font-size: 10px; letter-spacing: 1.4px; }
.bedding-plan-drawer > header h2 { margin: 0; color: #eef0f0; font-size: 17px; }
.bedding-plan-drawer > header > button { width: 36px; height: 36px; border-radius: 8px; color: #a6adb0; background: #101a1f; }
.bedding-plan-body { height: calc(100% - 72px); overflow-y: auto; padding: 20px 22px 108px; scrollbar-width: thin; }
.bedding-source-card { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #10191e; }
.bedding-source-card img { display: block; width: 112px; height: 86px; border-radius: 8px; background: #080d10; object-fit: cover; }
.bedding-source-card small { display: block; margin-bottom: 5px; color: #778188; }
.bedding-source-card b { display: block; overflow: hidden; color: #e1e5e6; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.bedding-source-card p { display: -webkit-box; overflow: hidden; margin: 6px 0 0; color: #9ba4a8; font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bedding-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.bedding-section:first-of-type { border-top: 0; }
.bedding-section > h3 { margin: 0 0 11px; color: #e4e7e8; font-size: 13px; }
.bedding-section > p { margin: -4px 0 12px; color: #7f898e; font-size: 10px; line-height: 1.6; }
.bedding-template-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.bedding-template-card { display: grid; grid-template-columns: 58px 1fr; gap: 10px; min-height: 72px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; color: #aeb6b9; background: #0f181d; text-align: left; }
.bedding-template-card.active { color: #efd09e; border-color: rgba(228,182,110,.52); background: rgba(228,182,110,.075); }
.bedding-template-thumb { display: grid; grid-template-columns: 1.3fr .8fr; grid-template-rows: .58fr 1fr; gap: 3px; width: 58px; height: 52px; padding: 4px; border-radius: 5px; background: #f5f4f1; }
.bedding-template-thumb i { border: 1px solid #555; border-radius: 2px; }
.bedding-template-thumb i:first-child { grid-column: 1 / -1; }
.bedding-template-card b { display: block; margin: 5px 0 3px; color: inherit; font-size: 11px; }
.bedding-template-card small { color: #778187; font-size: 9px; line-height: 1.4; }
.bedding-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bedding-field { display: grid; gap: 6px; min-width: 0; color: #aab2b5; font-size: 10px; }
.bedding-field > span { display: flex; justify-content: space-between; gap: 8px; }
.bedding-field select, .bedding-field input[type="number"] { width: 100%; height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: #d8dcde; background: #0b1317; }
.bedding-field input[type="range"] { width: 100%; accent-color: var(--gold); }
.bedding-field input[type="color"] { width: 100%; height: 39px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #0b1317; }
.bedding-mode-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.bedding-mode-options button { min-height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; color: #a9b1b4; background: #0d161a; font-size: 10px; }
.bedding-mode-options button.active { color: #f0cd95; border-color: rgba(228,182,110,.54); background: rgba(228,182,110,.075); }
.bedding-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; color: #aeb6b9; background: #0d161a; font-size: 10px; }
.bedding-toggle-row input { width: 17px; height: 17px; accent-color: var(--gold); }
.bedding-analysis { margin-top: 10px; padding: 10px 11px; border: 1px solid rgba(228,182,110,.22); border-radius: 8px; color: #aeb5b8; background: rgba(228,182,110,.045); font-size: 10px; line-height: 1.6; }
.bedding-analysis.warning { color: #e8c188; border-color: rgba(228,182,110,.38); }
.bedding-drawer-footer { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(12,19,23,.96); backdrop-filter: blur(14px); }
.bedding-drawer-footer button { min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; color: #c2c8ca; background: #111b20; }
.bedding-drawer-footer button.primary { color: #24180c; border-color: var(--gold); background: var(--gold); font-weight: 700; }
.bedding-drawer-footer button:disabled { cursor: not-allowed; opacity: .5; }
.bedding-loading { display: grid; place-items: center; min-height: 340px; color: #aab2b5; text-align: center; }
.bedding-loading i { margin-bottom: 12px; color: var(--gold); font-size: 34px; animation: bedding-pulse 1.25s ease-in-out infinite; }
@keyframes bedding-pulse { 50% { opacity: .35; transform: scale(.9); } }
.bedding-result-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f4f4f2; }
.bedding-result-preview > img { display: block; width: 100%; max-height: 650px; object-fit: contain; }
.bedding-output-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.bedding-output-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #10191e; }
.bedding-output-card img { display: block; width: 100%; height: 124px; background: #fff; object-fit: contain; }
.bedding-output-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; }
.bedding-output-card b { color: #cdd2d4; font-size: 10px; }
.bedding-output-card button { padding: 6px 8px; border-radius: 6px; color: #e8c388; background: rgba(228,182,110,.08); font-size: 9px; }
.bedding-result-notice { margin-top: 12px; padding: 10px 12px; border-radius: 8px; color: #aab2b5; background: #10191e; font-size: 10px; line-height: 1.6; }
.tool-workbench { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tool-input, .tool-output { min-height: 580px; }
.tool-preview { display: block; width: 100%; height: 180px; margin-top: 12px; border-radius: 10px; object-fit: cover; }
.range-label { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 19px; }

/* FONT SKILL — local XFONT management UI. */
.side-nav .font-skill-nav-icon { display: grid; flex: 0 0 23px; place-items: center; width: 23px; height: 23px; border: 1px solid currentColor; border-radius: 7px; color: #d7dcde; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-style: normal; font-weight: 700; line-height: 1; }
.side-nav button.active .font-skill-nav-icon { color: #edc484; }
.font-skill-feature { max-width: 1320px; }
.font-skill-welcome-card { max-width: 860px; margin: 42px auto 0; padding: 34px 38px; border-color: rgba(228,182,110,.5); background: linear-gradient(130deg, rgba(21,32,37,.96), rgba(13,22,26,.97)); }
.font-skill-welcome-card > p { max-width: 680px; margin: 0; color: #c6cdd0; font-size: 15px; line-height: 1.75; }
.font-skill-rule-block { margin: 26px 0 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.font-skill-rule-block h2 { margin: 0 0 14px; color: #efc47a; font-size: 18px; }
.font-skill-rule-block ul { display: grid; gap: 10px; margin: 0; padding-left: 21px; color: #d5dcdf; font-size: 14px; line-height: 1.55; }
.font-skill-rule-block li::marker { color: #e3b365; }
.font-skill-heading > div:last-child { display: flex; align-items: center; gap: 10px; }
.font-skill-heading > div:last-child button, .font-library-heading > button { min-height: 38px; padding: 0 15px; border: 1px solid rgba(228,182,110,.46); border-radius: 9px; color: #edc484; background: rgba(228,182,110,.07); font-weight: 650; }
.font-skill-language-note { padding: 8px 12px; border: 1px solid rgba(228,182,110,.36); border-radius: 8px; color: #e7bf79; background: rgba(228,182,110,.07); font-size: 11px; font-weight: 650; white-space: nowrap; }
.font-skill-workbench { display: grid; grid-template-columns: minmax(0,1.03fr) minmax(370px,.97fr); gap: 18px; }
.font-skill-form-card, .font-skill-preview-card { min-height: 564px; padding: 26px; }
.font-skill-form-card h2, .font-skill-preview-card h2 { margin: 0 0 20px; font-size: 19px; }
.font-field-label { display: block; margin: 18px 0 8px; color: #e8ebec; font-size: 13px; font-weight: 700; }
.font-field-label:first-of-type { margin-top: 0; }
.font-skill-upload { position: relative; display: grid; min-height: 172px; overflow: hidden; place-items: center; width: 100%; padding: 0; border: 1px dashed rgba(190,207,214,.36); border-radius: 11px; color: #d9dfe1; background: rgba(8,15,19,.52); cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.font-skill-upload:hover, .font-skill-upload:focus-visible { border-color: rgba(228,182,110,.65); outline: 0; background: rgba(228,182,110,.05); }
.font-skill-upload.drag-active { border-color: #e4b66d; background: rgba(228,182,110,.1); box-shadow: inset 0 0 0 2px rgba(228,182,110,.12); }
.font-skill-upload.has-image { border-style: solid; cursor: default; background: #091115; }
.xfont-reference-empty { display: grid; place-items: center; align-content: center; gap: 6px; padding: 22px; text-align: center; }
.xfont-reference-empty i { color: #e4b66d; font-size: 25px; }
.xfont-reference-empty b { font-size: 14px; }
.xfont-reference-empty small { color: #909ba0; font-size: 11px; }
.xfont-reference-preview { position: absolute; inset: 0; overflow: hidden; background: #091115; }
.xfont-reference-preview[hidden] { display: none; }
.xfont-reference-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.xfont-reference-open:focus-visible { outline: 2px solid rgba(228,182,110,.82); outline-offset: -3px; }
.xfont-reference-open img { display: block; width: 100%; height: 100%; object-fit: contain; }
.xfont-reference-actions { position: absolute; top: 9px; right: 9px; display: flex; gap: 6px; }
.xfont-reference-actions button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; color: #e8edef; background: rgba(8,14,17,.88); box-shadow: 0 5px 16px rgba(0,0,0,.3); font-size: 11px; font-weight: 650; backdrop-filter: blur(7px); }
.xfont-reference-actions button:hover, .xfont-reference-actions button:focus-visible { color: #f1ca86; border-color: rgba(228,182,110,.62); }
.font-skill-input-wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; min-height: 52px; border: 1px solid rgba(190,207,214,.28); border-radius: 10px; background: rgba(18,29,34,.88); }
.font-skill-input-wrap input, .font-skill-form-card > input { min-width: 0; height: 50px; padding: 0 16px; border: 0; outline: 0; color: #e7eaeb; background: transparent; }
.font-skill-input-wrap span { padding-right: 15px; color: #879298; font-size: 11px; }
.xfont-text-limit { display: block; margin-top: 7px; color: #7f8b90; font-size: 11px; line-height: 1.45; }
.font-skill-form-card > input { width: 100%; border: 1px solid rgba(190,207,214,.28); border-radius: 10px; background: rgba(18,29,34,.88); }
.font-skill-form-card textarea { display: block; width: 100%; min-height: 70px; padding: 13px 16px; border: 1px solid rgba(190,207,214,.28); border-radius: 10px; outline: 0; resize: vertical; color: #e7eaeb; background: rgba(18,29,34,.88); font: inherit; font-size: 13px; }
.font-skill-form-card textarea:focus, .font-skill-input-wrap:focus-within, .font-skill-form-card > input:focus { border-color: rgba(228,182,110,.75); box-shadow: 0 0 0 2px rgba(228,182,110,.1); }
.font-skill-points { display: flex; gap: 18px; align-items: baseline; margin: 24px 0 12px; color: #8e9a9f; font-size: 13px; }
.font-skill-points b { color: #e9be75; font-size: 16px; }
.font-skill-form-card .full-button { margin-top: auto; }
.font-skill-card-heading { display: flex; align-items: center; justify-content: space-between; }
.font-skill-empty { display: grid; min-height: 320px; place-items: center; align-content: center; gap: 13px; border: 1px dashed rgba(190,207,214,.24); border-radius: 12px; color: #88959b; background: rgba(8,15,19,.46); text-align: center; }
.font-skill-empty i { color: #d7aa5d; font-size: 38px; }
.font-skill-empty p { margin: 0; font-size: 13px; }
.xfont-preview-result { display: grid; min-height: 320px; place-items: center; align-content: center; gap: 12px; padding: 26px; border-radius: 12px; color: #222; background: #f3f1ed; text-align: center; }
.xfont-preview-open { display: block; width: 100%; max-height: 316px; overflow: hidden; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: zoom-in; }
.xfont-preview-open:hover, .xfont-preview-open:focus-visible { border-color: rgba(228,182,110,.75); box-shadow: 0 0 0 3px rgba(228,182,110,.12); }
.xfont-preview-open > img { display: block; width: 100%; max-height: 314px; object-fit: contain; }
.xfont-sample { font-family: "Segoe Print", "Comic Sans MS", cursive; font-weight: 500; }
.xfont-sample-serif { font-family: Georgia, "Times New Roman", serif; letter-spacing: .015em; }
.xfont-sample-sans { font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 500; letter-spacing: .025em; }
.xfont-preview-result .xfont-sample { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(34px,4vw,58px); }
.xfont-preview-result p { margin: 0; color: #707070; font-size: 12px; }
.xfont-preview-result.is-review-required { border: 1px solid rgba(190,147,78,.48); }
.xfont-preview-result.is-invalid-text { border: 1px solid rgba(205,105,94,.64); }
.xfont-preview-validation { display: flex; max-width: 100%; align-items: center; justify-content: center; gap: 9px; padding: 7px 9px; border: 1px solid rgba(181,139,70,.34); border-radius: 8px; color: #66502d !important; background: rgba(228,182,110,.1); font-weight: 650; line-height: 1.45; }
.xfont-preview-result.is-invalid-text .xfont-preview-validation { border-color: rgba(205,105,94,.6); color: #8f3028 !important; background: rgba(205,105,94,.12); }
.xfont-preview-validation[hidden] { display: none; }
.xfont-preview-validation button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(129,91,31,.42); border-radius: 7px; color: #58401d; background: rgba(228,182,110,.2); font-size: 11px; font-weight: 750; white-space: nowrap; }
.xfont-review-preview-notice { margin: 14px 0 0; color: #d7b170; font-size: 13px; font-weight: 650; line-height: 1.6; }
.font-skill-preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.font-skill-preview-actions button, .personal-font-downloads button { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; color: #dfe4e5; background: #131e23; font-weight: 650; }
.font-skill-preview-actions .outline-button { border-color: rgba(228,182,110,.68); color: #e9be75; background: rgba(228,182,110,.07); }
.font-skill-preview-actions .xfont-delete-button { border-color: rgba(189,89,89,.5); color: #efb1b1; background: rgba(108,38,38,.14); }
.font-skill-preview-actions button:disabled, .personal-font-downloads button:disabled { cursor: not-allowed; opacity: .46; }
.font-skill-form-card .full-button.is-generating,
.font-skill-preview-actions button.is-generating {
  cursor: progress;
  opacity: 1;
  animation: xfont-action-breathe 1.2s ease-in-out infinite;
}
.font-skill-preview-actions button.is-generating { border-color: rgba(228,182,110,.82); color: #f1ca86; background: rgba(228,182,110,.13); }
@keyframes xfont-action-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228,182,110,.08); filter: brightness(.9); }
  50% { box-shadow: 0 0 0 5px rgba(228,182,110,.14), 0 0 24px rgba(228,182,110,.28); filter: brightness(1.12); }
}
.font-skill-result-note { margin: 16px 0 0; color: #e7bb72; font-size: 12px; font-weight: 650; line-height: 1.55; }
.font-library-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.font-library-heading h2 { margin: 0 0 7px; font-size: 26px; }
.font-library-heading p { max-width: 720px; margin: 0; color: #9aa5aa; font-size: 13px; line-height: 1.6; }
.xfont-library-categories { margin: -4px 0 16px; }
.xfont-category-filter-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.xfont-category-tags { display: flex; flex: 1 1 auto; gap: 7px; min-width: 0; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.xfont-category-tag, .xfont-category-add { flex: 0 0 auto; min-height: 30px; padding: 0 12px; border: 1px solid rgba(190,207,214,.2); border-radius: 8px; color: #aab4b8; background: rgba(14,23,27,.74); font-size: 11px; }
.xfont-category-tag:hover, .xfont-category-tag.active { border-color: rgba(228,182,110,.52); color: #edc77f; background: rgba(228,182,110,.09); }
.xfont-category-add { width: 30px; padding: 0; color: #e8be75; font-size: 18px; line-height: 1; }
.xfont-category-add:hover { border-color: rgba(228,182,110,.58); background: rgba(228,182,110,.1); }
.xfont-category-manager { display: grid; gap: 9px; margin-top: 9px; padding: 11px; border: 1px solid rgba(228,182,110,.24); border-radius: 10px; background: rgba(10,17,20,.86); box-shadow: 0 14px 32px rgba(0,0,0,.22); }
.xfont-category-create, .xfont-card-category-create { display: flex; align-items: center; gap: 7px; }
.xfont-category-create input, .xfont-card-category-create input, .xfont-category-manager-row input { min-width: 0; height: 31px; padding: 0 9px; border: 1px solid rgba(190,207,214,.25); border-radius: 7px; outline: 0; color: #e5eaeb; background: rgba(255,255,255,.035); font-size: 11px; }
.xfont-category-create input { flex: 1 1 auto; max-width: 260px; }
.xfont-category-create input:focus, .xfont-card-category-create input:focus, .xfont-category-manager-row input:focus { border-color: rgba(228,182,110,.55); }
.xfont-category-create button, .xfont-card-category-create button, .xfont-category-manager-row button { min-height: 30px; padding: 0 9px; border: 1px solid rgba(190,207,214,.24); border-radius: 7px; color: #bbc4c7; background: rgba(255,255,255,.035); font-size: 10px; }
.xfont-category-create button:first-of-type, .xfont-card-category-create button { border-color: rgba(228,182,110,.46); color: #e7bc72; }
.xfont-category-manager-list { display: grid; gap: 5px; }
.xfont-category-manager-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; align-items: center; gap: 8px; min-height: 32px; padding: 5px 2px; border-top: 1px solid rgba(190,207,214,.09); color: #cbd2d4; font-size: 11px; }
.xfont-category-manager-row span { color: #7f8b90; font-size: 10px; }
.xfont-category-manager-row.is-editing, .xfont-category-manager-row.is-confirming { grid-template-columns: minmax(0,1fr) auto auto; }
.xfont-category-manager-row.is-confirming span { color: #d4bb99; line-height: 1.45; }
.xfont-category-manager-row .danger { border-color: rgba(188,91,91,.42); color: #e9a1a1; }
.xfont-category-manager-empty { margin: 0; color: #8b969a; font-size: 11px; }
.xfont-library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.xfont-library-empty { grid-column: 1 / -1; padding: 66px 24px; border: 1px dashed rgba(190,207,214,.25); border-radius: 14px; color: #98a4a9; text-align: center; }
.xfont-card { position: relative; display: grid; gap: 13px; min-height: 282px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg,#111c21,#0e171b); }
.xfont-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.xfont-card-title-group { display: grid; min-width: 0; gap: 4px; }
.xfont-card-head h3 { overflow: hidden; margin: 0 0 5px; color: #e8ebec; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.xfont-card-title-group > span { color: #e7bb72; font-size: 11px; font-weight: 700; }
.xfont-card-category-row { display: flex; width: 100%; justify-content: center; padding-top: 2px; }
.xfont-card-head .xfont-card-category-tag { display: inline-flex; width: auto; height: auto; max-width: 100%; min-height: 25px; align-items: center; justify-content: center; gap: 5px; padding: 3px 9px; border: 1px solid rgba(228,182,110,.31); border-radius: 7px; color: #e6ba70; background: rgba(228,182,110,.07); font-size: 9px; line-height: 1.35; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.xfont-card-category-tag i { flex: 0 0 auto; font-size: 11px; }
.xfont-card-category-tag span { min-width: 0; overflow-wrap: anywhere; }
.xfont-card-category-tag:hover { border-color: rgba(228,182,110,.58); background: rgba(228,182,110,.13); }
.xfont-card-category-tag.is-empty { border-color: rgba(190,207,214,.2); color: #879398; background: rgba(255,255,255,.025); }
.xfont-card-head-actions { display: flex; align-items: center; gap: 7px; }
.xfont-card-head button { width: 28px; height: 28px; border-radius: 7px; color: #dce1e3; background: rgba(255,255,255,.05); font-size: 18px; line-height: 1; }
.xfont-card-head .xfont-library-delete { width: auto; height: 28px; padding: 0 8px; border: 1px solid rgba(189,89,89,.48); color: #efaaaa; background: rgba(108,38,38,.14); font-size: 11px; font-weight: 650; }
.xfont-card-head .xfont-library-delete:hover { border-color: rgba(218,113,113,.76); background: rgba(130,48,48,.24); }
.xfont-card-sample { display: grid; min-height: 102px; place-items: center; padding: 14px; border-radius: 10px; color: #292929; background: #f3f1ed; text-align: center; }
.xfont-card-sample .xfont-sample { max-width: 100%; overflow-wrap: anywhere; font-size: 27px; }
.xfont-card-sample > img { display: block; max-width: 100%; max-height: 86px; object-fit: contain; }
.xfont-preview-slot { color: #8b8174; font-size: 12px; letter-spacing: .02em; }
.xfont-preview-slot.is-unavailable { color: #a06750; }
.xfont-card-actions { display: flex; align-items: center; gap: 8px; min-width: 0; color: #acb5b8; font-size: 12px; }
.xfont-card-actions button { flex: 0 0 auto; }
.xfont-card-actions .xfont-use-button { min-width: 96px; min-height: 38px; padding: 0 15px; border: 1px solid rgba(228,182,110,.6); border-radius: 9px; color: #161a1b; background: linear-gradient(135deg,#dca852,#f0c275); font-size: 13px; font-weight: 750; }
.xfont-card-actions .xfont-use-button:hover { filter: brightness(1.06); }
.xfont-card-actions .xfont-rename-button { min-height: 34px; padding: 0 8px; border: 0; color: #b8c1c4; background: transparent; font-size: 11px; }
.xfont-card-actions .xfont-rename-button:hover { color: #e8c27d; }
.xfont-card .xfont-personal-button { min-width: 0; min-height: 28px; margin-left: auto; padding: 0 8px; border: 1px solid rgba(190,207,214,.15); border-radius: 7px; color: #6f7a7e; background: rgba(255,255,255,.018); font-size: 8px; font-weight: 700; white-space: nowrap; }
.xfont-card .xfont-personal-button:disabled { cursor: not-allowed; opacity: .72; pointer-events: none; }
.xfont-card-category-picker { position: absolute; z-index: 4; top: 92px; left: 50%; display: grid; width: min(238px,calc(100% - 40px)); gap: 8px; padding: 10px; border: 1px solid rgba(228,182,110,.35); border-radius: 9px; background: rgba(9,16,19,.98); box-shadow: 0 15px 34px rgba(0,0,0,.36); transform: translateX(-50%); }
.xfont-card-category-picker > b { color: #e8be75; font-size: 10px; }
.xfont-card-category-options { display: flex; flex-wrap: wrap; gap: 6px; }
.xfont-card-category-option, .xfont-card-category-new { min-height: 27px; padding: 0 8px; border: 1px solid rgba(190,207,214,.2); border-radius: 7px; color: #aeb8bb; background: rgba(255,255,255,.025); font-size: 10px; }
.xfont-card-category-option:hover, .xfont-card-category-option.active, .xfont-card-category-new:hover { border-color: rgba(228,182,110,.48); color: #e8c17c; background: rgba(228,182,110,.08); }
.xfont-card-category-create input { flex: 1 1 auto; width: 0; }
.font-library-note { display: grid; grid-template-columns: 126px 1fr; gap: 18px; margin-top: 18px; padding: 18px 20px; border-top: 1px solid var(--line); color: #c5cdd0; }
.font-library-note > b { color: #e8bb70; }
.font-library-note > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; font-size: 12px; line-height: 1.55; }
.font-locked-field, .font-charset-field { display: grid; gap: 4px; min-height: 56px; padding: 12px 16px; border: 1px solid rgba(190,207,214,.28); border-radius: 10px; color: #e5e9ea; background: rgba(18,29,34,.88); }
.font-locked-field b { color: #e9be75; }
.font-charset-field span { color: #8d999f; font-size: 12px; }
.personal-font-coverage { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.personal-font-coverage > div { display: grid; gap: 3px; min-width: 0; padding: 9px 10px; border: 1px solid rgba(190,207,214,.18); border-radius: 8px; background: rgba(7,13,16,.34); }
.personal-font-coverage span { color: #7f8c91; font-size: 10px; }
.personal-font-coverage b { overflow: hidden; color: #e8c17e; font-size: 13px; text-overflow: ellipsis; }
.personal-font-missing-summary { margin: 9px 0 0; color: #98a4a8; font-size: 11px; line-height: 1.55; }
.personal-font-state { padding: 5px 8px; border: 1px solid rgba(228,182,110,.34); border-radius: 7px; color: #ddb46e; background: rgba(228,182,110,.06); font-size: 9px; font-weight: 750; letter-spacing: .08em; }
.personal-font-coming-soon { display: inline-flex; align-items: center; margin-left: 9px; padding: 4px 7px; vertical-align: middle; border: 1px solid rgba(228,182,110,.34); border-radius: 7px; color: #ddb46e; background: rgba(228,182,110,.06); font-size: 11px; font-weight: 650; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.personal-font-progress { display: grid; gap: 7px; margin: 2px 0 14px; }
.personal-font-progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(7,13,16,.65); }
.personal-font-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#a97835,#f0c77b); transition: width .18s ease; }
.personal-font-progress-meta { display: flex; justify-content: space-between; color: #9ba6aa; font-size: 11px; }
.personal-font-progress-meta b { color: #e8c17e; }
.personal-font-cancel { margin-top: 10px; border-color: rgba(189,89,89,.55); color: #efb1b1; }
.personal-font-completed-details { display: grid; gap: 6px; margin: 12px 0; color: #aab5b8; font-size: 12px; line-height: 1.5; }
.personal-font-completed-details p { margin: 0; }
.personal-font-completed-details p:first-child b { color: #efc77d; font-size: 16px; }
.personal-font-completed-details label { margin-top: 8px; color: #d5dde0; font-weight: 650; }
.personal-font-completed-details input { min-height: 38px; padding: 0 10px; border: 1px solid rgba(190,207,214,.28); border-radius: 8px; color: #e9edef; background: rgba(7,13,16,.52); }
.personal-font-custom-preview { min-height: 62px; padding: 12px; overflow-wrap: anywhere; border-radius: 8px; color: #292929; background: #f3f1ed; font-size: 24px; }
.personal-font-glyphs { display: grid; gap: 13px; min-height: 280px; padding: 28px; border-radius: 12px; color: #292929; background: #f3f1ed; font-size: 19px; }
.personal-font-glyphs > div { display: grid; gap: 4px; }
.personal-font-glyphs small { color: #8b8174; font-family: "Segoe UI", sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.personal-font-glyphs span { overflow-wrap: anywhere; }
.personal-font-glyphs strong { display: block; margin-top: 8px; font-size: 27px; font-weight: 500; }
.personal-font-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.personal-font-downloads button:last-child:not(:disabled) { color: #241b10; background: linear-gradient(135deg,#eeb954,#f6cf7d); }
.personal-font-downloads button:last-child:disabled { color: #9aa3a6; background: #131e23; }
.personal-font-confirm-summary { display: grid; gap: 8px; margin-bottom: 18px; }
.personal-font-confirm-summary p { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; padding: 9px 11px; border: 1px solid rgba(190,207,214,.14); border-radius: 8px; background: rgba(7,13,16,.3); }
.personal-font-confirm-summary span { color: #8f9ca0; }
.personal-font-confirm-summary strong { color: #e8c17e; text-align: right; }
#personalFontRetry { margin-top: 14px; }
.personal-font-task-card .task-center-thumb i { color: #e4b66e; font-size: 30px; }

@media (max-width: 1060px) {
  .font-skill-workbench { grid-template-columns: 1fr; }
  .font-skill-form-card, .font-skill-preview-card { min-height: auto; }
  .xfont-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .my-skills-xfont-card, .my-skills-personal-font-card { grid-template-columns: 58px minmax(0,1fr); }
  .my-skills-card-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; padding-top: 2px; }
}

@media (max-width: 720px) {
  .font-skill-welcome-card { margin-top: 18px; padding: 24px 20px; }
  .font-skill-heading, .font-library-heading { align-items: stretch; flex-direction: column; }
  .font-skill-heading > div:last-child { justify-content: space-between; }
  .xfont-library-grid { grid-template-columns: 1fr; }
  .my-skills-workspace { padding: 17px; }
  .my-skills-heading { align-items: stretch; flex-direction: column; }
  .my-skills-heading > button { align-self: flex-start; }
  .my-skills-workspace-heading { gap: 12px; }
  .my-skills-xfont-card, .my-skills-personal-font-card { gap: 10px; }
  .my-skills-xfont-preview, .my-skills-personal-font-preview { width: 54px; height: 52px; }
  .my-skills-card-actions button { flex: 1 1 auto; }
  .font-library-note, .font-library-note > div { grid-template-columns: 1fr; }
  .font-skill-preview-actions, .personal-font-downloads { grid-template-columns: 1fr; }
  .personal-font-coverage { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.range-label input { grid-column: 1 / -1; width: 100%; accent-color: var(--gold); }
.toggle-line { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 15px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #0b1317; }
.toggle-line[hidden] { display: none; }
.toggle-line i { position: relative; width: 39px; height: 22px; border-radius: 14px; background: #363f44; }
.toggle-line i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #eee; transition: transform .2s; }
.toggle-line.active i { background: var(--gold); }
.toggle-line.active i::after { transform: translateX(17px); }
.cutout-source-preview { position: relative; margin-top: 12px; }
.cutout-source-open { display: block; width: 100%; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #080e12; }
.cutout-source-open:hover, .cutout-source-open:focus-visible { border-color: rgba(228,182,110,.65); }
.cutout-source-open .tool-preview { width: 100%; height: 180px; margin: 0; border-radius: 0; object-fit: contain; }
.cutout-source-remove { position: absolute; top: 8px; right: 8px; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; color: #f2f3f4; background: rgba(9,14,18,.88); box-shadow: 0 6px 18px rgba(0,0,0,.32); font-size: 19px; line-height: 1; }
.cutout-source-remove:hover, .cutout-source-remove:focus-visible { color: #ffc1c1; border-color: rgba(230,109,109,.62); background: rgba(76,27,27,.92); }
.cutout-source-remove:disabled { cursor: not-allowed; opacity: .45; }
.cutout-background-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.cutout-background-row h3 { margin: 0; white-space: nowrap; }
.cutout-background-tools { display: flex; align-items: center; gap: 7px; }
.cutout-background-tools button, .cutout-color-swatch { display: grid; min-height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: #aeb5b8; background: #0b1317; }
.cutout-background-tools button { padding: 7px 10px; }
.cutout-background-tools button:hover, .cutout-background-tools button:focus-visible, .cutout-color-swatch:hover, .cutout-color-swatch:focus-within { color: var(--gold); border-color: rgba(228,182,110,.58); }
.cutout-background-tools button.active, .cutout-color-swatch.active { color: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(228,182,110,.08); }
.cutout-color-swatch { position: relative; width: 32px; min-height: 32px; overflow: hidden; cursor: pointer; }
.cutout-color-swatch > span { width: 20px; height: 20px; border: 1px solid rgba(255,255,255,.28); border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cutout-color-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.cutout-eyedropper { width: 32px; padding: 0 !important; }
.cutout-eyedropper .ti { font-size: 16px; }
.cutout-service-status { margin: 11px 0 0; color: #aeb5b8; font-size: 11px; line-height: 1.5; }
.cutout-service-status.is-loading { color: #e4b66e; }
.cutout-service-status.is-error { color: #e79a9a; }
.empty-state { display: grid; place-items: center; min-height: 400px; color: var(--muted); text-align: center; }
.empty-state b { color: #546169; font-size: 54px; }
.result-preview { display: grid; place-items: center; min-height: 400px; border-radius: 11px; background: radial-gradient(circle, rgba(228,182,110,.12), transparent 52%), #0a1216; text-align: center; }
.result-preview p { color: var(--muted); }
.extracted-flower, .cutout-flower { color: #e9c590; font-size: 130px; text-shadow: 0 12px 35px rgba(228,182,110,.22); }
.checker { background-color: #d5d5d5; background-image: linear-gradient(45deg,#bbb 25%,transparent 25%),linear-gradient(-45deg,#bbb 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#bbb 75%),linear-gradient(-45deg,transparent 75%,#bbb 75%); background-size: 24px 24px; background-position: 0 0,0 12px,12px -12px,-12px 0; color: #182026; }
.cutout-result-preview { grid-template-rows: minmax(0,1fr) auto; gap: 10px; overflow: hidden; padding: 14px; }
.cutout-result-preview > img { display: block; width: 100%; height: 330px; min-height: 0; object-fit: contain; }
.cutout-result-preview > div { padding: 0 8px 4px; }
.cutout-result-preview h3 { margin: 0; }
.cutout-result-preview p { margin-bottom: 0; color: #3e494f; }
.cutout-result-preview.is-color, .cutout-large-preview.is-color { background: var(--cutout-preview-bg, #fff); background-image: none; }
.cutout-result-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-top: 18px; }
.cutout-result-actions button { width: 100%; }
.cutout-large-preview { cursor: default; }
@media (max-width: 560px) {
  .cutout-background-row { align-items: flex-start; }
  .cutout-background-tools { flex-wrap: wrap; justify-content: flex-end; }
}

/* Shared feedback */
.toast-region { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: grid; gap: 9px; width: min(328px, calc(100vw - 48px)); pointer-events: none; }
.toast { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; min-height: 48px; padding: 11px 14px; border: 1px solid rgba(228,182,110,.3); border-radius: 11px; color: #edf0f1; background: rgba(16,22,26,.97); box-shadow: 0 14px 36px rgba(0,0,0,.42); animation: toast-in .24s ease both; font-size: 13px; line-height: 1.45; }
.toast > .ti { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #181108; background: var(--gold); font-size: 15px; }
.toast.toast-error { border-color: rgba(230,109,109,.42); }
.toast.toast-error > .ti { color: #fff; background: var(--danger); }
.toast.is-leaving { animation: toast-out .24s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(14px) translateY(5px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(14px); } }
.result-context-menu { position: fixed; z-index: 110; width: 178px; overflow: hidden; padding: 6px; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(15,22,27,.98); box-shadow: 0 20px 55px rgba(0,0,0,.52); backdrop-filter: blur(16px); }
.result-context-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 37px; padding: 8px 10px; border-radius: 7px; color: #d7dcde; background: transparent; text-align: left; font-size: 12px; }
.result-context-menu button:hover, .result-context-menu button:focus-visible { color: #f4d29b; background: rgba(228,182,110,.1); }
.result-context-menu button .ti { width: 18px; color: #aeb5b8; font-size: 17px; text-align: center; }
.result-context-menu button:hover .ti { color: var(--gold); }
.result-context-menu button.danger { color: #efaaaa; }
.result-context-menu button.danger:hover { background: rgba(230,109,109,.1); }
.result-context-menu button.danger .ti { color: #dd8d8d; }
.popover { position: fixed; z-index: 70; top: 64px; right: 28px; width: 250px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #11191e; box-shadow: 0 16px 42px rgba(0,0,0,.45); }
.popover h3 { margin: 0 0 10px; font-size: 15px; }
.popover p { margin: 0; color: #aeb4b8; font-size: 13px; line-height: 1.7; }
.modal-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.68); backdrop-filter: blur(6px); }
.modal { position: relative; width: min(460px, 92vw); padding: 28px; border: 1px solid var(--line-strong); border-radius: 18px; background: #11191e; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.modal h2 { margin: 0 0 18px; }
.modal-close { position: absolute; top: 13px; right: 15px; width: 34px; height: 34px; border-radius: 50%; background: transparent; font-size: 24px; }
.modal-body { color: #adb4b8; line-height: 1.7; }
.modal-body input, .modal-body textarea { width: 100%; margin-top: 12px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 9px; outline: none; color: #fff; background: #0b1216; }
.modal-field-label { display: block; margin: 18px 0 -5px; color: #e7eaeb; font-size: 13px; font-weight: 700; }
.xfont-modal-id { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px; border: 1px solid rgba(190,207,214,.28); border-radius: 9px; color: #e9be75; background: #0b1216; }
.xfont-modal-id span { color: #aeb8bc; font-size: 12px; }
.modal-helper { margin: 10px 0 0; color: #8f9a9f; font-size: 12px; line-height: 1.6; }
.modal-body .result-delete-button { display: block; margin-top: 16px; padding: 9px 13px; border: 1px solid rgba(189,89,89,.55); border-radius: 8px; color: #efb1b1; background: rgba(108,38,38,.18); }
.modal.legal-info-modal { display: flex; flex-direction: column; width: min(680px, 100%); max-height: min(860px, 100%); overflow: hidden; }
.modal.legal-info-modal .modal-body { flex: 1 1 auto; min-height: 0; max-height: 620px; padding: 18px 14px 22px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: auto; color: #c1c7c9; line-height: 1.85; }
.modal.legal-info-modal .modal-body::-webkit-scrollbar { width: 10px; }
.modal.legal-info-modal .modal-body::-webkit-scrollbar-track { border-radius: 8px; background: rgba(255,255,255,.045); }
.modal.legal-info-modal .modal-body::-webkit-scrollbar-thumb { border: 2px solid #11191e; border-radius: 8px; background: rgba(228,196,132,.68); }
.modal.legal-info-modal .modal-body:focus { outline: 1px solid rgba(228,196,132,.38); outline-offset: -1px; }
.modal.legal-info-modal .modal-body h1, .modal.legal-info-modal .modal-body h2, .modal.legal-info-modal .modal-body h3 { color: #e4e7e8; line-height: 1.35; }
.modal.legal-info-modal .modal-body h1 { margin: 0 0 18px; font-size: 20px; }
.modal.legal-info-modal .modal-body h2 { margin: 22px 0 10px; font-size: 17px; }
.modal.legal-info-modal .modal-body h3 { margin: 20px 0 9px; font-size: 15px; }
.modal.legal-info-modal .modal-body p { margin: 0 0 15px; }
.modal.legal-info-modal .modal-body > :first-child { margin-top: 0; }
.modal.legal-info-modal .modal-body > :last-child { margin-bottom: 0; }
.modal.legal-info-modal .modal-body strong { color: #e8c484; font-weight: 700; }
.modal.legal-info-modal .modal-body ul { margin: 0 0 16px; padding-left: 22px; }
.modal.legal-info-modal .modal-body li { margin: 5px 0; padding-left: 3px; }
.modal.task-center-modal { width: min(920px, 94vw); }
.modal.original-preview-modal { width: min(1120px, 94vw); padding: 22px; }
.modal.original-preview-modal h2 { margin-right: 42px; }
.modal.original-preview-modal .modal-body { line-height: normal; }
.modal.continue-creation-modal { width: min(680px,94vw); }
.modal.enhancement-modal { width: min(760px,94vw); max-height: min(900px,92vh); overflow: auto; }
.modal.enhancement-modal h2 { margin-bottom: 4px; }
.enhancement-dialog { display: grid; gap: 18px; }
.enhancement-intro { margin: 0; color: #8d979c; }
.enhancement-mode-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.enhancement-mode-grid button { position: relative; display: grid; place-items: center; gap: 7px; min-height: 126px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #11191d; color: #c5cbce; }
.enhancement-mode-grid button .ti { font-size: 27px; color: #9fa9ae; }
.enhancement-mode-grid button b { font-size: 17px; color: #e6e9ea; }
.enhancement-mode-grid button span { color: #8f999e; font-size: 12px; }
.enhancement-mode-grid button.selected { border-color: rgba(228,182,110,.72); background: linear-gradient(135deg,rgba(228,182,110,.13),rgba(228,182,110,.035)); box-shadow: inset 0 0 0 1px rgba(228,182,110,.08); }
.enhancement-mode-grid button.selected::after { content: "✓"; position: absolute; top: 10px; right: 11px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #20160c; background: var(--gold); font-weight: 800; }
.enhancement-mode-grid button.selected .ti { color: var(--gold); }
.enhancement-mode-grid button:disabled { opacity: .45; cursor: not-allowed; }
.enhancement-section h3, .enhancement-source h3 { display: flex; align-items: baseline; gap: 7px; margin: 0 0 10px; color: #e0e4e5; font-size: 13px; }
.enhancement-section h3 small, .enhancement-source h3 small, .enhancement-note > span small { color: #788388; font-size: 11px; font-weight: 400; }
.enhancement-target-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.enhancement-target-grid button { display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 8px; min-height: 64px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #0e161a; color: #aeb6ba; text-align: left; }
.enhancement-target-grid button .ti { color: #859095; font-size: 18px; }
.enhancement-target-grid button span { display: grid; gap: 2px; min-width: 0; }
.enhancement-target-grid button b { color: #d5dadd; font-size: 12px; }
.enhancement-target-grid button small { color: #707b80; font-size: 10px; white-space: nowrap; }
.enhancement-target-grid button.selected { color: var(--gold); border-color: rgba(228,182,110,.65); background: rgba(228,182,110,.09); }
.enhancement-target-grid button.selected .ti, .enhancement-target-grid button.selected b { color: var(--gold); }
.enhancement-note { position: relative; display: grid; gap: 8px; color: #e0e4e5; font-size: 13px; font-weight: 700; }
.modal-body .enhancement-note textarea { min-height: 88px; margin: 0; padding-bottom: 27px; resize: vertical; }
.enhancement-note output { position: absolute; right: 11px; bottom: 8px; color: #778287; font-size: 10px; font-weight: 400; }
.enhancement-source { display: grid; grid-template-columns: minmax(0,1fr) 76px; align-items: end; gap: 12px; }
.enhancement-source h3 { align-self: start; }
.enhancement-source img { grid-column: 2; grid-row: 1; width: 76px; height: 76px; object-fit: cover; border: 1px solid var(--line); border-radius: 9px; background: #080c0e; }
.enhancement-point-estimate { margin: 0; padding: 9px 12px; border: 1px solid rgba(228,182,110,.22); border-radius: 8px; color: #cbb486; background: rgba(228,182,110,.045); font-size: 12px; }
.modal.enhancement-modal .modal-actions { align-items: center; }
.modal.enhancement-modal .modal-actions::before { content: "积分仅在任务成功创建后进入现有消耗流程"; margin-right: auto; color: #687379; font-size: 10px; }
@media (max-width: 720px) {
  .enhancement-target-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .enhancement-mode-grid { grid-template-columns: 1fr; }
  .modal.enhancement-modal .modal-actions::before { display: none; }
}
.modal.style-gallery-modal { width: min(1020px,94vw); padding: 24px; }
.modal.style-gallery-modal h2 { margin-right: 42px; }
.modal.style-gallery-modal .modal-body { line-height: normal; }
.style-gallery-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: #0b1317; }
.style-gallery-summary span { color: #e8c484; font-size: 12px; font-weight: 600; }
.style-gallery-summary small { color: #818b90; font-size: 10px; line-height: 1.55; text-align: right; }
.style-gallery-layout { display: grid; grid-template-columns: minmax(0,1.42fr) minmax(250px,.58fr); gap: 14px; min-height: 480px; }
.style-gallery-preview { display: grid; min-width: 0; min-height: 480px; margin: 0; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: #080e11; }
.style-gallery-preview img { display: block; width: 100%; height: 100%; max-height: 64vh; object-fit: contain; }
.style-gallery-thumbnails { display: grid; align-content: start; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; max-height: 64vh; padding: 2px 5px 2px 2px; overflow-y: auto; }
.style-gallery-thumbnail { aspect-ratio: 1; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: #0a1115; }
.style-gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.style-gallery-thumbnail:hover { border-color: rgba(228,182,110,.45); }
.style-gallery-thumbnail.is-selected { border-color: #dcb16d; box-shadow: 0 0 0 1px rgba(228,182,110,.26); }
.style-gallery-thumbnail:focus-visible { outline: 2px solid rgba(228,182,110,.72); outline-offset: 2px; }
.style-gallery-state { display: grid; min-height: 360px; padding: 30px; place-content: center; justify-items: center; gap: 9px; border: 1px dashed rgba(255,255,255,.11); border-radius: 11px; background: #0a1115; text-align: center; }
.style-gallery-state strong { color: #e3e6e7; font-size: 15px; }
.style-gallery-state span { max-width: 420px; color: #7f898e; font-size: 11px; line-height: 1.65; }
.style-gallery-state.is-error strong { color: #e8aaaa; }
.style-gallery-state button { margin-top: 7px; padding: 8px 12px; border: 1px solid rgba(228,182,110,.38); border-radius: 7px; color: #e8c484; background: rgba(228,182,110,.06); font-size: 11px; }
.continue-creation-source { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #0c1418; }
.continue-creation-source img { display: block; width: 104px; height: 82px; border-radius: 8px; background: #070b0e; object-fit: cover; }
.continue-creation-source div { display: grid; gap: 4px; min-width: 0; }
.continue-creation-source b { color: #e5e8e9; font-size: 13px; }
.continue-creation-source span { color: #828c91; font-size: 11px; line-height: 1.55; }
.continue-creation-prompt { position: relative; display: grid; margin-top: 15px; color: #d9dddf; font-size: 12px; }
.modal-body .continue-creation-prompt textarea { min-height: 150px; padding-bottom: 28px; resize: vertical; line-height: 1.65; }
.continue-creation-prompt > small { position: absolute; right: 10px; bottom: 7px; color: #748087; font-size: 10px; }
.continue-creation-tools { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.continue-creation-tools button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(228,182,110,.36); border-radius: 8px; color: #e3bc7c; background: rgba(228,182,110,.055); font-size: 11px; }
.continue-creation-tools button:disabled { opacity: .55; cursor: wait; }
.continue-creation-tools > span { color: #737e83; font-size: 10px; }
.continue-creation-quantity { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: #c9ced0; font-size: 12px; }
.continue-creation-quantity > div { display: flex; gap: 7px; }
.continue-creation-quantity button { min-width: 58px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: #aeb6b9; background: #0d1519; font-size: 11px; }
.continue-creation-quantity button.active { color: #e7c181; border-color: rgba(228,182,110,.62); background: rgba(228,182,110,.09); }
@media (max-width: 560px) {
  .continue-creation-source { grid-template-columns: 78px minmax(0,1fr); }
  .continue-creation-source img { width: 78px; height: 68px; }
  .continue-creation-tools { align-items: flex-start; flex-direction: column; }
}
.original-image-viewer { position: relative; display: grid; place-items: center; width: 100%; height: min(76vh, 820px); min-height: 480px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: #040608; cursor: grab; touch-action: none; user-select: none; }
.original-image-viewer.is-panning { cursor: grabbing; }
.original-image-viewer .reference-large-preview { position: absolute; inset: 0; width: auto; max-width: calc(100% - 24px); height: auto; max-height: calc(100% - 24px); margin: auto; border-radius: 4px; object-fit: contain; transform-origin: center; will-change: transform; }
.original-image-viewer .reference-large-preview { inset: 50% auto auto 50%; max-width: none; max-height: none; margin: 0; }
.original-preview-control { position: absolute; z-index: 4; top: 50%; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #d8dddf; background: rgba(10,15,19,.82); box-shadow: 0 8px 28px rgba(0,0,0,.38); backdrop-filter: blur(12px); transform: translateY(-50%); }
.original-preview-control:hover:not(:disabled), .original-preview-control:focus-visible { color: var(--gold); border-color: rgba(228,182,110,.5); background: rgba(23,27,28,.92); }
.original-preview-control:active:not(:disabled) { transform: translateY(-50%) scale(.97); }
.original-preview-control:disabled { opacity: .24; cursor: not-allowed; }
.original-preview-previous { left: 16px; }
.original-preview-next { right: 16px; }
.original-preview-position { position: absolute; z-index: 3; top: 14px; left: 50%; padding: 5px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #aeb6b9; background: rgba(10,15,19,.72); font-size: 10px; line-height: 1; backdrop-filter: blur(10px); transform: translateX(-50%); }
.original-zoom-toolbar { position: absolute; z-index: 3; bottom: 14px; left: 50%; display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: #c7cdd0; background: rgba(10,15,19,.82); box-shadow: 0 8px 28px rgba(0,0,0,.42); backdrop-filter: blur(12px); transform: translateX(-50%); }
.original-zoom-toolbar button { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 6px; color: #d4d9dc; background: transparent; }
.original-zoom-toolbar button:hover { color: var(--gold); background: rgba(255,255,255,.07); }
.original-zoom-toolbar .zoom-reset { min-width: 54px; color: #e7c487; font-size: 11px; }
.original-zoom-toolbar span { padding: 0 8px 0 6px; color: #929b9f; font-size: 10px; white-space: nowrap; }
.original-zoom-toolbar .original-reference-toggle { display: inline-flex; min-width: 74px; gap: 5px; padding-inline: 9px; border-left: 1px solid rgba(255,255,255,.1); border-radius: 0 6px 6px 0; }
.original-zoom-toolbar .original-reference-toggle.active { color: #f0c578; background: rgba(228,182,110,.12); }
.original-zoom-toolbar .original-reference-toggle:disabled { opacity: .36; cursor: not-allowed; }
.original-reference-rail { position: absolute; z-index: 5; top: 52px; right: 16px; display: grid; gap: 7px; width: 96px; max-height: calc(100% - 124px); overflow: auto; padding: 7px; border: 1px solid rgba(228,182,110,.26); border-radius: 10px; background: rgba(8,13,16,.9); box-shadow: 0 16px 36px rgba(0,0,0,.44); backdrop-filter: blur(14px); cursor: default; }
.original-reference-rail[hidden] { display: none; }
.original-reference-rail button { display: grid; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; color: #9da7ac; background: rgba(19,27,31,.9); text-align: left; }
.original-reference-rail button:hover, .original-reference-rail button.active { color: #f0c578; border-color: rgba(228,182,110,.55); background: rgba(228,182,110,.1); }
.original-reference-rail img { display: block; width: 100%; aspect-ratio: 1; border-radius: 5px; object-fit: cover; }
.original-reference-rail span { overflow: hidden; padding: 0 2px; font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .original-preview-control { width: 38px; height: 38px; }
  .original-preview-previous { left: 8px; }
  .original-preview-next { right: 8px; }
  .original-zoom-toolbar span { display: none; }
  .original-zoom-toolbar .original-reference-toggle { min-width: 34px; padding-inline: 7px; }
  .original-reference-rail { top: auto; right: 8px; bottom: 58px; left: 8px; grid-auto-flow: column; grid-auto-columns: 76px; width: auto; max-height: none; overflow-x: auto; overflow-y: hidden; }
}
.task-center-list { display: grid; gap: 10px; max-height: min(62vh, 620px); overflow: auto; padding-right: 4px; }
.task-center-empty { padding: 36px 20px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); text-align: center; }
.task-center-card { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(240px, 1.6fr) auto; align-items: center; gap: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #0c1418; }
.task-center-card.is-current { border-color: rgba(228,182,110,.46); background: rgba(228,182,110,.055); }
.task-center-card h3 { margin: 0 0 5px; color: #e5e7e8; font-size: 14px; }
.task-center-card p { overflow: hidden; margin: 0; color: #9fa6aa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-center-meta { display: grid; gap: 4px; color: #abb1b4; font-size: 11px; }
.task-center-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 270px; }
.task-center-actions button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: #c4c9cb; background: #111a1f; font-size: 11px; }
.task-center-actions button:hover { color: var(--gold); border-color: rgba(228,182,110,.45); }
.task-center-actions .danger { color: #efaaaa; }
.popup-fallback { display: grid; gap: 12px; }
.popup-fallback button { justify-self: start; padding: 9px 13px; border-radius: 8px; color: #24180c; background: var(--gold); }
.modal-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.modal-chip-row button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 15px; background: #0b1216; }
.modal-chip-row button.selected { color: var(--gold); border-color: var(--gold); }
.modal-intro { margin: 0 0 14px; }
.modal-section-label { margin: 16px 0 0; color: #e0e3e4; font-size: 12px; font-weight: 700; }
.trained-style-row { padding-top: 2px; border-top: 1px solid rgba(228,182,110,.12); }
.trained-style-empty { margin: 18px 0 0; padding: 11px 12px; border: 1px dashed var(--line); border-radius: 9px; color: #838c91; font-size: 12px; }
.style-choice { display: inline-flex; align-items: center; gap: 7px; }
.style-choice small { padding: 2px 5px; border-radius: 8px; color: #dcb472; background: rgba(228,182,110,.12); font-size: 9px; font-weight: 600; }
[data-testid="style-options"].has-selection { color: #e6bf7e; border-color: rgba(228,182,110,.5); background: rgba(228,182,110,.06); }

.color-palette-popover { position: fixed; z-index: 86; padding: 16px; overflow: hidden; border: 1px solid rgba(228,182,110,.24); border-radius: 16px; background: rgba(16,23,27,.98); box-shadow: 0 22px 70px rgba(0,0,0,.58); backdrop-filter: blur(18px); }
.color-popover-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.color-popover-head > div { display: grid; gap: 3px; }
.color-popover-head b { color: #eef0f0; font-size: 14px; }
.color-popover-head span { color: #7f898d; font-size: 10px; }
.color-popover-head > button { width: 28px; height: 28px; border-radius: 50%; color: #8e969a; background: transparent; }
.color-popover-head > button:hover { color: #fff; background: rgba(255,255,255,.06); }
.recommended-palette-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.recommended-palette { display: grid; gap: 7px; min-width: 0; padding: 9px 8px 8px; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; background: #111a1f; text-align: left; }
.recommended-palette:hover { transform: translateY(-1px); border-color: rgba(228,182,110,.46); background: #152027; }
.recommended-palette-colors { display: flex; height: 23px; }
.recommended-palette-colors i { flex: 1; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; box-shadow: -5px 0 12px rgba(0,0,0,.16); }
.recommended-palette-colors i + i { margin-left: -8px; }
.recommended-palette b { overflow: hidden; color: #aeb5b8; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.color-popover-section { display: grid; gap: 9px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.color-popover-section > b { color: #aeb5b8; font-size: 11px; }
.recent-color-row { display: flex; flex-wrap: wrap; gap: 7px; }
.recent-color-row button { width: 25px; height: 25px; border: 2px solid rgba(255,255,255,.16); border-radius: 50%; }
.recent-color-row button:hover { transform: scale(1.1); border-color: #fff; }
.color-empty { margin: 0; color: #778085; font-size: 11px; }
.open-color-workbench { display: grid; grid-template-columns: 28px minmax(0,1fr) 18px; align-items: center; gap: 9px; width: 100%; margin-top: 14px; padding: 11px; border: 1px solid rgba(228,182,110,.22); border-radius: 11px; color: #d6dadd; background: rgba(228,182,110,.045); text-align: left; }
.open-color-workbench > .ti:first-child { color: var(--gold); font-size: 18px; }
.open-color-workbench > span { display: grid; gap: 2px; }
.open-color-workbench b { font-size: 12px; }
.open-color-workbench small { color: #818a8f; font-size: 10px; }

.modal.pattern-library-modal { width: min(760px,94vw); }
.pattern-library-grid { display: grid; grid-template-columns: repeat(4,minmax(120px,1fr)); gap: 12px; }
.pattern-library-grid .pattern-choice { width: 100%; }
.modal.color-workbench-modal { width: min(760px,94vw); }
.color-workbench { position: relative; }
.color-workbench-tabs { display: flex; gap: 28px; padding: 0 4px 9px; border-bottom: 1px solid var(--line); }
.color-workbench-tabs button { position: relative; padding: 4px 0 10px; color: #969ea2; background: transparent; }
.color-workbench-tabs button.active { color: #e8bd78; }
.color-workbench-tabs button.active::after { position: absolute; right: 0; bottom: -10px; left: 0; height: 2px; background: #e1b46d; content: ""; }
.color-workbench-summary { position: absolute; top: -3px; right: 3px; display: flex; align-items: center; gap: 9px; }
.color-workbench-summary > span { width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.75); border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.color-workbench-summary > div { display: grid; gap: 1px; }
.color-workbench-summary small { color: #788186; font-size: 9px; }
.color-workbench-summary b { color: #d8dcdd; font: 600 11px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; }
.color-workbench-panel { min-height: 310px; padding-top: 22px; }
.wheel-workbench { display: grid; grid-template-columns: minmax(280px,1fr) 230px; align-items: center; gap: 34px; min-height: 290px; }
.designer-palette { position: relative; width: 300px; height: 215px; margin: auto; border-radius: 47% 53% 46% 54% / 52% 45% 55% 48%; background: radial-gradient(circle at 37% 43%,#e9dfce 0 7%,transparent 7.5%),radial-gradient(circle at 52% 54%,#d8c7aa 0 10%,#c9b38e 10.5% 11.5%,transparent 12%),linear-gradient(145deg,#e8ddc8,#bdaa89); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32),0 15px 35px rgba(0,0,0,.33); transform: rotate(-4deg); }
.designer-palette::after { position: absolute; top: 65px; left: -3px; width: 62px; height: 74px; border-radius: 0 55% 55% 0; background: #11191e; content: ""; }
.designer-palette i { position: absolute; width: 35px; height: 28px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; box-shadow: 0 4px 7px rgba(0,0,0,.24); }
.designer-palette i:nth-child(1){left:58px;top:38px}.designer-palette i:nth-child(2){left:105px;top:22px}.designer-palette i:nth-child(3){left:157px;top:29px}.designer-palette i:nth-child(4){right:37px;top:66px}.designer-palette i:nth-child(5){right:26px;bottom:54px}.designer-palette i:nth-child(6){right:72px;bottom:26px}.designer-palette i:nth-child(7){left:111px;bottom:20px}.designer-palette i:nth-child(8){left:56px;bottom:43px}
.native-color-pick { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #0c1317; cursor: pointer; }
.native-color-pick input { width: 76px!important; height: 76px; margin: 0!important; padding: 5px!important; border-radius: 50%!important; }
.native-color-pick span { display: grid; gap: 5px; }
.native-color-pick b { color: #e3e6e7; font-size: 12px; }
.native-color-pick small { color: #7f888d; font-size: 10px; line-height: 1.5; }
.color-slider-list { display: grid; gap: 20px; padding: 30px 20px 10px; }
.color-slider-list label { display: grid; grid-template-columns: 80px 1fr 44px; align-items: center; gap: 15px; color: #bec4c6; font-size: 12px; }
.color-slider-list output { grid-column: 3; grid-row: 1; color: #e5bd7b; text-align: right; }
.color-slider-list input { grid-column: 2; grid-row: 1; width: 100%; margin: 0; accent-color: #dcae67; }
.eyedropper-panel { display: grid; justify-items: center; gap: 10px; padding: 55px 20px; text-align: center; }
.eyedropper-panel > i { color: #dab06d; font-size: 43px; }
.eyedropper-panel b { color: #e0e3e4; }
.eyedropper-panel p { margin: 0; color: #80898e; font-size: 12px; }
.eyedropper-panel button { margin-top: 8px; padding: 10px 24px; border: 1px solid rgba(228,182,110,.55); border-radius: 9px; color: #e6bd7a; background: rgba(228,182,110,.07); }
.saved-color-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 20px 4px; }
.saved-color-grid button { position: relative; aspect-ratio: 1.45; overflow: hidden; border: 2px solid rgba(255,255,255,.12); border-radius: 11px; }
.saved-color-grid button span { position: absolute; right: 0; bottom: 0; left: 0; padding: 5px; color: #fff; background: rgba(0,0,0,.45); font-size: 9px; }
.training-history-list { display: grid; gap: 8px; }
.training-history-list span { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #0b1216; }
.training-history-list b { color: #e2e5e6; font-weight: 500; }
.training-history-list em { color: #88c69b; font-size: 11px; font-style: normal; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.gold-button { min-width: 96px; padding: 10px 18px; border-radius: 9px; color: #24180c; background: var(--gold); }
.modal.system-notifications-modal { width: min(680px, 92vw); }
.system-notification-shell { display: grid; gap: 13px; min-width: min(620px, 80vw); }
.system-notification-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #aeb7ba; font-size: 12px; }
.system-notification-head button, .system-notification-actions button, .system-notification-link { padding: 6px 9px; border: 1px solid rgba(228,182,110,.4); border-radius: 7px; color: #e7c27f; background: rgba(228,182,110,.06); font-size: 11px; }
.system-notification-list { display: grid; gap: 9px; max-height: min(54vh, 510px); overflow-y: auto; }
.system-notification-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid rgba(228,182,110,.35); border-radius: 10px; background: #0b1317; }
.system-notification-row.is-read { border-color: var(--line); }
.system-notification-row h3 { margin: 5px 0 5px; color: #eef0f0; font-size: 14px; }
.system-notification-row p { margin: 0; color: #aeb7ba; font-size: 12px; line-height: 1.65; }
.system-notification-row time { display: block; margin-top: 8px; color: #728087; font-size: 10px; }
.system-notification-type { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.system-notification-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.system-notification-actions > span { color: #718086; font-size: 11px; }
.system-notification-empty { display: grid; gap: 6px; min-height: 150px; place-content: center; border: 1px dashed var(--line); border-radius: 10px; color: #7e898e; text-align: center; }
.system-notification-empty strong { color: #dfe3e4; font-size: 13px; }
.profile-editor { display: grid; gap: 6px; }
.profile-avatar-preview { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 8px; border-radius: 50%; color: #24180c; background: var(--profile-avatar-color); font-size: 23px; font-weight: 800; }
.profile-editor > p { margin: 12px 0 0; color: #778287; font-size: 11px; }
.profile-editor input[type="color"] { height: 44px; padding: 5px; }
@media (max-width: 640px) {
  .system-notification-shell { min-width: 0; }
  .system-notification-row { flex-direction: column; }
  .system-notification-actions { width: 100%; justify-content: flex-end; }
}

@media (max-width: 1250px) {
  .workspace { grid-template-columns: minmax(670px, 1fr) 340px; }
  .result-image { height: auto; }
  .login-main { grid-template-columns: 462px minmax(280px,1fr); column-gap: 56px; padding-inline: 72px; }
  .pattern-library-grid { grid-template-columns: repeat(3,minmax(120px,1fr)); }
  .wheel-workbench { grid-template-columns: 1fr; gap: 20px; }
  .designer-palette { width: 260px; height: 185px; }
  .native-color-pick { width: min(360px,100%); margin: auto; }
}

@media (max-width: 760px) {
  .modal.legal-info-modal { max-height: 100%; padding: 22px; }
  .modal.legal-info-modal .modal-body { max-height: 620px; padding: 16px 10px 20px 16px; }
  .training-layout { grid-template-columns: 1fr; }
  .training-pool-header { align-items: stretch; flex-direction: column; }
  .training-pool-header > div:last-child { justify-content: flex-start; }
  .training-pool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); min-height: 0; }
  .training-pool-item { width: 100%; }
  .modal.style-gallery-modal { padding: 18px; }
  .style-gallery-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .style-gallery-summary small { text-align: left; }
  .style-gallery-layout { grid-template-columns: 1fr; min-height: 0; }
  .style-gallery-preview { min-height: 280px; }
  .style-gallery-preview img { max-height: 42vh; }
  .style-gallery-thumbnails { grid-template-columns: repeat(4,minmax(0,1fr)); max-height: 180px; }
}

@media (max-width: 980px) {
  .login-screen { grid-template-rows: 84px minmax(0,1fr) 66px; overflow-y: auto; }
  .login-header { padding-inline: 28px; }
  .login-header .brand { position: relative; left: auto; width: 250px; height: 48px; margin-right: auto; transform: none; }
  .login-header .brand-logo { width: 250px; height: 48px; }
  .login-header-actions { margin-left: 24px; }
  .login-main { display: flex; justify-content: center; padding: 32px 28px; }
  .login-card { transform: none; }
  .hero-copy { display: none; }
  .login-footer { padding-inline: 28px; }
}

@media (max-width: 640px) {
  .login-screen { grid-template-rows: 76px minmax(0,1fr) auto; overflow-y: auto; }
  .login-art { background-position: 68% center; }
  .login-header { padding-inline: 20px; }
  .login-header .brand-logo { width: 190px; height: 38px; }
  .login-header .brand { width: 190px; height: 38px; }
  .login-header-actions { gap: 12px; margin-left: 12px; }
  .login-header .text-button { display: none; }
  .outline-button { min-width: 88px; padding: 9px 12px; }
  .login-main { align-items: flex-start; padding: 24px 16px 32px; }
  .login-card { width: 100%; min-height: 0; padding: 34px 26px 36px; border-radius: 22px; }
  .login-card .eyebrow { font-size: 11px; }
  .login-title-wrap h1 { font-size: 32px; }
  .login-tabs { margin-top: 38px; }
  .login-tab { font-size: 16px; }
  .code-field { margin-bottom: 30px; }
  .login-options { margin-bottom: 38px; }
  .login-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 20px; font-size: 12px; }
  .login-footer nav { flex-wrap: wrap; gap: 8px 16px; white-space: normal; }
}

@media (prefers-reduced-transparency: reduce) {
  .login-card { background: #202222; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .login-header, .login-footer { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track i { transition: none; }
  .login-screen button, .login-screen .field { transition: none; }
  .side-nav button > i, .result-card { transition: none; }
  .result-card.is-pending .result-image, .result-drop-placeholder, .toast, .toast.is-leaving { animation: none; }
  .font-skill-form-card .full-button.is-generating, .font-skill-preview-actions button.is-generating { animation: none; box-shadow: 0 0 0 3px rgba(228,182,110,.16); filter: brightness(1.08); }
}

/* Workflow layout overrides kept last to avoid legacy component collisions. */
.modal.task-center-modal { width: min(1080px,94vw); }
.modal.task-center-modal .task-center-card { position: relative; grid-template-columns: 120px minmax(0,1fr) auto; align-items: stretch; gap: 15px; min-height: 146px; padding: 12px; border-radius: 13px; }
.modal.task-center-modal .task-center-card.has-open-menu { min-height: 248px; }
.modal.task-center-modal .task-center-content { display: grid; align-content: start; min-width: 0; }
.modal.task-center-modal .task-center-content p { display: -webkit-box; line-height: 1.55; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.modal.task-center-modal .task-center-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 12px; margin-top: auto; padding-top: 11px; }
.modal.task-center-modal .task-center-actions { position: relative; align-content: flex-start; max-width: none; }

@media (max-width: 760px) {
  .reference-row { grid-template-columns: 1fr; }
  .upload-zone { border-right: 0; border-bottom: 1px solid var(--line); }
  .reference-drop-zone { width: 180px; }
  .reference-suggestions { align-items: flex-start; flex-direction: column; }
  .modal.task-center-modal .task-center-card { grid-template-columns: 92px minmax(0,1fr); }
  .modal.task-center-modal .task-center-thumb { width: 92px; height: 92px; }
  .modal.task-center-modal .task-center-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* AI design workspace: adaptive references and content-first tool grouping. */
.settings-tab-content[hidden] { display: none; }
.settings-tab-content { min-width: 0; }

.reference-row {
  grid-template-columns: minmax(390px, 42%) minmax(0, 1fr);
  min-height: 0;
  overflow: visible;
}
.upload-zone {
  min-width: 0;
  padding: 15px;
  border-right: 1px solid var(--line);
}
.reference-drop-zone {
  position: relative;
  display: grid;
  width: 100%;
  height: 250px;
  min-height: 0;
  margin-top: 12px;
  overflow: hidden;
  place-items: stretch;
  padding: 10px;
  border-style: solid;
  background: rgba(5,9,11,.5);
}
.reference-drop-zone.result-drag-active::after,
.reference-drop-zone.is-importing-result::after {
  content: "松开加入参考图";
  position: absolute;
  inset: 9px;
  z-index: 8;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228,182,110,.62);
  border-radius: 11px;
  background: rgba(7,12,15,.9);
  color: #f1c978;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .02em;
  pointer-events: none;
}
.reference-drop-zone.result-drag-active.is-full::after { content: "已达到 5 张上限"; color: var(--muted); border-color: rgba(255,255,255,.18); }
.reference-drop-zone.is-importing-result::after { content: "正在加入参考图"; }
.upload-preview {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  gap: 8px;
}
.reference-drop-zone[data-count="1"] .upload-preview { grid-template: minmax(0,1fr) / minmax(0,1fr); }
.reference-drop-zone[data-count="2"] .upload-preview { grid-template: minmax(0,1fr) / repeat(2,minmax(0,1fr)); }
.reference-drop-zone[data-count="3"] .upload-preview,
.reference-drop-zone[data-count="4"] .upload-preview { grid-template: repeat(2,minmax(0,1fr)) / repeat(2,minmax(0,1fr)); }
.reference-drop-zone[data-count="5"] .upload-preview { grid-template: repeat(2,minmax(0,1fr)) / repeat(6,minmax(0,1fr)); }
.reference-drop-zone[data-count="5"] .upload-preview-item { grid-column: span 2; }
.reference-drop-zone[data-count="5"] .upload-preview-item:nth-child(-n+2) { grid-column: span 3; }
.upload-preview-item {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: #070b0e;
}
.upload-preview-item[draggable="true"] { cursor: grab; }
.upload-preview-item[draggable="true"]:active { cursor: grabbing; }
.upload-preview-item.is-upload-dragging {
  opacity: .42;
  border-color: rgba(228,182,110,.65);
  transform: scale(.97);
}
.upload-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
  transition: transform .25s ease, filter .25s ease;
}
.upload-preview-item:hover > img { transform: scale(1.018); filter: brightness(.88); }
.upload-preview-item > .manual-pattern-redraw-preview-mask {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform .25s ease;
  pointer-events: none;
}
.upload-preview-item:hover > .manual-pattern-redraw-preview-mask { transform: scale(1.018); }
.manual-pattern-redraw-preview-status {
  position: absolute;
  z-index: 3;
  right: 7px;
  bottom: 7px;
  max-width: calc(100% - 14px);
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(74,221,159,.42);
  border-radius: 6px;
  color: #c9f5df;
  background: rgba(7,29,22,.84);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.upload-preview-actions {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 8px 5px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(2,5,7,.76), transparent 46%);
  transition: opacity .18s ease;
}
.upload-preview-item:hover .upload-preview-actions,
.upload-preview-item:focus-within .upload-preview-actions { opacity: 1; }
.upload-preview-actions button {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  color: #f2f4f4;
  background: rgba(7,12,15,.82);
  box-shadow: 0 5px 16px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.upload-preview-actions button .ti { font-size: 18px; }
.upload-preview-actions button[data-action="clear-manual-pattern-redraw-selection"] {
  color: #bcc5c8;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.upload-preview-actions button[data-action="clear-manual-pattern-redraw-selection"]:hover,
.upload-preview-actions button[data-action="clear-manual-pattern-redraw-selection"]:focus-visible {
  color: #edf2f3;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.3);
}
.upload-preview-actions button[data-action="clear-manual-pattern-redraw-selection"]:active { color: #45cba1; }
.upload-preview-actions button[data-action="clear-manual-pattern-redraw-selection"]:disabled { color: #788286; opacity: .55; }
.manual-selection-clear-icon { display: block; width: 20px; height: 20px; flex: none; }
.upload-preview-actions button:hover,
.upload-preview-actions button:focus-visible {
  color: #f0c983;
  border-color: rgba(228,182,110,.58);
  background: rgba(26,28,25,.94);
  transform: translateY(-2px);
}
.reference-empty {
  position: absolute;
  z-index: 1;
  inset: 0;
  align-content: center;
  pointer-events: none;
}
.reference-add {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  color: #e6e9ea;
  background: rgba(7,12,15,.86);
  box-shadow: 0 8px 24px rgba(0,0,0,.32);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease;
}
.reference-add .ti { font-size: 22px; }
.reference-add:hover,
.reference-add:focus-visible {
  color: #f0c983;
  border-color: rgba(228,182,110,.65);
  background: rgba(29,27,22,.96);
  transform: translateY(-2px);
}
.reference-add.is-disabled {
  opacity: .35;
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
}
.reference-tools {
  display: grid;
  min-width: 0;
  align-content: start;
}
.reference-tools .trace-zone {
  display: grid;
  min-width: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  place-items: stretch;
}
.reference-tools .trace-start-button { width: 100%; min-height: 54px; }
.content-pattern-setting {
  min-width: 0;
  margin: 0;
  padding: 15px 16px 16px;
  border: 0;
  background: transparent;
}
.content-pattern-setting .setting-heading { margin-bottom: 10px; }
.content-pattern-setting .setting-heading h3 { margin: 0; color: #dfe2e3; font-size: 13px; }
.content-pattern-setting .setting-heading button { font-size: 9px; }
.content-pattern-setting .pattern-choice { min-height: 72px; }
.content-pattern-setting .pattern-thumb { width: 46px; height: 31px; }
.reference-suggestions { grid-column: 1 / -1; }
.modal.reference-preview-modal {
  width: min(1480px,calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  padding: 12px;
  border-radius: 14px;
  background: #0b1114;
}
.modal.reference-preview-modal > .eyebrow,
.modal.reference-preview-modal > .modal-close { display: none; }
.modal.reference-preview-modal > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.modal.reference-preview-modal .modal-body { line-height: normal; }
.reference-viewer-shell {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  width: 100%;
  height: min(90dvh,920px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 11px;
  background: #070b0e;
}
.reference-viewer-toolbar {
  z-index: 3;
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(15,22,26,.98);
  scrollbar-width: none;
}
.reference-viewer-toolbar::-webkit-scrollbar { display: none; }
.reference-viewer-toolbar-group { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.reference-viewer-meta { display: grid; flex: 1 1 180px; min-width: 120px; gap: 2px; padding: 0 8px; }
.reference-viewer-meta b { overflow: hidden; color: #e1e5e6; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.reference-viewer-meta small { color: #778187; font-size: 9px; }
.reference-viewer-toolbar button {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c6ccce;
  background: transparent;
  white-space: nowrap;
}
.reference-viewer-toolbar button:hover,
.reference-viewer-toolbar button:focus-visible,
.reference-viewer-toolbar button.is-active {
  color: #f0c983;
  border-color: rgba(228,182,110,.25);
  background: rgba(228,182,110,.075);
}
.reference-viewer-toolbar button:active { transform: translateY(1px); }
.reference-viewer-toolbar button:disabled { opacity: .3; pointer-events: none; }
.reference-viewer-toolbar button .ti { font-size: 16px; }
.reference-viewer-toolbar button span { font-size: 10px; }
.reference-viewer-zoom-tools {
  padding: 0 6px;
  border-right: 1px solid rgba(255,255,255,.07);
  border-left: 1px solid rgba(255,255,255,.07);
}
.reference-viewer-manual-pattern-tools {
  padding: 0 8px;
  border-left: 1px solid rgba(255,255,255,.07);
}
.reference-viewer-toolbar button.reference-viewer-manual-pattern-redraw {
  min-width: 154px;
  border-color: rgba(228,182,110,.46);
  color: #f0c983;
  background: rgba(228,182,110,.09);
  font-weight: 650;
}
.reference-viewer-toolbar button.reference-viewer-manual-pattern-redraw:hover,
.reference-viewer-toolbar button.reference-viewer-manual-pattern-redraw:focus-visible {
  border-color: rgba(228,182,110,.8);
  background: rgba(228,182,110,.15);
}
.reference-viewer-zoom-label { min-width: 52px; color: #e9c480; font: 600 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace; text-align: center; }
.reference-preview-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%,#11181c 0,#090e11 58%,#070b0e 100%);
  cursor: default;
  touch-action: none;
  user-select: none;
}
.reference-preview-stage.is-zoomed { cursor: grab; }
.reference-preview-stage.is-panning { cursor: grabbing; }
.reference-preview-stage .reference-large-preview,
.reference-preview-stage .reference-viewer-selection-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform-origin: center;
  will-change: transform;
  pointer-events: none;
}
.reference-preview-stage .reference-viewer-selection-overlay {
  z-index: 1;
}
.upload-preview-item > .manual-pattern-redraw-preview-mask[hidden],
.reference-preview-stage .reference-viewer-selection-overlay[hidden] {
  display: none;
}

.manual-pattern-redraw-editor {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  width: 100%;
  height: min(90dvh,920px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 11px;
  background: #070b0e;
}
.manual-pattern-redraw-toolbar {
  z-index: 5;
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(15,22,26,.98);
  scrollbar-width: none;
}
.manual-pattern-redraw-toolbar::-webkit-scrollbar { display: none; }
.manual-pattern-redraw-heading {
  flex: 0 0 auto;
  padding: 0 8px 0 2px;
  color: #f1f3f3;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.manual-pattern-redraw-tool-group { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.manual-pattern-redraw-toolbar button {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: #cbd1d3;
  background: rgba(255,255,255,.025);
  white-space: nowrap;
}
.manual-pattern-redraw-toolbar button:hover,
.manual-pattern-redraw-toolbar button:focus-visible,
.manual-pattern-redraw-toolbar button.is-active {
  color: #f0c983;
  border-color: rgba(228,182,110,.38);
  background: rgba(228,182,110,.09);
}
.manual-pattern-redraw-toolbar button:disabled { cursor: default; opacity: .35; }
.manual-pattern-redraw-toolbar button .ti { font-size: 16px; }
.manual-pattern-redraw-toolbar button span { font-size: 10px; }
.manual-pattern-redraw-brush-size {
  display: grid;
  grid-template-columns: auto 92px 28px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  color: #929da2;
  font-size: 10px;
  white-space: nowrap;
}
.manual-pattern-redraw-brush-size input { width: 92px; accent-color: #38cc91; }
.manual-pattern-redraw-brush-size output { color: #8de0ba; font: 600 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace; }
.manual-pattern-redraw-zoom-tools {
  margin-left: auto;
  padding: 0 8px;
  border-right: 1px solid rgba(255,255,255,.07);
  border-left: 1px solid rgba(255,255,255,.07);
}
.manual-pattern-redraw-zoom-label { min-width: 54px; color: #e9c480; font: 600 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace; text-align: center; }
.manual-pattern-redraw-editor-actions .manual-pattern-redraw-confirm {
  min-width: 96px;
  border-color: rgba(57,207,145,.56);
  color: #c9f5df;
  background: rgba(57,207,145,.12);
}
.manual-pattern-redraw-selection-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%,#11181c 0,#090e11 58%,#070b0e 100%);
  cursor: default;
  touch-action: none;
  user-select: none;
}
.manual-pattern-redraw-selection-stage.is-pan-ready,
.manual-pattern-redraw-selection-stage.is-zoomed.is-pan-ready { cursor: grab; }
.manual-pattern-redraw-selection-stage.is-panning { cursor: grabbing; }
.manual-pattern-redraw-source-image,
.manual-pattern-redraw-mask-display,
.manual-pattern-redraw-mask-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  transform-origin: center;
  will-change: transform;
}
.manual-pattern-redraw-source-image { pointer-events: none; }
.manual-pattern-redraw-mask-display { pointer-events: none; }
.manual-pattern-redraw-mask-canvas { cursor: crosshair; opacity: 0; }
.manual-pattern-redraw-brush-cursor { position: absolute; z-index: 5; box-sizing: border-box; border: 1px solid white; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.85); transform: translate(-50%, -50%); pointer-events: none; background: transparent; }
.manual-pattern-redraw-brush-cursor[hidden] { display: none; }
.manual-pattern-redraw-brush-cursor[data-tool="eraser"] { border-style: dashed; }
.manual-pattern-redraw-selection-stage.is-pan-ready .manual-pattern-redraw-mask-canvas,
.manual-pattern-redraw-selection-stage.is-panning .manual-pattern-redraw-mask-canvas { cursor: inherit; }

@media (max-width: 1250px) {
  .reference-row { grid-template-columns: minmax(330px, 48%) minmax(0,1fr); }
  .reference-drop-zone { height: 230px; }
  .content-pattern-setting { padding-inline: 12px; }
  .content-pattern-setting .pattern-group-grid { gap: 5px; }
}

@media (max-width: 760px) {
  .reference-row { grid-template-columns: 1fr; }
  .upload-zone { border-right: 0; border-bottom: 1px solid var(--line); }
  .reference-drop-zone { width: 100%; height: 240px; }
  .reference-tools .trace-zone { border-bottom: 1px solid var(--line); }
  .reference-suggestions { align-items: flex-start; flex-direction: column; }
  .reference-viewer-shell { height: min(88dvh,760px); min-height: 420px; }
  .reference-viewer-toolbar { gap: 5px; padding: 7px 8px; }
  .reference-viewer-toolbar button span { display: none; }
  .reference-viewer-toolbar button.reference-viewer-manual-pattern-redraw { min-width: 42px; }
  .reference-viewer-meta { flex-basis: 120px; min-width: 96px; padding-inline: 4px; }
  .manual-pattern-redraw-editor { height: min(88dvh,760px); min-height: 420px; }
  .manual-pattern-redraw-toolbar { gap: 5px; padding: 7px 8px; }
  .manual-pattern-redraw-toolbar button span,
  .manual-pattern-redraw-brush-size > span { display: none; }
  .manual-pattern-redraw-brush-size { grid-template-columns: 76px 25px; padding-inline: 3px; }
  .manual-pattern-redraw-brush-size input { width: 76px; }
}

/* Compact creation header: square reference canvas and dense text-only layouts. */
.generation-mode-switch { grid-template-columns: repeat(3,minmax(0,1fr)); }
.generation-mode-switch button { min-height: 58px; padding: 9px 7px; }
.generation-mode-switch b { font-size: 10px; white-space: nowrap; }
.generation-mode-switch small { font-size: 8px; }

.reference-row { grid-template-columns: minmax(250px,290px) minmax(0,1fr); }
.upload-zone {
  display: grid;
  min-width: 0;
  align-content: start;
  justify-items: start;
  padding: 14px;
}
.upload-zone .reference-section-heading { width: 100%; }
.reference-drop-zone {
  width: clamp(220px,26vw,260px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 9px;
}
.reference-tools .trace-zone {
  padding: 12px 14px;
  place-items: start;
}
.reference-tools .trace-start-button {
  justify-self: start;
  width: min(230px,100%);
  min-height: 44px;
  padding: 7px 13px;
  border-radius: 10px;
}
.reference-tools .trace-x-mark { width: 25px; height: 25px; border-radius: 7px; font-size: 13px; }
.content-pattern-setting { padding: 12px 14px 14px; }
.content-pattern-setting .setting-heading { margin-bottom: 10px; }
#patternCarousel.pattern-library-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}
#patternCarousel .pattern-group,
#patternCarousel .pattern-group-grid { display: contents; }
#patternCarousel .pattern-group[hidden] { display: none; }
.content-pattern-setting .pattern-group-label,
.content-pattern-setting .pattern-thumb { display: none; }
.content-pattern-setting .pattern-choice {
  display: grid;
  flex: 0 0 88px;
  width: 88px;
  min-width: 88px;
  height: 88px;
  min-height: 88px;
  padding: 10px 7px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #c2c7c9;
  background: #0e161a;
  box-shadow: none;
}
.content-pattern-setting .pattern-choice b {
  color: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}
.content-pattern-setting .pattern-choice:hover {
  color: #e4d3b7;
  border-color: rgba(228,182,110,.42);
  background: #111a1f;
}
.content-pattern-setting .pattern-choice.active {
  color: #edc484;
  border-color: rgba(228,182,110,.82);
  background: rgba(228,182,110,.065);
  box-shadow: inset 0 0 0 1px rgba(228,182,110,.08);
}
.content-pattern-setting .pattern-choice.active::after {
  top: 6px;
  right: 6px;
  width: 15px;
  height: 15px;
  font-size: 9px;
}
.reference-drop-zone[data-count="5"] .upload-preview-actions {
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  padding: 4px;
  background: linear-gradient(to left,rgba(2,5,7,.76),transparent 62%);
}
.reference-drop-zone[data-count="5"] .upload-preview-actions button {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.reference-drop-zone[data-count="5"] .upload-preview-actions button .ti { font-size: 15px; }

@media (max-width: 1250px) {
  .reference-row { grid-template-columns: minmax(240px,270px) minmax(0,1fr); }
  .reference-drop-zone { width: clamp(220px,23vw,240px); height: auto; }
  #patternCarousel { gap: 9px; }
}

@media (max-width: 760px) {
  .generation-mode-switch { grid-template-columns: 1fr; }
  .reference-row { grid-template-columns: 1fr; }
  .reference-drop-zone { width: min(260px,100%); height: auto; }
  #patternCarousel { gap: 8px; }
}

/* X Style Extract: a separate style-only input beside the original reference input. */
.reference-row { grid-template-columns: minmax(490px,560px) minmax(0,1fr); }
.upload-zone { justify-items: stretch; }
.reference-upload-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  width: 100%;
}
.reference-upload-card { min-width: 0; }
.reference-upload-card .reference-drop-zone {
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
}
.reference-upload-card .upload-preview {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.reference-upload-card .upload-preview-item,
.reference-upload-card .upload-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.reference-upload-card .reference-drop-zone { cursor: pointer; }
.reference-upload-card .reference-drop-zone.is-full { cursor: default; }
.reference-upload-card .reference-drop-zone[data-count="1"] .upload-preview {
  grid-template: minmax(0,1fr) / minmax(0,1fr);
}
.reference-upload-card .reference-drop-zone[data-count="1"] .upload-preview-item,
.reference-upload-card .reference-drop-zone[data-count="1"] .upload-preview img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.reference-upload-card .upload-preview-actions {
  z-index: 6;
  gap: 1px;
  padding: 4px 2px;
  opacity: 1;
}
.reference-upload-card .upload-preview-actions button {
  flex-basis: 20px;
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.reference-upload-card .upload-preview-actions button .ti { font-size: 12px; }
.reference-upload-card .upload-preview-actions button .manual-selection-clear-icon { width: 14px; height: 14px; }
.reference-weight-control {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(228, 182, 110, .2);
  border-radius: 8px;
  background: rgba(14, 21, 25, .76);
}
.reference-weight-control[hidden] { display: none; }
.reference-weight-control > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aeb7bc;
  font-size: 11px;
}
.reference-weight-control output { color: #e9bd73; }
.reference-weight-control input { width: 100%; accent-color: #e2ad55; }
.reference-weight-control[data-weight-locked="true"] input { opacity: .55; cursor: not-allowed; }
#uploadPreview .upload-preview-actions { pointer-events: none; }
#uploadPreview .upload-preview-actions button { pointer-events: auto; }
.x-style-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(228,182,110,.58);
  border-radius: 9px;
  color: #e7bb72;
  font: 700 16px/1 "Segoe UI",sans-serif;
}
.x-style-drop-zone[data-status="analyzing"] {
  border-color: rgba(228,182,110,.58);
  background: linear-gradient(135deg,rgba(228,182,110,.075),rgba(5,9,11,.55));
}
.x-style-drop-zone[data-status="analyzing"] .x-style-mark {
  animation: trace-x-breathe 1.1s ease-in-out infinite;
}
.x-style-drop-zone[data-status="ready"] {
  border-color: rgba(125,192,144,.42);
  box-shadow: inset 0 0 0 1px rgba(125,192,144,.06);
}
.x-style-drop-zone[data-status="paused"] {
  border-color: rgba(148,158,163,.3);
  background: rgba(9,14,17,.72);
}
.x-style-drop-zone[data-status="paused"] .x-style-mark {
  border-color: rgba(148,158,163,.34);
  color: #8f999d;
}
.x-style-drop-zone[data-status="error"] { border-color: rgba(213,119,119,.45); }
.x-style-status {
  position: absolute;
  z-index: 5;
  right: 9px;
  bottom: 9px;
  left: 9px;
  overflow: hidden;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: #b8c0c3;
  background: rgba(7,12,15,.9);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  white-space: nowrap;
  backdrop-filter: blur(9px);
}
.x-style-status > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.x-style-status > button {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(228,182,110,.28);
  border-radius: 5px;
  color: #e5bb76;
  background: rgba(228,182,110,.06);
  font-size: 9px;
}
.x-style-drop-zone[data-status="ready"] .x-style-status { color: #99cdaa; border-color: rgba(125,192,144,.28); }
.x-style-drop-zone[data-status="paused"] .x-style-status { color: #aab2b5; border-color: rgba(148,158,163,.22); }
.x-style-drop-zone[data-status="error"] .x-style-status { color: #dc9292; border-color: rgba(213,119,119,.28); }
.x-style-drop-zone[data-status="analyzing"] .reference-add,
.x-style-drop-zone[data-status="paused"] .reference-add { opacity: .35; pointer-events: none; }

@media (max-width: 1250px) {
  .reference-row { grid-template-columns: minmax(450px,500px) minmax(0,1fr); }
}
@media (max-width: 900px) {
  .reference-row { grid-template-columns: 1fr; }
  .upload-zone { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* AI design layout update: keep the existing dark/gold visual language while
   making the three reference entrances and the right-side controls explicit. */
.reference-upload-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.reference-upload-card {
  min-width: 0;
}
.blind-box-upload-card .reference-drop-zone {
  border-color: rgba(233, 177, 83, .34);
  background: linear-gradient(145deg, rgba(34, 29, 21, .8), rgba(10, 16, 20, .95));
}
.blind-box-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border: 1px solid rgba(235, 182, 93, .65);
  border-radius: 10px;
  color: var(--gold, #eab45f);
  font-size: 26px;
}
.pattern-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 420px);
  margin: 0 0 12px;
  color: var(--muted, #91a0ad);
  font-size: 12px;
}
.pattern-select-wrap select,
.blind-box-model-select select {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(223, 173, 88, .38);
  border-radius: 9px;
  background: #121a1f;
  color: #eef2f3;
  padding: 9px 12px;
}
.pattern-select-wrap + .pattern-group { display: none; }
#patternCarousel > .pattern-group { display: none !important; }
.draft-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.draft-model-grid button {
  min-height: 42px;
  border: 1px solid rgba(152, 169, 180, .2);
  border-radius: 8px;
  background: rgba(16, 24, 28, .86);
  color: #aeb8be;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}
.draft-model-grid button.active {
  border-color: #e7b45f;
  background: rgba(132, 92, 38, .24);
  color: #f1c475;
  box-shadow: inset 0 0 0 1px rgba(231, 180, 95, .16);
}
.draft-model-grid button.is-placeholder {
  opacity: .44;
  cursor: not-allowed;
}
.draft-model-grid button small { display: block; margin-top: 3px; color: #69757c; font-size: 9px; }
.blind-box-settings { border-top: 1px solid rgba(255,255,255,.06); padding-top: 14px; }
.blind-box-settings .setting-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.blind-box-settings .setting-heading small { color: #78868e; font-size: 10px; }
.blind-box-slider { display: block; margin: 10px 0; color: #aab6bd; font-size: 11px; }
.blind-box-slider span { display: flex; justify-content: space-between; margin-bottom: 5px; }
.blind-box-slider output { color: #eab45f; font-variant-numeric: tabular-nums; }
.blind-box-slider input { width: 100%; accent-color: #eab45f; }
.blind-box-model-select { display: flex; align-items: center; gap: 8px; color: #aab6bd; font-size: 11px; }
.blind-box-model-select select { padding: 7px 9px; }
#blindBoxAnimation { display: block; width: 100%; height: 150px; margin: 8px 0 4px; overflow: hidden; border-radius: 10px; background: rgba(5,9,11,.58); }
#blindBoxAnimation .xba-root { transform: scale(.72); transform-origin: 50% 70%; }
.blind-box-button {
  width: 100%;
  border: 1px solid #e7b45f;
  border-radius: 9px;
  background: linear-gradient(135deg, #f5c978, #d99b3d);
  color: #17140e;
  padding: 11px 12px;
  font-weight: 700;
  cursor: pointer;
}
.blind-box-button:disabled { opacity: .55; cursor: wait; }
.blind-box-status { min-height: 28px; margin: 8px 0 0; color: #91a0a9; font-size: 11px; line-height: 1.45; }
.generation-mode-setting { display: none; }
.sidebar { overflow-y: auto; overflow-x: hidden; }
.sidebar .api-cost-panel { flex: 0 0 auto; width: 100%; margin: 18px 0 8px; }
.sidebar .api-cost-body { max-height: 330px; }
.sidebar.collapsed .api-cost-panel { display: none; }
.prompt-actions #reverseReferencePrompt { order: -1; min-width: 150px; }
.prompt-actions .trace-zone { display: contents; }
@media (max-width: 1250px) {
  .reference-upload-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .draft-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .reference-upload-grid { grid-template-columns: 1fr; }
  .draft-model-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .reference-upload-grid { grid-template-columns: 1fr; }
  .reference-upload-card .reference-drop-zone { width: min(260px,100%); }
}

/* Confirmed AI design composition: three reference inputs and the blind-box
   controls share the main workbench. Existing controls stay intact and only
   their presentation order changes. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.reference-row {
  grid-template-columns: minmax(610px, 1.55fr) minmax(340px, .8fr);
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.reference-row > .upload-zone {
  grid-column: 1;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.reference-upload-grid { height: 100%; align-items: stretch; }
.reference-upload-card { display: flex; min-width: 0; flex-direction: column; }
.reference-upload-card .reference-section-heading { min-height: 30px; align-items: center; }
.reference-upload-card .reference-drop-zone { flex: 1 1 auto; min-height: 174px; }

.reference-row > .blind-box-settings-main {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  margin: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 82%, rgba(228,182,110,.045), transparent 28%),
    rgba(13,20,24,.72);
}

.blind-box-settings-main .setting-heading { margin-bottom: 14px; }
.blind-box-settings-main .setting-heading h3 { font-size: 15px; }
.blind-box-settings-main .blind-box-slider { margin: 12px 0; }
.blind-box-settings-main .blind-box-model-select { margin-top: 13px; }

.blind-box-model-picker { margin-top: 13px; }
.blind-box-model-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #aab6bd; font-size: 11px; }
.blind-box-model-heading small { color: #6f7c83; font-size: 9px; text-align: right; }
.blind-box-model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 7px; }
.blind-box-model-grid button { min-width: 0; min-height: 38px; padding: 6px 4px; border: 1px solid rgba(152,169,180,.2); border-radius: 8px; color: #aeb8be; background: rgba(16,24,28,.86); font-size: 10px; line-height: 1.15; cursor: pointer; }
.blind-box-model-grid button:hover:not(:disabled) { border-color: rgba(228,182,110,.45); color: #dfc28c; }
.blind-box-model-grid button.active { border-color: #e7b45f; color: #f1c475; background: rgba(132,92,38,.24); box-shadow: inset 0 0 0 1px rgba(231,180,95,.16); }
.blind-box-model-grid button.is-placeholder { opacity: .38; cursor: not-allowed; }
.blind-box-model-grid button small { display: block; margin-top: 3px; color: #69757c; font-size: 8px; }

.blind-box-launch-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 104px;
  align-items: stretch;
  gap: 12px;
  margin-top: 14px;
}

.blind-box-launch-row .blind-box-button {
  min-height: 58px;
  padding: 11px 18px;
  white-space: nowrap;
  transition: filter .18s ease, transform .12s ease, opacity .18s ease;
}

.blind-box-launch-row .blind-box-button:hover:not(:disabled) { filter: brightness(1.06); }
.blind-box-launch-row .blind-box-button:active:not(:disabled) { transform: scale(.985); }
.blind-box-launch-row .blind-box-button:disabled { opacity: .68; cursor: not-allowed; }

#blindBoxAnimation {
  position: relative;
  display: block;
  width: 104px;
  height: 58px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(228,182,110,.18);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 58%, rgba(228,182,110,.075), transparent 44%),
    rgba(5,9,11,.72);
}

#blindBoxAnimation .xba-root {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 430px;
  transform: translate(-50%,-50%) scale(.17);
  transform-origin: 50% 50%;
}

.reference-suggestions { grid-column: 1 / -1; grid-row: 2; }

.prompt-actions [data-testid="pattern-layout"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 142px;
}

.prompt-actions [data-testid="pattern-layout"] .ti { font-size: 13px; }

.pattern-layout-popover {
  position: absolute;
  z-index: 18;
  top: calc(100% + 8px);
  right: 0;
  width: min(600px,100%);
  max-height: min(430px,62vh);
  overflow: auto;
  border: 1px solid rgba(228,182,110,.25);
  border-radius: 11px;
  background: rgba(10,16,20,.985);
  box-shadow: 0 22px 54px rgba(0,0,0,.48);
  backdrop-filter: blur(16px);
}

.pattern-layout-popover[hidden] { display: none; }
.pattern-layout-popover .content-pattern-setting { padding: 14px; }
.pattern-layout-popover #patternCarousel.pattern-library-grid { gap: 8px; }
.pattern-layout-popover .pattern-select-wrap { width: 100%; margin-bottom: 0; }

/* The popover coordinates are calculated from its trigger so browser zoom and wrapping stay aligned. */
.pattern-layout-popover {
  right: auto;
  z-index: 48;
  max-width: calc(100vw - 32px);
}

#canvasSettingsContent { display: flex; min-width: 0; flex-direction: column; }
#canvasSettingsContent[hidden] { display: none; }
#canvasSettingsContent .ratio-setting { order: 1; }
#canvasSettingsContent .model-setting { order: 2; }
#canvasSettingsContent .quantity-setting { order: 3; }
#canvasSettingsContent #generateButton { order: 4; }
#canvasSettingsContent .generation-output-controls { order: 5; }
#canvasSettingsContent #apiCostPanel { order: 6; }

.results-section .result-grid:empty::before { display: grid; min-height: 190px; place-items: center; }

@media (max-width: 1500px) {
  .reference-row { grid-template-columns: minmax(540px,1.45fr) minmax(300px,.8fr); }
  .reference-row > .blind-box-settings-main { margin-left: 11px; padding-inline: 13px; }
  .blind-box-launch-row { grid-template-columns: minmax(0,1fr) 88px; gap: 8px; }
  #blindBoxAnimation { width: 88px; }
}

@media (max-width: 1180px) {
  .reference-row { grid-template-columns: 1fr; }
  .reference-row > .upload-zone { grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .reference-row > .blind-box-settings-main { grid-column: 1; grid-row: 2; margin: 12px 14px; }
  .reference-suggestions { grid-row: 3; }
}

@media (max-width: 760px) {
  .reference-upload-grid { grid-template-columns: 1fr; }
  .reference-upload-card .reference-drop-zone { min-height: 220px; }
  .blind-box-launch-row { grid-template-columns: minmax(0,1fr) 92px; }
  #blindBoxAnimation { width: 92px; }
}

/* Confirmed AI design composition: three reference inputs and the blind-box
   controls share the main workbench. Existing controls stay intact and only
   their presentation order changes. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.reference-row {
  grid-template-columns: minmax(610px, 1.55fr) minmax(340px, .8fr);
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.reference-row > .upload-zone {
  grid-column: 1;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.reference-upload-grid {
  height: 100%;
  align-items: stretch;
}

.reference-upload-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.reference-upload-card .reference-section-heading {
  flex: 0 0 30px;
  height: 30px;
  min-height: 30px;
  align-items: center;
  overflow: hidden;
}

.reference-upload-card .reference-section-heading h2,
.reference-upload-card .reference-section-heading small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-upload-card .reference-drop-zone {
  flex: 1 1 auto;
  min-height: 174px;
}

.reference-row > .blind-box-settings-main {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  min-width: 0;
  margin: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 82%, rgba(228,182,110,.045), transparent 28%),
    rgba(13,20,24,.72);
}

.blind-box-settings-main .setting-heading { margin-bottom: 14px; }
.blind-box-settings-main .setting-heading h3 { font-size: 15px; }
.blind-box-settings-main .blind-box-slider { margin: 12px 0; }
.blind-box-settings-main .blind-box-model-select { margin-top: 13px; }

.blind-box-launch-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 104px;
  align-items: stretch;
  gap: 12px;
  margin-top: 14px;
}

.blind-box-launch-row .blind-box-button {
  min-height: 58px;
  padding: 11px 18px;
  white-space: nowrap;
  transition: filter .18s ease, transform .12s ease, opacity .18s ease;
}

.blind-box-launch-row .blind-box-button:hover:not(:disabled) { filter: brightness(1.06); }
.blind-box-launch-row .blind-box-button:active:not(:disabled) { transform: scale(.985); }

#blindBoxAnimation {
  position: relative;
  display: block;
  width: 104px;
  height: 58px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(228,182,110,.18);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 58%, rgba(228,182,110,.075), transparent 44%),
    rgba(5,9,11,.72);
}

#blindBoxAnimation .xba-root {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 430px;
  transform: translate(-50%,-50%) scale(.17);
  transform-origin: 50% 50%;
}

.reference-suggestions {
  grid-column: 1 / -1;
  grid-row: 2;
}

.prompt-actions [data-testid="pattern-layout"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 142px;
}

.prompt-actions [data-testid="pattern-layout"] .ti { font-size: 13px; }

.pattern-layout-popover {
  position: absolute;
  z-index: 18;
  top: calc(100% + 8px);
  right: 0;
  width: min(600px,100%);
  max-height: min(430px,62vh);
  overflow: auto;
  border: 1px solid rgba(228,182,110,.25);
  border-radius: 11px;
  background: rgba(10,16,20,.985);
  box-shadow: 0 22px 54px rgba(0,0,0,.48);
  backdrop-filter: blur(16px);
}

.pattern-layout-popover[hidden] { display: none; }
.pattern-layout-popover .content-pattern-setting { padding: 14px; }
.pattern-layout-popover #patternCarousel.pattern-library-grid { gap: 8px; }
.pattern-layout-popover .pattern-select-wrap { width: 100%; margin-bottom: 0; }

#canvasSettingsContent {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

#canvasSettingsContent[hidden] { display: none; }
#canvasSettingsContent .ratio-setting { order: 1; }
#canvasSettingsContent .model-setting { order: 2; }
#canvasSettingsContent .quantity-setting { order: 3; }
#canvasSettingsContent #generateButton { order: 4; }
#canvasSettingsContent .generation-output-controls { order: 5; }
#canvasSettingsContent #apiCostPanel { order: 6; }

.results-section .result-grid:empty::before {
  display: grid;
  min-height: 190px;
  place-items: center;
}

@media (max-width: 1500px) {
  .reference-row { grid-template-columns: 1fr; }
  .reference-row > .upload-zone { grid-column: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .reference-row > .blind-box-settings-main { grid-column: 1; grid-row: 2; margin: 12px 14px; }
  .reference-suggestions { grid-row: 3; }
}

@media (max-width: 1180px) {
  .blind-box-launch-row { grid-template-columns: minmax(0,1fr) 92px; gap: 8px; }
  #blindBoxAnimation { width: 92px; }
}

@media (max-width: 760px) {
  .reference-upload-grid { grid-template-columns: 1fr; }
  .reference-upload-card .reference-drop-zone { min-height: 220px; }
  .blind-box-launch-row { grid-template-columns: minmax(0,1fr) 92px; }
  #blindBoxAnimation { width: 92px; }
}
/* TEST virtual points: visual only, kept separate from the API cost audit panel. */
.draft-model-grid button small,
.blind-box-model-grid button small {
  display: block;
  margin-top: 4px;
  color: #879095;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.draft-model-grid button.active small,
.blind-box-model-grid button.active small { color: #d7b36f; }

button[data-points-label]::after {
  content: attr(data-points-label);
  display: block;
  margin-top: 3px;
  color: #8f999f;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

button[data-points-label].active::after,
button[data-points-label].is-running::after { color: #d7b36f; }

.points-estimate-hint {
  margin: 8px 2px 0;
  color: #9da6aa;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

#generationPointsEstimate,
#blindBoxPointsHint { color: #c9aa6b; }

.api-cost-toolbar .points-reset-button { color: #d8ad5d; }

.modal.points-center-modal {
  width: min(900px, calc(100vw - 40px));
  max-width: 900px;
}

.modal.points-center-modal:has(#formalPointsHistory:not([hidden])) .modal-body {
  max-height: calc(100dvh - 180px);
  overflow-y: auto;
}

.points-center-shell { display: grid; gap: 22px; }

.points-balance-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(219, 172, 83, .22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(219, 172, 83, .09), rgba(12, 18, 21, .2));
}

.points-balance-card span { color: #9da6aa; font-size: 12px; }
.points-balance-card strong { display: block; margin-top: 6px; color: #f2c36e; font-size: 32px; line-height: 1; }
.points-balance-card small { color: #7f898e; }

.points-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.points-ledger-head h3 { margin: 0; font-size: 16px; }
.points-ledger-filter {
  min-width: 124px;
  padding: 8px 32px 8px 12px;
  border: 1px solid #303b40;
  border-radius: 9px;
  background: #0d1417;
  color: #dce3e6;
}

.points-ledger-table-wrap {
  overflow: auto;
  max-height: 430px;
  border: 1px solid #263136;
  border-radius: 12px;
}

.points-ledger-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.points-ledger-table th,
.points-ledger-table td { padding: 13px 15px; border-bottom: 1px solid #222d31; text-align: left; font-size: 12px; }
.points-ledger-table th { position: sticky; top: 0; z-index: 1; background: #11191d; color: #869196; font-weight: 600; }
.points-ledger-table td { color: #c7ced1; }
.points-ledger-table tr:last-child td { border-bottom: 0; }
.points-change.is-credit { color: #e8bb64; font-weight: 700; }
.points-change.is-debit { color: #d7dde0; font-weight: 700; }
.points-ledger-empty { padding: 48px 20px; color: #8c969a; text-align: center; }
.points-ledger-empty strong { display: block; margin-bottom: 8px; color: #cbd2d5; }
.points-ledger-note { margin: 0; color: #727d82; font-size: 11px; }

@media (max-width: 720px) {
  .points-balance-card { align-items: flex-start; flex-direction: column; }
  .points-ledger-head { align-items: stretch; flex-direction: column; }
  .points-ledger-filter { width: 100%; }
}

/* PAINTING SKILL V1: compact, reversible visual layer beside existing creation inputs. */
.painting-skill-upload-card .reference-drop-zone { position: relative; }
.painting-skill-source-zone.is-ready { border-color: rgba(228,182,110,.52); background: linear-gradient(135deg,rgba(228,182,110,.07),rgba(11,18,22,.72)); }
.painting-skill-source-zone.is-building { border-color: rgba(228,182,110,.7); }
.painting-skill-source-zone.is-building::after { content: "正在提取绘画语言…"; position: absolute; right: 10px; bottom: 9px; color: #efc77f; font-size: 10px; animation: painting-skill-breathe 1.2s ease-in-out infinite; }
.painting-skill-source-zone[data-count="1"] { padding: 0; }
.painting-skill-source-zone[data-count="1"] .upload-preview { gap: 0; }
.painting-skill-source-zone .upload-preview-item { width: 100%; height: 100%; }
.painting-skill-source-zone[data-count="1"] .upload-preview-item { border: 0; border-radius: inherit; }
.painting-skill-source-zone .upload-preview-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: filter .16s ease, box-shadow .16s ease; }
.painting-skill-source-zone .upload-preview-item img:hover, .painting-skill-source-zone .upload-preview-item img:focus-visible { outline: 0; filter: brightness(1.035); box-shadow: inset 0 0 0 1px rgba(228,182,110,.55); }
.painting-skill-build-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.painting-skill-build-actions .outline-button { flex: 1; min-height: 34px; }
.painting-skill-build-actions button:not(.outline-button) { min-height: 34px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: #cbd3d5; background: transparent; }
.painting-skill-active-state { display: flex; align-items: center; gap: 9px; min-width: 0; margin-top: 10px; padding: 8px; border: 1px solid rgba(125,192,144,.28); border-radius: 9px; background: rgba(89,147,112,.07); }
.painting-skill-active-state img { width: 34px; height: 34px; flex: 0 0 auto; object-fit: cover; border-radius: 6px; cursor: zoom-in; transition: filter .16s ease, box-shadow .16s ease; }
.painting-skill-active-state img:hover, .painting-skill-active-state img:focus-visible { outline: 0; filter: brightness(1.06); box-shadow: 0 0 0 1px rgba(228,182,110,.58); }
.painting-skill-active-state span { display: grid; min-width: 0; gap: 2px; }
.painting-skill-active-state b { overflow: hidden; color: #dce5e2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.painting-skill-active-state small { color: #86c5a0; font-size: 10px; }
.painting-skill-active-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; margin-left: auto; }
.painting-skill-active-actions button { padding: 4px 6px; border: 0; color: #c9d2d4; background: transparent; font-size: 10px; }
.painting-skill-active-actions button:hover, .painting-skill-active-actions button:focus-visible { color: #efc77f; }
@keyframes painting-skill-breathe { 50% { opacity: .45; } }

.my-skills-painting-grid { display: grid; gap: 9px; margin-top: 16px; }
.my-skills-painting-card { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 84px; padding: 9px; border: 1px solid rgba(190,207,214,.14); border-radius: 10px; background: rgba(8,15,19,.46); }
.my-skills-painting-card:hover { border-color: rgba(228,182,110,.3); }
.my-skills-painting-cover { width: 68px; height: 62px; overflow: hidden; border: 1px solid rgba(228,182,110,.17); border-radius: 8px; background: rgba(228,182,110,.04); }
.my-skills-painting-cover img { width: 100%; height: 100%; object-fit: cover; }
.my-skills-painting-info { display: grid; min-width: 0; gap: 4px; }
.my-skills-painting-info h3 { margin: 0; overflow: hidden; color: #e4e9ea; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.my-skills-painting-info small { overflow: hidden; color: #8f9a9f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.my-skills-painting-info .is-active { color: #84c69f; }
.painting-skill-card-tags { display: flex; min-width: 0; flex-wrap: wrap; gap: 4px; }
.painting-skill-card-tags span { display: inline-flex; max-width: 120px; min-height: 20px; align-items: center; padding: 0 7px; overflow: hidden; border: 1px solid rgba(228,182,110,.25); border-radius: 7px; color: #d8b778; background: rgba(228,182,110,.06); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.painting-skill-card-tags span.is-empty { border-color: rgba(190,207,214,.14); color: #7f8b90; background: transparent; }
.painting-skill-empty { padding: 42px 18px; border: 1px dashed rgba(190,207,214,.18); border-radius: 10px; color: #8d989c; text-align: center; }
.painting-skill-empty b { display: block; margin-bottom: 6px; color: #d4dcde; }
.painting-skill-detail { display: grid; gap: 14px; }
.painting-skill-detail > img { width: 100%; max-height: 310px; object-fit: contain; border: 1px solid rgba(228,182,110,.2); border-radius: 10px; background: #0a1013; }
.painting-skill-detail dl { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 8px 12px; margin: 0; font-size: 12px; }
.painting-skill-detail dt { color: #879398; }
.painting-skill-detail dd { margin: 0; color: #d4dcde; line-height: 1.55; }
.painting-skill-detail ul { margin: 0; padding-left: 18px; }

@media (max-width: 900px) {
  .my-skills-painting-card { grid-template-columns: 62px minmax(0,1fr); }
  .my-skills-painting-cover { width: 62px; height: 56px; }
  .my-skills-painting-card .my-skills-card-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .personal-style-menu .personal-style-picker-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
.draft-model-grid button:disabled:not(.is-placeholder) { cursor: not-allowed; color: #5f6a70; border-color: rgba(152,169,180,.09); background: rgba(9,15,18,.55); opacity: .62; }
@media (max-width: 520px) {
  .painting-skill-picker-backdrop { align-items: center; padding: 10px; }
  .painting-skill-menu { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 28px 18px 18px; border-radius: 16px; }
  .painting-skill-picker-close { top: 10px; right: 10px; width: 34px; height: 34px; }
  .painting-skill-picker-brand { margin-bottom: 14px; font-size: 11px; }
  .painting-skill-menu > h2 { padding-right: 38px; font-size: 28px; }
  .painting-skill-picker-intro { margin: 12px 0 4px; font-size: 14px; }
  .painting-skill-picker-section { padding: 17px 0; }
  .painting-skill-chip-row .xfont-category-tag { min-height: 36px; padding-inline: 13px; }
  .painting-skill-picker-list { padding-right: 3px; }
  .painting-skill-picker-option { grid-template-columns: 54px minmax(0,1fr) auto; gap: 10px; padding: 9px 10px; }
  .painting-skill-picker-cover { width: 54px; height: 54px; }
  .painting-skill-picker-meta strong { font-size: 13px; }
  .painting-skill-picker-meta small { font-size: 10px; }
  .painting-skill-picker-footer { gap: 10px; }
  .painting-skill-picker-footer > button { min-height: 46px; padding-inline: 10px; font-size: 14px; }
  .xfont-picker-title-row { align-items: start; gap: 12px; padding-right: 38px; }
  .xfont-picker-title-row h2 { font-size: 25px; }
  .xfont-picker-title-row > span { padding-top: 5px; font-size: 10px; }
  .xfont-picker-modal-section { gap: 11px; padding: 15px 0; }
  .xfont-picker-modal-section > header { font-size: 15px; }
  .xfont-picker-current { grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; padding: 8px 9px; }
  .xfont-menu .xfont-picker-current .xfont-picker-preview { width: 48px; height: 48px; }
  .xfont-menu .xfont-picker-categories > .xfont-category-tag, .xfont-menu .xfont-picker-category-more-toggle { min-height: 36px; padding-inline: 12px; font-size: 12px; }
  .xfont-menu .xfont-picker-option { grid-template-columns: 54px minmax(0,1fr) auto; gap: 10px; padding: 9px 10px; }
  .xfont-menu .xfont-picker-preview { width: 54px; height: 54px; }
  .xfont-menu .xfont-picker-meta b { font-size: 13px; }
  .xfont-menu .xfont-picker-meta small { font-size: 10px; }
  .personal-style-picker-section { gap: 11px; padding: 15px 0; }
  .personal-style-picker-section > header { font-size: 15px; }
  .personal-style-tag { min-height: 36px; padding-inline: 12px; font-size: 12px; }
  .personal-style-option { grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 11px 12px; }
  .personal-style-option b { font-size: 13px; }
  .personal-style-option small { font-size: 10px; }
  .personal-style-option em { font-size: 20px; }
  .personal-style-picker-footer { gap: 10px; }
  .personal-style-picker-footer > button { min-height: 46px; padding-inline: 12px; font-size: 14px; }
  .painting-skill-menu.personal-style-menu { width: min(calc(100vw - 20px),calc(100dvh - 20px)); height: min(calc(100vw - 20px),calc(100dvh - 20px)); }
  .personal-style-menu .personal-style-picker-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .personal-style-menu .personal-style-option { min-height: 78px; padding: 11px 12px; }
  .personal-style-menu .personal-style-option:not(.is-disabled) { min-height: 78px; padding: 11px 10px; }
  .personal-style-menu .personal-style-option.is-disabled { min-height: 60px; }
}

/* One-shot Painting Skill training, scoped to its existing card. */
.painting-training-help { color: #aebbbb; font-size: 12px; line-height: 1.6; margin: 10px 0 6px; }
#paintingSkillSourceZone:not([data-count="0"]) .upload-preview { display: grid; grid-template: none / repeat(3, minmax(0, 1fr)); grid-auto-rows: min-content; gap: 6px; padding: 8px; align-content: start; height: 100%; overflow: auto; }
#paintingSkillSourceZone .upload-preview-item { grid-column: auto; width: 100%; height: auto; aspect-ratio: 1; min-width: 0; border-radius: 8px; overflow: hidden; }
#paintingSkillSourceZone .upload-preview-item img { object-fit: contain; }
#paintingSkillSourceZone .upload-preview-actions { display: flex; flex-direction: row; inset: auto 0 0; height: 30px; align-items: center; padding: 3px; gap: 3px; background: rgba(7,12,15,.7); }
#paintingSkillSourceZone .upload-preview-actions button { flex: 0 1 auto; width: auto; height: 24px; min-width: 30px; font-size: 11px; padding: 3px 5px; white-space: nowrap; }
#paintingSkillTrainingCount { display: block; color: #bfc9c9; margin-bottom: 8px; }
.image-model-quality-popover{position:fixed;z-index:10000;display:flex;gap:4px;padding:6px;border:1px solid #b59a5d;border-radius:9px;background:#191919;box-shadow:0 6px 24px #0005}.image-model-quality-popover button{padding:8px 12px;border:0;border-radius:5px;background:transparent;color:#eee;font-family:inherit;font-weight:600;font-size:12px;line-height:1.2;cursor:pointer}.image-model-quality-popover button.active{color:#17130a;background:#d8b76b}

/* Temporary product locks: original entries remain in their existing positions. */
.is-feature-locked,
.is-feature-locked:hover { opacity: .6; cursor: default; }
.is-feature-locked::after,
button.is-feature-locked[data-points-label]::after {
  content: "即将开放";
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  border: 1px solid rgba(191, 161, 100, .22);
  border-radius: 4px;
  color: #bda477;
  background: #24231f;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}
.painting-skill-upload-card.is-feature-locked > :not(.reference-section-heading) { display: none !important; }
.painting-skill-upload-card.is-feature-locked::after {
  display: grid; place-items: center; min-height: 260px;
  margin: 0; font-size: 13px; background: #151918;
}
