oficina / base Public

Clone
git clone https://amadan.net/oficina/base

Plain git — no account needed to clone.

Download

Download this file

1/* Timeless Sans, one variable file. STYL 100 is the Sans cut, STYL 0 the Grotesk cut.
2 Preloaded and font-display: block, so text never paints in a fallback face first. */
3@font-face { font-family: "Timeless Sans"; src: url(fonts/timeless/1.094/TimelessSansVF.woff2) format("woff2");
4 font-weight: 100 900; font-style: normal; font-display: block; }
5/* The fallback where the Timeless file is absent (it is fetched, never committed).
6 Sized and spaced to take Timeless Sans's place without moving a line break. */
7@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans/4.004/DMSans-VF.woff2) format("woff2");
8 font-weight: 400 700; font-style: normal; font-display: swap;
9 size-adjust: 98%; ascent-override: 98.3%; descent-override: 25.3%; line-gap-override: 0%; }
10/* Colours. One set of tokens drives both themes, in three places that
11 internal/look's TestStylesheetThemes keeps in step:
12 - :root holds every token's dark value, plainly. A browser without
13 light-dark() (Safari before 17.5) gets the dark theme whole.
14 - :root[data-theme="light"] holds the light values plainly, so a member
15 who chose Light (data-theme on <html>, drawn by the server: no flash,
16 no script) gets it in any browser.
17 - Where light-dark() works, @supports pairs each token with its light
18 value and lets color-scheme follow the device until the member's
19 Appearance holds one.
20 Every colour in this file is a token here. */
21:root {
22 color-scheme: dark;
23 --lagoon: #2FC6C0; /* teal light */
24 --orchid: #8B5CF6; /* violet light */
25 --ember: #FFB066; /* warm light */
26 --rose: #F472B6; /* rose light */
27 --mist: #C9D3E3; /* pale fog */
28 --frost: #EEF2F8; /* text */
29 --haze: #DDE3F0; /* secondary text */
30 --signal: #6EE7DC; /* accent: focus, finished steps, progress */
31 --focus: #6EE7DC; /* the focus ring: a deeper teal in the light, 3:1 on the sky and glass */
32 --on-signal: #1E2738;
33 --ink: #1E2738; /* text on the bright fills (the avatar, a member's face, installing) */
34 --font: "Timeless Sans", "DM Sans", system-ui, sans-serif;
35 /* The atmosphere: the sky, the beams of light and the banks of fog. */
36 --sky: #1A1F45;
37 --sky-1: #2C3470;
38 --sky-2: #1A1F45;
39 --sky-3: #16193A;
40 --sky-stop: 62%;
41 --beam-1: rgba(255,214,170,.42);
42 --beam-2: rgba(255,176,102,.12);
43 --beam-3: rgba(255,176,102,0);
44 --shine-1: rgba(238,242,248,.26);
45 --shine-2: rgba(238,242,248,0);
46 --fog-4: #C9D3E3; /* the mist bank: white in the light */
47 --fog-1-a: .5; --fog-2-a: .55; --fog-3-a: .32; --fog-4-a: .14;
48 /* Glass: dark-tinted in the dark, white frost in the light. */
49 --glass-1: rgba(238,242,248,.07);
50 --glass-2: rgba(238,242,248,.03);
51 --glass-base: rgba(14,17,42,.40);
52 --glass-edge: rgba(238,242,248,.18);
53 --glass-shine: rgba(255,255,255,.22);
54 --glass-shadow: rgba(8,12,22,.6);
55 --glass-lift: -20px;
56 --mark-1: #FFFFFF;
57 --mark-2: rgba(238,242,248,.35);
58 --mark-edge: rgba(255,255,255,.5);
59 /* Controls. */
60 --btn: #EEF2F8;
61 --btn-ink: #1E2738;
62 --ghost: rgba(238,242,248,.1);
63 --ghost-edge: rgba(238,242,248,.22);
64 --danger: #F3C6C9;
65 --danger-ink: #5B1820;
66 --field: rgba(10,16,28,.28);
67 --field-edge: rgba(238,242,248,.22);
68 --placeholder: #DDE3F0;
69 --well: rgba(10,16,28,.25);
70 --well-edge: rgba(238,242,248,.14);
71 --well-ring: rgba(238,242,248,.18);
72 --well-hover: rgba(10,16,28,.4);
73 --accent-edge: rgba(110,231,220,.45);
74 --ring: rgba(238,242,248,.5);
75 --ring-soft: rgba(238,242,248,.4);
76 --hover: rgba(238,242,248,.1);
77 --chip: rgba(238,242,248,.08);
78 --chip-edge: rgba(238,242,248,.2);
79 --chip-hover: rgba(238,242,248,.16);
80 --track: rgba(238,242,248,.12);
81 --track-edge: rgba(238,242,248,.35);
82 --rule: rgba(238,242,248,.12);
83 --rule-strong: rgba(238,242,248,.14);
84 --alarm: rgba(243,198,201,.12);
85 --alarm-edge: rgba(243,198,201,.35);
86 /* Tiles: a little deeper in the light, so their white icons read. */
87 --tile-ink: #EEF2F8;
88 --amber-1: rgba(226,128,56,.82);
89 --amber-2: rgba(244,114,182,.22);
90 --teal-1: rgba(47,198,192,.55);
91 --teal-2: rgba(47,198,192,.12);
92 --violet-1: rgba(139,92,246,.6);
93 --violet-2: rgba(139,92,246,.14);
94 --mist-1: rgba(201,211,227,.4);
95 --mist-2: rgba(201,211,227,.08);
96 --rose-1: rgba(244,114,182,.55);
97 --rose-2: rgba(244,114,182,.12);
98 /* Menus (⋯ and More): near-solid, as they open over other glass. */
99 --menu-1: rgba(238,242,248,.08);
100 --menu-2: rgba(238,242,248,.04);
101 --menu-base: rgb(24,28,62);
102 --menu-shine: rgba(255,255,255,.18);
103 --menu-shadow: rgba(8,12,22,.8);
104 /* The Ask panel and its conversation. */
105 --sheet-1: rgba(238,242,248,.07);
106 --sheet-2: rgba(238,242,248,.03);
107 --sheet-base: rgba(14,17,42,.62);
108 --scrim: rgba(10,12,30,.38);
109 --mine: rgba(47,198,192,.24);
110 --mine-edge: rgba(110,231,220,.35);
111 --theirs: rgba(238,242,248,.08);
112 --theirs-edge: rgba(238,242,248,.16);
113 --card: rgba(139,92,246,.16);
114 --card-edge: rgba(139,92,246,.45);
115 /* A job's pill, and the colours of its states: working, ready and done
116 are the accent; asking is warm; paused is a calm indigo (white or
117 the dark ink on it is over 6:1); stopped is rose. --st-wash is how much
118 of the state's colour is washed in behind the pill. */
119 --pill: rgba(238,242,248,.11);
120 --pill-edge: rgba(238,242,248,.26);
121 --pill-shine: rgba(255,255,255,.2);
122 --pill-lift: rgba(6,8,22,.55);
123 --st-ask: #FFB066;
124 --st-stop: #F9A8D4;
125 --st-pause: #AEB8FF;
126 --st-wash: .2;
127 /* The composer's focus edge, teal into violet (each 3:1 on the panel,
128 in both themes), the glow under it, and the thinking bubble's spark,
129 which adds rose and the light's amber. */
130 --edge-a: #6EE7DC;
131 --edge-b: #B49CFC;
132 --edge-hi: #E6FFFB;
133 --edge-glow-a: rgba(47,198,192,.5);
134 --edge-glow-b: rgba(139,92,246,.45);
135 --spk-rose: #F9A8D4;
136 --spk-amber: #FFC48A;
137 /* The Connect Oficina button: coloured glass, teal into violet, the same
138 in both themes (white on either end is over 4.5:1), with a white edge
139 and shine. */
140 --go-1: rgba(10,122,116,.94);
141 --go-2: rgba(106,63,214,.94);
142 --go-ink: #FFFFFF;
143 --go-edge: rgba(255,255,255,.22);
144 --go-edge-hover: rgba(255,255,255,.4);
145 --go-shine: rgba(255,255,255,.35);
146}
147:root[data-theme="light"] {
148 color-scheme: light; --sky-stop: 55%; --glass-lift: -22px;
149 --fog-1-a: .28; --fog-2-a: .26; --fog-3-a: .2; --fog-4-a: .55;
150 --frost: #1E2440; --haze: #4A5275; --signal: #0FA89C;
151 --focus: #0A6E66; --on-signal: #FFFFFF; --sky: #DDE1F3;
152 --sky-1: #F4F5FC; --sky-2: #E8EAF7; --sky-3: #DDE1F3;
153 --beam-1: rgba(255,214,170,.55); --beam-2: rgba(255,190,140,.18); --beam-3: rgba(255,190,140,0);
154 --fog-4: #FFFFFF; --glass-1: rgba(255,255,255,.62); --glass-2: rgba(255,255,255,.42);
155 --glass-base: rgba(255,255,255,0); --glass-edge: rgba(255,255,255,.75); --glass-shine: rgba(255,255,255,.95);
156 --glass-shadow: rgba(40,46,90,.35); --mark-1: #2A3156; --mark-2: #6B73A8;
157 --mark-edge: rgba(255,255,255,0); --btn: #1E2440; --btn-ink: #FFFFFF;
158 --ghost: rgba(30,36,64,.06); --ghost-edge: rgba(30,36,64,.18); --danger: #F6D3D6;
159 --field: rgba(255,255,255,.75); --field-edge: rgba(30,36,64,.16); --placeholder: #5A6285;
160 --well: rgba(255,255,255,.6); --well-edge: rgba(30,36,64,.12); --well-ring: rgba(30,36,64,.14);
161 --well-hover: rgba(255,255,255,.85); --accent-edge: rgba(15,168,156,.5); --ring: rgba(30,36,64,.35);
162 --ring-soft: rgba(30,36,64,.35); --hover: rgba(30,36,64,.07); --chip: rgba(30,36,64,.05);
163 --chip-edge: rgba(30,36,64,.18); --chip-hover: rgba(30,36,64,.1); --track: rgba(30,36,64,.08);
164 --track-edge: rgba(30,36,64,.3); --rule: rgba(30,36,64,.12); --rule-strong: rgba(30,36,64,.12);
165 --alarm: rgba(243,198,201,.35); --alarm-edge: rgba(200,90,100,.35); --tile-ink: #FFFFFF;
166 --amber-1: rgba(192,96,24,.95); --amber-2: rgba(200,70,130,.8); --teal-1: rgba(12,136,129,.95);
167 --teal-2: rgba(16,150,143,.85); --violet-1: rgba(110,62,220,.9); --violet-2: rgba(124,77,232,.72);
168 --mist-1: rgba(84,96,138,.88); --mist-2: rgba(100,112,152,.7); --rose-1: rgba(205,58,128,.92);
169 --rose-2: rgba(208,62,132,.82); --menu-1: rgba(255,255,255,0); --menu-2: rgba(255,255,255,0);
170 --menu-base: #FBFBFE; --menu-shine: rgba(255,255,255,.95); --menu-shadow: rgba(40,46,90,.3);
171 --sheet-1: rgba(255,255,255,.82); --sheet-2: rgba(255,255,255,.72); --sheet-base: rgba(244,245,252,.6);
172 --scrim: rgba(30,36,64,.18); --mine: rgba(15,168,156,.14); --mine-edge: rgba(15,168,156,.38);
173 --theirs: rgba(255,255,255,.88); --theirs-edge: rgba(30,36,64,.1); --card: rgba(139,92,246,.1);
174 --card-edge: rgba(124,77,232,.35); --pill: rgba(255,255,255,.94); --pill-edge: rgba(30,36,64,.16);
175 --pill-shine: rgba(255,255,255,1); --pill-lift: rgba(40,46,90,.28); --st-ask: #C0651A;
176 --st-stop: #C2366F; --st-pause: #4B55C9; --st-wash: .13; --edge-a: #0B7A72; --edge-b: #6A3CD6; --edge-hi: #2B58C8;
177 --edge-glow-a: rgba(15,168,156,.36); --edge-glow-b: rgba(124,77,232,.32); --spk-rose: #C2366F; --spk-amber: #B8641C;
178}
179:root[data-theme="dark"] { color-scheme: dark; }
180@supports (color: light-dark(white, black)) {
181 :root {
182 color-scheme: light dark;
183 --frost: light-dark(#1E2440, #EEF2F8);
184 --haze: light-dark(#4A5275, #DDE3F0);
185 --signal: light-dark(#0FA89C, #6EE7DC);
186 --focus: light-dark(#0A6E66, #6EE7DC);
187 --on-signal: light-dark(#FFFFFF, #1E2738);
188 --sky: light-dark(#DDE1F3, #1A1F45);
189 --sky-1: light-dark(#F4F5FC, #2C3470);
190 --sky-2: light-dark(#E8EAF7, #1A1F45);
191 --sky-3: light-dark(#DDE1F3, #16193A);
192 --beam-1: light-dark(rgba(255,214,170,.55), rgba(255,214,170,.42));
193 --beam-2: light-dark(rgba(255,190,140,.18), rgba(255,176,102,.12));
194 --beam-3: light-dark(rgba(255,190,140,0), rgba(255,176,102,0));
195 --fog-4: light-dark(#FFFFFF, #C9D3E3);
196 --glass-1: light-dark(rgba(255,255,255,.62), rgba(238,242,248,.07));
197 --glass-2: light-dark(rgba(255,255,255,.42), rgba(238,242,248,.03));
198 --glass-base: light-dark(rgba(255,255,255,0), rgba(14,17,42,.40));
199 --glass-edge: light-dark(rgba(255,255,255,.75), rgba(238,242,248,.18));
200 --glass-shine: light-dark(rgba(255,255,255,.95), rgba(255,255,255,.22));
201 --glass-shadow: light-dark(rgba(40,46,90,.35), rgba(8,12,22,.6));
202 --mark-1: light-dark(#2A3156, #FFFFFF);
203 --mark-2: light-dark(#6B73A8, rgba(238,242,248,.35));
204 --mark-edge: light-dark(rgba(255,255,255,0), rgba(255,255,255,.5));
205 --btn: light-dark(#1E2440, #EEF2F8);
206 --btn-ink: light-dark(#FFFFFF, #1E2738);
207 --ghost: light-dark(rgba(30,36,64,.06), rgba(238,242,248,.1));
208 --ghost-edge: light-dark(rgba(30,36,64,.18), rgba(238,242,248,.22));
209 --danger: light-dark(#F6D3D6, #F3C6C9);
210 --field: light-dark(rgba(255,255,255,.75), rgba(10,16,28,.28));
211 --field-edge: light-dark(rgba(30,36,64,.16), rgba(238,242,248,.22));
212 --placeholder: light-dark(#5A6285, #DDE3F0);
213 --well: light-dark(rgba(255,255,255,.6), rgba(10,16,28,.25));
214 --well-edge: light-dark(rgba(30,36,64,.12), rgba(238,242,248,.14));
215 --well-ring: light-dark(rgba(30,36,64,.14), rgba(238,242,248,.18));
216 --well-hover: light-dark(rgba(255,255,255,.85), rgba(10,16,28,.4));
217 --accent-edge: light-dark(rgba(15,168,156,.5), rgba(110,231,220,.45));
218 --ring: light-dark(rgba(30,36,64,.35), rgba(238,242,248,.5));
219 --ring-soft: light-dark(rgba(30,36,64,.35), rgba(238,242,248,.4));
220 --hover: light-dark(rgba(30,36,64,.07), rgba(238,242,248,.1));
221 --chip: light-dark(rgba(30,36,64,.05), rgba(238,242,248,.08));
222 --chip-edge: light-dark(rgba(30,36,64,.18), rgba(238,242,248,.2));
223 --chip-hover: light-dark(rgba(30,36,64,.1), rgba(238,242,248,.16));
224 --track: light-dark(rgba(30,36,64,.08), rgba(238,242,248,.12));
225 --track-edge: light-dark(rgba(30,36,64,.3), rgba(238,242,248,.35));
226 --rule: light-dark(rgba(30,36,64,.12), rgba(238,242,248,.12));
227 --rule-strong: light-dark(rgba(30,36,64,.12), rgba(238,242,248,.14));
228 --alarm: light-dark(rgba(243,198,201,.35), rgba(243,198,201,.12));
229 --alarm-edge: light-dark(rgba(200,90,100,.35), rgba(243,198,201,.35));
230 --tile-ink: light-dark(#FFFFFF, #EEF2F8);
231 --amber-1: light-dark(rgba(192,96,24,.95), rgba(226,128,56,.82));
232 --amber-2: light-dark(rgba(200,70,130,.8), rgba(244,114,182,.22));
233 --teal-1: light-dark(rgba(12,136,129,.95), rgba(47,198,192,.55));
234 --teal-2: light-dark(rgba(16,150,143,.85), rgba(47,198,192,.12));
235 --violet-1: light-dark(rgba(110,62,220,.9), rgba(139,92,246,.6));
236 --violet-2: light-dark(rgba(124,77,232,.72), rgba(139,92,246,.14));
237 --mist-1: light-dark(rgba(84,96,138,.88), rgba(201,211,227,.4));
238 --mist-2: light-dark(rgba(100,112,152,.7), rgba(201,211,227,.08));
239 --rose-1: light-dark(rgba(205,58,128,.92), rgba(244,114,182,.55));
240 --rose-2: light-dark(rgba(208,62,132,.82), rgba(244,114,182,.12));
241 --menu-1: light-dark(rgba(255,255,255,0), rgba(238,242,248,.08));
242 --menu-2: light-dark(rgba(255,255,255,0), rgba(238,242,248,.04));
243 --menu-base: light-dark(#FBFBFE, rgb(24,28,62));
244 --menu-shine: light-dark(rgba(255,255,255,.95), rgba(255,255,255,.18));
245 --menu-shadow: light-dark(rgba(40,46,90,.3), rgba(8,12,22,.8));
246 --sheet-1: light-dark(rgba(255,255,255,.82), rgba(238,242,248,.07));
247 --sheet-2: light-dark(rgba(255,255,255,.72), rgba(238,242,248,.03));
248 --sheet-base: light-dark(rgba(244,245,252,.6), rgba(14,17,42,.62));
249 --scrim: light-dark(rgba(30,36,64,.18), rgba(10,12,30,.38));
250 --mine: light-dark(rgba(15,168,156,.14), rgba(47,198,192,.24));
251 --mine-edge: light-dark(rgba(15,168,156,.38), rgba(110,231,220,.35));
252 --theirs: light-dark(rgba(255,255,255,.88), rgba(238,242,248,.08));
253 --theirs-edge: light-dark(rgba(30,36,64,.1), rgba(238,242,248,.16));
254 --card: light-dark(rgba(139,92,246,.1), rgba(139,92,246,.16));
255 --card-edge: light-dark(rgba(124,77,232,.35), rgba(139,92,246,.45));
256 --pill: light-dark(rgba(255,255,255,.94), rgba(238,242,248,.11));
257 --pill-edge: light-dark(rgba(30,36,64,.16), rgba(238,242,248,.26));
258 --pill-shine: light-dark(rgba(255,255,255,1), rgba(255,255,255,.2));
259 --pill-lift: light-dark(rgba(40,46,90,.28), rgba(6,8,22,.55));
260 --st-ask: light-dark(#C0651A, #FFB066);
261 --st-stop: light-dark(#C2366F, #F9A8D4);
262 --st-pause: light-dark(#4B55C9, #AEB8FF);
263 --edge-a: light-dark(#0B7A72, #6EE7DC);
264 --edge-b: light-dark(#6A3CD6, #B49CFC);
265 --edge-hi: light-dark(#2B58C8, #E6FFFB);
266 --edge-glow-a: light-dark(rgba(15,168,156,.36), rgba(47,198,192,.5));
267 --edge-glow-b: light-dark(rgba(124,77,232,.32), rgba(139,92,246,.45));
268 --spk-rose: light-dark(#C2366F, #F9A8D4);
269 --spk-amber: light-dark(#B8641C, #FFC48A);
270 }
271 /* The few values that are not colours follow the device too. */
272 @media (prefers-color-scheme: light) {
273 :root:not([data-theme="dark"]) { --sky-stop: 55%; --glass-lift: -22px;
274 --fog-1-a: .28; --fog-2-a: .26; --fog-3-a: .2; --fog-4-a: .55; --st-wash: .13; }
275 }
276}
277* { box-sizing: border-box; }
278/* A double tap is two taps, never a zoom, so tapping quickly through the
279 page doesn't jump it about. Pinching still zooms: the viewport allows it. */
280* { touch-action: manipulation; }
281html { background: var(--sky); }
282body { margin: 0; min-height: 100vh; position: relative; isolation: isolate; font: 400 16px/1.5 var(--font); font-variation-settings: "STYL" 100; color: var(--frost);
283 background: linear-gradient(165deg, var(--sky-1) 0%, var(--sky-2) var(--sky-stop), var(--sky-3) 100%) fixed; }
284main { min-height: 100vh; }
285button, input { font-variation-settings: inherit; }
286h1, h2, .wordmark { font-variation-settings: "STYL" 0; }
287button, input { font: inherit; }
288:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
289
290/* The atmosphere sits behind the whole page: deep slate, banks of fog, one soft light from above. */
291/* Two beams of warm light that sway and breathe, and four banks of coloured fog,
292 each on its own slow path. The fog's colours shift a little over time. */
293.light { position: fixed; z-index: -1; pointer-events: none; top: -30%; left: 18%; width: 46%; height: 120%;
294 background: linear-gradient(180deg, var(--beam-1), var(--beam-2) 45%, var(--beam-3) 78%);
295 filter: blur(40px); transform-origin: 50% 0; animation: sway 9s ease-in-out infinite alternate, breathe 6s ease-in-out infinite alternate; }
296.light::after { content: ""; position: absolute; left: 95%; top: 0; width: 45%; height: 85%;
297 background: linear-gradient(180deg, var(--shine-1), var(--shine-2) 80%);
298 transform-origin: 50% 0; animation: sway 13s ease-in-out -4s infinite alternate-reverse; }
299@keyframes sway { from { transform: skewX(-24deg) translateX(-18%); } to { transform: skewX(-4deg) translateX(22%); } }
300@keyframes breathe { from { opacity: .45; } to { opacity: 1; } }
301
302.fog { position: fixed; z-index: -1; inset: -20%; pointer-events: none; animation: tint 18s ease-in-out infinite alternate; }
303@keyframes tint { from { filter: hue-rotate(-20deg); } to { filter: hue-rotate(28deg); } }
304.fog i { position: absolute; border-radius: 50%; filter: blur(56px); will-change: transform; }
305.fog i:nth-child(1) { background: var(--lagoon); width: 62%; height: 34%; left: -4%; bottom: 10%; opacity: var(--fog-1-a); animation: path-a 12s ease-in-out infinite alternate; }
306.fog i:nth-child(2) { background: var(--orchid); width: 58%; height: 36%; right: -6%; bottom: 20%; opacity: var(--fog-2-a); animation: path-b 15s ease-in-out -5s infinite alternate; }
307.fog i:nth-child(3) { background: var(--rose); width: 36%; height: 22%; left: 40%; bottom: 2%; opacity: var(--fog-3-a); animation: path-c 10s ease-in-out -3s infinite alternate; }
308.fog i:nth-child(4) { background: var(--fog-4); width: 70%; height: 18%; left: 10%; bottom: 30%; opacity: var(--fog-4-a); animation: path-b 17s ease-in-out -9s infinite alternate-reverse; }
309@keyframes path-a { 0% { transform: translate(-18%, 6%) scale(.9); } 50% { transform: translate(14%, -28%) scale(1.25); } 100% { transform: translate(36%, 4%) scale(1); } }
310@keyframes path-b { 0% { transform: translate(16%, -4%) scale(1.1); } 50% { transform: translate(-20%, 22%) scale(.85); } 100% { transform: translate(-38%, -14%) scale(1.2); } }
311@keyframes path-c { 0% { transform: translate(10%, 10%) scale(.8); } 50% { transform: translate(-32%, -40%) scale(1.3); } 100% { transform: translate(28%, -18%) scale(1); } }
312
313/* Glass is tinted dark (white frost in the light) so text keeps its contrast whatever colour the fog is behind it. */
314.glass { background: linear-gradient(var(--glass-1), var(--glass-2)), var(--glass-base); border: 1px solid var(--glass-edge);
315 backdrop-filter: blur(22px) saturate(130%); -webkit-backdrop-filter: blur(22px) saturate(130%);
316 box-shadow: inset 0 1px 0 var(--glass-shine), 0 18px 40px var(--glass-lift) var(--glass-shadow); }
317
318.wordmark { font-weight: 600; letter-spacing: -0.02em; font-size: 18px; display: flex; align-items: center; gap: 8px; }
319.wordmark::before { content: ""; width: 14px; height: 14px; border-radius: 4px;
320 background: linear-gradient(160deg, var(--mark-1), var(--mark-2)); box-shadow: inset 0 0 0 1px var(--mark-edge); }
321
322/* Buttons and fields share one control height: 44px, border included. */
323.btn, .input { height: 44px; line-height: 20px; }
324.btn { padding: 0 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 600; background: var(--btn); color: var(--btn-ink); }
325.btn.ghost { background: var(--ghost); color: var(--frost); box-shadow: inset 0 0 0 1px var(--ghost-edge); }
326.btn.danger { background: var(--danger); color: var(--danger-ink); }
327.input { padding: 0 14px; border-radius: 10px; border: 1px solid var(--field-edge); color: var(--frost);
328 background: var(--field); }
329.input::placeholder { color: var(--placeholder); }
330
331/* Sign in */
332.signin { display: grid; place-items: center; padding: 32px; }
333.signin .card { width: min(100%, 330px); padding: 30px 26px; border-radius: 18px; }
334.signin h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 26px 0 6px; }
335.signin p { margin: 0 0 22px; color: var(--haze); font-size: 15px; }
336.signin .input, .signin .btn { width: 100%; }
337.signin .input { margin-bottom: 10px; }
338.alt { margin-top: 14px; font-size: 14px; color: var(--haze); text-align: center; }
339/* The passkey door is that line as a button: a full 44px control, quiet until pointed at. */
340button.alt { display: block; width: 100%; height: 44px; margin-top: 2px; padding: 0; border: 0; background: none; cursor: pointer; }
341button.alt:hover { color: var(--frost); text-decoration: underline; text-underline-offset: 3px; }
342button.alt[aria-busy="true"] { cursor: progress; }
343.signin .passkey-msg { margin: 0; font-size: 14px; text-align: center; }
344.signin .passkey-msg:empty { display: none; }
345/* Oficina ID: the sign-in page's lead button, and the connect pages' actions. */
346.signin a.btn.full { justify-content: center; }
347.signin .btn + .btn, .signin form + .btn { margin-top: 10px; }
348.signin p.or { margin: 18px 0 10px; font-size: 14px; text-align: center; }
349.signin p.addr { color: var(--frost); font-weight: 500; overflow-wrap: anywhere; }
350
351/* Home: the header across the top; under it Home on the left and, with
352 Ask Base on, the chat docked on the right, full height. Home scrolls on
353 its own; the chat keeps its place. */
354.shell { --chat-w: clamp(360px, 30vw, 440px); --ease: cubic-bezier(.2,.8,.2,1);
355 display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); height: 100dvh; overflow: clip; }
356.shell > .topbar { grid-column: 1 / -1; margin: 16px 16px 0 24px; }
357.shell > .home { grid-column: 1; grid-row: 2; min-height: 0; overflow-y: auto; padding: 0 24px 28px; display: flex; flex-direction: column; }
358.topbar { display: flex; align-items: center; gap: 16px; padding: 8px 10px 8px 16px; border-radius: 14px; }
359.team { font-size: 14px; color: var(--haze); margin-right: auto; }
360.me { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: linear-gradient(140deg, var(--ember), var(--rose)); color: var(--ink); }
361.hello { margin: 46px 0 0; font-size: clamp(34px, 4.4vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
362.lede { margin: 12px 0 24px; color: var(--haze); font-size: 17px; }
363
364.steps { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
365.steps li { padding: 9px 14px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
366.steps .mark { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ring); display: grid; place-items: center; font-size: 11px; }
367.steps .done .mark { background: var(--signal); box-shadow: none; color: var(--on-signal); }
368.steps .done { color: var(--haze); }
369
370/* Home's apps: one glass panel under the greeting and steps, every app
371 in one grid of alike items that wraps (the Oficina apps, the installed
372 Store apps, then Base's own Store, People and Settings). On a phone the
373 same panel holds four columns (see the phone rules). */
374/* At most five columns of 96px: the panel fits them (fewer where the
375 screen is narrower), left-aligned under the greeting. */
376.apps { width: fit-content; max-width: 100%; margin-top: 28px; padding: 20px 20px 14px; border-radius: 22px; }
377.app-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, 96px); max-width: calc(5 * 96px + 4 * 8px);
378 gap: 14px 8px; justify-items: center; }
379/* Beside the docked chat Home can be narrow: the grid takes four or three
380 columns, so the panel still fits them, and where even three of 96px do
381 not fit, three share the width. Base's own pages keep a row of three. */
382.shell > .home { container: home / inline-size; }
383@media (min-width: 641px) {
384 @container home (max-width: 553.98px) { .app-grid { grid-template-columns: repeat(4, 96px); } }
385 @container home (max-width: 449.98px) { .app-grid { grid-template-columns: repeat(3, 96px); } }
386 @container home (max-width: 345.98px) { .apps { width: auto; } .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .app { width: 100%; min-width: 0; } }
387}
388/* Base's own pages (Store, People, Settings) start a row of their own. */
389.app-grid > li:not(.own) + li.own { grid-column-start: 1; }
390/* Each cell fills its column, so every app is the same width whatever its label. */
391.app-grid > li { width: 100%; min-width: 0; display: flex; justify-content: center; }
392.app { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; padding: 6px 4px 4px; border-radius: 16px;
393 font-size: 13px; font-weight: 500; text-align: center; transition: background .2s; }
394a.app:hover { background: var(--hover); }
395.app .icon { flex: none; width: 64px; height: 64px; display: grid; place-items: center; }
396.app .icon img { width: 100%; height: 100%; display: block; }
397/* Base's own tiles are drawn like Estilo's Oficina icons, whose squircle
398 (with its edge) spans 3.5% to 96.5% of the artwork, corners about 22%
399 round: the same squircle inside the same box, and a white glyph drawn
400 about half the squircle's width (its art fills about three quarters of
401 its 24-unit box) with a 2.2px stroke, as heavy as the Oficina glyphs read. */
402.app .icon.tile { position: relative; background: none; border-radius: 0; }
403.app .icon.tile::before { content: ""; position: absolute; inset: 3.5%; border-radius: 22%; background: var(--tint);
404 border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-shine); }
405.app .icon.tile svg { position: relative; width: 68%; height: 68%; }
406.app .icon.tile svg * { stroke-width: 2.2px; vector-effect: non-scaling-stroke; }
407.app .label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
408.tile { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; }
409.tile svg { width: 28px; height: 28px; stroke: var(--tile-ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
410.tile { background: var(--tint); }
411.tile.t-amber { --tint: linear-gradient(155deg, var(--amber-1), var(--amber-2)); }
412.tile.t-teal { --tint: linear-gradient(155deg, var(--teal-1), var(--teal-2)); }
413.tile.t-violet { --tint: linear-gradient(155deg, var(--violet-1), var(--violet-2)); }
414.tile.t-mist { --tint: linear-gradient(155deg, var(--mist-1), var(--mist-2)); }
415.tile.t-rose { --tint: linear-gradient(155deg, var(--rose-1), var(--rose-2)); }
416.app.new { animation: condense 1.2s cubic-bezier(.2,.7,0,1) both; }
417@keyframes condense { from { opacity: 0; filter: blur(14px); transform: scale(.94); } to { opacity: 1; filter: none; transform: none; } }
418.app.leaving { animation: dissolve .5s ease forwards; }
419@keyframes dissolve { to { opacity: 0; filter: blur(12px); } }
420
421/* Inner pages: one large sheet of glass over the same atmosphere */
422.inner { padding: 18px; display: flex; flex-direction: column; }
423.sheet { flex: 1; border-radius: 16px; padding: 22px 24px 24px; }
424.crumb { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
425.crumb span { color: var(--haze); font-size: 14px; }
426/* The X at the top right closes the page back to Home: the chat's round
427 close, level with the wordmark and tucked towards the corner. */
428.crumb .close { margin: 0 -8px 0 auto; }
429.inner h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.025em; margin: 0 0 8px; }
430.inner .lead { margin: 0 0 22px; color: var(--haze); max-width: 50ch; }
431.invite { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
432.invite .input { flex: 1; min-width: 180px; }
433.people { list-style: none; margin: 0; padding: 0; }
434.people li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule-strong); }
435.face { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
436.face.on { background: linear-gradient(140deg, var(--ember), var(--rose)); color: var(--ink); }
437.face.off { box-shadow: inset 0 0 0 1.5px var(--ring-soft); color: var(--haze); }
438.people .who { flex: 1; font-weight: 500; }
439.people .who small { display: block; color: var(--haze); font-size: 13px; font-weight: 400; }
440.tag { font-size: 13px; color: var(--haze); }
441/* Settings' Appearance: System, Light and Dark in one pill, the chosen one
442 filled. Each is a submit button, so it works without scripts. */
443.segmented { display: flex; flex: none; gap: 2px; padding: 3px; border-radius: 13px; background: var(--well); box-shadow: inset 0 0 0 1px var(--well-edge); }
444/* The pill is one control height, as tall as a button beside it. */
445.segmented button { height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--frost);
446 font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s; }
447.segmented button:hover { background: var(--hover); }
448.segmented button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); font-weight: 600; }
449
450/* Settings: sections under small headings. Every row is its name (and its
451 value under it) on the left and its control on the right, centred, all
452 one height whether or not there is a control. Signing out comes last,
453 its explanation under it. */
454.settings { max-width: 720px; }
455.settings .group { margin-top: 28px; }
456.settings .group h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--haze); }
457.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule-strong); }
458.rows li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 10px; min-height: 69px; padding: 12px 0;
459 border-top: 1px solid var(--rule-strong); }
460.rows .who { flex: 1 1 6.5em; min-width: 0; font-weight: 500; line-height: 24px; }
461.rows .who small { display: block; color: var(--haze); font-size: 14px; font-weight: 400; line-height: 20px; overflow-wrap: anywhere; }
462.rows .status { margin: 4px 0 0; min-height: 0; font-weight: 400; line-height: 20px; }
463.rows .status:empty { margin: 0; }
464.settings .signout { margin-top: 32px; }
465.settings .signout .note { margin: 10px 0 0; color: var(--haze); font-size: 14px; max-width: 56ch; }
466
467.listing { display: flex; gap: 16px; align-items: center; padding: 16px 0;
468 border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
469.listing .tile { flex: none; width: 56px; height: 56px; border-radius: 16px; }
470.listing .txt { flex: 1; }
471.listing .txt b { display: block; font-weight: 600; }
472.listing .txt span { color: var(--haze); font-size: 14px; }
473.actions { display: flex; gap: 6px; flex: none; }
474.installing { cursor: progress; color: var(--ink);
475 background: linear-gradient(var(--signal), var(--signal)) left / 0% 100% no-repeat, var(--mist);
476 animation: fill 1.8s cubic-bezier(.4,0,.2,1) forwards; }
477@keyframes fill { to { background-size: 100% 100%, auto; } }
478.confirm { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--alarm); box-shadow: inset 0 0 0 1px var(--alarm-edge); }
479.confirm p { margin: 0 0 12px; }
480.soon { margin-top: 22px; color: var(--haze); font-size: 14px; }
481.soon b { color: var(--frost); font-weight: 500; }
482.status { margin-top: 12px; font-size: 14px; min-height: 1.5em; }
483[hidden] { display: none !important; }
484
485@media (prefers-reduced-motion: reduce) {
486 .fog, .fog i, .light, .light::after, .app.new, .app.leaving, .installing, .msg.draft::after { animation: none; }
487 .light { transform: skewX(-14deg); }
488}
489
490/* Links drawn as tiles and buttons. */
491a.app { color: inherit; text-decoration: none; }
492/* The avatar is the way to Settings: dark initials on its warm gradient in
493 both themes (AA on every part of it), a 32px circle drawn inside a 44px
494 target whose padding overhangs the top bar's own. */
495a.me { color: var(--ink); text-decoration: none; }
496.topbar a.me { width: 44px; height: 44px; margin: -6px -6px -6px 0; padding: 6px; background-clip: content-box; flex: none; }
497/* The wordmark on inner pages is the way back to Home: a 44px target. */
498a.wordmark { color: inherit; text-decoration: none; min-height: 44px; border-radius: 8px; }
499.notepad + form { margin-top: 16px; }
500a.btn { display: inline-flex; align-items: center; text-decoration: none; }
501/* The Base button in the header opens Ask Base; on a wide screen it shows
502 only while the chat is closed. Its mark is the wordmark's. */
503.base-btn-form, .dock-close { display: contents; }
504.base-btn { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
505 background: var(--well); box-shadow: inset 0 0 0 1px var(--well-ring); overflow: hidden;
506 transition: background .2s, box-shadow .2s, opacity .3s, transform .45s var(--ease), width 0s, visibility 0s; }
507.base-btn:hover { background: var(--well-hover); box-shadow: inset 0 0 0 1px var(--accent-edge); }
508.base-btn .mark, .ask-head .mark { flex: none; width: 14px; height: 14px; border-radius: 4px;
509 background: linear-gradient(160deg, var(--mark-1), var(--mark-2)); box-shadow: inset 0 0 0 1px var(--mark-edge); }
510.base-btn .mark { width: 18px; height: 18px; border-radius: 5px; }
511/* The Ask field under the greeting, with its "/" hint. It folds away
512 while the chat is docked open (see the wide-screen rules). */
513.ask-slot { display: grid; grid-template-rows: 1fr; transition: opacity .3s .1s, transform .45s var(--ease), visibility 0s; }
514.ask-slot > div { min-height: 0; overflow: hidden; margin: 0 -3px; }
515.ask-field-form { padding: 0 3px 22px; }
516/* A wide screen's openers are forms (opening is kept); a phone's are links
517 to /ask, which work without scripts and keep nothing. */
518@media (min-width: 641px) { a.base-btn, a.ask-field { display: none; } }
519a.base-btn, a.ask-field { text-decoration: none; }
520.ask-field { width: 100%; max-width: 520px; height: 48px; padding: 0 16px; border: 0; border-radius: 12px; display: flex; align-items: center; gap: 12px;
521 cursor: text; text-align: left; font: inherit; font-size: 15px; color: var(--haze); background: var(--well); box-shadow: inset 0 0 0 1px var(--well-edge);
522 transition: background .2s, box-shadow .2s; }
523.ask-field:hover { background: var(--well-hover); box-shadow: inset 0 0 0 1px var(--accent-edge); }
524.ask-field span { flex: 1; }
525.ask-field kbd { font: inherit; font-size: 13px; opacity: .75; }
526.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
527
528/* Ask Base on Home: docked on the right under the header, full height, in
529 its own glass. Its column takes its width at once when it opens and
530 gives it back once the chat has slid away: only transform and opacity
531 move. On a phone, a full-screen sheet over Home (see the phone rules).
532 The same conversation is the /ask page. */
533.chat-col { grid-column: 2; grid-row: 2; position: relative; width: calc(var(--chat-w) + 16px); }
534aside.ask-panel { position: absolute; top: 16px; right: 16px; bottom: 16px; width: var(--chat-w); display: flex; flex-direction: column; overflow: hidden;
535 border-radius: 20px; color: var(--frost); background: linear-gradient(var(--sheet-1), var(--sheet-2)), var(--sheet-base);
536 transition: transform .45s var(--ease), opacity .3s, visibility 0s; }
537.ask-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px 20px; border-bottom: 1px solid var(--rule); }
538.ask-head h2 { flex: 1; display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; font-variation-settings: "STYL" 0; }
539/* The header's round glass button: close. Inner pages' close is the same. */
540.ask-head .round, .crumb .round { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
541 color: var(--frost); background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-edge); transition: background .2s, box-shadow .2s;
542 text-decoration: none; }
543.ask-head .round:hover, .crumb .round:hover { background: var(--chip-hover); box-shadow: inset 0 0 0 1px var(--accent-edge); }
544.ask-head .round svg, .crumb .round svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
545.ask-note { padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
546.ask-note p { margin: 0; color: var(--haze); }
547.ask-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
548/* The log scrolls; the status row and the composer are the
549 footer below it, never over it. Jump to latest floats at the log's foot
550 when the person has scrolled up and something new arrives. */
551.log { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
552.jump { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); min-height: 36px; padding: 0 14px; border: 0; border-radius: 18px;
553 font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--on-signal); background: var(--signal);
554 box-shadow: 0 6px 18px var(--glass-lift) var(--glass-shadow); }
555.ask-foot, .composer { flex: none; }
556.thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
557.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
558.msg.person { align-self: flex-end; background: var(--mine); box-shadow: inset 0 0 0 1px var(--mine-edge); border-bottom-right-radius: 4px; }
559.msg.coordinator { align-self: flex-start; background: var(--theirs); box-shadow: inset 0 0 0 1px var(--theirs-edge); border-bottom-left-radius: 4px; }
560/* The simple lists in a message, the Assistant's or the person's: the
561 thread's own list-style is none. */
562.msg ul, .msg ol { margin: 4px 0; padding-left: 20px; }
563.msg ul { list-style: disc; }
564.msg ol { list-style: decimal; }
565.msg.draft::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--signal); animation: caret 1s steps(2) infinite; }
566@keyframes caret { 50% { opacity: 0; } }
567.msg.card { align-self: stretch; max-width: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); }
568.msg.card p { margin: 0 0 10px; }
569.choices { display: flex; flex-wrap: wrap; gap: 8px; }
570.msg.card p + p { margin-top: -4px; }
571.card-link, .msg.coordinator a { color: var(--focus); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
572/* A lookup under the Assistant's words (ask-lookup): the answer, then a
573 quiet Sources line, each source's title a link with its host after it. */
574.msg .lookup { margin-top: 10px; }
575.msg .lookup:first-child { margin-top: 0; }
576.msg .lookup-answer { margin: 0; }
577.msg .lookup-sources { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 2px 12px; white-space: normal; color: var(--haze); font-size: 13.5px; line-height: 1.4; }
578.msg .lookup-label { font-weight: 500; }
579.msg .lookup-sources .source { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
580.msg .lookup-sources .source-host { color: var(--haze); font-size: 12.5px; }
581/* The person's links keep their bubble's ink, underlined. */
582.msg.person a { color: inherit; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
583/* A person's files above their words (ask-files): thumbnails, then a pill
584 per other file, each a link to Base's own copy. A lone picture shows
585 larger; several sit in a row of the same height. */
586.msg .files { display: flex; flex-wrap: wrap; gap: 6px; white-space: normal; }
587.msg .files:not(:last-child) { margin-bottom: 8px; }
588.msg .files a { text-decoration: none; color: inherit; }
589.msg .files .thumb { display: block; max-width: 100%; border-radius: 10px; overflow: hidden; line-height: 0; background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-edge); }
590.msg .files .thumb img { display: block; height: 112px; width: auto; max-width: 100%; object-fit: cover; }
591.msg .files .thumb:only-child img { height: auto; max-height: 240px; }
592.msg .files .file { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 0 12px 0 10px; border-radius: 12px;
593 background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-edge); font-size: 13.5px; line-height: 18px; }
594.msg .files .file:hover { box-shadow: inset 0 0 0 1px var(--accent-edge); }
595.file-mark { flex: none; width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; fill: none; }
596.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
597.file-size { flex: none; color: var(--haze); font-size: 12.5px; }
598.card-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
599.msg.card .card-state { margin: 0; color: var(--haze); font-size: 14px; }
600.msg.card .choices + .card-state { margin-top: 10px; }
601/* A job: a compact pill in the conversation, updated in place. A capsule,
602 not a bubble: its own surface and edge, a lift, a state mark on the left
603 and the state's colour washed in behind it. One line: when space runs
604 short the title is cut short first (down to a few letters), then the
605 status; the status never goes, and the link beside it never shrinks
606 (ruling R26). */
607.job { align-self: flex-start; max-width: 100%; display: flex; flex-direction: column; gap: 6px; }
608.job[data-state="working"], .job[data-state="ready"], .job[data-state="done"] { --st: var(--signal); }
609.job[data-state="asking"] { --st: var(--st-ask); }
610.job[data-state="paused"] { --st: var(--st-pause); }
611.job[data-state="stopped"] { --st: var(--st-stop); }
612.pill { position: relative; display: flex; align-items: center; max-width: 100%; min-height: 44px; border-radius: 999px;
613 background: linear-gradient(90deg, color-mix(in srgb, var(--st) calc(var(--st-wash) * 100%), transparent), transparent 70%), var(--pill);
614 box-shadow: inset 0 0 0 1px var(--pill-edge), inset 0 1px 0 var(--pill-shine), 0 8px 18px -10px var(--pill-lift); transition: box-shadow .2s; }
615.pill:has(.pill-main:hover) { box-shadow: inset 0 0 0 1px var(--accent-edge), inset 0 1px 0 var(--pill-shine), 0 8px 18px -10px var(--pill-lift); }
616.job-toggle { flex: 0 1 auto; min-width: 0; }
617.pill-main { min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 8px; border-radius: 999px;
618 list-style: none; cursor: pointer; font-size: 13.5px; line-height: 20px; white-space: nowrap; }
619.pill-main::-webkit-details-marker { display: none; }
620.pill-main:focus-visible { outline-offset: 2px; }
621/* Space runs short: the title gives way first, down to --title-least;
622 only then the status (ruling R26). The status never shrinks as a flex
623 item (a share of even a sliver draws an ellipsis); its cap is the room
624 left beside the mark, the two gaps and the title at its least. */
625.pill-main { --title-least: 40px; }
626.pill-title { flex: 0 1 auto; min-width: var(--title-least); overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
627.pill-stage { flex: none; min-width: 0; max-width: calc(100% - 28px - 2 * 8px - var(--title-least)); overflow: hidden; text-overflow: ellipsis;
628 color: var(--haze); font-size: 13px; }
629.pill-stage::before { content: "·"; margin: 0 6px 0 0; }
630.pill-link { flex: none; align-self: stretch; display: flex; align-items: center; margin-left: -5px; padding: 0 14px 0 10px; border-radius: 0 999px 999px 0;
631 font-size: 13.5px; font-weight: 600; color: var(--focus); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
632 box-shadow: inset 1px 0 0 var(--pill-edge); }
633/* The state mark: a disc. Working is a slow arc round a breathing dot; the
634 rest are still icons on the state's colour. */
635.state-mark { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--on-signal); }
636.state-mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
637.job[data-state="working"] .state-mark { background: color-mix(in srgb, var(--st) 14%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--st) 26%, transparent); }
638.job[data-state="working"] .state-mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--st);
639 animation: turn 1.6s cubic-bezier(.5,.15,.5,.85) infinite; }
640.job[data-state="working"] .state-mark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--st); animation: glow 1.6s ease-in-out infinite alternate; }
641.job:not([data-state="working"]) .state-mark { background: var(--st); }
642@keyframes turn { to { transform: rotate(1turn); } }
643@keyframes glow { from { opacity: .45; } }
644/* The job view, opened from the pill: its title, the status, one sentence
645 more, the job's cards that have ended, when it started, and the link to
646 the work. Without scripts it
647 opens in place, just under the pill's row. With them (ask.js) it is a popover
648 in the top layer, anchored to the pill inside the chat, and on a phone a
649 sheet from the foot of the screen over the dimmed chat (the scrim). It
650 never sets display: the popover's own rules show and hide it. */
651.jobview { width: min(320px, calc(100vw - 32px)); padding: 10px 10px 12px 16px; border: 0; border-radius: 16px; color: var(--frost); background: var(--menu-base);
652 box-shadow: inset 0 0 0 1px var(--pill-edge), inset 0 1px 0 var(--menu-shine), 0 22px 48px -14px var(--menu-shadow);
653 font-size: 14px; line-height: 1.45; white-space: normal; text-align: left; }
654/* Without the popover (scripts off) the view opens in place, in the
655 conversation's flow under the pill's row, pushing what follows down;
656 the pill rounds into a card to hold it. Only the popover is laid over. */
657.job-toggle > .jobview:not([popover]) { width: 320px; max-width: calc(100% - 12px); margin: 0 6px 6px; box-shadow: inset 0 0 0 1px var(--pill-edge); }
658.pill:has(> .job-toggle[open] > .jobview:not([popover])) { align-items: flex-start; border-radius: 22px; }
659.pill:has(> .job-toggle[open] > .jobview:not([popover])) > .pill-link { align-self: flex-start; min-height: 44px; }
660.jobview[popover] { position: fixed; inset: auto; margin: 0; overflow: visible; animation: rise .18s var(--ease, cubic-bezier(.2,.8,.2,1)); }
661.jobview header { display: flex; align-items: center; gap: 10px; }
662.jobview header .state-mark { width: 26px; height: 26px; }
663.jobview header .state-mark svg { width: 14px; height: 14px; }
664.jobview h3 { flex: 1; min-width: 0; margin: 0; padding: 0; font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; font-variation-settings: "STYL" 0; }
665.jobview h3:not(:has(a)) { padding: 11px 0; }
666/* The title is the quiet way into Equipo: it reads as a heading, in the
667 heading's ink, with no underline until it is pointed at. A small arrow
668 shows on hover and focus, and always on touch screens and phones. */
669.jv-title { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: inherit; text-decoration: none; border-radius: 6px; }
670.jv-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--haze); }
671.jv-title svg { flex: none; width: 13px; height: 13px; fill: none; stroke: var(--haze); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
672 opacity: 0; transition: opacity .15s; }
673.jv-title:hover svg, .jv-title:focus-visible svg { opacity: 1; }
674@media (hover: none) { .jv-title svg { opacity: 1; } }
675.jobview .round { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
676 color: var(--frost); background: none; transition: background .2s; }
677.jobview .round[hidden] { display: none; }
678.jobview .round:hover { background: var(--hover); }
679.jobview .round svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
680/* Under the title, in line with it: the status, one sentence more, and
681 when it started. */
682.jobview > p { margin: 0 10px 0 36px; }
683.jv-stage { font-weight: 500; }
684.jobview > .jv-detail { margin-top: 2px; color: var(--haze); }
685.jobview > .jv-started { margin-top: 8px; color: var(--haze); font-size: 13px; }
686/* A paused job's one action, "Carry on now", and the quiet line under it
687 saying what it uses. */
688.jv-act { margin: 12px 10px 0 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
689.jv-act small { color: var(--haze); font-size: 13px; }
690.jv-act .jv-error { margin: 0; font-size: 13px; color: var(--frost); }
691.jv-act .jv-error:empty { margin-top: -6px; }
692/* Under the detail, the job's cards that have ended (Paul, 2026-11-16):
693 each its question, then how it ended, in the status's quieter ink; a
694 rule above the list keeps them apart from the status. */
695.jv-cards { list-style: none; margin: 10px 10px 0 36px; padding: 8px 0 0; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rule); }
696.jv-cards:empty { display: none; }
697.jv-cards p { margin: 0; }
698.jv-cards .jv-result { color: var(--haze); font-size: 13px; }
699.jv-go { display: inline-flex; align-items: center; height: 44px; margin: 14px 10px 0 0; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
700 text-decoration: none; background: var(--btn); color: var(--btn-ink); }
701.scrim { position: absolute; inset: 0; z-index: 4; background: var(--scrim); border-radius: inherit; }
702.ask-page { position: relative; }
703@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
704@keyframes sheet { from { transform: translateY(100%); } }
705/* The person's decisions for a job (its go-ahead, Publish) hang under its
706 pill, joined to it by a thread line. */
707.job-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
708.job-cards:empty { display: none; }
709.job-cards > .msg.card { position: relative; margin-left: 22px; max-width: 340px; }
710.job-cards > .msg.card::before { content: ""; position: absolute; left: -10px; top: -6px; bottom: 50%; width: 8px;
711 border-left: 2px solid var(--pill-edge); border-bottom: 2px solid var(--pill-edge); border-bottom-left-radius: 10px; }
712/* Connecting Oficina: a button at the end of the Assistant's reply that
713 asked for it. Coloured glass, teal into violet (white on either is over
714 4.5:1, in both themes: the --go tokens), the Oficina mark at its start, and under it a
715 quiet line saying what it unlocks. Connected, a quiet line with a tick.
716 On its own (no reply to end) it sits where a reply would. */
717.connect-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; white-space: normal; }
718.connect-offer.loose { align-self: flex-start; margin-top: 0; padding-left: 4px; }
719.thread .connect-offer a.connect-btn { height: auto; min-height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 20px 0 8px;
720 border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--go-ink); text-decoration: none;
721 background: linear-gradient(120deg, var(--go-1), var(--go-2));
722 box-shadow: inset 0 0 0 1px var(--go-edge), inset 0 1px 0 var(--go-shine), 0 10px 22px -12px var(--edge-glow-b);
723 transition: box-shadow .2s, filter .2s; }
724.thread .connect-offer a.connect-btn:hover { filter: brightness(1.08);
725 box-shadow: inset 0 0 0 1px var(--go-edge-hover), inset 0 1px 0 var(--go-shine), 0 12px 26px -10px var(--edge-glow-a); }
726.thread .connect-offer a.connect-btn:focus-visible { outline-offset: 3px; }
727.connect-mark { flex: none; width: 32px; height: 32px; }
728.connect-offer .connect-line { margin: 0 0 0 8px; color: var(--haze); font-size: 13.5px; line-height: 1.4; }
729.connect-offer .connect-done { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--haze); font-size: 14px; font-weight: 500; }
730.connect-done svg { width: 16px; height: 16px; fill: none; stroke: var(--focus); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
731.ask-empty, .ask-problem { margin: 0; padding: 0 20px 12px; color: var(--haze); font-size: 14px; }
732/* A note in the conversation (how connecting Oficina went): a quiet line
733 on the Assistant's side, after the reply it follows, lined up with the
734 bubbles' words. */
735.thread > .ask-notice { align-self: flex-start; padding: 0 14px; color: var(--haze); font-size: 14px; }
736.ask-foot { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
737.ask-status { flex: 1; margin: 0; min-height: 1.5em; color: var(--haze); font-size: 14px; }
738.ask-status:empty { min-height: 0; }
739.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px 16px; }
740.composer .field { flex: 1; min-width: 0; position: relative; display: flex; }
741.composer textarea.input { flex: 1; height: auto; min-height: 44px; max-height: 160px; padding: 11px 14px; resize: none; font: inherit; line-height: 20px; field-sizing: content; }
742/* Send (an arrow) and Stop (a square) sit in the field's end, round and
743 filled like a primary button: a 32px circle in a 44px target. The field
744 keeps its text clear of whichever shows; with none it is all field. Each
745 fades and grows in as it appears. */
746.composer .actions { position: absolute; right: 0; bottom: 0; display: flex; }
747.composer .field:has(.actions > :not([hidden])) textarea.input { padding-right: 46px; }
748.composer .field:has(.actions > :not([hidden]) ~ :not([hidden])) textarea.input { padding-right: 90px; }
749.composer .actions button { flex: none; width: 44px; height: 44px; padding: 6px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
750 background: var(--btn); background-clip: content-box; color: var(--btn-ink); animation: pop .16s cubic-bezier(.2,.7,0,1); }
751.composer .actions button:focus-visible { outline-offset: -3px; }
752.composer .actions svg { width: 18px; height: 18px; }
753.composer .send svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
754.composer .stop svg { fill: currentColor; }
755@keyframes pop { from { opacity: 0; transform: scale(.6); } }
756/* Files in the composer (ask-attach.js, only with scripts). The paperclip
757 sits left of Send, a quiet glyph in the same 44px target. The chips sit
758 above the field, wrapping (on a phone, one line that scrolls sideways):
759 each a mark (the file's
760 page, a progress ring while it uploads, then an image's thumbnail), its
761 name and a line (its size, Uploading…, or why it won't go), and Remove.
762 Files dragged over the composer outline it, saying they can be dropped. */
763.composer { flex-wrap: wrap; position: relative; }
764.composer .actions .attach { background: none; color: var(--haze); }
765.composer .actions .attach:hover { color: var(--frost); }
766.composer .actions .attach svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
767.chips { flex: 0 0 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; max-height: 196px; overflow-y: auto; padding: 2px 2px 4px; }
768.chips[hidden] { display: none; }
769.chip { flex: none; display: flex; align-items: center; gap: 8px; max-width: min(220px, 100%); min-height: 48px; padding: 4px 2px 4px 6px; border-radius: 12px;
770 background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-edge); }
771.chip.bad { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st-stop) 70%, transparent); max-width: min(300px, 100%); }
772.chip-mark { position: relative; flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; color: var(--haze); }
773.chip-mark > img { width: 100%; height: 100%; object-fit: cover; }
774.chip-mark .file-mark { width: 20px; height: 20px; }
775.chip-ring { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--chip) 70%, transparent); }
776.chip-ring[hidden] { display: none; }
777.chip-ring svg { width: 30px; height: 30px; transform: rotate(-90deg); }
778.chip-ring circle { fill: none; stroke-width: 2.4; }
779.chip-ring .track { stroke: var(--chip-edge); }
780.chip-ring .arc { stroke: var(--focus); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .2s; }
781.chip-text { min-width: 0; display: flex; flex-direction: column; line-height: 17px; }
782.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; }
783.chip-meta { color: var(--haze); font-size: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
784.chip.bad .chip-meta { color: var(--frost); display: block; }
785.chip-remove { flex: none; width: 44px; height: 44px; margin: -4px 0; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
786 color: var(--haze); background: none; }
787.chip-remove:hover { color: var(--frost); }
788.chip-remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
789.composer.dropping::after { content: attr(data-drop); position: absolute; inset: 4px 8px 8px; border-radius: 14px; display: grid; place-items: center; pointer-events: none;
790 font-size: 14px; font-weight: 600; color: var(--frost); background: color-mix(in srgb, var(--chip) 85%, transparent);
791 outline: 2px dashed var(--focus); outline-offset: -2px; }
792/* The viewer: a thumbnail's image full size, over a dimmed page, with
793 Close. */
794.viewer { max-width: min(92vw, 1200px); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; overflow: visible; background: transparent; }
795.viewer::backdrop { background: color-mix(in srgb, var(--menu-base) 82%, transparent); }
796.viewer img { display: block; min-width: min(240px, 92vw); max-width: min(92vw, 1200px); max-height: 92vh; border-radius: 14px; object-fit: contain; background: var(--menu-base); }
797.viewer-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
798 cursor: pointer; color: var(--frost); background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-edge); }
799.viewer-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
800/* An edge, not a fill: the composer's focus edge and the thinking bubble's
801 paint a gradient over their whole box and show it only through this mask,
802 --ring thick round the box's edge and following its corners (--r-tl,
803 --r-tr, --r-br, --r-bl, the box's own radii): a strip along each side
804 and a quarter ring at each corner. The layers only add up, the default
805 in every browser, so it needs no mask-composite, which Safari got wrong
806 (the whole gradient filled the field). The outer edge is the box's own
807 rounded clip. (The masks are black: only their alpha counts.) */
808.composer .field::after, .msg.thinking::before, .msg.answered::before {
809 --ring-in-tl: calc(var(--r-tl) - var(--ring)); --ring-in-tr: calc(var(--r-tr) - var(--ring));
810 --ring-in-br: calc(var(--r-br) - var(--ring)); --ring-in-bl: calc(var(--r-bl) - var(--ring));
811 --ring-mask:
812 linear-gradient(black 0 0) top / 100% var(--ring) no-repeat, linear-gradient(black 0 0) bottom / 100% var(--ring) no-repeat,
813 linear-gradient(black 0 0) left / var(--ring) 100% no-repeat, linear-gradient(black 0 0) right / var(--ring) 100% no-repeat,
814 radial-gradient(circle at 100% 100%, transparent calc(var(--ring-in-tl) - .5px), black calc(var(--ring-in-tl) + .5px)) left top / var(--r-tl) var(--r-tl) no-repeat,
815 radial-gradient(circle at 0 100%, transparent calc(var(--ring-in-tr) - .5px), black calc(var(--ring-in-tr) + .5px)) right top / var(--r-tr) var(--r-tr) no-repeat,
816 radial-gradient(circle at 0 0, transparent calc(var(--ring-in-br) - .5px), black calc(var(--ring-in-br) + .5px)) right bottom / var(--r-br) var(--r-br) no-repeat,
817 radial-gradient(circle at 100% 0, transparent calc(var(--ring-in-bl) - .5px), black calc(var(--ring-in-bl) + .5px)) left bottom / var(--r-bl) var(--r-bl) no-repeat;
818 -webkit-mask: var(--ring-mask); mask: var(--ring-mask); }
819/* The composer's focus, in place of the outline: a thin luminous edge
820 outside the field, teal into violet, that fades in and drifts round (a
821 turn every 6s), over a soft glow that breathes (4.5s). Only the glow
822 breathes: the 2px edge stays at full strength, so it is a real focus
823 indicator. */
824@property --edge-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
825@property --breath { syntax: "<number>"; inherits: false; initial-value: 0; }
826.composer textarea.input:focus-visible { outline: none; animation: breathe-glow 2.25s cubic-bezier(.37,0,.63,1) infinite alternate;
827 box-shadow: 0 0 calc(15px + 6px * var(--breath)) calc(-4px + 3px * var(--breath)) color-mix(in srgb, var(--edge-glow-a) calc(55% + 35% * var(--breath)), transparent),
828 0 0 calc(26px + 8px * var(--breath)) calc(-7px + 3px * var(--breath)) color-mix(in srgb, var(--edge-glow-b) calc(55% + 35% * var(--breath)), transparent); }
829@keyframes breathe-glow { to { --breath: 1; } }
830.composer .field::after { content: ""; position: absolute; inset: -3px; border-radius: 13px; pointer-events: none; opacity: 0; transition: opacity .35s ease;
831 --ring: 2px; --r-tl: 13px; --r-tr: 13px; --r-br: 13px; --r-bl: 13px;
832 animation: edge-turn 6s linear infinite paused;
833 background: conic-gradient(from var(--edge-turn), var(--edge-a), var(--edge-hi) 9%, var(--edge-a) 20%, var(--edge-b) 50%, var(--edge-a)) border-box; }
834.composer .field:has(textarea:focus-visible)::after { opacity: 1; animation-play-state: running; }
835@keyframes edge-turn { to { --edge-turn: 360deg; } }
836/* Forced colours drop the glow and the edge: the system's outline instead. */
837@media (forced-colors: active) {
838 .composer textarea.input:focus-visible { outline: 2px solid CanvasText; outline-offset: 3px; }
839 .composer .field::after { display: none; }
840}
841/* Thinking: the Assistant's bubble while it works on an answer. It sits
842 where the answer will be, says what it is doing, and a small spark runs
843 round its edge (a lap every 4s), its colour drifting through Base's
844 palette, on a WebGL canvas over the edge that ask.js makes only while
845 it thinks. Without WebGL (no-gl), a gradient sweeps round the edge
846 instead; with reduced motion the edge just glows, still. */
847@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
848.msg.thinking, .msg.answered { position: relative; }
849.msg .spark { position: absolute; left: -8px; top: -8px; width: calc(100% + 16px); height: calc(100% + 16px); pointer-events: none; }
850.msg.thinking::before, .msg.answered::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
851 transition: opacity .35s ease;
852 --ring: 1.5px; --r-tl: 14px; --r-tr: 14px; --r-br: 14px; --r-bl: 4px; /* .msg.coordinator's corners */
853 background: conic-gradient(from var(--sweep), transparent 0 50%, color-mix(in srgb, var(--spk-amber) 60%, transparent) 64%,
854 var(--spk-rose) 76%, var(--edge-b) 88%, var(--edge-a) 98%, var(--edge-hi)) border-box; }
855.msg.thinking.no-gl::before { opacity: 1; animation: sweep 4s linear infinite; }
856@keyframes sweep { to { --sweep: 360deg; } }
857/* Before Equipo says anything, the bubble is wordless: three soft dots,
858 each lifting and brightening a beat after the last while their colour
859 drifts through the spark's teal, violet and rose. */
860.msg .dots { display: inline-flex; gap: 6px; align-items: center; height: 1.5em; padding: 0 2px; vertical-align: top; }
861.msg .dots i { width: 6px; height: 6px; border-radius: 50%; color: var(--edge-a); background: currentColor; box-shadow: 0 0 8px -1px currentColor; opacity: .45;
862 animation: think-dot 1.4s ease-in-out infinite, think-hue 4.2s linear infinite; }
863.msg .dots i:nth-child(2) { animation-delay: .18s, -1.4s; }
864.msg .dots i:nth-child(3) { animation-delay: .36s, -2.8s; }
865@keyframes think-dot { 0%, 70%, 100% { opacity: .45; transform: translateY(0) scale(.85); } 35% { opacity: 1; transform: translateY(-2px) scale(1); } }
866@keyframes think-hue { 0%, 100% { color: var(--edge-a); } 33% { color: var(--edge-b); } 66% { color: var(--spk-rose); } }
867@media (forced-colors: active) { .msg .dots i { forced-color-adjust: none; color: CanvasText; box-shadow: none; } }
868/* What the bubble says while it thinks (its dots, Equipo's words) sits in
869 one grid cell of its line, so new words fade in over the old in place;
870 always one line, ending in an ellipsis when it is too long. (ask.js
871 keeps the bubble's width from shrinking until the reply.) */
872.msg > .think-line:has(> .say, > .dots) { display: grid; }
873.think-line > .say, .think-line > .dots { grid-area: 1 / 1; min-width: 0; }
874/* Equipo's words there are a status, not a reply: secondary ink, italic,
875 and the dots after them, still shimmering, so the bubble plainly still
876 works. The reply comes upright, in full ink. The words end in the
877 ellipsis; the dots always show. */
878.think-line > .say { display: flex; align-items: center; color: var(--haze); font-style: italic; }
879.say > .words { min-width: 0; padding-right: .15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
880.say > .dots { flex: none; margin-left: 5px; }
881.ask-page { display: flex; flex-direction: column; padding: 22px 0 0; }
882.ask-page .crumb { padding: 0 24px; }
883.ask-page .ask-head { padding-left: 24px; }
884.ask-page { height: calc(100dvh - 36px); min-height: 420px; }
885.signin p.code { margin: 6px 0 18px; font-size: 32px; font-weight: 600; letter-spacing: .14em; text-align: center; color: var(--frost);
886 font-variant-numeric: tabular-nums; font-variation-settings: "STYL" 0; }
887main { min-height: 100dvh; }
888
889/* Wide screens: open, the chat is docked and the greeting's field and the
890 Base button fold away; closing it (desk-closed) slides it out to the
891 right, Home takes the width, and they come back. */
892@media (min-width: 641px) {
893 html:not(.desk-closed) .base-btn { width: 0; opacity: 0; transform: scale(.6); visibility: hidden; pointer-events: none;
894 transition: opacity .2s, transform .45s var(--ease), width 0s .45s, visibility 0s .45s; }
895 html:not(.desk-closed) .ask-slot { grid-template-rows: 0fr; opacity: 0; transform: translateY(-6px); visibility: hidden;
896 transition: opacity .2s, transform .2s var(--ease), grid-template-rows 0s .2s, visibility 0s .2s; }
897 .desk-closed .chat-col { width: 0; transition: width 0s .45s; }
898 .desk-closed aside.ask-panel { transform: translateX(calc(100% + 32px)); opacity: 0; visibility: hidden;
899 transition: transform .45s var(--ease), opacity .3s .1s, visibility 0s .45s; }
900}
901
902/* Phones: Home is the springboard first, and the page scrolls. The top bar
903 keeps to one line: no team name, the Base button beside the avatar. The
904 field or the Base button brings the chat up full screen over Home
905 (phone-open), sized to the visual viewport (ask.js sets --vv-h and
906 --vv-top, so the composer stays above the keyboard), with the header at
907 the top, the conversation scrolling between, and room for the notch and
908 the home indicator. Home steps back behind it. */
909@media (max-width: 640px) {
910 .shell { display: block; height: auto; min-height: 100dvh; overflow: visible; }
911 .shell > .topbar { margin: 12px 12px 0; transform-origin: 50% 0; transition: transform .4s var(--ease); }
912 .shell > .home { overflow: visible; padding: 0 12px calc(20px + env(safe-area-inset-bottom)); transform-origin: 50% 30%; transition: transform .4s var(--ease); }
913 .topbar { gap: 10px; padding: 6px 6px 6px 12px; }
914 .team { display: none; }
915 .topbar .wordmark { margin-right: auto; }
916 .me, .topbar a.me { flex: none; width: 44px; height: 44px; margin: 0; padding: 0; font-size: 14px; }
917 /* A springboard: a compact greeting, then four columns of apps in the
918 glass panel, at iOS-like spacing. It scrolls with Home. */
919 .hello { margin-top: 26px; font-size: 30px; }
920 .lede { margin: 8px 0 14px; font-size: 15px; }
921 .base-btn-form, .ask-field-form { display: none; }
922 a.ask-field { width: auto; margin: 0 3px 14px; }
923 .ask-field { max-width: none; height: 44px; }
924 .ask-field kbd { display: none; }
925 .steps { gap: 6px; }
926 .steps li { padding: 6px 10px; font-size: 13px; gap: 8px; }
927 .apps { margin-top: 22px; padding: 16px 6px 12px; max-width: none; border-radius: 26px; }
928 .apps { width: auto; }
929 .app-grid { grid-template-columns: repeat(4, 1fr); max-width: none; gap: 16px 0; }
930 .app { width: 100%; max-width: 86px; padding: 4px 2px 2px; gap: 6px; font-size: 12px; }
931 .app .icon { width: 60px; height: 60px; }
932 .chat-col { position: fixed; inset: 0; z-index: 20; width: auto; pointer-events: none; }
933 aside.ask-panel { top: var(--vv-top, 0); right: 0; bottom: auto; left: 0; width: auto; height: var(--vv-h, 100dvh);
934 border: 0; border-radius: 0; padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); box-shadow: none;
935 transform: translateY(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
936 .phone-open .chat-col { pointer-events: auto; }
937 .phone-open aside.ask-panel { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
938 .phone-open .shell > .home, .phone-open .shell > .topbar { transform: scale(.94); filter: blur(3px) brightness(.8); }
939 html.phone-open body { overflow: hidden; }
940 aside.ask-panel .ask-head { padding: max(8px, env(safe-area-inset-top)) 12px 8px 16px; }
941 aside.ask-panel .ask-head h2 { font-size: 18px; }
942 aside.ask-panel .composer { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
943 aside.ask-panel .ask-foot { padding: 0 8px; }
944 aside.ask-panel .ask-empty, aside.ask-panel .ask-problem { padding: 0 12px 12px; }
945 aside.ask-panel .thread { padding: 14px 12px; }
946 aside.ask-panel .msg { max-width: 92%; }
947}
948
949/* Phones (the docked chat's and /ask's): the job view rises from the foot
950 of the screen as a sheet, over the dimmed chat. */
951@media (max-width: 640px) {
952 .jobview[popover] { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; border-radius: 22px 22px 0 0;
953 padding: 8px 8px calc(16px + env(safe-area-inset-bottom)) 20px; animation: sheet .28s var(--ease, cubic-bezier(.2,.8,.2,1)); }
954 .jobview[popover]::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 2px; border-radius: 2px; background: var(--rule); transform: translateX(-6px); }
955 .jobview[popover] .jv-go { width: calc(100% - 12px); justify-content: center; }
956 .jv-title svg { opacity: 1; }
957 /* The chips are one line that scrolls sideways. */
958 .chips { flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
959 .chip { max-width: 200px; }
960}
961
962/* Phones, beyond Home: the inner pages and /ask. */
963@media (max-width: 600px) {
964 .inner { padding: 10px; }
965 .sheet { padding: 18px 16px 20px; }
966 .people li { flex-wrap: wrap; }
967 .thread { padding: 14px 12px; }
968 .msg { max-width: 92%; }
969 .ask-page { height: calc(100dvh - 20px); }
970}
971
972/* With reduced motion the chat just shows and goes: no slide, no fade, the
973 field and the Base button fold at once, and on a phone Home does not
974 step back, blur or dim behind it. Send and Stop just appear. */
975@media (prefers-reduced-motion: reduce) {
976 .base-btn, .ask-slot, .chat-col, aside.ask-panel, .shell > .home, .shell > .topbar { transition: none !important; }
977 .phone-open .shell > .home, .phone-open .shell > .topbar { transform: none; filter: none; }
978 .composer .actions button { animation: none; }
979 /* A working job's mark holds still: a quarter arc and a steady dot. */
980 .job[data-state="working"] .state-mark::after, .job[data-state="working"] .state-mark::before { animation: none; }
981 .job[data-state="working"] .state-mark::after { transform: rotate(45deg); }
982 /* The job view just shows: no rise, no sheet sliding up. */
983 .jobview[popover] { animation: none; }
984 /* The focus edge holds still and doesn't breathe. The thinking bubble
985 glows, still, with no spark. */
986 .composer .field::after, .composer textarea.input:focus-visible { animation: none; }
987 .composer textarea.input:focus-visible { --breath: .6; }
988 .msg .spark { display: none; }
989 .msg.thinking { box-shadow: inset 0 0 0 1px var(--theirs-edge), 0 0 16px -3px var(--edge-glow-a), 0 0 26px -6px var(--edge-glow-b); }
990 .msg.thinking::before, .msg.thinking.no-gl::before { opacity: .7; animation: none;
991 background: linear-gradient(110deg, var(--edge-a), var(--edge-b) 50%, var(--spk-rose)) border-box; }
992 /* Its dots hold still: one teal, one violet, one rose. */
993 .msg .dots i { animation: none; opacity: .85; }
994 .msg .dots i:nth-child(2) { color: var(--edge-b); }
995 .msg .dots i:nth-child(3) { color: var(--spk-rose); }
996}
997
998/* Scratchpad's shared note: a field that grows past one control height. */
999.notepad { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
1000.notepad textarea.input { font: inherit; width: 100%; height: auto; min-height: 280px; padding: 12px 14px;
1001 line-height: 1.5; resize: vertical; }
1002
1003/* A refused save: the note as saved, read-only, above the person's own text. */
1004.saved { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; color: var(--haze); font-size: 14px; }
1005.saved textarea.input { font: inherit; color: var(--frost); width: 100%; height: auto; min-height: 140px; padding: 12px 14px;
1006 line-height: 1.5; resize: vertical; }
1007