File size: 42,996 Bytes
e40abbe
26fa2b2
e40abbe
26fa2b2
 
358bb1f
 
 
 
 
 
 
 
 
448b15e
 
 
 
 
 
 
 
 
 
 
abe9af4
448b15e
abe9af4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0672639
8651bf9
abe9af4
 
 
8651bf9
acc1165
abe9af4
 
 
 
 
0672639
e40abbe
abe9af4
 
 
 
 
 
 
dd9e6a9
 
31be700
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0672639
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f9bad8e
 
 
 
 
c9574e1
f9bad8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17c0bec
 
c9574e1
 
 
 
 
17c0bec
 
 
 
 
c9574e1
17c0bec
e40abbe
 
 
 
 
a41b370
 
 
 
 
 
 
 
39d0601
 
 
 
 
 
 
 
c9574e1
b7bc3b4
 
 
 
 
 
 
 
 
 
 
 
 
 
acc1165
 
 
 
 
64d37be
 
24b02be
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
:root{font-family:var(--app-font,'DM Sans',ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);color:var(--ink);background:var(--page);font-synthesis:none;font-weight:400;font-size:14px;--green:var(--primary)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit;text-decoration:none;cursor:pointer}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:4px}button{color:inherit}button svg,a svg{flex-shrink:0}h1,h2,h3,p{margin:0}button,a{transition:background .16s,color .16s,box-shadow .16s}button:disabled:hover{box-shadow:none}fieldset{border:0;padding:0;margin:0;min-width:0}[hidden]{display:none!important}.commons{min-height:100dvh}.app-header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 3.5%;background:var(--surface);gap:24px;position:relative;z-index:2}.commons-brand{display:flex;align-items:center;gap:12px;font-size:20px;letter-spacing:-.65px;line-height:1.15}.commons-brand:hover{text-decoration:none}.commons-brand b{font-weight:450}.commons-brand small{display:block;margin-top:5px;font-size:10px;letter-spacing:.05px;color:var(--muted)}.brand-icon{width:43px;height:43px;border-radius:12px;background:var(--selected);display:grid;place-items:center;color:var(--green)}.app-header nav{display:flex;border:1px solid var(--line);background:var(--canvas);padding:4px;border-radius:10px;gap:3px;position:absolute;left:50%;transform:translateX(-50%)}.app-header nav button{border:0;background:transparent;min-width:91px;padding:9px 20px;border-radius:7px;color:var(--muted);font-size:13px;font-weight:550}.app-header nav button.selected{background:var(--surface);color:var(--active);box-shadow:0 1px 4px var(--shadow)}.account{display:flex;align-items:center;gap:10px}.sign-in{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--secondary);padding:10px 0}.unavailable{opacity:.5;pointer-events:none}.user-name{font-size:12px}.create-page{max-width:1600px;margin:auto;padding:44px 3.5% 18px}.page-intro{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:34px}.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:650;color:var(--muted);margin-bottom:11px}h1{font-size:32px;line-height:1.2;letter-spacing:-1.1px;font-weight:500}.page-intro p:not(.eyebrow){margin-top:11px;font-size:13px;color:var(--muted);line-height:1.6}.text-link{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap;color:var(--green);padding-bottom:3px}.creation-grid{display:grid;grid-template-columns:315px minmax(0,1fr);gap:34px;align-items:start}.input-panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:23px}.step-heading{display:flex;align-items:center;gap:10px}.step-heading>span{font-size:10px;color:var(--muted);font-weight:600}.step-heading h2{font-size:14px;font-weight:550;letter-spacing:-.2px}.step-heading small{font-size:10px;color:var(--muted);margin-left:auto}.help{color:var(--muted);font-size:11px;line-height:1.65}.input-panel>.help{margin:10px 0 17px}.upload-target{width:100%;height:210px;border:1px dashed var(--focus-border);background:linear-gradient(125deg,var(--stage-glow),var(--canvas));border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;gap:7px}.upload-target:hover{border-color:var(--focus);background:var(--hover)}.upload-icon{margin-bottom:7px;color:var(--muted)}.upload-target strong{font-size:12px;font-weight:550}.upload-target>span:not(.upload-icon):not(.replace-image):not(.upload-loading){font-size:11px;color:var(--muted)}.upload-target small{font-size:9px;color:var(--muted);margin-top:12px}.upload-target.has-image{border-style:solid;background:var(--canvas)}.upload-target img{width:100%;height:100%;object-fit:contain;padding:10px}.replace-image{position:absolute;bottom:10px;background:var(--glass);border:1px solid var(--line);padding:6px 9px;border-radius:6px;display:flex;align-items:center;gap:6px;font-size:10px}.upload-loading{position:absolute;inset:0;background:var(--glass);display:flex;justify-content:center;align-items:center;gap:7px;font-size:12px}.example-heading{display:flex;justify-content:space-between;margin:18px 0 9px;font-size:10px;color:var(--muted)}.example-heading small{font-size:9px;color:var(--muted)}.examples{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.examples button{border:1px solid var(--line);border-radius:6px;padding:2px;background:var(--stage-glow);aspect-ratio:1}.examples button:hover{background:var(--hover);border-color:var(--focus-border)}.examples img{width:100%;height:100%;object-fit:contain}.mode-options{margin-top:23px}.mode-options legend{font-size:11px;margin-bottom:9px;font-weight:550}.mode-options>div{display:flex;padding:3px;background:var(--canvas);border:1px solid var(--line);border-radius:7px}.mode-options button{border:0;background:transparent;border-radius:5px;padding:7px 3px;flex:1;font-size:10px;color:var(--muted);white-space:nowrap}.mode-options button.chosen{background:var(--surface);color:var(--active);box-shadow:0 1px 3px var(--shadow)}.advanced{margin:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.advanced summary{padding:14px 0;font-size:11px;list-style:none;display:flex;justify-content:space-between;cursor:pointer;color:var(--muted)}.advanced summary::-webkit-details-marker{display:none}.advanced[open] summary svg{transform:rotate(180deg)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-bottom:13px}.settings-grid .wide{grid-column:1/-1}label{font-size:11px;display:block;line-height:1.5;color:var(--secondary)}input:not([type=checkbox]),textarea,select{display:block;width:100%;border:1px solid var(--line);border-radius:6px;background:var(--surface);padding:9px 10px;color:var(--ink);margin-top:5px;font-size:12px}textarea{resize:vertical}.check-label{display:flex;gap:8px;align-items:flex-start;font-size:11px}input[type=checkbox]{accent-color:var(--green);margin:2px 0 0;width:14px;height:14px;flex-shrink:0}.advanced>.help{margin-bottom:14px}.primary,.secondary,.quiet{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border-radius:8px;padding:11px 15px;font-size:11px;font-weight:550;line-height:1.3;min-height:39px}.primary{border:1px solid var(--primary);background:var(--green);color:var(--surface);box-shadow:0 2px 3px var(--shadow)}.primary:hover{background:var(--primary-hover);text-decoration:none}.secondary{border:1px solid var(--line);color:var(--secondary);background:var(--surface)}.secondary:hover{background:var(--hover);text-decoration:none}.quiet{background:transparent;border:0;padding:7px;font-weight:400;color:var(--muted);min-height:30px}.quiet:hover{background:var(--canvas)}.generate{width:100%;font-size:12px;height:44px;justify-content:flex-start}.generate>svg:last-child{margin-left:auto}.privacy-note{display:flex;align-items:center;justify-content:center;gap:5px;font-size:9px;color:var(--muted);margin-top:11px}.development-note{margin-top:14px;font-size:10px;line-height:1.6;background:var(--warning-bg);color:var(--warning-ink);padding:9px;border-radius:6px}.result-panel>.step-heading{margin:0 0 16px;padding:5px 1px}.result-stage,.result-empty,.generation-progress{height:460px;background:var(--canvas);border:1px solid var(--line);border-radius:15px;position:relative;overflow:hidden}.result-stage{background:radial-gradient(ellipse at 50% 45%,var(--stage-glow) 0,var(--wash) 65%,var(--wash) 100%)}.stage-canvas{position:absolute;inset:0;z-index:1;overflow:hidden}.stage-canvas canvas{position:absolute;display:block;touch-action:none}.stage-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.result-watermark{position:absolute;right:35px;bottom:20px;font-size:110px;font-weight:650;letter-spacing:-10px;color:var(--wash);opacity:.35}.stage-topline,.stage-bottomline{position:absolute;left:21px;right:21px;display:flex;justify-content:space-between;align-items:center;z-index:2;pointer-events:none;font-size:10px;color:var(--muted)}.stage-topline{top:17px}.stage-topline>span{border:1px solid var(--line);background:var(--glass);border-radius:5px;padding:5px 8px;font-size:9px;letter-spacing:.2px}.stage-bottomline{bottom:17px}.stage-topline button,.stage-bottomline button{pointer-events:auto}.plain-icon{border:0;background:transparent;padding:7px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border-radius:6px}.plain-icon:hover{background:var(--hover)}.stage-error{position:absolute;z-index:3;bottom:52px;left:20px;right:20px;font-size:10px;background:var(--glass);border-radius:6px;padding:8px;color:var(--secondary)}.result-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at 50% 45%,var(--stage-glow),var(--wash))}.wire-cube{color:var(--faint);margin-bottom:23px;transform:rotate(-8deg)}.result-empty h3{font-size:20px;font-weight:400;letter-spacing:-.5px;color:var(--secondary)}.result-empty p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:12px}.result-empty>span{font-size:10px;color:var(--muted);margin-top:35px}.generation-progress{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.orbital{display:grid;place-items:center;width:94px;height:94px;border:1px dashed var(--muted);border-radius:50%;color:var(--secondary);margin-bottom:26px;animation:pulse 2s infinite}.generation-progress h2{font-weight:450;font-size:21px}.generation-progress p{font-size:12px;color:var(--muted);margin:12px 20px}.generation-progress ol{list-style:none;display:flex;padding:0;gap:18px;margin:25px 0 12px}.generation-progress li{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:10px;color:var(--muted)}.generation-progress li>span{display:grid;place-items:center;border:1px solid var(--focus-border);width:23px;height:23px;border-radius:50%}.generation-progress li.current{color:var(--active)}.generation-progress li.current>span,.generation-progress li.complete>span{border-color:var(--muted);background:var(--selected);color:var(--active)}.result-actions{padding:22px 1px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--line)}.result-actions strong{font-size:12px;font-weight:550}.result-actions p{font-size:10px;color:var(--muted);line-height:1.6;margin-top:6px}.action-buttons{display:flex;gap:8px;flex-shrink:0}.community-note{display:flex;gap:14px;align-items:center;padding:23px 1px;color:var(--muted)}.community-note p{font-size:11px;line-height:1.7}.community-note strong{display:block;font-weight:500;color:var(--muted)}.community-note span{display:block;font-size:10px;color:var(--muted)}.community-note :is(a,button){margin-left:auto;white-space:nowrap;font-size:10px;display:flex;align-items:center;gap:7px;color:var(--muted)}.recoverable-error{display:flex;justify-content:space-between;align-items:center;gap:15px;border:1px solid var(--warning-line);background:var(--warning-bg);color:var(--warning-ink);border-radius:9px;padding:15px;margin-top:17px;font-size:12px}.recoverable-error p{margin-top:6px;font-size:11px;line-height:1.5}.create-footer{display:flex;justify-content:space-between;gap:16px;margin-top:28px;padding-top:18px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}.create-footer a{color:var(--muted)}.create-footer>a{display:flex;gap:4px;align-items:center}.explore-page{height:calc(100dvh - 88px)}.explore-page iframe{border:0;width:100%;height:100%;display:block}.commons-dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:32px;width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 15px 80px var(--shadow)}.commons-dialog::backdrop{background:var(--scrim);backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:12px;top:12px}.commons-dialog h2{font-size:25px;font-weight:450;letter-spacing:-.7px;margin-bottom:12px}.commons-dialog>p:not(.eyebrow){font-size:12px;line-height:1.7}.commons-dialog form{margin-top:20px}.commons-dialog form label{margin-bottom:14px}.publish-preview{display:flex;gap:20px;align-items:center;background:var(--wash);border:1px solid var(--line);border-radius:9px;padding:8px 16px;margin:21px 0}.publish-preview img{width:100px;height:100px;object-fit:contain}.publish-preview span{font-size:10px;color:var(--muted);line-height:1.8}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.public-notice{display:flex;gap:10px;background:var(--canvas);padding:14px;border-radius:7px;margin:20px 0 14px;font-size:11px;line-height:1.7;color:var(--muted)}.public-notice svg{flex-shrink:0;margin-top:3px}.public-notice a,.consent a{text-decoration:underline}.commons-dialog .consent{font-size:10px;line-height:1.7}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.form-error{font-size:12px;line-height:1.6;color:var(--danger);margin:14px 0}.spin{animation:spin 1.2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.45;transform:scale(.96)}}
@media(min-width:1450px){.creation-grid{grid-template-columns:340px minmax(0,1fr);gap:42px}.result-stage,.result-empty,.generation-progress{height:505px}.upload-target{height:230px}.create-page{padding-top:55px}.page-intro{margin-bottom:40px}.input-panel{padding:26px}}
@media(max-width:1100px){.creation-grid{gap:22px;grid-template-columns:280px minmax(0,1fr)}.input-panel{padding:20px}.result-actions{flex-direction:column;align-items:flex-start}.app-header nav{position:static;transform:none}.commons-brand small{display:none}.commons-brand{font-size:18px}.sign-in{font-size:10px}.community-note :is(a,button){display:none}.page-intro .text-link{display:none}.step-heading small{font-size:9px}.result-stage,.result-empty,.generation-progress{height:427px}}
@media(max-width:760px){.app-header{height:110px;padding:15px 20px 52px;gap:10px;align-items:center}.commons-brand{font-size:17px}.brand-icon{width:31px;height:31px;border-radius:8px}.brand-icon svg{width:20px}.commons-brand{gap:8px}.account{gap:4px}.sign-in{font-size:10px;gap:4px}.app-header nav{position:absolute;left:20px;right:20px;bottom:10px;top:auto;transform:none;padding:3px}.app-header nav button{flex:1;padding:7px;font-size:11px}.create-page{padding:27px 20px 20px}.page-intro{margin-bottom:23px}.eyebrow{font-size:8px;letter-spacing:1.1px;line-height:1.6}h1{font-size:26px;letter-spacing:-.8px}.page-intro p:not(.eyebrow){font-size:12px;margin-top:9px;max-width:340px}.creation-grid{grid-template-columns:1fr;gap:28px}.input-panel{padding:20px}.upload-target{height:180px}.examples{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.examples button{max-height:62px}.mode-options{margin-top:18px}.mode-options button{font-size:11px}.advanced{margin:15px 0}.result-stage,.result-empty,.generation-progress{height:360px}.result-panel>.step-heading{margin-bottom:14px}.result-actions{padding:20px 0;gap:16px}.action-buttons{width:100%;flex-wrap:wrap}.action-buttons>*{flex:1}.result-empty h3{font-size:18px}.result-empty>span{margin-top:25px;font-size:9px}.wire-cube{margin-bottom:15px}.wire-cube svg{width:70px;height:70px}.community-note{padding:21px 0}.community-note span{font-size:9px}.create-footer{margin-top:8px;flex-direction:column;gap:10px;font-size:9px}.explore-page{height:calc(100dvh - 110px)}.commons-dialog{padding:27px 22px}.commons-dialog h2{font-size:22px}.user-name{font-size:10px}.account .quiet{font-size:10px}.stage-topline,.stage-bottomline{left:14px;right:14px;font-size:9px}.two-fields{grid-template-columns:1fr;gap:0}.generation-progress li{font-size:9px}.generation-progress ol{gap:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The dataset is the entry point; keep its context compact above the spatial canvas. */
.explore-page{display:flex;flex-direction:column}
.explore-page iframe{flex:1;min-height:0;height:auto}
.collection-intro{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 3.5%;border-bottom:1px solid var(--line);background:var(--surface)}
.collection-intro h1{margin:0;font-size:21px;line-height:1.3;font-weight:550;letter-spacing:-.6px}
.collection-intro p{margin:5px 0 0;font-size:12px;color:var(--muted)}
.dataset-link{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font-size:12px;font-weight:600;color:var(--green);padding:9px 12px;background:var(--selected);border:1px solid var(--line);border-radius:8px}
@media(max-width:760px){.collection-intro{padding:13px 20px;gap:12px}.collection-intro h1{font-size:16px;letter-spacing:-.35px}.collection-intro p{display:none}.dataset-link{font-size:11px;padding:8px;gap:3px}.app-header nav button{min-width:0}}

/* An input frame follows the image's intrinsic aspect ratio, within the viewport. */
.upload-target.has-image{display:block;width:fit-content;max-width:100%;height:auto;min-height:0;padding:0;margin:0 auto;overflow:hidden;background:var(--canvas)}
.upload-target.has-image>img{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;border-radius:inherit;padding:0}
.source-tabs{display:flex;gap:4px;padding:4px;background:var(--canvas);border:1px solid var(--line);border-radius:9px;margin:16px 0}
.source-tabs button{display:flex;gap:6px;align-items:center;justify-content:center;flex:1;min-width:0;padding:9px 4px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:11px}
.source-tabs button[aria-pressed=true]{background:var(--surface);color:var(--active);box-shadow:0 1px 4px var(--shadow)}
.prompt-image>label{font-size:12px;font-weight:600}.prompt-image textarea{display:block;resize:vertical;width:100%;min-height:110px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:12px;margin:8px 0;font:inherit;font-size:13px;line-height:1.5}
.prompt-suggestions{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.prompt-suggestions button{font-size:10px;background:var(--canvas);border:1px solid var(--line);color:var(--secondary);border-radius:6px;padding:6px 8px}
.prompt-generate{width:100%;justify-content:center}.model-credit{font-size:10px;color:var(--muted);text-align:center;margin:9px 0 16px}
.generated-input{margin:18px 0}.generated-input>img{display:block;width:100%;height:auto;border-radius:10px;border:1px solid var(--line)}.generated-input>small{display:block;font-size:10px;color:var(--muted);margin:9px 0}.generated-input .action-buttons{flex-wrap:wrap}.generated-input .action-buttons>*{flex:1;justify-content:center;font-size:11px}
.contribution-steps{display:flex;gap:26px;padding:0;margin:0 0 28px;list-style:none;color:var(--muted);font-size:12px}.contribution-steps li{display:flex;align-items:center;gap:8px}.contribution-steps .step-number{display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;width:24px;height:24px;font-size:10px}.contribution-steps .current{color:var(--ink)}.contribution-steps .current>.step-number{background:var(--community-wash);border-color:var(--community-accent);color:var(--community-ink)}.contribution-steps .done>.step-number{background:var(--selected);color:var(--active)}
.share-heading{margin:0 0 11px}.share-heading h2{font-size:15px}.share-heading>span{font-size:11px;color:var(--muted)}
@media(max-width:760px){.contribution-steps{gap:10px;justify-content:space-between;font-size:10px}.contribution-steps li{gap:5px;align-items:flex-start;max-width:32%;line-height:1.5}.contribution-steps .step-number{flex-shrink:0;width:20px;height:20px}.source-tabs button{font-size:12px}}

/* Shared control alignment; the Scenario spatial canvas remains unchanged. */
.commons button>svg,.commons a>svg,.step-number svg{display:block;flex-shrink:0}
.replace-image{left:50%;transform:translateX(-50%);max-width:calc(100% - 16px);white-space:nowrap;line-height:1;min-height:30px}
.replace-image>span{overflow:hidden;text-overflow:ellipsis}
.contribution-steps li{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;line-height:1.5}
.contribution-steps .step-number{line-height:1;flex-shrink:0}
.contribution-steps .step-label{min-width:0}
.examples{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.examples button{aspect-ratio:auto;max-height:none;padding:4px;display:flex;flex-direction:column;gap:5px;min-width:0;text-align:left}
.examples img{display:block;padding:0;aspect-ratio:1;height:auto;object-fit:contain;border-radius:3px;background:#111318}
.examples button>span{font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;padding:0 2px 2px}
.examples button[aria-pressed=true],.example-grid button[aria-pressed=true]{border-color:var(--focus);box-shadow:0 0 0 1px var(--focus)}
.browse-examples{width:100%;margin-top:10px;justify-content:space-between;font-weight:450}
.selected-example{margin-top:10px;font-size:10px;line-height:1.6;color:var(--muted)}
.selected-example strong,.selected-example span{display:block}.selected-example strong{color:var(--ink);font-weight:500}
.example-dialog{width:min(840px,calc(100vw - 28px));padding:32px}
.example-dialog h2{padding-right:16px}
.example-filters{display:grid;grid-template-columns:1fr 180px;gap:16px;margin:22px 0 18px;align-items:end}
.example-search{position:relative}.example-search svg{position:absolute;top:50%;left:11px;transform:translateY(-50%);color:var(--muted)}.example-search input{padding-left:35px}
.example-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.example-grid button{min-width:0;display:flex;flex-direction:column;text-align:left;border:1px solid var(--line);border-radius:10px;padding:6px;background:var(--canvas);gap:5px}
.example-grid button:hover{border-color:var(--focus-border);background:var(--hover)}
.example-grid img{display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:5px;background:#111318}
.example-grid button>span{font-size:12px;line-height:1.4;padding:2px 3px 0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.example-grid small{font-size:10px;color:var(--muted);padding:0 3px 3px}
.example-pagination{display:flex;align-items:center;justify-content:space-between;margin:14px 0;font-size:11px;color:var(--muted)}.example-pagination>div{display:flex;gap:8px}.example-pagination button{width:36px;height:36px;border:1px solid var(--line)}
.example-empty{padding:32px 0;color:var(--muted)}
.example-dialog .example-credits{border-top:1px solid var(--line);padding-top:14px;color:var(--muted);font-size:10px;line-height:1.7}.example-credits a{text-decoration:underline}.example-credits svg{vertical-align:middle}
@media(max-width:760px){.brand-icon svg{width:20px;height:20px}.contribution-steps li{align-items:center;grid-template-columns:20px minmax(0,1fr)}.example-dialog{padding:26px 18px}.example-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.example-grid button>span{font-size:10px}.example-grid small{font-size:9px}.example-filters{grid-template-columns:1fr;gap:12px}.example-dialog h2{font-size:22px}}
@media(max-width:359px){.example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contribution-steps{gap:7px;font-size:9px}}

/* Split only when both workspaces have useful room. No device-name detection. */
@media(min-width:1100px), (min-width:960px) and (min-height:600px) and (orientation:landscape){
 .commons.is-split{display:grid;grid-template-columns:minmax(540px,1.2fr) minmax(380px,.8fr);grid-template-rows:var(--app-header-height,88px) minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden}
 .is-split .app-header{grid-column:1/-1;grid-row:1;padding:0 28px}
 .is-split .app-header nav{display:none}
 .is-split .workspace-controls{margin-left:auto}
 .is-split .create-page{grid-column:2;grid-row:2;min-width:0;min-height:0;width:100%;max-width:none;height:100%;overflow:auto;overscroll-behavior:contain;margin:0;padding:28px 24px 20px;border-left:1px solid var(--line);scrollbar-gutter:stable}
 .is-split .explore-page{display:grid;grid-template-rows:max-content minmax(calc(100dvh - var(--app-header-height,88px)),1fr);grid-column:1;grid-row:2;min-width:0;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:auto;scrollbar-gutter:stable}
 .is-split .page-intro{display:block;margin-bottom:22px}.is-split .page-intro h1{font-size:27px}.is-split .page-intro .text-link{display:none}
 .is-split .creation-grid{grid-template-columns:minmax(0,1fr);gap:26px}
 .is-split .input-panel{padding:21px}.is-split .contribution-steps{gap:16px;font-size:11px;justify-content:space-between}
 .is-split .contribution-steps li{gap:6px;min-width:0}.is-split .result-actions{flex-direction:column;align-items:flex-start}
 .is-split .action-buttons{flex-wrap:wrap}.is-split .result-stage,.is-split .result-empty,.is-split .generation-progress{height:410px}
 .is-split .collection-intro{padding:20px 24px;gap:14px}.is-split .collection-intro h1{font-size:clamp(25px,2.1vw,36px)}.is-split .collection-intro p{line-height:1.6}
 .is-split .create-footer{flex-direction:column;gap:10px}.is-split .community-note :is(a,button){display:none}
}
/* Safe-area insets apply equally in portrait, landscape and resized/folded windows. */
.app-header{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
.create-page{padding-bottom:max(20px,env(safe-area-inset-bottom))}
@media(max-width:1439px){.create-page{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}.collection-intro{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}}
@media(max-height:600px) and (max-width:1439px){.result-stage,.result-empty,.generation-progress{height:320px}.commons-dialog{max-height:calc(100dvh - 20px)}}
.example-shared{font-size:9px;line-height:1.3;color:var(--active);padding:0 2px 3px}.example-existing,.duplicate-note{font-size:11px;line-height:1.7;padding:12px;background:var(--selected);color:var(--secondary);border-radius:8px;margin-top:12px}.example-existing .quiet{padding:6px 0 0;min-height:24px;color:var(--active)}

.publication-status{display:flex;align-items:flex-start;gap:9px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);font-size:13px;line-height:1.6}.publication-status svg{flex-shrink:0;margin-top:3px}


/* Visible activity follows server phases; it is never a fabricated percentage. */
.inference-motion{position:relative;display:grid;place-items:center;width:120px;height:120px;margin-bottom:22px;color:var(--primary);overflow:hidden}
.inference-orbit{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:var(--line);stroke-width:1.5;animation:spin 3.8s linear infinite}
.inference-orbit .orbit-trail{stroke:var(--primary);stroke-width:2;stroke-dasharray:110 223;stroke-linecap:round}.inference-orbit .orbit-dot{fill:var(--primary);stroke:none}
.scan-line{position:absolute;width:60px;height:2px;background:var(--primary);opacity:.3;animation:scan 2.8s ease-in-out infinite}
@keyframes scan{0%,100%{transform:translateY(-25px);opacity:0}50%{transform:translateY(25px);opacity:.5}}
.activity-track{width:150px;height:3px;border-radius:5px;overflow:hidden;background:var(--line);margin:20px 0 0}.activity-track>span{display:block;width:40%;height:100%;background:var(--primary);animation:activity 2s ease-in-out infinite}
@keyframes activity{from{transform:translateX(-100%)}to{transform:translateX(350%)}}
.live-progress p{max-width:330px;padding:0 14px}.live-progress ol{margin-top:24px}.progress-caption{display:flex;gap:20px;align-items:center;font-size:11px;color:var(--muted)}.progress-caption>span{display:inline-flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}.progress-caption .quiet{font-size:11px}
.angle-button{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;background:var(--surface);color:var(--primary);border:1px solid var(--line);border-radius:7px;font-size:11px;box-shadow:0 2px 8px var(--shadow)}.angle-error{position:absolute;bottom:55px;left:16px;right:16px;background:var(--surface);padding:8px;border-radius:6px;color:var(--danger);font-size:11px}
.publish-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:23px;margin:4px 0 24px;scroll-margin-top:24px}
.publish-panel>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.publish-panel h2{font-size:19px;font-weight:550;letter-spacing:-.4px}.verified-author{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);margin-top:7px}
.publish-steps{display:flex;gap:12px;align-items:center;padding:19px 0;color:var(--muted);font-size:11px}.publish-steps>span{display:flex;gap:6px;align-items:center}.publish-steps [aria-current=step]{color:var(--primary);font-weight:600}
.publish-cover{display:flex;gap:17px;align-items:center;padding:8px 14px;background:var(--wash);border:1px solid var(--line);border-radius:9px;margin-bottom:20px}.publish-cover img{width:94px;height:94px;flex-shrink:0;object-fit:contain}.publish-cover strong{display:block;font-size:12px;font-weight:500}.publish-cover small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:3px}
.publish-panel label{margin-bottom:15px}.publish-panel label>small{font-weight:400;color:var(--muted);font-size:10px}.publish-panel textarea{resize:vertical}.publish-panel .check-label{align-items:flex-start;gap:10px;font-size:12px;line-height:1.55}.publish-panel .check-label input{margin-top:3px;flex:none;width:15px;height:15px;accent-color:var(--primary)}
.sharing-signals{display:flex;justify-content:space-between;gap:8px;margin:0 0 22px;color:var(--secondary);font-size:11px}.sharing-signals>*{display:flex;flex-direction:column;align-items:center;gap:7px;flex:1;text-align:center}.sharing-signals svg{color:var(--primary)}
.sharing-details{font-size:11px;color:var(--muted);line-height:1.7;margin:16px 0}.sharing-details summary{cursor:pointer}.sharing-details p{margin-top:8px}.rights-hint{font-size:11px;line-height:1.6;color:var(--muted);margin:6px 0 16px;padding:10px;border-left:2px solid var(--community-accent);background:var(--canvas)}
.publish-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-top:17px;border-top:1px solid var(--line)}.publish-actions .quiet{display:flex;align-items:center;gap:5px}.publish-panel input,.publish-panel select,.publish-panel textarea{font-size:13px}
@media(max-width:760px){.publish-panel{padding:18px}.publish-cover{gap:10px;padding:8px}.publish-cover img{width:80px;height:80px}.publish-panel input,.publish-panel select,.publish-panel textarea{font-size:16px}.live-progress{min-height:385px}.stage-bottomline{flex-wrap:wrap;gap:8px}.angle-button{font-size:10px}.progress-caption{gap:12px}.publish-panel .two-fields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.inference-orbit,.scan-line,.activity-track>span{animation:none}.scan-line{display:none}.activity-track>span{width:100%;opacity:.5}}

.publish-thumb{display:block;position:relative;width:94px;height:94px;flex-shrink:0;overflow:hidden;line-height:0}.publish-thumb img{position:absolute;max-width:none;width:100%;height:100%;object-fit:fill}
@media(max-width:760px){.publish-thumb{width:80px;height:80px}.publish-cover .publish-thumb img{width:100%;height:100%}}

.language-control{border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:11px;font-weight:600;padding:7px;min-height:34px;min-width:34px;flex-shrink:0}.collection-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:12px 24px;border-top:1px solid var(--line);background:var(--surface);font-size:10px;color:var(--muted);line-height:1.5}.collection-footer nav{display:flex;align-items:center;gap:18px}.collection-footer a{display:inline-flex;align-items:center;gap:4px}.collection-footer>span a{color:var(--ink)}@media(max-width:760px){.collection-footer{padding:10px 20px;gap:8px;flex-wrap:wrap;font-size:9px}.collection-footer nav{gap:14px}.app-header .account{gap:2px}.commons-brand{font-size:16px}}@media(max-width:360px){.commons-brand .brand-icon{display:none}.app-header .account-menu summary{max-width:90px;overflow:hidden;text-overflow:ellipsis}.collection-footer{padding:8px 16px}.language-control{min-width:30px;padding:5px}}

/* Compact preparation keeps the result and its actions beside useful content. */
@media(min-width:761px){
 .input-panel{--input-max-height:min(32dvh,260px)}
 .input-panel .examples{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:68px;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 2px 7px;scroll-snap-type:x proximity}
 .input-panel .examples button{scroll-snap-align:start}.input-panel .examples img{height:58px;aspect-ratio:1}
 .input-panel .selected-example span{font-size:10px;line-height:1.4}
 .input-panel .mode-options{margin-top:15px}.input-panel .advanced{margin-block:12px}
 .result-panel{position:sticky;top:20px;min-width:0}
}
.is-split .result-panel{position:static}
.is-split .input-panel{padding:18px}
.is-split .page-intro{margin-bottom:18px}.is-split .page-intro h1{font-size:25px}
.is-split .contribution-steps{gap:8px;font-size:10px;margin-bottom:20px}
.is-split .create-page{padding-inline:20px}
.is-split .result-stage,.is-split .result-empty,.is-split .generation-progress{height:clamp(320px,43dvh,460px)}
/* The hero uses its pane width, not the dimensions of the outer browser. */
.collection-intro.commons-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:30px;padding:26px clamp(20px,3vw,44px);flex-shrink:0;container-type:inline-size}
.commons-hero .hero-content{width:100%}.commons-hero h1{max-width:none;text-wrap:balance;line-height:1.15}.commons-hero h1 span{display:inline}
.commons-hero .hero-copy{max-width:none;text-wrap:pretty;font-size:13px;margin:12px 0 17px;line-height:1.6}
.commons-hero .hero-mark{width:100px;height:100px;flex-basis:100px;margin:0 12px 0 0;border-radius:25px}.commons-hero .hero-mark>svg{width:48px;height:48px}.commons-hero .hero-piece{width:36px;height:36px;border-radius:10px}.commons-hero .hero-piece svg{width:21px;height:21px}
@container(max-width:650px){.commons-hero .hero-mark{display:none}}
@media(max-width:760px){.collection-intro.commons-hero{display:block;padding:22px 20px}.commons-hero .hero-copy{font-size:12px}.commons-hero h1{font-size:26px}.collection-footer{font-size:10px}}
@media(max-height:600px) and (orientation:landscape){.input-panel{--input-max-height:180px}.collection-intro.commons-hero{padding-block:14px}.commons-hero .hero-copy{margin-block:8px}.commons-hero h1{font-size:24px}.commons-hero .hero-mark{display:none}}

@media(max-height:500px) and (orientation:landscape){.app-header{height:68px}.explore-page{height:calc(100dvh - 68px)}.commons-hero .hero-eyebrow,.commons-hero .hero-copy{display:none}.commons-hero .hero-content{display:flex;align-items:center;justify-content:space-between;gap:24px}.commons-hero h1{font-size:20px;flex:1}.commons-hero .hero-actions{flex-wrap:nowrap}.collection-intro.commons-hero{padding-block:12px}.collection-footer{padding-block:8px}.page-intro{margin-bottom:20px}.page-intro h1{font-size:25px}.result-panel{position:static}}

.input-toggle{display:inline-flex;align-items:center;gap:5px;margin-left:auto;white-space:nowrap;font-size:10px;padding:4px 0}.input-toggle[aria-expanded=true] svg{transform:rotate(180deg)}#input-preparation>.help{margin:10px 0 17px}.input-summary{display:flex;gap:14px;align-items:center;margin-top:14px}.input-summary img{width:64px;height:64px;object-fit:contain;background:var(--canvas);border:1px solid var(--line);border-radius:9px}.input-summary strong{display:block;font-size:12px;font-weight:500}.input-summary span{display:block;color:var(--muted);font-size:11px;margin-top:5px}.is-split .input-panel:has(.input-summary){padding:15px 18px}.is-split .creation-grid:has(.input-summary){gap:20px}


/* Keep the collection usable inside short host frames; its pane scrolls naturally. */
.commons{--app-header-height:88px}
.explore-page{height:auto;min-height:calc(100dvh - var(--app-header-height))}
.explore-page iframe{flex:1 1 0;min-height:0;height:100%}
.app-header .account{gap:8px;align-items:center}
.app-header .sign-in,.app-header .account-menu summary{min-height:44px;align-items:center}
.app-header .language-control,.app-header .theme-control button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;border-radius:9px}
.app-header .theme-control{margin-left:0}
.app-header .account{flex-shrink:0}
.app-header .theme-control svg,.app-header .sign-in svg{width:18px;height:18px;flex-shrink:0}
@media(max-width:760px){
 .commons{--app-header-height:120px}
 .app-header{height:var(--app-header-height);padding-top:12px;padding-bottom:56px;gap:12px}
 .app-header nav{bottom:12px}
}
@media(min-width:761px) and (max-height:500px) and (orientation:landscape){
 .commons{--app-header-height:68px}
 .app-header{height:var(--app-header-height)}
}
@media(max-width:360px){.app-header .sign-in{width:44px;justify-content:center}.app-header .sign-in span{display:none}}

@media(max-width:480px){.commons-brand .brand-icon{display:none}.commons-brand>span:last-child{white-space:nowrap}}

/* The touch mode switch stays reachable while the tall viewer scrolls past. */
.collection-workspace{display:grid;grid-template-rows:minmax(0,1fr) auto;height:100dvh;min-height:360px;min-width:0;flex:0 0 auto}
.explorer-region{position:relative;display:flex;flex-direction:column;min-height:0;min-width:0}
/* The footer shares the viewer frame: scrolling to it cannot hide the
   collection toolbar below either the app header or the touch controls. */
.is-split .collection-workspace{height:100%;min-height:0}
.viewer-navigation{display:none;position:sticky;top:0;z-index:12;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px;padding:6px 12px;background:var(--surface);border-bottom:1px solid var(--line);touch-action:pan-y}
.viewer-navigation small{color:var(--muted);font-size:11px;line-height:1.4}
.viewer-navigation>div{display:flex;flex-shrink:0;gap:4px}
.viewer-navigation button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;white-space:nowrap}
.viewer-navigation button.selected{background:var(--selected);color:var(--primary);border-color:var(--line)}
@media(any-pointer:coarse){.viewer-navigation{display:flex}}
@media(max-width:700px){.viewer-navigation small{display:none}.viewer-navigation>div{width:100%}.viewer-navigation button{flex:1}}


.draft-retention{font-size:11px;line-height:1.5;color:var(--muted);margin:8px 0 12px}.page-intro .text-link,.community-note>button{border:0;background:none;font-family:inherit;color:var(--active);padding:0}.publish-cover small{font-size:11px}

.collection-footer>span a{text-decoration:underline;text-underline-offset:3px}.commons-dialog>.eyebrow{padding-right:32px}

.result-stage[data-ready="false"] .stage-canvas{pointer-events:none}

.app-header .sign-in{padding:0 12px;border:1px solid var(--primary);border-radius:9px;background:var(--primary);color:var(--on-primary);font-weight:600}
.app-header .sign-in:hover{background:var(--primary-hover);text-decoration:none}
.hero-actions:has(.hero-auth-note){flex-wrap:wrap}
.commons-hero .hero-auth-note{display:block;flex-basis:100%;margin:0;font-size:12px;line-height:1.5;color:var(--secondary)}
@media(max-width:360px){.app-header .sign-in{padding:0}}

/* Import feedback belongs to the image being changed, above its preview on phones. */
.input-feedback{font-size:12px;line-height:1.5;color:var(--muted);margin:12px 0;scroll-margin-block:16px;overflow-wrap:anywhere}
.input-feedback strong,.input-feedback small{display:block}.input-feedback small{margin-top:3px}.input-feedback p{margin-top:6px}
.input-feedback-error{padding:14px;border:1px solid var(--line);border-left:3px solid #b58720;border-radius:9px;background:var(--surface);color:var(--ink)}
.input-feedback-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.input-feedback-actions button{min-height:44px;font-size:12px}
.upload-target .previous-input{opacity:.25}.upload-loading{flex-direction:column;gap:8px}.upload-loading small{max-width:90%;overflow-wrap:anywhere;line-height:1.4}
.upload-target[aria-busy=true]{opacity:1}

/* Wide headers expose account actions; compact screens keep the account menu. */
.app-header .account{position:relative;min-width:0}
.account-menu{position:static;min-width:0;flex:0 1 auto}
.account-menu>summary{min-width:44px;white-space:nowrap}
.account-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-actions{display:flex;align-items:center;gap:6px;min-width:0}
.account-identity{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted);margin-right:4px}
.account-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 10px;border:1px solid transparent;border-radius:9px;background:transparent;font-size:12px;white-space:nowrap;color:var(--secondary)}
.account-actions button:hover{background:var(--hover);color:var(--ink)}
.account-actions button:last-child{margin-left:4px;border-color:var(--line)}
@media(max-width:1100px){.account-actions{gap:4px}.account-identity{max-width:110px}.account-actions button{padding-inline:8px;font-size:11px}}
@media(max-width:760px){.app-header .account{flex-shrink:1;gap:4px}}



/* A fresh draft is available without navigating away from the collection. */
.draft-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px}
.draft-controls .reset-draft{min-height:44px;flex-shrink:0}
.draft-controls>span{font-size:10px;color:var(--muted);line-height:1.5}

.settings-grid .setting-hint{display:block;font-weight:400;font-size:11px;color:var(--muted);line-height:1.45;margin-top:2px}

.stage-fullscreen-error{position:absolute;z-index:4;top:58px;left:20px;right:20px;padding:10px 12px;border:1px solid var(--warning-line);border-radius:7px;background:var(--surface);color:var(--muted);font-size:11px;line-height:1.5}