:root {
  color-scheme: dark;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #f5f2f9;
  background: #121219;
  --surface: #1a1923;
  --inset: #15151e;
  --line: #302d3d;
  --muted: #ada9bb;
  --accent: #df91ff;
  --picker: #201d2b;
  --picker-active: #372845;
  --scroll-thumb: #645872;
  --checker: #383243;
  --sidebar: 216px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
html, textarea, .dialog { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 4; top: 8px; left: 8px; background: var(--surface); padding: 12px; }
.rail { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); padding: 25px 15px 17px; background: #16151e; border-right: 1px solid #282633; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 10px; width: max-content; font-family: "Geist", "Inter", sans-serif; font-weight: 750; font-size: 22px; line-height: 1; letter-spacing: -.6px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #291136; background: linear-gradient(145deg, #f4a8fc, #b176ff); font-size: 22px; box-shadow: 0 4px 18px #be64f73c; flex: none; }
.brand-sub { display: block; color: #aaa3b7; margin-top: 6px; font-size: 8px; letter-spacing: 2px; }
.rail-main { margin-top: 53px; }
.nav-caption { margin: 0 12px 11px; color: #a29baf; font-size: 11px; letter-spacing: .12em; }
.nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; min-height: 46px; border: 1px solid transparent; border-radius: 9px; color: #bcb5cb; font-size: 13px; font-weight: 600; }
.nav-link span { display: inline-grid; width: 18px; place-items: center; font-size: 18px; line-height: 1; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #f0c8ff; background: #2b2039; border-color: #392a4b; }
.rail-bottom { margin-top: auto; padding-top: 13px; border-top: 1px solid #2a2736; }
.account-chip { display: flex; align-items: center; text-align: left; gap: 9px; width: 100%; padding: 8px 6px; background: transparent; border: 0; border-radius: 8px; }
.account-chip:hover { background: #252030; }
.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid #453352; color: var(--accent); background: #292137; }
.account-chip strong, .account-chip small { display: block; max-width: 105px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.account-chip strong { font-size: 12px; }
.account-chip small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.account-arrow { margin-left: auto; color: var(--muted); }
.shell { margin-left: var(--sidebar); }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 65px; padding: 0 clamp(22px, 4vw, 60px); border-bottom: 1px solid #292632; background: #15141d; }
.breadcrumbs { display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: #b0a9bf; }
.breadcrumbs strong { color: #eee9f6; font-weight: 600; }
.content { width: min(100%, 1345px); padding: 29px clamp(22px, 4vw, 60px) 52px; margin: auto; }
.hero { position: relative; display: flex; align-items: center; min-height: 245px; overflow: hidden; isolation: isolate; border: 1px solid #5b3b52; border-radius: 17px; background: #432334; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: url("/images/dunes.webp") center 56% / cover no-repeat; filter: saturate(.88) hue-rotate(-15deg); }
.hero::after { background: linear-gradient(90deg, #24162bf5 0%, #321828dc 29%, #45213974 57%, #8d284627 100%), linear-gradient(0deg, #3d193987, transparent 55%); }
.hero-copy { padding: 31px clamp(23px, 4vw, 52px) 37px; }
.hero-kicker { margin-bottom: 13px; color: #f2bee9; display: flex; align-items: center; gap: 7px; font-weight: 650; font-size: 12px; letter-spacing: .17em; }
.hero-kicker span { color: #f3adfc; font-size: 15px; }
.hero h1 { font-size: clamp(35px, 4.05vw, 62px); line-height: 1.17; letter-spacing: -.055em; font-weight: 800; }
.hero h1 span { color: #f4c6f2; }
.hero-description { margin-top: 15px; color: #efdae9; font-size: 14px; }
.mobile-break { display: none; }
.composer { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.composer:focus-within { border-color: var(--scroll-thumb); }
.field-heading, .composer-toolbar, .section-title, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-heading { margin-bottom: 9px; font-size: 14px; font-weight: 650; }
.field-icon { color: var(--accent); margin-right: 3px; font-size: 17px; }
#prompt-count { color: var(--muted); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }
textarea, input, select { color: inherit; background: var(--inset); border: 1px solid var(--line); border-radius: 8px; }
textarea, input:not([type="checkbox"]), .stack select { width: 100%; padding: 10px 12px; }
textarea { display: block; resize: vertical; line-height: 1.6; }
textarea::placeholder, input::placeholder { color: #a7a0b5; }
#prompt { min-height: 80px; max-height: min(36vh, 19rem); field-sizing: content; resize: none; overflow-y: auto; border: 0; background: transparent; padding: 8px 2px; }
#prompt:focus-visible { outline: 0; }
.composer-toolbar { margin-top: 10px; padding-top: 9px; align-items: center; border-top: 1px solid var(--line); }
.composer-tools, .attachment-list, .history-tools, .admin-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.composer-tools .composer-tool { min-height: 34px; padding: 5px 8px; color: var(--muted); background: transparent; }
.composer-tools .composer-tool:hover { color: var(--accent); background: var(--picker-active); }
.composer-model { min-width: 0; max-width: 100%; }
.composer-model select { max-width: min(260px, 72vw); padding-inline: 10px; min-height: 34px; font-size: 12px; border-radius: 16px; }
.output-settings { margin-top: 8px; }
.output-settings summary { width: fit-content; max-width: 100%; cursor: pointer; color: var(--muted); font-size: 12px; line-height: 1.6; }
.output-settings summary span { margin-inline-start: 5px; color: var(--muted); }
.output-fields { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; padding: 8px 0 2px; }
.compression-field { max-width: 136px; }
.attachment-list { list-style: none; padding: 0; margin: 8px 0 0; }
.attachment-item { display: flex; align-items: center; gap: 8px; max-width: min(100%, 370px); min-width: 0; padding: 5px 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--inset); }
.attachment-thumb, .attachment-doc { flex: none; width: 30px; height: 30px; border-radius: 5px; }
.attachment-thumb { object-fit: contain; background: var(--picker-active); }
.attachment-doc { display: grid; place-items: center; background: var(--picker-active); color: var(--accent); }
.attachment-info { min-width: 0; font-size: 12px; }
.attachment-info a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-info a:hover { text-decoration: underline; }
.attachment-info small { color: var(--muted); font-size: 10px; }
.attachment-item select { flex: none; min-block-size: 30px; padding: 3px 6px; font-size: 11px; }
.attachment-remove { flex: none; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; }
.attachment-remove:hover { background: var(--picker-active); color: var(--accent); }
.composer-actions, .detail-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 8px 14px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .18s, border-color .18s, box-shadow .18s; }
.button-primary { background: linear-gradient(110deg, #efacff, #c083fa); color: #261034; border-color: #eeafff; }
.button-primary:hover:not(:disabled) { box-shadow: 0 0 19px #dc8dff55; background: linear-gradient(110deg, #f3befd, #d6a0ff); }
.button-secondary { background: #252130; border-color: #3a3247; color: #eee7f7; }
.button-secondary:hover:not(:disabled) { background: #30263f; border-color: #654e7f; }
.top-action { min-height: 34px; padding: 5px 11px; }
.top-actions, .model-actions { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.composer-toolbar { flex-wrap: wrap; }
.composer-actions { margin-left: auto; }
.image-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; min-width: 0; }
.image-field { display: grid; align-content: start; gap: 5px; min-width: 0; font-size: 12px; }
.image-field > span { font-size: 11px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.image-field select { max-width: 190px; padding-inline: 9px; text-overflow: ellipsis; }
.image-field input { min-width: 0; }
.custom-size { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex-basis: 100%; max-width: 340px; }
.custom-size p { grid-column: 1 / -1; font-size: 11px; }
.model-defaults-group { min-width: 0; margin: 0; padding: 9px 10px 10px; border: 1px solid var(--line); border-radius: 8px; }
.model-defaults-group legend { padding-inline: 4px; color: var(--muted); font-size: 12px; }
.image-fields-admin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.image-fields-admin .image-field select { max-width: none; }
.image-fields-admin .custom-size { grid-column: 1 / -1; max-width: none; }
select { min-block-size: 38px; padding-block: 7px; line-height: 1.4; transition: border-color .15s ease-out; }
select:hover { border-color: var(--scroll-thumb); }
select:focus-visible { outline-offset: 2px; }
@supports (appearance: base-select) {
  select, select::picker(select) { appearance: base-select; }
  select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  select:open { border-color: var(--scroll-thumb); }
  select::picker(select) {
    margin-block: 5px;
    padding: 4px;
    max-height: min(20rem, 60dvh);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
    color: inherit;
    background: var(--picker);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 9px 22px #21102a28;
    opacity: 0;
    scale: .985;
    pointer-events: none;
    transition: opacity .14s ease-out, scale .16s ease-out, display .16s allow-discrete, overlay .16s allow-discrete;
  }
  select:open::picker(select) {
    opacity: 1;
    scale: 1;
    pointer-events: auto;
  }
  @starting-style {
    select:open::picker(select) { opacity: 0; scale: .985; }
  }
  select::picker-icon {
    content: "";
    flex: none;
    align-self: center;
    inline-size: 7px;
    block-size: 7px;
    margin-inline: auto 2px;
    border-inline-end: 1.5px solid currentColor;
    border-block-end: 1.5px solid currentColor;
    color: var(--muted);
    rotate: 45deg;
    transition: rotate .16s ease-out;
  }
  select:open::picker-icon { rotate: 225deg; }
  select > option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-block-size: 34px;
    padding: 6px 9px;
    line-height: 1.4;
    border-radius: 5px;
    background: transparent;
    transition: background-color .1s ease-out;
  }
  select > option::checkmark {
    order: 1;
    margin-inline-start: auto;
    color: var(--accent);
    line-height: 1;
  }
  select > option:is(:checked, :hover, :focus-visible) { background: var(--picker-active); }
  select > option:disabled { opacity: .5; }
  @media (prefers-reduced-motion: reduce) {
    select::picker(select), select::picker-icon { transition: none; }
  }
}
.optimize > span:first-child { color: var(--accent); }
.generate-arrow { padding-left: 7px; }
option { color: inherit; background: var(--picker); }
.notice { padding: 10px 13px; margin-top: 12px; border-radius: 8px; color: #ead5fc; background: #30243d; font-size: 13px; line-height: 1.5; }
.notice[data-kind="error"] { color: #ffd2db; background: #3e2432; }
.notice[data-kind="success"] { color: #c3f4d7; background: #203830; }
.notice[data-kind="warning"] { color: #ffe4ab; background: #3c3020; }
.composer .composer-feedback { margin-top: 7px; padding: 4px 7px; font-size: 12px; }
.section-block { margin-top: 29px; }
.section-title { margin-bottom: 13px; }
.section-title h2 { font-size: 21px; letter-spacing: -.035em; }
.section-title p, .page-title p, .muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
.section-title p { margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.inspiration-card { position: relative; isolation: isolate; padding: 0; overflow: hidden; text-align: left; border: 1px solid #3b3145; border-radius: 12px; background: #292036; }
.inspiration-card img { display: block; width: 100%; height: auto; aspect-ratio: 1.74; object-fit: cover; transition: transform .23s; }
.inspiration-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #100c19f3 0%, #13091d1a 67%); }
.inspiration-card:hover img { transform: scale(1.045); }
.inspiration-card:nth-child(2) img { object-position: center 52%; filter: saturate(1.22); }
.inspiration-card:nth-child(3) img { object-position: center 47%; }
.inspiration-copy { position: absolute; inset: auto 13px 12px; z-index: 1; display: flex; gap: 8px; justify-content: space-between; align-items: end; }
.inspiration-copy strong, .inspiration-copy small { display: block; }
.inspiration-copy strong { font-size: 15px; }
.inspiration-copy small { margin-top: 4px; color: #e1d4e8; font-size: 10px; }
.card-arrow { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #2c203baf; border: 1px solid #eee2fc65; font-size: 14px; }
.text-link { color: var(--accent); font-size: 13px; }
.text-link:hover { text-decoration: underline; }
.page-title { margin: 6px 0 23px; }
.page-title h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 6px; }
.history-list { margin-top: 15px; }
.history-tools { color: var(--muted); font-size: 13px; }
.history-tools input[type="date"] { width: auto; min-height: 36px; padding: 5px 9px; }
.history-card, .panel, .result-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.history-picture { display: block; border: 0; padding: 0; width: 100%; background: #21192d; }
.history-picture img { display: block; width: 100%; height: auto; aspect-ratio: 1.35; object-fit: contain; }
.history-picture:hover img { opacity: .87; }
.history-copy, .panel, .result-copy { padding: 15px; }
.history-copy h2 { font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-bottom: 6px; }
.history-copy .muted { margin-bottom: 10px; }
.more { margin-top: 15px; }
.result-card { display: grid; grid-template-columns: minmax(160px, 2fr) 3fr; }
.result-card .history-picture img { max-height: 280px; object-fit: contain; }
.result-copy { align-self: center; overflow-wrap: anywhere; }
.result-copy p { margin: 8px 0 12px; }
.edit-source { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; font-size: 13px; color: #e9d8f8; }
.edit-source img { width: 47px; height: 39px; border-radius: 7px; object-fit: contain; background: var(--picker-active); }
.edit-source .button { min-height: 30px; padding: 3px 9px; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
#view-admin .notice { margin-bottom: 10px; }
.tab { border: 1px solid var(--line); padding: 8px 13px; background: var(--surface); border-radius: 8px; font-size: 13px; }
.tab[aria-pressed="true"] { background: #332347; border-color: #694982; color: #f1ceff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { text-align: left; padding: 9px 13px; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-weight: 600; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.model-panel .section-title { flex-wrap: wrap; margin-bottom: 7px; }
.model-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-top: 10px; padding: 11px 0 0; border-top: 1px solid var(--line); }
.model-summary { min-width: 0; overflow-wrap: anywhere; }
.model-summary > strong { font-size: 14px; }
.model-summary p { margin-top: 4px; }
.default-model, .pending-model { display: inline-block; margin-left: 5px; font-size: 11px; }
.default-model { color: var(--accent); }
.pending-model { color: var(--muted); }
.model-actions .button { min-height: 34px; padding: 6px 10px; }
.panel h2 { font-size: 18px; margin-bottom: 5px; }
.panel > .stack { margin-top: 14px; }
.stack { display: grid; gap: 12px; }
.stack label:not(.check) { display: grid; align-content: start; gap: 6px; font-weight: 600; font-size: 13px; }
.stack .button-primary { justify-self: start; }
.stack :is(input, textarea, select) { font-weight: 400; }
.stack .notice { margin-top: 0; }
.field-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog { width: min(440px, calc(100vw - 28px)); max-height: calc(100dvh - 30px); color: inherit; border: 1px solid #493959; border-radius: 16px; background: #201b2a; padding: 21px; }
.dialog::backdrop { background: #080610b7; backdrop-filter: blur(4px); }
.dialog-heading { margin-bottom: 12px; }
.dialog h2 { font-size: 21px; }
.dialog .stack { margin-top: 13px; }
.close { width: 34px; height: 34px; border-radius: 8px; background: #2f263d; border: 1px solid #4b3a5e; font-size: 24px; line-height: 1; }
.close:hover { background: #483457; }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #ded1e9; }
.check input { accent-color: #ce8ff8; width: 16px; height: 16px; }
.detail-dialog { width: min(920px, calc(100vw - 28px)); }
.detail-dialog.detail-comparing { width: min(1240px, calc(100vw - 28px)); }
.compare-actions { margin: 0 0 10px; }
.detail-comparing .detail-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-comparing .detail-grid { grid-template-columns: 1fr; }
.detail-comparing :is(.compare-source, .compare-current) { padding: 10px; border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.detail-comparing .compare-current::before { content: '本次编辑'; display: block; margin-bottom: 8px; font-weight: 600; }
.compare-source h3 { margin-bottom: 8px; font-size: 16px; }
.detail-comparing .detail-image { height: clamp(135px, 35vh, 340px); }
.phrase-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.phrase-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.phrase-row small { display: block; }
#phrase-list { max-height: min(32vh, 260px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.detail-image { display: block; width: 100%; max-height: 65vh; background: var(--inset); border-radius: 9px; object-fit: contain; }
.transparent-preview { background: repeating-conic-gradient(var(--checker) 0% 25%, var(--inset) 0% 50%) 0 0 / 16px 16px !important; }
.detail-meta { margin: 0 0 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 13px; }
.detail-meta dt { color: var(--muted); }
.detail-meta dd { margin: 0; overflow-wrap: anywhere; }
.prompt-detail { margin: 8px 0; overflow-wrap: anywhere; font-size: 13px; }
.prompt-detail p { margin: 4px 0 10px; color: #dfd4e8; white-space: pre-wrap; max-height: 11em; overflow: auto; }
.prompt-detail summary { cursor: pointer; }
.detail-attachments { margin: 7px 0 10px; padding-inline-start: 16px; }
.detail-attachments li { margin-block: 5px; }
.detail-actions { margin-top: 13px; }
.toast { z-index: 2; position: fixed; right: 17px; bottom: 17px; max-width: min(425px, calc(100vw - 34px)); padding: 10px 13px; border: 1px solid #644976; border-radius: 8px; background: #332743; color: #fae7ff; font-size: 13px; }

:root[data-theme="light"] {
  color-scheme: light;
  color: #242036;
  background: #f7f5fa;
  --surface: #ffffff;
  --inset: #faf8fd;
  --line: #dbd4e6;
  --muted: #5e566e;
  --accent: #7427a7;
  --picker: #fff;
  --picker-active: #f2e6fa;
  --scroll-thumb: #b7a4c8;
  --checker: #e7ddec;
}
[data-theme="light"] :is(.rail, .topbar) { background: #fff; border-color: #e4ddea; }
[data-theme="light"] :is(.brand-sub, .nav-caption, .nav-link, .breadcrumbs) { color: #635873; }
[data-theme="light"] .breadcrumbs strong { color: #242036; }
[data-theme="light"] :is(.nav-link:hover, .nav-link[aria-current="page"], .account-chip:hover) { color: #59217c; background: #f4eafb; border-color: #dfc9ef; }
[data-theme="light"] .rail-bottom { border-color: #e8e1ef; }
[data-theme="light"] .avatar { background: #f5e9fd; border-color: #e2c9f1; }
[data-theme="light"] .hero h1 { color: #fff6fc; }
[data-theme="light"] .hero { border-color: #c5a5b8; }
[data-theme="light"] textarea::placeholder, [data-theme="light"] input::placeholder { color: #6d637b; }
[data-theme="light"] :is(.button-secondary, .close) { background: #f7f0fb; border-color: #dfd0e9; color: #39244e; }
[data-theme="light"] .button-secondary:hover:not(:disabled), [data-theme="light"] .close:hover { background: #eddef7; border-color: #cdb0df; }
[data-theme="light"] .notice { color: #502368; background: #f0e2f8; }
[data-theme="light"] .notice[data-kind="error"] { color: #952c4d; background: #fbe7ed; }
[data-theme="light"] .notice[data-kind="success"] { color: #1b643a; background: #e0f3e7; }
[data-theme="light"] .notice[data-kind="warning"] { color: #735018; background: #fcf0d1; }
[data-theme="light"] .inspiration-card { color: #fff7fc; border-color: #d9cadf; }
[data-theme="light"] .history-picture { background: #eee6f4; }
[data-theme="light"] .edit-source { color: #5c3872; }
[data-theme="light"] .tab[aria-pressed="true"] { background: #f1e3fa; border-color: #d2b4e6; color: #652489; }
[data-theme="light"] .dialog { background: #fff; border-color: #dbc9e8; }
[data-theme="light"] .check, [data-theme="light"] .prompt-detail p { color: #584663; }
[data-theme="light"] .toast { border-color: #d2b4e6; background: #f0e2f8; color: #502368; }
@media (max-width: 920px) {
  :root { --sidebar: 174px; }
  .rail { padding-inline: 11px; }
  .content, .topbar { padding-inline: 22px; }
  .gallery { gap: 9px; }
  .hero { min-height: 224px; }
}
@media (max-width: 720px) {
  .rail { position: static; width: auto; padding: 12px 14px 7px; border-right: 0; }
  .brand { margin-left: 0; }
  .brand-mark { width: 34px; height: 34px; }
  .rail-main { margin-top: 10px; }
  .nav { display: flex; flex-wrap: wrap; }
  .nav-link { padding: 5px 8px; min-height: 32px; gap: 5px; }
  .nav-caption, .rail-bottom { display: none; }
  .shell { margin-left: 0; }
  .topbar { padding-inline: 14px; min-height: 44px; }
  .content { padding: 14px 14px 32px; }
  .hero { min-height: 204px; }
  .hero-copy { padding: 20px; }
  .hero-description { font-size: 12px; }
  .composer { margin-top: 12px; padding: 12px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inspiration-card img { aspect-ratio: 1.45; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .top-actions { gap: 4px; }
  .top-action { padding-inline: 7px; font-size: 11px; }
  .breadcrumbs { gap: 5px; }
  .mobile-break { display: initial; }
  .composer-toolbar { flex-wrap: wrap; }
  .composer-actions { margin-left: auto; }
  .gallery { grid-template-columns: 1fr; }
  .detail-grid, .result-card { grid-template-columns: 1fr; }
  .detail-comparing :is(.compare-source, .compare-current) { padding: 6px; }
  .detail-comparing .detail-comparison { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
