:root{font-family:"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#252723;background:#fafaf8;font-synthesis:none;--line:#e4e5df;--accent:#c7492b;--sidebar:254px}*{box-sizing:border-box}body{margin:0;height:100vh;height:100dvh;overflow:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.5}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}a{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid var(--accent);outline-offset:2px}[hidden]{display:none!important}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-header{height:82px;display:flex;align-items:center;border-bottom:1px solid var(--line);padding:0 32px;gap:30px;background:#fafaf8}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:19px;font-weight:750;letter-spacing:1px}.brand-mark{display:grid;place-items:center;width:39px;height:39px;background:var(--accent);color:white;border-radius:12px;transform:rotate(-6deg)}.brand-mark svg{width:30px;height:30px}.brand small{display:block;font-size:8px;letter-spacing:2.2px;font-weight:600;margin-top:4px;color:#74756e}.header-caption{font-size:12px;color:#74756e;border-left:1px solid var(--line);padding-left:27px}.header-right{margin-left:auto;display:flex;align-items:center;gap:12px}.model-badge{font-size:11px;padding:8px 13px;border:1px solid var(--line);border-radius:20px;display:flex;gap:8px;align-items:center;background:white}.model-badge i{width:6px;height:6px;border-radius:50%;background:#507d5c}.chat-layout{height:calc(100% - 82px);display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);max-width:1800px;margin:0 auto}.sidebar{border-right:1px solid var(--line);padding:24px 20px 18px;overflow-y:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:#d4d6ce transparent}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1px;color:#74756e;margin:0 0 13px}.primary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;background:var(--accent);color:white;border-radius:9px;padding:12px 18px;font-weight:600;font-size:13px;transition:background .15s,transform .15s}.primary:hover{background:#a83b23}.primary:active{transform:translateY(1px)}.new-chat{justify-content:flex-start;background:#252723;width:100%;font-size:12px}.new-chat:hover{background:#464a40}.new-shortcut{margin-left:auto;font-size:8px;letter-spacing:1px;color:#d7d9d0}.history-section{margin:27px 0 12px}.section-label{font-size:10px;font-weight:500;color:#676b60;display:flex;justify-content:space-between;margin:0 0 11px}.section-label span{font-size:8px;letter-spacing:1.3px;color:#74756e}#chats{display:grid;gap:4px;max-height:180px;overflow-y:auto;scrollbar-width:thin}#chats button{min-height:44px;padding:10px 12px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0;background:transparent;border-radius:7px;font-size:12px;color:#60645a}#chats button:hover{background:#f0f0eb}#chats button.selected{background:#eeeee7;color:#252723;font-weight:600}details{border-top:1px solid var(--line);padding-top:14px;margin-top:14px;font-size:12px}summary{cursor:pointer;min-height:30px;line-height:22px;font-size:12px;font-weight:600}label{display:block;font-size:11px;color:#65695e;margin:15px 0 7px}select,input{border:1px solid var(--line);background:white;color:#252723;border-radius:7px;min-height:44px;padding:9px 10px;width:100%;font-size:12px;min-width:0}select:disabled{background:#f1f1ec;color:#777a70}.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hint{font-size:10px;line-height:1.8;color:#71756a;margin:9px 0 0}#summary{line-height:1.8;white-space:pre-wrap;max-height:180px;overflow:auto;color:#65695e}#key-status{display:block;font-size:10px;font-weight:400;color:#71756a}.sidebar-bottom{margin-top:auto;padding-top:20px}.sidebar-note{font-size:10px;color:#75796f;margin-top:24px;display:flex;gap:8px;align-items:center}.tiny-mark{font-size:19px}.phone-qr{width:190px;max-width:100%;height:auto;display:block;margin:10px 0}#phone-links a{font-size:11px;overflow-wrap:anywhere}#phone-code{font-size:11px;overflow-wrap:anywhere;user-select:all}.conversation{min-width:0;min-height:0;display:flex;flex-direction:column;padding:27px clamp(24px,4vw,64px) 0;background:white}.conversation-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid #efefeb;flex-shrink:0}.conversation-head>div{min-width:0}.breadcrumb{display:flex;gap:10px;font-size:10px;color:#777c70;margin-bottom:8px}.breadcrumb span:last-child{color:#52574c}h1{font-size:18px;font-weight:600;letter-spacing:.3px;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:50vw}#context-info{font-size:10px;color:#74796d;margin:0}.subtle{background:transparent;border:1px solid var(--line);border-radius:7px;min-height:44px;padding:8px 12px;font-size:11px;white-space:nowrap}.subtle:hover{background:#f6f6f2}#messages{flex:1;overflow-y:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#d8dbd2 transparent;padding:22px 0;overscroll-behavior:contain}.welcome{max-width:880px;margin:12px auto 8px}.welcome-heading{position:relative;padding:5px 0 25px}.eyebrow{font-size:9px;letter-spacing:1.9px;color:#757a6f;display:flex;align-items:center;gap:8px;margin:0 0 17px}.eyebrow>span{width:6px;height:6px;background:var(--accent);border-radius:50%}.welcome h2{font-size:clamp(34px,3.5vw,54px);font-weight:750;letter-spacing:-1px;line-height:1.24;margin:0 0 15px;position:relative;width:fit-content}.welcome h2 br{display:none}.title-accent{color:var(--accent)}.heading-spark{width:32px;height:32px;color:var(--accent);position:absolute;right:-53px;top:0;transform:rotate(12deg)}.welcome-heading>p:last-child{color:#72776b;font-size:12px;line-height:1.9;margin:0}.mobile-break{display:none}.inspiration-head{display:flex;justify-content:space-between;align-items:center;margin:4px 0 13px}.inspiration-head h3{font-size:11px;font-weight:600;margin:0}.inspiration-head>span{font-size:10px;color:#777b70;display:flex;align-items:center;gap:6px}.inspiration-head .icon{width:13px;height:13px}.inspiration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.inspiration-card{text-align:left;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white;transition:transform .2s,box-shadow .2s}.inspiration-card:hover{transform:translateY(-4px);box-shadow:0 8px 18px #2527230c}.sticker-art{height:clamp(120px,13vw,180px);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.green .sticker-art{background:#eaf0e5}.peach .sticker-art{background:#faf0e4}.blue .sticker-art{background:#eaf0f8}.sticker-art>svg{width:95%;height:90%;margin-top:12px}.sample-label{position:absolute;top:10px;left:12px;font-size:8px;letter-spacing:.5px;color:#5e6859}.card-caption{display:flex;align-items:center;justify-content:space-between;padding:14px 15px}.card-caption strong{display:block;font-size:12px;font-weight:600}.card-caption small{display:block;font-size:10px;color:#767a70;margin-top:5px}.card-arrow{font-size:19px;color:#676e5e}.composer-wrap{flex-shrink:0;max-width:1000px;width:100%;margin:0 auto}.composer{border:1px solid #dbddd5;border-radius:14px;background:white;padding:12px 16px 13px;box-shadow:0 5px 22px #24282006;transition:border-color .2s}.composer:focus-within{border-color:#a7ad9d}.composer.dragging{border:2px dashed var(--accent);background:#fff8f4}.mode-tabs{display:flex;align-items:center;gap:4px;border-bottom:1px solid #eeeee9;padding-bottom:9px}.mode-tabs button{background:transparent;border:0;border-radius:7px;padding:8px 12px;min-height:44px;font-size:11px;color:#676d60;display:flex;gap:7px;align-items:center}.mode-tabs button:hover{background:#f5f5f1}.mode-tabs button[aria-pressed=true]{background:#fbeee7;color:#ac3e25}.mode-tabs .icon{width:16px;height:16px}.composer textarea{width:100%;height:76px;min-height:60px;max-height:150px;resize:vertical;border:0;outline:none;background:transparent;padding:15px 1px 8px;line-height:1.7;font-size:13px;color:#252723}.composer textarea::placeholder{color:#7c8075}.composer textarea:focus-visible{outline:0}.composer-actions{display:flex;align-items:center;gap:9px}.icon-button{width:44px;height:44px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:transparent;flex-shrink:0}.icon-button:hover{background:#f3f3ed}#format{width:auto;max-width:160px;min-height:44px;padding:6px 25px 6px 9px;border:0;font-size:11px;background:#f5f5f1}.keyboard-hint{margin-left:auto;color:#777c70;font-size:9px}.composer-actions .primary{min-height:44px;padding:10px 17px;white-space:nowrap}.composer-footnote{font-size:9px;line-height:1.6;color:#777c70;display:flex;justify-content:space-between;margin:10px 3px 17px;gap:12px}#reference:empty{display:none}#reference{display:flex;gap:8px;align-items:center;font-size:10px;color:#6e7566;padding-top:9px;flex-wrap:wrap}#reference img{width:42px;height:42px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}#reference button{border:0;background:transparent;color:#ab432d;font-size:10px;min-height:44px;margin-left:auto}#status:empty{display:none}#status{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;padding:10px 13px;background:#edf1e7;color:#485e3e;border-radius:8px;margin-bottom:10px;max-height:100px;overflow:auto}#status.error{background:#fff0eb;color:#a13221}#status.busy:before{content:"";width:11px;height:11px;display:inline-block;border:2px solid #c5ccb9;border-top-color:#536447;border-radius:50%;margin-right:9px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.message{max-width:85%;margin-bottom:24px}.message small{display:block;font-size:10px;color:#74796c;margin-bottom:9px}.message.user{margin-left:auto;padding:14px 18px;background:#f2f3ed;border-radius:14px 14px 3px 14px;width:fit-content}.message.user p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}.user-reference{width:80px;height:80px;object-fit:cover;border-radius:7px;margin-top:10px}.generated{max-width:100%;max-height:430px;display:block;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:repeating-conic-gradient(#f4f4f1 0% 25%,white 0% 50%) 50%/18px 18px}.result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.result-actions a,.result-actions button{display:flex;align-items:center;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:white;font-size:11px;text-decoration:none}.result-actions a{color:#aa3d24}.result-actions button:hover{background:#f4f5ef}dialog{width:380px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:16px;padding:28px;color:#252723}dialog::backdrop{background:#21281c70;backdrop-filter:blur(4px)}dialog h2{font-size:20px}dialog p{font-size:12px;line-height:1.8;color:#6c7363}dialog .primary{width:100%;margin-top:20px}#login-error{color:#ad3723}#mobile-menu,#close-menu{display:none}
@media(min-width:1450px){.welcome{margin-top:32px}.welcome-heading{padding-bottom:40px}.welcome h2{font-size:56px}.sticker-art{height:200px}}
@media(max-height:790px) and (min-width:801px){.welcome{margin-top:0}.welcome-heading{padding-bottom:18px}.welcome h2{font-size:36px}.sticker-art{height:120px}.sidebar{padding-top:18px}.history-section{margin-top:18px}.conversation{padding-top:18px}.conversation-head{padding-bottom:12px}}
@media(max-width:1100px){:root{--sidebar:230px}.sidebar{padding-inline:16px}.conversation{padding-inline:24px}.header-caption{display:none}.welcome h2{font-size:37px}.heading-spark{width:24px;right:-37px}.card-caption{padding:12px 10px}.card-caption small{font-size:9px}.keyboard-hint{display:none}.composer-actions .primary{margin-left:auto}.inspiration-grid{gap:10px}}
@media(max-width:800px){.app-header{height:66px;padding:0 18px;gap:10px}.brand{font-size:16px;gap:9px}.brand small{font-size:7px;letter-spacing:1.7px}.brand-mark{width:32px;height:32px;border-radius:9px}.brand-mark svg{width:26px}.model-badge{font-size:9px;padding:7px 9px;gap:6px}.header-right{gap:9px}#mobile-menu,#close-menu{display:grid}.chat-layout{height:calc(100% - 66px);display:block}.sidebar{display:none;position:fixed;z-index:20;inset:0 auto 0 0;width:min(320px,calc(100vw - 40px));padding:20px 22px max(20px,env(safe-area-inset-bottom));background:#fafaf8;box-shadow:12px 0 40px #00000012;border:0}.sidebar-heading{margin-bottom:16px}.menu-open .sidebar{display:flex}#menu-backdrop{position:fixed;inset:0;z-index:19;border:0;background:#25291e70;backdrop-filter:blur(2px)}.conversation{height:100%;padding:16px 18px 0}.conversation-head{padding-bottom:13px;gap:10px}.breadcrumb{display:none}h1{font-size:15px;max-width:57vw}#context-info{font-size:9px}.subtle{font-size:10px;padding:6px 9px}.welcome{margin:12px 0 0}.welcome-heading{padding:5px 2px 27px}.eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:16px}.welcome h2{font-size:39px;line-height:1.2;letter-spacing:-.5px;margin-bottom:16px}.welcome h2 br{display:block}.heading-spark{width:31px;right:-46px;top:9px}.welcome-heading>p:last-child{font-size:11px}.mobile-break{display:block}.inspiration-grid{gap:9px}.inspiration-head{margin-bottom:12px}.inspiration-head h3{font-size:10px}.inspiration-head>span{font-size:9px}.sticker-art{height:104px}.sample-label{font-size:7px;left:6px;top:7px;letter-spacing:0}.card-caption{padding:10px 7px}.card-caption strong{font-size:10px}.card-caption small,.card-arrow{display:none}.inspiration-card{border-radius:9px}.sticker-art>svg{width:115%;max-width:none;flex-shrink:0}.composer{padding:8px 10px 10px;border-radius:13px}.mode-tabs{gap:0;justify-content:space-between;padding-bottom:6px}.mode-tabs button{font-size:10px;min-height:44px;padding:8px 7px;gap:5px}.mode-tabs .icon{width:15px;height:15px}.composer textarea{font-size:16px;height:82px;max-height:130px;padding-top:13px}.composer-actions{gap:6px}.composer-actions .primary{font-size:12px;padding:10px 12px}.composer-actions .primary .icon{width:16px}.composer-actions .icon-button{width:38px;border:0}.composer-actions select{font-size:12px;max-width:135px;min-height:44px}input,select,.sidebar select,.sidebar input{font-size:16px}.composer-footnote{font-size:8px;margin:8px 1px max(10px,env(safe-area-inset-bottom));justify-content:center}.composer-footnote>span{display:none}#messages{padding:14px 0 20px}.message{max-width:100%}.message.user{max-width:93%;padding:12px 14px}.generated{max-height:320px}.result-actions button,.result-actions a{font-size:11px}#status{font-size:11px;max-height:80px;padding:8px 10px}#reference{font-size:10px;padding-top:6px}#reference img{width:32px;height:32px}#reference button{font-size:10px}#chats{max-height:200px}}
@media(max-width:360px){.app-header{padding-inline:12px}.model-badge{display:none}.conversation{padding-inline:12px}.mode-tabs button{padding-inline:5px;font-size:9px}.composer-actions select{max-width:117px}.composer-actions .primary{padding-inline:10px;font-size:11px}.welcome h2{font-size:36px}.sticker-art{height:91px}.inspiration-head>span{font-size:8px}}
.preview-trigger{display:block;max-width:100%;padding:0;border:0;background:none;border-radius:12px;cursor:zoom-in}.preview-trigger:hover .generated{border-color:#9aab89}.message.assistant.editing-source>small{color:#48603a;font-weight:600}.message.assistant.editing-source>small::after{content:" · 当前参考";display:inline-block;background:#edf1e7;padding:3px 7px;border-radius:5px;margin-left:8px}.result-actions button:last-child{border-style:dashed}.result-actions{gap:8px}#reference:not(:empty){background:#f5f6f1;border-radius:8px;margin-top:10px;padding:5px 9px}#reference>span{font-size:11px;font-weight:500;color:#4c5b42}#reference button{padding:0 5px}#followups{margin-top:12px}.followup-heading{display:flex;gap:12px;align-items:center;margin-bottom:7px;font-size:10px;color:#71776a}.followup-heading strong{font-weight:600;color:#505c46}.quick-prompts{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:2px 2px 5px;overscroll-behavior-x:contain}.quick-prompts button{flex-shrink:0;min-height:44px;border:1px solid #dfe4d7;border-radius:22px;background:#fafbf7;padding:8px 14px;font-size:12px;transition:background .15s,border-color .15s}.quick-prompts button:hover{background:#edf1e7;border-color:#a7b59a}.quick-prompts button:active{background:#e4ebdb}#draft-feedback{display:flex;align-items:center;gap:10px;justify-content:space-between;font-size:11px;color:#626d58;background:#f8f6f0;border-radius:6px;padding:2px 9px;margin-top:8px}#undo-prompt{border:0;background:none;color:#ac3e25;font-size:11px;min-height:44px;white-space:nowrap}#image-preview{width:fit-content;max-width:min(1000px,calc(100vw - 28px));padding:18px;overflow:auto}.preview-head{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:12px}.preview-head h2{font-size:15px;margin:0}#preview-image{display:block;max-width:100%;max-height:calc(100dvh - 180px);object-fit:contain;margin:auto;border-radius:8px}#image-preview>p{font-size:11px;text-align:center;margin-bottom:0}
@media(max-width:800px){#followups{margin-top:8px}.followup-heading{font-size:9px;margin-bottom:4px}.quick-prompts{gap:6px}.quick-prompts button{font-size:11px;padding:7px 12px}.composer:has(#followups:not([hidden])) textarea{height:64px;min-height:54px}#reference:not(:empty){margin-top:7px;padding:3px 6px}#reference>span{font-size:10px}#draft-feedback{font-size:10px;margin-top:4px}#undo-prompt{font-size:10px}.result-actions button,.result-actions a{padding:9px 11px}.message.assistant.editing-source>small::after{margin-left:4px}.composer-footnote{font-size:8px}}
@media(max-height:620px) and (max-width:800px){.conversation-head{padding-bottom:6px}.conversation{padding-top:8px}.composer:has(#followups:not([hidden])) .mode-tabs{display:none}.followup-heading{display:none}#reference img{width:24px;height:24px}#reference:not(:empty){margin-top:0}.composer:has(#followups:not([hidden])) textarea{height:54px}.composer-footnote{margin-bottom:5px}#draft-feedback{margin-top:0}#status{max-height:44px}#messages{padding-block:8px}}
/* Compact conversation composer: tools stay on one row; prompts live outside. */
.composer-wrap{max-width:820px}.composer{padding:8px 13px 10px;border-radius:23px;box-shadow:0 3px 18px #25272306}.composer textarea{display:block;height:56px;min-height:56px;max-height:110px;resize:none;padding:10px 2px 6px;font-size:14px;line-height:1.65}.composer-actions{gap:6px}.composer-actions .primary{margin-left:auto;border-radius:22px;padding:10px 15px;background:#252723}.composer-actions .primary:hover{background:#464a40}.composer-actions .icon-button{border:0;border-radius:50%}#format,#batch-count{border:0;border-radius:18px;background:#f5f5f1;font-size:11px;min-height:40px;padding:7px 7px;width:auto;max-width:122px}#batch-count{width:66px}#reference:not(:empty){background:transparent;margin:0;padding:0 1px;gap:8px;min-height:38px}#reference img{width:28px;height:28px;border-radius:6px}#reference>span{font-size:10px}#reference button{min-height:36px;font-size:10px}#followups{margin:0 0 6px}#starter-hints{margin-bottom:6px}.quick-prompts{padding:1px 2px 3px;gap:7px}.quick-prompts button{font-size:11px;min-height:40px;padding:7px 12px;background:white;border-color:#e5e7e0;border-radius:18px}.quick-prompts button:focus-visible{outline-offset:-3px}.composer-footnote{margin:7px 4px 12px;font-size:9px;line-height:1.4}#status{font-size:11px;padding:5px 10px;margin-bottom:6px;max-height:46px;border-radius:7px}#draft-feedback{position:fixed;z-index:16;top:90px;right:24px;width:max-content;max-width:calc(100vw - 48px);padding:0 8px 0 13px;margin:0;box-shadow:0 4px 18px #25272312;border:1px solid #e7e6dd;border-radius:10px;background:#fffdf7;font-size:11px}#undo-prompt{min-height:44px;font-size:11px}.sidebar .mode-tabs{flex-wrap:wrap;padding-bottom:10px;margin-top:5px}.sidebar .mode-tabs button{font-size:11px;padding:8px;flex:1;justify-content:center}.result-group{max-width:820px;margin:0 auto 26px}.result-group .message.assistant{margin-bottom:0}.result-grid{display:grid;gap:14px}.result-grid.single{grid-template-columns:minmax(0,1fr)}.result-grid.multiple{grid-template-columns:repeat(2,minmax(0,1fr))}.result-grid.nine{grid-template-columns:repeat(3,minmax(0,1fr))}.result-grid:not(.single) .message{max-width:100%;min-width:0;border:1px solid #e4e5df;border-radius:12px;padding:10px}.result-grid:not(.single) .generated{width:100%;aspect-ratio:1;object-fit:contain;max-height:none;border:0;border-radius:8px}.result-grid:not(.single) .preview-trigger{width:100%}.result-grid:not(.single) .result-actions{gap:5px;margin-top:7px}.result-grid:not(.single) .result-actions a,.result-grid:not(.single) .result-actions button{font-size:10px;padding:7px 8px;min-height:38px}.result-grid:not(.single) .result-actions button:last-child{flex-basis:100%;justify-content:center;border:0;color:#74796c;min-height:30px;padding:4px}.result-grid:not(.single) .message small{font-size:9px;line-height:1.6}.message.assistant.editing-source>small::after{content:'当前参考';font-size:9px;padding:2px 5px}.batch-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:2px}.batch-heading strong{font-size:13px;margin-right:auto}.batch-heading a{display:inline-flex;align-items:center;min-height:44px;font-size:11px;text-decoration:none;color:#a53b23;padding:6px 8px}.batch-tip{font-size:10px;color:#6a7360;line-height:1.6;margin:0 0 13px}.batch-warning{font-size:11px;line-height:1.7;background:#fff6df;color:#77521f;padding:8px 12px;border-radius:7px}.message.user{margin-right:max(0px,calc((100% - 820px)/2));max-width:min(70%,650px)}
@media(max-width:800px){.composer{padding:6px 10px 9px;border-radius:21px}.composer textarea{height:58px;min-height:58px;font-size:16px;max-height:100px;padding-top:8px}.composer-actions{gap:5px}.composer-actions .primary{width:42px;min-height:42px;height:42px;padding:0;justify-content:center;border-radius:50%}.composer-actions .primary span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.composer-actions .primary .icon{width:20px;height:20px;transform:rotate(-90deg)}.composer-actions .icon-button{width:36px;height:44px}.composer-actions select,#format,#batch-count{font-size:11px;min-height:44px;max-width:114px;padding:6px}#batch-count{width:62px}#reference:not(:empty){margin:0;padding:0;min-height:36px}#reference img{width:24px;height:24px}#reference>span{font-size:9px}#reference button{min-height:36px;font-size:9px}.quick-prompts button{min-height:40px;font-size:10px;padding:7px 11px}#followups,#starter-hints{margin:0 0 5px}.composer-footnote{font-size:8px;margin:7px 1px max(8px,env(safe-area-inset-bottom));justify-content:center}.composer-footnote>span:first-child{display:inline}.composer-footnote>span:last-child{display:none}#draft-feedback{top:73px;left:14px;right:14px;width:auto;max-width:none;font-size:10px}#undo-prompt{font-size:10px}#status{font-size:10px;padding:4px 8px;max-height:40px}.result-grid{gap:8px}.result-grid:not(.single) .message{padding:6px;border-radius:9px}.result-grid:not(.single) .message small{font-size:8px;min-height:26px;margin-bottom:4px}.result-grid:not(.single) .result-actions{gap:1px;flex-direction:column}.result-grid:not(.single) .result-actions button,.result-grid:not(.single) .result-actions a{min-height:36px;font-size:9px;padding:5px 4px;justify-content:center;border:0;background:#f5f6f1;border-radius:5px}.result-grid:not(.single) .result-actions button:last-child{font-size:8px;background:none;min-height:32px}.batch-heading{gap:3px}.batch-heading strong{font-size:11px}.batch-heading a{font-size:10px}.batch-tip{font-size:9px}.message.user{margin-right:0;max-width:92%}}
@media(max-width:360px){#format{max-width:106px}#batch-count{width:58px}.composer-actions .primary{width:40px;height:40px;min-height:40px}.composer-actions .icon-button{width:30px}.composer-actions{gap:4px}}
@media(max-height:620px) and (max-width:800px){.composer textarea{height:48px;min-height:48px}.quick-prompts button{min-height:36px}#reference:not(:empty){min-height:30px}#reference button{min-height:30px}.composer-footnote{margin-bottom:5px}}
.quick-tools{display:flex;align-items:center;gap:9px;margin-bottom:6px;min-width:0}.quick-tools>#starter-hints,.quick-tools>#followups{flex:1;min-width:0;margin:0}.quick-tools .quick-prompts{margin:0}#style-picker-button{display:flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;max-width:120px;min-height:44px;padding:7px 12px;border:1px solid #dddcd2;border-radius:18px;background:#f4f3ed;font-size:11px;white-space:nowrap}#style-picker-button .icon{width:16px;height:16px}#style-picker-button:hover{background:#eae9df}#style-picker-button.has-style{background:#fbeee7;border-color:#e7bda8;color:#a13a22}#style-dialog{width:610px;max-width:calc(100vw - 28px);max-height:min(760px,calc(100dvh - 28px));padding:22px;background:#fff}#style-dialog .preview-head{position:sticky;top:-22px;background:#fff;z-index:1;padding:4px 0 12px;margin:0}#style-dialog .eyebrow{font-size:8px;letter-spacing:1.6px;margin-bottom:10px}#style-dialog h2{font-size:20px}#style-help{font-size:12px;line-height:1.8;margin:0 0 17px;color:#62695b}.style-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.style-options button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;min-width:0;padding:13px;border:1px solid #e4e5df;border-radius:11px;background:#fff;min-height:112px;transition:background .15s,border-color .15s}.style-options button:hover{background:#fafaf6;border-color:#a4b195}.style-options button[aria-pressed=true]{border-color:#c7492b;background:#fff7f1}.style-options button[aria-pressed=true]::after{content:'已选';position:absolute;top:11px;right:10px;font-size:9px;color:#a13a22}.style-options strong{font-size:13px;font-weight:600}.style-options small{font-size:10px;line-height:1.5;color:#646b5c}.style-swatch{width:28px;height:22px;border-radius:5px;display:block;background:#dedfd5;margin-bottom:3px}.swatch-manga{background:repeating-linear-gradient(135deg,#fff 0 4px,#354338 4px 6px);border:1px solid #354338}.swatch-miyazaki{background:#b9d3a8;border-radius:45% 45% 10% 10%;box-shadow:inset -10px -6px #78976d}.swatch-anime{background:#c8dbee;border-bottom:7px solid #738cae}.swatch-chibi{background:#f6cec1;border-radius:50%;border:3px solid #d9937e}.swatch-watercolor{background:#c6d9e8;border-radius:35% 55% 40% 50%;box-shadow:inset 9px -2px #b5c9ba}.swatch-pixel{background:conic-gradient(#74869e 25%,#d5ddc6 0 50%,#74869e 0 75%,#d5ddc6 0) 0 0/12px 12px;border-radius:0}.swatch-clay{background:#dbb095;border-radius:45%;box-shadow:inset -6px -4px #ba8d73}.swatch-plush{background:#d9c6a5;border:3px dotted #b39973;border-radius:45%}.swatch-ink{background:#c4c8c0;box-shadow:inset 11px -4px #414c43;border-radius:45% 10% 35% 20%}.swatch-comic{background:radial-gradient(#29352e 1px,transparent 1px) 0 0/5px 5px,#edc86f;border:2px solid #29352e}.swatch-paper{background:#d69b82;clip-path:polygon(0 15%,70% 0,100% 80%,20% 100%)}.swatch-doodle{background:none;border:2px solid #4f5949;border-radius:60% 30% 50% 35%;transform:rotate(-8deg)}#style-dialog .style-footnote{font-size:10px;line-height:1.7;margin:15px 0 0;color:#69715f}
@media(max-width:800px){.quick-tools{gap:6px;margin-bottom:5px}#style-picker-button{font-size:10px;gap:5px;padding:7px 9px;max-width:98px;border-radius:16px}#style-picker-button .icon{width:14px;height:14px}.quick-tools>#starter-hints,.quick-tools>#followups{margin:0}#style-dialog{padding:18px}#style-dialog .preview-head{top:-18px}#style-dialog h2{font-size:18px}#style-help{font-size:11px}.style-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.style-options button{padding:11px;min-height:104px}.style-options strong{font-size:12px}.style-options small{font-size:9px}.style-swatch{width:25px;height:19px}.style-options button[aria-pressed=true]::after{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Private spaces and access-code management follow the studio's existing palette. */
.account-panel{margin:0 0 16px}.account-identity{display:flex;align-items:center;gap:9px;min-width:0;padding:0 0 10px}.account-avatar{width:32px;height:32px;display:grid;place-items:center;background:#eaf0e5;border-radius:10px;color:#52704b;font-size:23px;flex-shrink:0}.account-identity>div{min-width:0;flex:1}.account-identity strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-identity small{display:block;font-size:9px;line-height:1.6;color:#74796c;margin-top:3px}.account-identity>button{min-height:44px;padding:6px;border:0;background:none;color:#74796c;font-size:10px}#manage-users{width:100%;display:flex;justify-content:space-between;background:#f2f3ed;border:0;font-size:11px}#users-dialog{width:650px;padding:26px;overflow:auto;overscroll-behavior:contain}#users-dialog .preview-head{align-items:flex-start;gap:12px}#users-dialog .eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:8px}#users-title{font-size:23px}#users-help{margin:0 0 20px;max-width:490px}#create-user-form{padding:16px 18px;background:#f4f5f0;border-radius:12px;border:1px solid #e4e5df}.user-create-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.user-create-fields label{margin-top:0;font-size:11px;line-height:1.5}.user-create-fields input{font-size:13px}#create-user-form .primary{margin-top:14px;min-height:44px;width:100%;background:#252723}.users-list-heading{display:flex;justify-content:space-between;align-items:center;margin-top:25px;padding-bottom:12px;border-bottom:1px solid var(--line);font-size:12px}.users-list-heading span{color:#777c70;font-size:11px}.user-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.user-row-info{min-width:0;flex:1}.user-row-info strong{font-size:13px;overflow-wrap:anywhere;display:block;line-height:1.6}.user-state{display:block;font-size:10px;color:#58724a;margin-top:3px}.user-state.disabled{color:#8a8174}.user-row-actions{display:flex;gap:7px;flex-shrink:0}.user-row-actions button{font-size:11px;padding:7px 10px}.users-empty{padding:18px 0;margin:0;color:#74796c}#users-status{margin:14px 0 0;font-size:12px;color:#4b6740;white-space:pre-wrap;overflow-wrap:anywhere}#users-status:empty{display:none}#users-status.error{color:#a13221}.users-footnote{font-size:10px!important;margin:19px 0 0}#issued-code-panel{background:#edf2e8;border:1px solid #d4dfca;border-radius:12px;padding:14px 18px;margin-top:16px}#issued-code-panel p{font-size:11px;margin:0;color:#4b6740}#issued-code-panel p:last-child{margin-top:8px;font-size:10px}.issued-code-row{display:flex;gap:14px;align-items:center;margin-top:7px}#issued-code{font-size:27px;font-weight:650;letter-spacing:5px;border:0;background:transparent;padding:4px 0;color:#304c29;min-width:0;width:160px}.issued-code-row button{background:white;flex-shrink:0;margin-left:auto}#login-dialog{background:#fafaf8}#login-dialog input{font-size:18px;letter-spacing:2px}#login-dialog .eyebrow{font-size:9px}#login-dialog h2{line-height:1.4}.chat-layout[inert]{visibility:hidden}
@media(max-width:800px){.account-panel{margin-bottom:12px}.account-identity small{font-size:10px}#users-dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:20px 16px}#users-title{font-size:21px}.user-create-fields{grid-template-columns:1fr;gap:13px}#create-user-form{padding:14px}.user-create-fields input{font-size:16px}#users-help{font-size:11px}.user-row{flex-wrap:wrap;gap:5px}.user-row-info{flex-basis:100%}.user-row-actions{margin-left:auto}.user-row-actions button{min-height:44px}.issued-code-row{gap:6px}#issued-code-panel{padding:12px}#issued-code{font-size:25px;letter-spacing:4px;width:135px}.issued-code-row button{font-size:10px;padding:7px}.users-footnote{font-size:10px!important}}

/* A single, stationary send/stop button; progress lives in the conversation. */
.composer-actions #submit{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;justify-content:center;border-radius:50%;flex-shrink:0}.composer-actions #submit span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.composer-actions #submit .icon{width:22px;height:22px;transform:rotate(-90deg)}.composer-actions #submit[data-state=running] .icon{transform:none}.composer-actions #submit[data-state=running]{background:#252723}.composer-actions #submit:disabled{opacity:.6}#task-message{max-width:820px;margin:0 auto 24px}.task-progress{padding:14px 16px;margin:0 0 18px;border:1px solid #e4e5df;border-radius:12px;background:#fafbf7;color:#4c5941}.task-progress strong{font-size:12px;font-weight:600}.task-progress.active strong:before{content:'';display:inline-block;width:9px;height:9px;border:2px solid #cad2c0;border-top-color:#5a7049;border-radius:50%;margin-right:8px;animation:spin 1s linear infinite}.task-elapsed{font-size:10px;margin-left:10px;color:#7b8274}.task-progress p{font-size:11px;line-height:1.8;margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.task-progress .subtle{margin-top:10px;background:white}.task-progress:not(.active){background:#fbfaf7;color:#776444}#chats button.has-task:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#6d8d57;margin-right:6px}.task-progress.active{border-color:#d9e1d0}@media(max-width:800px){.composer-actions #submit{width:42px;min-width:42px;height:42px;min-height:42px}.task-progress{padding:12px 13px}.task-progress p{font-size:10px}.task-progress strong{font-size:11px}}

/* A single, compact navigation bar gives phone conversations more room. */
.mobile-title,#mobile-new-chat{display:none}
#desktop-conversation-actions{flex-shrink:0}
#mobile-memory-actions:empty{display:none}
#mobile-memory-actions #compact{width:100%;margin:2px 0 4px;text-align:left}
@media(max-width:800px){
  .app-header{height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;background:#fff;border:0}
  .app-header .brand,.app-header .header-caption,.app-header .header-right{display:none}
  .mobile-title{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-size:16px;line-height:1.4;font-weight:650;letter-spacing:0}
  #mobile-menu,#mobile-new-chat{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;border:0;background:transparent;border-radius:50%;padding:0}
  #mobile-menu:hover,#mobile-new-chat:hover{background:#f3f3ef}
  #mobile-menu .icon,#mobile-new-chat .icon{width:23px;height:23px;stroke-width:1.65}
  .chat-layout{height:calc(100% - 56px - env(safe-area-inset-top))}
  .conversation{padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}
  .conversation-head{display:none}
  #messages{padding:14px 0 16px}
  .composer-wrap{padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .composer-footnote:not(.has-batch){display:none}
  .composer-footnote.has-batch{margin:7px 1px 0;font-size:10px;color:#65695e}
  .composer-actions #submit{width:44px;min-width:44px;height:44px;min-height:44px}
  .composer-actions #upload-trigger{width:44px;min-width:44px;height:44px;padding:0}
  .quick-tools{gap:7px;margin-bottom:8px}
  .quick-tools button{min-height:44px}
  #task-message .message.user>small{display:none}
  .task-progress{background:transparent;border:0;border-radius:0;padding:8px 2px 12px;color:#4d5547}
  .task-progress.active{border:0}
  .task-progress strong{font-size:13px}
  .task-progress p{font-size:11px;line-height:1.7;color:#666d60}
  .task-elapsed{font-size:11px;color:#686e62}
  .welcome{margin:24px auto 12px}
  .welcome .eyebrow{display:none}
  .welcome-heading{padding-bottom:24px}
  .welcome h2{font-size:34px}
  .sidebar{padding-top:max(16px,env(safe-area-inset-top))}
  .sidebar summary{min-height:44px;display:flex;align-items:center;gap:8px}
}
@media(max-width:360px){
  .conversation{padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
  .app-header{gap:6px}
}
@media(max-height:620px) and (max-width:800px){
  .welcome{margin-top:8px}
  .welcome-heading{padding-bottom:14px}
  .composer-wrap{padding-bottom:max(6px,env(safe-area-inset-bottom))}
  .quick-tools{margin-bottom:5px}
}

/* Keep the return control above the composer, outside the scrolling transcript. */
#messages{overflow-anchor:none}
#message-content{display:flow-root;min-width:0}
.composer-wrap{position:relative}
#scroll-latest{position:absolute;z-index:3;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #dedfd8;border-radius:50%;background:#fff;color:#393d34;box-shadow:0 2px 9px #25272316;touch-action:manipulation}
#scroll-latest:hover{background:#f5f5f1;border-color:#c4c8bc}
#scroll-latest:active{background:#eeeee7}
#scroll-latest .icon{width:21px;height:21px;stroke-width:1.8}
/* Suggestions read like the next conversational choices, with a compact draft receipt. */
.next-steps{margin:22px 0 6px;min-width:0;--suggestion-surface:#fff}
.next-steps-heading{display:flex;align-items:center;gap:12px;margin-bottom:11px;color:#92958d;font-size:11px;line-height:1.6}
.next-steps-heading strong{font-size:12px;font-weight:500;color:#666b61}
.next-steps-heading>span{padding-left:12px;border-left:1px solid #e3e5de}
.next-step-list{display:flex;flex-wrap:wrap;gap:8px}
.next-step{display:inline-flex;align-items:center;gap:9px;max-width:100%;min-width:0;min-height:46px;padding:10px 13px;border:1px solid #e5e7e0;border-radius:15px;background:var(--suggestion-surface);color:#42463e;text-align:left;box-shadow:0 1px 2px #222b1c03;transition:background .16s,border-color .16s,color .16s,box-shadow .16s;cursor:pointer}
.next-step>strong{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.next-step .next-step-leading{width:17px;height:17px;color:#989d90;stroke-width:1.6}
.next-step .next-step-trailing{width:14px;height:14px;color:#a4a89e;margin-left:3px;stroke-width:1.8;transition:transform .16s}
.next-step>strong small{flex-shrink:0;font-size:9px;font-weight:400;white-space:nowrap;padding:2px 5px;border-radius:5px;background:#f1f2ed;color:#72796a;line-height:1.4}
.next-step:focus-visible{outline:2px solid #bd624a;outline-offset:3px}
.next-step.is-applied{--suggestion-surface:#fff7f2;border-color:#e6bba9;color:#a3432d;box-shadow:none}
.next-step.is-applied .next-step-leading,.next-step.is-applied .next-step-trailing{color:#b65d42}
.next-step.is-applied>strong small{background:#f5e6dc;color:#9b5a42}
.next-step:active{--suggestion-surface:#f6f6f1;box-shadow:none}
@media(hover:hover){.next-step:hover{--suggestion-surface:#f9f9f5;border-color:#cbd0c2;box-shadow:0 2px 5px #222b1c06}.next-step:hover .next-step-trailing{transform:translateX(2px);color:#636e55}.next-step.is-applied:hover{--suggestion-surface:#fff4ec;border-color:#d8a18a}}
.next-steps-waiting{display:flex;align-items:center;gap:8px;font-size:11px;color:#8d9285;margin:12px 0}
.next-steps-waiting::before{content:'';width:5px;height:5px;border-radius:50%;background:#c2c8b9;animation:idea-pulse 1.6s ease-in-out infinite}
@keyframes idea-pulse{50%{opacity:.35}}
#draft-feedback{position:absolute;inset:auto auto calc(100% + 9px) 0;z-index:4;display:flex;align-items:center;gap:7px;width:max-content;max-width:calc(100% - 54px);min-height:44px;margin:0;padding:0 7px 0 13px;border:1px solid #e5e7de;border-radius:14px;background:#fffffff5;box-shadow:0 3px 12px #2527230a;backdrop-filter:blur(10px);color:#73796b;font-size:11px;line-height:1.5}
#draft-feedback .feedback-check{width:15px;height:15px;color:#79906b;stroke-width:2}
#draft-feedback-text{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#undo-prompt{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;flex-shrink:0;padding:0 7px;border:0;border-radius:8px;font-size:11px;font-weight:500;color:#666e5d;background:transparent}
#undo-prompt .icon{width:14px;height:14px}
#undo-prompt:hover{background:#f3f4ee;color:#394530}
.composer-wrap:has(#draft-feedback:not([hidden])) #scroll-latest{left:auto;right:0;transform:none}
.conversation:has(#draft-feedback:not([hidden])) #messages{padding-bottom:64px}
@media(max-width:800px){.next-steps{margin-top:16px;margin-bottom:3px}.next-steps-heading{margin-bottom:9px;gap:9px;font-size:10px}.next-steps-heading strong{font-size:11px}.next-steps-heading>span{padding-left:9px}.next-step-list{gap:7px}.next-step{min-height:44px;padding:9px 11px;gap:7px;border-radius:13px}.next-step>strong{font-size:12px;gap:5px}.next-step .next-step-leading{width:15px;height:15px}.next-step .next-step-trailing{width:12px;height:12px;margin-left:1px}#draft-feedback{font-size:11px;padding-left:10px}#undo-prompt{font-size:11px}}
@media(prefers-reduced-motion:reduce){.next-step,.next-step .next-step-trailing{transition:none}.next-steps-waiting::before{animation:none}}

/* One round stays together in the image viewer. */
#image-preview{width:min(1040px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 32px);padding:20px;overflow:hidden;border:1px solid #e2e5dc;border-radius:20px;background:#fafbf8;box-shadow:0 24px 90px #14200f33}
#image-preview::backdrop{background:#171e16b8;backdrop-filter:blur(8px)}
#image-preview .preview-head{gap:14px;margin:0 0 14px;min-height:44px}
.preview-heading{min-width:0}
#preview-title{font-size:15px;font-weight:600;line-height:1.4}
#preview-caption{font-size:11px;color:#77806c;line-height:1.5;margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#close-preview{width:44px;height:44px;border:0;background:#f0f2eb;border-radius:50%;flex-shrink:0}
#close-preview:hover{background:#e5e9dd}
#preview-stage{position:relative;display:grid;place-items:center;height:min(62dvh,650px);min-height:120px;padding:12px 64px;border:1px solid #e9ece3;border-radius:14px;background:repeating-conic-gradient(#f1f3ed 0% 25%,#f8f9f5 0% 50%) 0 0/20px 20px;overflow:hidden;touch-action:pan-y pinch-zoom}
#preview-image{width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;margin:0;border-radius:0;user-select:none;-webkit-user-drag:none}
#preview-loading{position:absolute;inset:0;display:grid;place-items:center;padding:24px 64px;font-size:12px;line-height:1.7;text-align:center;color:#7e8675;pointer-events:none}
.preview-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid #dfe4d6;border-radius:50%;background:#fffffff0;box-shadow:0 2px 8px #29371d0c;color:#58634b}
#preview-prev{left:10px}#preview-next{right:10px}
#preview-prev .icon{transform:rotate(180deg)}
.preview-nav:hover:not(:disabled){background:#fff;border-color:#b8c4a9;color:#34452a}
.preview-nav:disabled{opacity:.3;cursor:default;box-shadow:none}
.preview-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 2px 10px;font-size:11px;color:#8a9280;line-height:1.5}
#preview-counter{font-variant-numeric:tabular-nums;font-size:12px;color:#515c45;white-space:nowrap}
#preview-thumbs{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 2px 5px;position:relative}
.preview-thumb{position:relative;flex:0 0 58px;width:58px;height:58px;border:1px solid #e1e6d8;border-radius:10px;padding:3px;background:#fff;overflow:hidden}
.preview-thumb img{display:block;width:100%;height:100%;object-fit:contain;border-radius:6px}
.preview-thumb span{position:absolute;bottom:3px;right:3px;min-width:16px;padding:1px 3px;border-radius:4px;background:#fffffff0;color:#6d785e;font-size:9px;line-height:1.4}
.preview-thumb[aria-current=true]{border:2px solid #c7694b;padding:2px;background:#fff4ec}
.preview-thumb[aria-current=true] span{background:#c7694b;color:#fff}
.preview-thumb:hover{border-color:#acb89b}
@media(max-width:800px){#image-preview{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:12px;border-radius:17px}#image-preview .preview-head{margin-bottom:10px}#preview-title{font-size:14px}#preview-caption{font-size:10px}#preview-stage{height:calc(100dvh - 222px);max-height:620px;padding:8px;border-radius:10px}#preview-prev{left:6px}#preview-next{right:6px}.preview-nav{background:#ffffffe6;border-color:#e0e5d8}.preview-footer{font-size:10px;margin:10px 1px 8px}.preview-thumb{flex-basis:50px;width:50px;height:50px;border-radius:8px}#preview-thumbs{gap:6px}.preview-footer span:last-child{text-align:right}}
@media(max-height:480px){#image-preview{padding:10px}#image-preview .preview-head{margin-bottom:8px}#preview-stage{height:calc(100dvh - 202px);min-height:70px}.preview-footer{margin:7px 0}.preview-thumb{flex-basis:44px;width:44px;height:44px}}
