/* V153 offline reference: shared visual scale, without the simulated phone frame.
   Loaded last by the app, creation and model-detail pages. No business behavior. */
:root{--ink:#181818;--muted:#777;--line:#eee;--app-radius:11px;--app-surface:#f6f6f6;--app-border:#e5e5e5;--app-shadow:0 8px 28px #0000000d}
body{background:#fff;color:var(--ink);font-family:Arial,"Microsoft YaHei",Helvetica,sans-serif}
button,input,select,textarea{font-family:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:2px solid #848484;outline-offset:3px}
.primary,.secondary{border-radius:11px;min-height:45px;font-size:13px;font-weight:500}
.primary{background:#181818;color:#fff}
.secondary{background:#fff;border-color:#d4d4d4}
.chip{background:#f6f6f6;color:#555;border-radius:24px;font-size:11px;padding:10px 13px}
.chip.active{background:#181818;color:#fff}
.card-media{border-radius:11px}
.creation-tabs{gap:0;border-bottom:1px solid #ededed;margin:6px 0 16px}
.creation-tabs button{border-radius:0;font-size:12px;font-weight:400;color:#888;padding:13px 6px;min-height:44px}
.creation-tabs button[aria-current=page]{color:#181818;font-weight:600;border-bottom-color:#181818}
.app-search-field{background:#f6f6f6;border-radius:24px;height:42px}
.app-search-field:focus-within{background:#fafafa;border-color:#c8c8c8}
.app-search-field>svg{color:#888;stroke-width:1.65}
.app-search-form input[type=search]{height:40px;font-size:13px}
.app-search-form .app-type-filter select,#backpack-filter.app-search-form select,#owned-model-type{height:42px;min-height:42px;background:#f6f6f6;border:0;border-radius:22px;padding:0 26px 0 12px;font-size:12px;color:#555}
.app-search-field .search-clear{background:#e5e5e5;color:#666}
.creation-grid .generation-record.library-card,.creation-grid .generation-record.library-card>.library-card-open{border-radius:12px}
.library-card-open .library-cover{border-radius:12px}
.library-card-open .cover-empty{background:#f6f6f6}
.library-card-copy strong{font-size:14px;letter-spacing:-.2px}
.library-card-copy small{font-size:11px;color:#8d8d8d}
.product-header h1,#model-detail>.product-header h1{font-size:21px;letter-spacing:-.6px}
.product-header>a,.product-header>a:first-child{width:44px;height:44px;padding:0;display:grid;place-items:center;font-size:0!important;border-radius:50%;text-decoration:none}
.product-header>a::before{content:'';width:9px;height:9px;border-left:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg)}
.product-header>a:hover{background:var(--app-surface)}
.product-header .web-controls button{border-color:#eee;font-size:11px;min-height:32px}
body:has(.creation-form),body:has(#model-detail){background:#fff;color:#181818}
.creation-form h2,.creation-form legend{font-size:15px;letter-spacing:-.3px}
.quality-cards button{border-radius:11px;background:#fff;border-color:#e5e5e5}
.quality-cards button[aria-pressed=true]{background:#fafafa;border-color:#181818}
.quality-cards button[aria-pressed=true]>span{color:#181818}
.quality-cards strong{font-size:15px}
.generate-footer{background:#fffffff5;border-top-color:#f0f0f0}
.model-preview-card{border:0;border-radius:12px;background:#f6f6f6}
.model-info{border-color:#eee;border-radius:12px}
.model-info h2{font-size:18px}
.model-info button,.model-download{border-radius:11px;font-size:13px;min-height:44px}
.member-showcase{background:#f6f6f6;border-radius:14px}
.member-showcase h3{font-size:21px}
.member-plan,.member-menu{border-radius:13px}
@media(max-width:600px){
 body:not([data-page=three]):not([data-page=designer]) .screen{padding-left:16px;padding-right:16px}
 .topbar{height:52px;min-height:52px}
 .topbar h1{font-size:27px;letter-spacing:-1px}
 .topbar .icon{width:40px;height:44px}
 .topbar .icon svg{width:20px;height:20px}
 .nav{height:calc(61px + env(safe-area-inset-bottom));padding:7px 7px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #f1f1f1;background:#fffffff2}
 .nav button{font-size:10px;gap:4px;min-width:60px;padding:0 10px}
 .nav svg{width:21px;height:21px}
 .home-chips{margin:2px 0 12px;gap:6px}
 .look-list{gap:18px}
 .card-title h3{font-size:15px;letter-spacing:-.3px}
 .card-title p{font-size:11px}
 .app-search-form{margin:12px 0 16px}
 .creation-grid{gap:14px 12px;margin:16px 0}
 .library-card-copy{padding:10px 2px 12px}
 .library-card-menu summary{width:32px;height:32px}
 .product-header{min-height:48px;margin-bottom:16px}
 .product-header h1,#model-detail>.product-header h1{font-size:21px}
 #model-detail{padding:12px 16px}
 .model-info{border:0;padding:12px 0 20px}
 .model-detail-layout{gap:12px}
 .member-heading{padding:16px 0 22px}
 .member-heading h2{font-size:23px}
 .member-menu button{min-height:52px;padding:15px 14px}
}
@media(prefers-reduced-motion:reduce){.library-card-open{transition:none}}

/* Shared states and controls: the same vocabulary on every product route. */
:where(button,a,input,select,textarea){touch-action:manipulation}
:where(button,a){transition:background-color .15s,color .15s,border-color .15s}
button:disabled{cursor:default;opacity:.42}
:where(input,select,textarea):focus-visible{outline:2px solid #888;outline-offset:2px}
:where(.empty,.library-empty,.model-error){padding:32px 18px;text-align:center;border:0;background:var(--app-surface);border-radius:14px;color:var(--muted);line-height:1.7}
:where(.empty,.library-empty,.model-error) h2,:where(.empty,.library-empty,.model-error) h3{color:var(--ink);font-size:18px;margin-bottom:8px}
.creation-grid>p:only-child{grid-column:1/-1;text-align:center;padding:48px 16px;color:var(--muted);font-size:13px;background:var(--app-surface);border-radius:14px}
.load-feedback,.chat-wait{color:var(--muted);font-size:12px;line-height:1.6}
.load-spinner{border-color:#e5e5e5;border-top-color:var(--ink)}
.parent-task-card{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fafafa;box-shadow:none}
.parent-task-card h3{font-size:14px}.parent-task-card a,.parent-task-card button{font-size:12px;border-color:var(--app-border);border-radius:9px}
#toast{border-radius:14px;font-size:13px;line-height:1.6;background:#181818;color:#fff;box-shadow:var(--app-shadow)}

/* Chat retains its conversation layout, sharing neutral surfaces and typography. */
.live-chat-heading{border-color:var(--line)}
.live-chat-heading strong{font-size:17px;letter-spacing:-.3px}
.live-chat-heading small{color:#888;letter-spacing:1.5px}
.chat-greeting>span{color:#888}.chat-greeting h1{font-weight:500;letter-spacing:-.5px}
.live-message.user{background:var(--app-surface);border-radius:18px 18px 4px 18px}
.live-message>p{font-size:14px;line-height:1.8}
.live-composer{border-color:var(--app-border);box-shadow:none;border-radius:24px}
.chat-send{background:var(--ink)}
.chat-upload:focus-within{outline-color:#888}
.inline-plan{border-color:var(--line);border-radius:12px;background:white}
.plan-actions button{border-color:var(--app-border);min-height:36px;border-radius:9px}
.plan-actions button:first-child{background:var(--ink);border-color:var(--ink)}
.chat-error{border:1px solid #efe3df;color:#975a49;background:#fcf7f5}

/* Account/settings are simple list rows, not another library of large actions. */
.identity-card{border:0;background:var(--app-surface);border-radius:16px;padding:28px 22px;box-shadow:none}
.identity-card h2{font-size:21px}.identity-card p{font-size:13px}
.account-links{gap:20px}.account-links button{background:none;border-radius:0;font-size:12px;padding:10px 0;color:var(--muted)}
.member-plan{margin-top:16px;box-shadow:none}
.member-edit{min-height:40px;border-color:var(--app-border);font-size:12px}
.settings-page{max-width:680px;margin:0 auto}
.settings-page .profile-links button{min-height:54px;border-color:var(--line);padding:16px 0;font-size:14px}
.settings-info{padding:17px 0;border-bottom:1px solid var(--line);font-size:13px}
.settings-info button{min-height:40px;padding:8px 12px;background:var(--app-surface);border-radius:20px}
.settings-info small,.settings-signout p{font-size:12px;line-height:1.6;color:var(--muted)}
.registration-page{max-width:480px;margin:auto}.registration-page input,.registration-page select{border-color:var(--app-border);border-radius:11px;background:#fafafa;min-height:44px}

/* Editing and scene controls use the same light panels and fine-line buttons. */
.image-edit-content h3,.image-pieces-head h3{font-size:15px;letter-spacing:-.3px}
.image-pieces>button{border-color:var(--line);border-radius:12px;background:#fafafa}
.image-pieces>button:hover{background:#f3f3f3}
.image-update-status{color:var(--muted);background:#f6f6f6;font-size:11px;line-height:1.5}
.scene-items,.scene-drawer{border-color:var(--line);box-shadow:var(--app-shadow);border-radius:14px}
.scene-items h2,.scene-drawer h3{font-size:15px}
.scene-items button[aria-pressed=true]{background:#f3f3f3;border-color:#aaa}
body[data-page=three] .selection.selection-floating{border:1px solid var(--line);box-shadow:0 4px 18px #00000014;border-radius:14px}
.furniture-action{border-radius:10px}.furniture-action:hover{background:var(--app-surface)}
.diy-tools button{color:#333;font-size:11px}.small-pill{border:1px solid var(--app-border);background:white;border-radius:22px;min-height:36px}

/* Dialogs, cover picker and the backpack share one panel treatment. */
#modal,#result-dialog{border:1px solid var(--line);border-radius:18px!important;background:white;color:var(--ink);box-shadow:0 16px 56px #0002;padding:22px;max-height:calc(100dvh - 32px)}
#modal::backdrop,#result-dialog::backdrop{background:#0005;backdrop-filter:none}
#modal h2,#result-dialog h2{font-size:21px;letter-spacing:-.5px;margin:0 0 16px}
#modal p{font-size:13px;line-height:1.7;color:var(--muted)}
.drawer-head{align-items:center;gap:12px}.drawer-head h2{margin:0!important;font-size:18px!important}
.drawer-head>button{min-height:40px;padding:8px 12px;border-radius:20px;font-size:12px;background:var(--app-surface)}
.cover-picker-grid button{background:#fafafa;border-color:var(--app-border);border-radius:12px}
.cover-picker-grid button[aria-pressed=true]{border-color:var(--ink)}
.backpack-items button{border:1px solid var(--line);border-radius:12px;background:#fafafa;padding:14px;text-align:left;min-height:56px}
.backpack-items button small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.style-option{border-radius:12px;border-color:var(--app-border)}
.style-option.selected,.style-option[aria-pressed=true]{border-color:var(--ink)}

/* Standalone pages use the same form scale and safe bottom action area. */
.creation-header.product-header h1{font-size:21px;letter-spacing:-.6px}
.creation-form .image-picker{border:1px solid var(--app-border);background:#fafafa;border-radius:12px}
.creation-form .image-picker-icon{background:#eee;color:#555}
.creation-form .image-picker strong{font-size:14px;font-weight:500}
.creation-form .upload-preview{background:var(--app-surface);border-radius:12px}
.creation-form select,.creation-form input,.creation-form textarea,.model-info input,.model-info select{border-color:var(--app-border);border-radius:10px;background:#fafafa;font-size:14px;min-height:44px}
.creation-form .field-hint,.model-orbit-hint{color:var(--muted);font-size:12px;line-height:1.6}
.type-fields label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.generate-footer button{font-size:14px;font-weight:500;border-radius:11px;min-height:46px}
.generate-footer>div{font-size:11px;color:var(--muted)}
#catalog>header h1,.admin-shell h1{font-size:24px;letter-spacing:-.6px}
.product-grid article{border-color:var(--line);border-radius:12px;padding:14px}
.product-grid h2{font-size:15px}.product-grid p{font-size:12px;color:var(--muted)}
.admin-nav button,.admin-panel button{font-size:13px;border:1px solid var(--app-border);border-radius:10px;min-height:40px;background:white;padding:10px 14px}
.admin-panel{border-color:var(--line);border-radius:14px;padding:20px}.admin-panel h2{font-size:20px}.admin-panel input{border:1px solid var(--app-border);border-radius:10px;font:inherit}
@media(max-width:600px){
 .identity-card{margin:20px 0;padding:26px 20px}.member-profile{margin-top:0}
 .live-chat-heading{padding:12px 0;min-height:56px}.chat-stream{padding:18px 0}.chat-dock{padding-top:10px}
 .live-message{margin-bottom:24px}.live-message.user{padding:10px 15px}
 .plan-actions button{min-height:40px}.inline-plan{border-radius:12px}
 #modal,#result-dialog{padding:20px 16px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
 .scene-items{border-radius:12px}.image-edit-content{padding-left:0;padding-right:0}
 .creation-header.product-header{margin-bottom:16px}.product-header>a{font-size:12px;min-height:44px;display:flex;align-items:center}
 .admin-shell{padding:16px}.admin-nav{gap:8px}.admin-panel{padding:16px}
}
@media(orientation:landscape) and (max-height:500px){
 .topbar,.product-header,.creation-header.product-header{min-height:44px;height:44px;margin-bottom:8px}
 .nav{height:48px;padding:4px 12px}.nav button{gap:1px;font-size:9px}.nav svg{width:18px;height:18px}
 body[data-page=saved] .screen,body[data-page=home] .screen,body[data-page=profile] .screen{padding-bottom:62px}
 .generate-footer{position:static;padding:12px 0;margin-top:8px;grid-column:1/-1}
 main:has(.creation-form){padding-bottom:20px}
 #modal,#result-dialog{max-height:calc(100dvh - 16px);padding:16px}
}
@media(prefers-reduced-motion:reduce){:where(button,a){transition:none}.chat-stream{scroll-behavior:auto}}

/* Touch-first choice sheets. The source select only carries the existing form value. */
select.choice-source{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0;pointer-events:none;clip-path:inset(50%)}
.choice-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;width:100%;padding:12px 14px;border:1px solid var(--app-border);border-radius:11px;background:#fafafa;text-align:left;font:inherit;font-size:14px;color:var(--ink)}
.choice-trigger::after{content:'';width:7px;height:7px;border-right:1.5px solid #999;border-top:1.5px solid #999;transform:rotate(45deg);flex:none}
.app-search-form .app-type-filter{max-width:120px;flex-basis:120px}
.app-type-filter .choice-trigger{width:100%;font-size:12px;border:0;border-radius:22px;background:var(--app-surface);padding:10px 12px;white-space:nowrap;overflow:hidden}
.app-type-filter>svg{display:none}
dialog.choice-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,520px);max-width:520px;max-height:min(78dvh,640px);padding:10px 20px max(20px,env(safe-area-inset-bottom));border:0;border-radius:22px 22px 0 0!important;background:#fff;color:var(--ink);box-sizing:border-box;box-shadow:0 -8px 40px #0001;overflow:hidden}
.choice-sheet[open]{display:flex;flex-direction:column;gap:14px}
.choice-sheet::backdrop{background:#0005;backdrop-filter:none}

.choice-sheet header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none;margin:0}
.choice-sheet h2{font-size:19px;margin:0;letter-spacing:-.4px}
.choice-sheet-close{border:0;background:#f5f5f5;border-radius:50%;width:36px;height:36px;padding:0;font-size:24px;color:#666;flex:none}
.choice-sheet-search{flex:none}.choice-sheet-search[hidden]{display:none}
.choice-sheet input{width:100%;height:44px;border:0;border-radius:22px;background:#f5f5f5;padding:0 16px;font:inherit;font-size:14px;box-sizing:border-box}
.choice-sheet-options{overflow-y:auto;overscroll-behavior:contain;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:2px 2px 8px}
.choice-sheet-options button{min-height:46px;padding:12px;border:1px solid #eee;border-radius:11px;background:white;text-align:left;font:inherit;font-size:13px;overflow-wrap:anywhere}
.choice-sheet-options button[aria-pressed=true]{background:#181818;color:white;border-color:#181818}
.choice-sheet-empty{padding:24px 0;text-align:center;color:#888;font-size:13px}
@media(min-width:700px) and (min-height:501px){dialog.choice-sheet{inset:0;margin:auto;height:max-content;border-radius:20px!important}.choice-sheet-options{max-height:360px}}
@media(max-height:500px){dialog.choice-sheet{max-height:92dvh}.choice-sheet-options{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Library and conversation: return to the V153 compact list/bubble composition.
   Scoped to these routes so creation forms and 3D controls remain unchanged. */
body[data-page=saved] .screen>.topbar{height:58px;align-items:center}
body[data-page=saved] .topbar h1{font-size:27px;letter-spacing:-.8px}
body[data-page=saved] .topbar>.primary{min-height:34px;padding:8px 15px;border-radius:20px;font-size:12px}
body[data-page=saved] .creation-tabs{margin:2px 0 18px;gap:16px;justify-content:flex-start}
body[data-page=saved] .creation-tabs button{flex:0 0 auto;min-width:56px;padding:12px 3px;font-size:13px}
body[data-page=saved] .creation-grid.project-library-grid{grid-template-columns:1fr;gap:26px}
body[data-page=saved] .creation-grid.project-library-grid .library-card{border:0;border-radius:0;background:white;padding:0}
body[data-page=saved] .creation-grid.project-library-grid .library-card-open{display:block;min-height:0;padding:0;border-radius:15px 15px 0 0;background:white;text-align:left}
body[data-page=saved] .creation-grid.project-library-grid .library-cover{display:block;width:100%;height:auto;aspect-ratio:1.2;object-fit:cover;border-radius:15px}
body[data-page=saved] .creation-grid.project-library-grid .library-card-copy{display:block;padding:16px 2px 8px;min-width:0}
body[data-page=saved] .creation-grid.project-library-grid .library-card-copy strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:18px;font-weight:600;line-height:1.45;letter-spacing:-.3px}
body[data-page=saved] .creation-grid.project-library-grid .library-card-copy small{display:block;font-size:12px;color:#888;margin-top:10px;line-height:1.7}
body[data-page=saved] .creation-grid.project-library-grid .library-card-menu{top:12px;right:12px;transform:none}
body[data-page=saved] .library-card-menu summary{background:#f7f7f7;box-shadow:none;width:30px;height:30px}
body[data-page=saved] .model-library-grid{gap:16px 12px}
body[data-page=saved] .model-library-grid .library-card-open{background:white}
body[data-page=saved] .model-library-grid .library-cover{background:#f6f6f6;aspect-ratio:1;object-fit:contain}
body[data-page=saved] .model-library-grid .library-card-copy{padding:10px 2px}
body[data-page=saved] .screen>[data-act=migration-review]{font-size:11px;color:#888;margin-top:12px}

body[data-page=designer] .screen{background:#fff;padding-left:max(16px,calc((100vw - 760px)/2));padding-right:max(16px,calc((100vw - 760px)/2))}
body[data-page=designer] .live-chat-heading{padding:12px 0;min-height:60px;gap:9px;border-bottom:1px solid #f0f0f0}
body[data-page=designer] .live-chat-heading>button{width:30px;height:36px;font-size:26px;padding:0}
body[data-page=designer] .live-chat-heading strong{font-size:18px;letter-spacing:-.5px}
body[data-page=designer] .live-chat-heading small{font-size:9px;letter-spacing:1.6px;margin-top:3px}
body[data-page=designer] .chat-stream{padding:20px 0 12px;scrollbar-width:thin;scrollbar-color:#ddd transparent}
body[data-page=designer] .live-message{width:fit-content;max-width:90%;margin:0 0 17px;padding:12px 14px;background:#f7f7f7;border-radius:3px 14px 14px 14px;line-height:1.65}
body[data-page=designer] .live-message.user{margin-left:auto;background:#efefef;border-radius:14px 3px 14px 14px;max-width:85%}
body[data-page=designer] .live-message>small{font-size:10px;color:#888;line-height:1.4;display:block}
body[data-page=designer] .live-message>p{font-size:14px;line-height:1.7;margin:5px 0 0}
body[data-page=designer] .live-message:has(.inline-plans){max-width:100%;width:100%;box-sizing:border-box}
body[data-page=designer] .inline-plans{margin:12px 0 4px;gap:10px}
body[data-page=designer] .inline-plan{background:white;border:1px solid #e8e8e8;border-radius:11px}
body[data-page=designer] .inline-plan p{font-size:12px;line-height:1.6}
body[data-page=designer] .chat-dock{padding:9px 0 max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #f7f7f7}
body[data-page=designer] .composer-hint{font-size:11px;color:#999;margin:0 0 8px}
body[data-page=designer] .live-composer{min-height:48px;gap:7px;padding:7px 9px;border:1px solid #e3e3e3;border-radius:25px;box-shadow:0 2px 12px #00000004}
body[data-page=designer] .chat-upload{width:30px;height:32px;font-size:24px;color:#888}
body[data-page=designer] .chat-send{width:32px;height:32px;font-size:20px;background:#181818}
body[data-page=designer] .live-composer textarea{font-size:14px;line-height:22px;padding:5px 2px}
body[data-page=designer] .chat-greeting{height:70%;min-height:160px}
body[data-page=designer] .chat-greeting h1{font-size:23px;line-height:1.5;max-width:300px;font-weight:500}
@media(min-width:900px){body[data-page=saved] .creation-grid.project-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:500px){body[data-page=designer] .live-chat-heading{min-height:44px;padding:5px 0}body[data-page=designer] .chat-dock{padding:5px 0}body[data-page=designer] .chat-greeting{min-height:60px}body[data-page=designer] .live-message{margin-bottom:10px}}
body[data-page=saved] .creation-tabs{gap:0;margin:6px 0 16px}
body[data-page=saved] .creation-tabs button{flex:1;min-width:0;text-align:center;padding:13px 4px;font-size:12px}
.library-content-filters{gap:6px;margin:0 0 16px}
.library-content-filters .chip{font-size:11px;padding:8px 15px;min-height:34px}
.image-preview-placeholder{display:block;overflow:hidden;background:#f6f6f6}
.image-preview-placeholder img{display:block;width:100%;height:100%;object-fit:cover}
.library-image-result{display:block;width:100%;max-height:65dvh;object-fit:contain;border-radius:12px;margin:0 0 16px}
body[data-page=saved] .project-library-grid .library-card-menu summary{background:#ffffffed;width:34px;height:34px;box-shadow:0 2px 8px #00000008}
/* Publications share the original large-cover library visual language. */
.publication-grid .library-card{position:relative}
.publication-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#85858a;font-size:14px;line-height:1.65;margin-top:10px;white-space:pre-wrap}
.publication-empty{text-align:center;padding:54px 18px;color:#85858a}.publication-empty h2{color:#161616;font-size:22px}.publication-empty p{line-height:1.7}
.showcase-intro{padding:24px 0 30px}.showcase-intro small{font-size:10px;letter-spacing:2px;color:#888}.showcase-intro h1{font-size:30px;margin:12px 0}.showcase-intro p{font-size:14px;color:#888}.showcase-page{padding:0 20px 36px}
.publication-form{display:grid;gap:16px}.publication-form header{display:flex;align-items:center;justify-content:space-between}.publication-form h2{margin:0;font-size:22px}.publication-form header button{border:0;background:#f5f5f5;border-radius:50%;width:34px;height:34px;font-size:24px}.publication-form>label{display:grid;gap:8px;font-size:13px;color:#555}.publication-form input:not([type=radio]),.publication-form textarea{width:100%;box-sizing:border-box;border:1px solid #e5e5e5;border-radius:12px;padding:12px;font:inherit;font-size:16px;background:#fafafa;color:#161616}.publication-cover-options{display:flex;gap:10px;overflow-x:auto;padding:3px 3px 9px}.publication-cover-options label{flex:0 0 112px;position:relative}.publication-cover-options img{width:112px;height:94px;object-fit:cover;border-radius:12px;border:2px solid transparent;box-sizing:border-box}.publication-cover-options input{position:absolute;opacity:0}.publication-cover-options label:has(input:checked) img{border-color:#20271c}.publication-cover-options label:has(input:focus-visible){outline:2px solid #20271c}.publication-note{font-size:12px;color:#888;line-height:1.65;margin:0}.publication-detail>img{width:100%;max-height:55vh;object-fit:cover;border-radius:15px}.publication-detail>p{color:#777;line-height:1.8;white-space:pre-wrap}
@media(max-width:600px){dialog:has(.publication-form){width:100%;max-width:100%;margin:auto 0 0;border-radius:22px 22px 0 0;box-sizing:border-box;max-height:92dvh;padding:24px 20px calc(24px + env(safe-area-inset-bottom))}.showcase-page{padding:0 4px 24px}.creation-tabs button{font-size:13px;padding-inline:4px}}
.readonly-project-images{display:grid;gap:12px;margin:18px 0}.readonly-project-images img{width:100%;border-radius:14px;object-fit:contain}.piece-strip:empty,.path-actions:has(>div:empty){display:none}
/* Each library tab owns its contextual action, below the original underline tabs. */
.library-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 20px}
.library-section-heading h2{margin:0;font-size:23px;line-height:1.25;letter-spacing:-.5px}
.library-section-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;max-width:58%;padding:10px 15px;border:1px solid #161616;border-radius:24px;background:#161616;color:white;font:inherit;font-size:13px;line-height:1.3;cursor:pointer}
.library-section-action>span:first-child{font-size:20px;line-height:1}.library-section-action:focus-visible{outline:2px solid #7f8c71;outline-offset:3px}
@media(max-width:600px){.library-section-heading{margin:20px 0 18px}.library-section-heading h2{font-size:21px}.library-section-action{font-size:12px;padding:9px 13px}}

.library-card.copied-project{outline:3px solid #8b9b78;outline-offset:5px;box-shadow:0 0 0 10px #8b9b781c;scroll-margin:100px;animation:copied-design-pulse 1.1s ease-in-out 3}@keyframes copied-design-pulse{50%{box-shadow:0 0 0 14px #8b9b780b}}@media(prefers-reduced-motion:reduce){.library-card.copied-project{animation:none;scroll-behavior:auto}}

/* Generation belongs to its design, never a second list above it. */
.design-task-status:empty{display:none}.design-task-status{padding:0 2px 12px}.design-task-status .load-feedback{padding:8px 10px;border-radius:12px;background:#f5f6f2;font-size:12px;gap:8px}.design-task-status .load-spinner{width:14px;height:14px}.design-task-status p{margin:0;font-size:12px;color:#777}

.pending-product-cards{display:contents}.model-task-status:empty{display:none}.model-task-status{padding:0 2px 12px}.model-task-status .load-feedback{padding:8px;border-radius:12px;background:#f5f6f2;font-size:12px;gap:6px}.model-task-status .load-spinner{width:14px;height:14px}.pending-product .text-btn{font-size:12px}.model-task-status p{font-size:12px;margin:0}

/* Keep Explore's title and search control visible while browsing the feed. */
body[data-page=home] .screen>.topbar{position:sticky;top:0;z-index:30;background:#fff;isolation:isolate;box-shadow:0 1px 0 #f0f0f0}
body[data-page=home] .screen{scroll-padding-top:72px}

/* Primary tabs share the bottom navigation; chat composer stays above it. */
body[data-page=designer] .screen{height:calc(100% - 66px);bottom:66px;padding-bottom:0}
body[data-page=designer] .nav{height:66px}

.choice-sheet-groups{display:flex;gap:8px;overflow:auto;flex-shrink:0;padding:8px 0 14px}.choice-sheet-groups button{white-space:nowrap;border-radius:20px;padding:9px 14px;background:#f5f5f5;font-size:13px}.choice-sheet-groups button[aria-pressed=true]{background:#181818;color:white}

.publication-form [data-copy-candidate]{padding:16px;margin:14px 0;border-radius:16px;background:#f3f4ee}.publication-form [data-copy-candidate] p{line-height:1.65}.publication-form [data-copy-generate]{margin:12px 0}.publication-form input[name=title],.publication-form textarea{font-size:16px}
.publication-form .description-input{position:relative;display:block}.publication-form .description-input textarea{display:block;min-height:124px;padding-bottom:48px;resize:vertical}.publication-form .ai-copy-icon{position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:36px;height:36px;padding:6px;margin:0;border:0;border-radius:50%;background:transparent;cursor:pointer}.ai-copy-icon svg{width:26px;height:26px}.ai-copy-icon:focus-visible{outline:2px solid #8c6ce8}.ai-copy-icon.is-loading svg{animation:copy-pulse 1s ease-in-out infinite alternate}.publication-form>label.save-publish-option{display:flex;align-items:center;gap:9px;color:#333}.publication-form input[type=checkbox]{width:18px;height:18px;margin:0;padding:0;accent-color:#20271c}.composition-next{white-space:nowrap}.publication-form [data-copy-candidate]{margin:0}@keyframes copy-pulse{to{opacity:.35;transform:scale(.8)}}@media(prefers-reduced-motion:reduce){.ai-copy-icon.is-loading svg{animation:none;opacity:.5}}

/* Shared generation feedback: also loaded by My Library, not just the creation form. */
.load-feedback{display:flex;align-items:center;gap:9px;flex-wrap:wrap;line-height:1.5}
.load-spinner{display:inline-block;width:16px;height:16px;border:2px solid #dadfd5;border-top-color:#78846a;border-radius:50%;animation:generation-spin .85s linear infinite;flex:none}
.generation-progress{display:block;position:relative;overflow:hidden;height:4px;border-radius:8px;background:#e3e6df;flex-basis:100%;width:100%;margin-top:5px}
.generation-progress>span{display:block;height:100%;width:36%;border-radius:inherit;background:#839071;animation:generation-sweep 1.65s ease-in-out infinite}
.load-feedback progress{display:block;flex-basis:100%;width:100%;height:4px;accent-color:#839071}
.pending-product.library-card{overflow:hidden;border:1px solid #e8eae4;background:#fff;border-radius:20px}
.pending-product .library-cover{position:relative;display:grid;place-items:center;aspect-ratio:1.2;background:radial-gradient(ellipse at 50% 42%,#f8f9f5,#edefe8);color:#8b967e}
.pending-product .library-cover svg{width:54px;height:54px;stroke-width:1.2;z-index:1}
.pending-product .library-cover:before{content:'';position:absolute;width:92px;height:92px;border:1px solid #dfe4d6;border-top-color:#8a987a;border-radius:50%;animation:generation-spin 3s linear infinite}
.pending-product .library-card-copy{display:block;padding:16px 16px 0}.pending-product .model-task-status{padding:8px 16px 18px}.pending-product .load-feedback{background:none;padding:0;font-size:12px;color:#78816f}
.composition-progress .generation-progress{margin-top:12px;min-width:160px}
@keyframes generation-spin{to{transform:rotate(360deg)}}
@keyframes generation-sweep{0%{transform:translateX(-110%)}100%{transform:translateX(390%)}}
@media(prefers-reduced-motion:reduce){.load-spinner,.pending-product .library-cover:before,.generation-progress>span{animation:none}.generation-progress>span{width:45%}}

.task-issue{font-size:12px;line-height:1.6;color:#9b574a;margin:8px 0}.task-issue-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.task-issue-actions button{border:1px solid #ddd;border-radius:999px;background:#fff;color:#333;padding:8px 14px;min-height:36px;font-size:12px}.task-issue-actions button:first-child{background:#20251d;color:#fff;border-color:#20251d}.task-issue-actions button:disabled{opacity:.5}
.pending-product>.task-issue,.pending-product>.task-issue-actions{margin-left:16px;margin-right:16px}.pending-product>.task-issue-actions{margin-bottom:18px}
.pending-product .library-cover{aspect-ratio:1.5}.pending-product.is-failed .library-cover{aspect-ratio:2.2;color:#a4a49c;background:#f5f5f2}.pending-product.is-failed .library-cover:before{display:none}.pending-product.is-unknown .library-cover:before{animation:none;border-style:dashed}
.task-issue .load-spinner{vertical-align:middle;margin-right:7px}
