.creator-page .chat-customizer { margin:0 0 24px; padding:18px 0; border-top:1px solid #42625d; border-bottom:1px solid #42625d; }
.chat-customizer h4 { margin:0 0 9px; font-size:17px; color:#e8f7ef; }
.chat-customizer label { display:grid; gap:6px; margin-top:12px; color:#c1d9d0; font-size:12px; }
.chat-customizer p,.chat-customizer small { color:#b3c9c0; font-size:11px; line-height:1.7; }
.chat-customizer input:not([type=range]):not([type=color]),.chat-customizer textarea,.chat-customizer select { width:100%; min-height:38px; padding:8px 10px; border:1px solid #59776f; border-radius:9px; background:#10272c; color:#eef9f4; font:inherit; font-size:12px; }
.chat-customizer input[type=range] { width:100%;accent-color:#b6e8d5; }
.chat-customizer input[type=color] { width:100%;height:38px;border:1px solid #66877c; background:transparent; border-radius:9px; }
.chat-customizer textarea { resize:vertical; }
.chat-customizer summary { color:#d9eee3;cursor:pointer;font-size:12px;margin-top:14px; }
.chat-customizer button { min-height:36px; padding:7px 10px; border:1px solid #608477;border-radius:9px;background:#24463f;color:#f0fff6;font:inherit;font-size:12px;cursor:pointer; }
.chat-customizer button:disabled { opacity:.55;cursor:wait; }
.chat-setting-pair { display:grid;grid-template-columns:1fr 1fr;gap:10px; }
.chat-setting-pair label { min-width:0; }
.chat-key-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.chat-theme-current { display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:12px; }
.chat-theme-current strong { color:#e8f7ef;font-size:13px; }
.chat-theme-dialog { width:min(820px,calc(100% - 24px));max-height:85dvh;padding:24px;border:1px solid #789c8e;border-radius:22px;background:#10272c;color:#effbf4; }
.chat-theme-dialog::backdrop { background:#02100fbd;backdrop-filter:blur(8px); }
.chat-theme-dialog[open]{display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}
.chat-theme-dialog header,.chat-theme-dialog>p,.chat-theme-tools{flex-shrink:0}
.chat-theme-dialog .chat-theme-grid{overflow-y:auto;min-height:0;padding:5px 5px 14px;overscroll-behavior:contain}
.creator-page .chat-theme-actions{display:flex;flex-direction:row;min-height:0;align-items:center;justify-content:space-between;flex-shrink:0;gap:12px;padding:16px 4px 0;border-top:1px solid #56766d;background:#10272c;color:#d7efe2;font-size:13px}
.chat-theme-actions>div{display:flex;gap:10px}.chat-theme-actions button{padding:10px 20px;border-radius:10px;border:1px solid #87b59e;background:transparent;color:#effbf4;cursor:pointer}.chat-theme-actions #chat-theme-confirm{background:#d9f8e5;color:#193d30;font-weight:700}
.chat-theme-dialog header { display:flex;gap:16px;align-items:center;justify-content:space-between; }
.chat-theme-dialog h2 { font-size:25px;letter-spacing:0;line-height:1.3; }
.chat-theme-dialog header button { width:36px;height:36px;background:transparent;border:1px solid #769989;color:inherit;border-radius:50%;font-size:24px; }
.chat-theme-dialog > p { max-width:65ch;margin:12px 0;color:#c0d6cd;font-size:12px;line-height:1.7; }
.chat-theme-dialog select { margin:8px 0 18px;max-width:240px; }
.chat-theme-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px; }
.chat-theme-option { display:grid;gap:7px;min-width:0;padding:12px;border:2px solid transparent;border-radius:12px;background:#1a3439;color:#eef9f4;cursor:pointer;text-align:left; }
.chat-theme-option[aria-pressed=true] { border-color:#bcf4d5;outline:2px solid #79a68e;outline-offset:2px; }
.chat-theme-option strong { font-size:12px; }.chat-theme-option small { color:#b4cdc3;font-size:10px; }
.chat-theme-sample { display:block;min-height:75px;padding:13px 9px;background:var(--chat-bg);color:var(--chat-fg);border:var(--chat-stroke) var(--chat-line) var(--chat-border);border-radius:var(--chat-radius);font-size:11px;line-height:1.6; }
.chat-theme-option[data-chat-kind=pixel] .chat-theme-sample { box-shadow:4px 4px 0 var(--chat-border); }
.chat-theme-option[data-chat-kind=comic] .chat-theme-sample { box-shadow:3px 4px 0 var(--chat-border);transform:rotate(-1deg); }
.chat-theme-option[data-chat-kind=paper] .chat-theme-sample { background:repeating-linear-gradient(transparent 0 21px,#8da1aa30 21px 22px),var(--chat-bg); }
.chat-theme-option[data-chat-kind=retro] .chat-theme-sample { border-top-width:13px;border-radius:0; }
.creator-page .preview-chat { width:min(var(--chat-width,380px),calc(100% - 24px));left:50%;right:auto;transform:translateX(-50%);border:var(--chat-stroke,1px) var(--chat-line,solid) var(--chat-border,#7caaa0);border-radius:var(--chat-radius,17px);background:var(--chat-bg,#e6f6f2);color:var(--chat-fg,#193f39);font-size:var(--chat-size,14px); }
.creator-page .preview-chat-heading strong { color:var(--chat-fg);font-size:1em; }
.creator-page .preview-chat-mode { color:var(--chat-fg);opacity:.8; }
.creator-page .preview-chat-log { max-height:125px; }
.creator-page .preview-chat-log:empty::before { color:var(--chat-accent); }
.creator-page .preview-chat-log p { color:var(--chat-fg);background:color-mix(in srgb,var(--chat-accent) 12%,var(--chat-bg));font-size:1em; }
.creator-page .preview-chat-log .from-user { background:color-mix(in srgb,var(--chat-accent) 23%,var(--chat-bg)); }
.creator-page .preview-chat-log b { color:var(--chat-fg); }
.creator-page .preview-chat button { background:var(--chat-accent);color:var(--chat-on-accent,#fff);border-color:var(--chat-border); }
.creator-page .preview-chat-compose input { background:var(--chat-bg);color:var(--chat-fg);border-color:var(--chat-border);font-size:.9em; }
.creator-page .preview-chat-compose input::placeholder { color:var(--chat-fg);opacity:.65; }
.creator-page .preview-chat[data-chat-kind=glass] { background:color-mix(in srgb,var(--chat-bg) 88%,transparent);backdrop-filter:blur(18px);box-shadow:inset 0 1px #ffffffaa,0 12px 30px #06101533; }
.creator-page .preview-chat[data-chat-kind=pixel] { box-shadow:5px 5px 0 var(--chat-border);font-family:Consolas,'Microsoft YaHei',monospace; }
.creator-page .preview-chat[data-chat-kind=comic] { box-shadow:4px 5px 0 var(--chat-border); }
.creator-page .preview-chat[data-chat-kind=paper] { background:repeating-linear-gradient(transparent 0 27px,#8da1aa26 27px 28px),var(--chat-bg); }
.creator-page .preview-chat[data-chat-kind=retro] { border-top-width:10px;font-family:Consolas,'Microsoft YaHei',monospace;box-shadow:3px 3px 0 var(--chat-border); }
.creator-page .preview-chat[data-chat-kind=frame] { padding:16px; }
.creator-page .preview-chat[data-chat-kind=candy] .preview-chat-log p { border-radius:18px; }
.workshop-download-notice { position:fixed;z-index:40;right:24px;bottom:24px;width:min(420px,calc(100% - 32px));padding:18px;border:1px solid #95c3b0;border-radius:18px;background:#102d32;color:#effff6;box-shadow:0 16px 60px #03101066; }
.workshop-download-notice strong { display:block;margin-bottom:8px; }.workshop-download-notice p { margin:5px 0;font-size:12px;line-height:1.7; }.workshop-download-notice button { padding:6px 12px;border:1px solid #a2c9b7;background:transparent;color:inherit;border-radius:8px;cursor:pointer;margin-top:8px; }
@media(max-width:600px) { .chat-theme-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }.chat-theme-dialog { padding:17px; }.chat-theme-option { padding:9px; }.workshop-download-notice { right:16px;bottom:16px; } }
.chat-theme-dialog { width:min(1040px,calc(100% - 24px)); }
.chat-theme-tools { display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:12px 0 20px; }
.chat-theme-tools label { display:grid;gap:7px;font-size:12px; }.chat-theme-tools input { padding:10px;background:#16353b;color:#effbf4;border:1px solid #789c8e;border-radius:9px; }
.chat-theme-tools select { margin:0;min-height:38px; }.chat-theme-tools output { padding-bottom:10px;color:#b9d8ca;font-size:12px; }
.chat-theme-grid { grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 14px; }
.chat-theme-option { background:#19323a;padding:8px 8px 12px; }
.chat-theme-option[data-chat-kind=illustrated] .chat-theme-sample { position:relative;display:grid;place-items:center;height:122px;padding:0 24px;background:transparent;border:0;box-shadow:none;font-size:10px;isolation:isolate; }
.chat-theme-sample img { position:absolute;z-index:-1;inset:0;width:100%;height:100%;object-fit:contain; }
.creator-page .preview-chat[data-chat-kind=illustrated] { border:1px solid color-mix(in srgb,var(--chat-accent) 30%,transparent);box-shadow:0 12px 30px #05101533; }
.creator-page .preview-chat[data-chat-kind=illustrated] .preview-chat-log { max-height:180px;padding:4px 0; }
.creator-page .preview-chat[data-chat-kind=illustrated] .preview-chat-log p { border:solid transparent;border-width:29px 48px 25px;margin:6px 0;background:transparent;border-image-source:var(--chat-art);border-image-slice:100 150 fill;border-image-width:29px 48px 25px;border-image-repeat:stretch;border-radius:0;min-height:30px;padding:5px 8px;font-size:1em; }
.creator-page .preview-chat[data-chat-kind=illustrated] .preview-chat-log .from-user { margin-left:18px; }
.creator-page .preview-chat[data-chat-kind=illustrated] .preview-chat-log .from-pet { margin-right:18px; }
@media(max-width:850px){.chat-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){.chat-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.chat-theme-option[data-chat-kind=illustrated] .chat-theme-sample{height:102px;font-size:9px;}}
