| 1 | :root { |
| 2 | color-scheme: light dark; |
| 3 | |
| 4 | /* Type: the family only. Sizes and spacing stay in tokens.css. The |
| 5 | system UI face, nothing downloaded: Paul, 2026-10-25 (AGENTS.md row |
| 6 | 9). A webfont cannot render in WebKit without a frame of invisible |
| 7 | text, and the chrome never flashes. TestChromeFontIsSystemUI. */ |
| 8 | --rst-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; |
| 9 | |
| 10 | /* Shape: soft and exact. */ |
| 11 | --rst-radius: 12px; |
| 12 | --rst-radius-sm: 8px; |
| 13 | --rst-radius-pill: 999px; |
| 14 | |
| 15 | /* Surfaces and lines: a cool off-white page, white cards, a sunk grey. */ |
| 16 | --rst-bg: light-dark(#f5f6f8, #15171c); |
| 17 | --rst-surface: light-dark(#ffffff, #1c1f26); |
| 18 | --rst-surface-2: light-dark(#eceef2, #23262e); |
| 19 | --rst-line: light-dark(#e3e6eb, #2d313a); |
| 20 | --rst-line-strong: light-dark(#7f8591, #7a818e); |
| 21 | |
| 22 | /* The page header's rule: the accent folded into the line, as day. */ |
| 23 | --rst-header-rule: color-mix(in oklab, var(--rst-accent) 18%, var(--rst-line)); |
| 24 | |
| 25 | /* Text */ |
| 26 | --rst-text: light-dark(#262a33, #eceef2); |
| 27 | --rst-text-muted: light-dark(#565c69, #b4bac6); |
| 28 | --rst-text-faint: light-dark(#626875, #8f96a3); |
| 29 | |
| 30 | /* Accent: Oficina's, hue 262 on the ring (apps.go). Each app |
| 31 | re-declares these four. */ |
| 32 | --rst-accent: light-dark(#2e5bb4, #87b1fd); |
| 33 | --rst-accent-strong: light-dark(#214a9b, #afcbfe); |
| 34 | --rst-accent-soft: light-dark(#e9f1ff, #1f2b42); |
| 35 | --rst-on-accent: light-dark(#ffffff, #111418); |
| 36 | |
| 37 | /* Status tones: day's, unchanged. */ |
| 38 | --rst-tone-neutral-fg: light-dark(#374151, #c3c9d1); |
| 39 | --rst-tone-neutral-bg: light-dark(#eef0f2, #262c34); |
| 40 | --rst-tone-positive-fg: light-dark(#166534, #6ee7a8); |
| 41 | --rst-tone-positive-bg: light-dark(#dcfce7, #10281c); |
| 42 | --rst-tone-warning-fg: light-dark(#854d0e, #f0c46a); |
| 43 | --rst-tone-warning-bg: light-dark(#fef3c7, #2c2110); |
| 44 | --rst-tone-negative-fg: light-dark(#b91c1c, #f79aa0); |
| 45 | --rst-tone-negative-bg: light-dark(#fee2e2, #331819); |
| 46 | |
| 47 | /* Depth: a long, low, cool shadow; paper lifted, not stacked. */ |
| 48 | --rst-shadow-pop: 0 18px 44px -14px light-dark(rgba(20, 24, 33, 0.28), rgba(0, 0, 0, 0.6)); |
| 49 | --rst-shadow-knob: 0 1px 2px rgba(20, 24, 33, 0.3); |
| 50 | --rst-shadow-lift: 0 1px 1px rgba(20, 24, 33, 0.04), 0 14px 36px -14px light-dark(rgba(20, 24, 33, 0.22), rgba(0, 0, 0, 0.55)); |
| 51 | --rst-overlay: light-dark(rgba(20, 24, 33, 0.45), rgba(0, 0, 0, 0.6)); |
| 52 | } |
| 53 | |
| 54 | /* The whole toggle. Setting color-scheme re-resolves every light-dark() |
| 55 | above, so an explicit choice beats the OS in both directions without |
| 56 | restating a colour. */ |
| 57 | :root[data-theme="light"] { color-scheme: light; } |
| 58 | :root[data-theme="dark"] { color-scheme: dark; } |
| 59 | |
| 60 | /* estilo-sky — Calma's ambient nebula (sky.go). Quiet by default: |
| 61 | --estilo-sky-strength is one number for the whole effect. |
| 62 | |
| 63 | Placement is the host's: [estilo-sky-host] is a positioned, clipped box, |
| 64 | and a stacking context of its own, so the sky (z-index -1) paints above |
| 65 | the host's background and beneath everything else in it, without |
| 66 | touching how the host's other children are positioned — a sticky bar |
| 67 | stays sticky. Move the sky with --estilo-sky-top and |
| 68 | --estilo-sky-height, and set --estilo-sky-strength (0.5, Quiet) on the |
| 69 | host or anywhere above it. */ |
| 70 | [estilo-sky-host] { |
| 71 | position: relative; |
| 72 | overflow: hidden; |
| 73 | isolation: isolate; |
| 74 | } |
| 75 | |
| 76 | [estilo-sky] { |
| 77 | position: absolute; |
| 78 | inset-inline: 0; |
| 79 | top: var(--estilo-sky-top, -6%); |
| 80 | height: var(--estilo-sky-height, 80%); |
| 81 | pointer-events: none; |
| 82 | z-index: -1; |
| 83 | } |
| 84 | |
| 85 | /* Each layer overhangs the box so a drift never shows an edge, and fades |
| 86 | in and out vertically so the sky has no top or bottom. */ |
| 87 | [estilo-sky] img { |
| 88 | position: absolute; |
| 89 | left: -8%; |
| 90 | top: -12%; |
| 91 | width: 116%; |
| 92 | height: 124%; |
| 93 | max-width: none; |
| 94 | opacity: calc(var(--estilo-sky-strength, 0.5) * var(--estilo-sky-gain, 1) * var(--estilo-sky-k, 1)); |
| 95 | -webkit-mask-image: linear-gradient(#0000, #000 22%, #000 58%, #0000 92%); |
| 96 | mask-image: linear-gradient(#0000, #000 22%, #000 58%, #0000 92%); |
| 97 | user-select: none; |
| 98 | } |
| 99 | /* The sky's colour is the placeholder: the haze and clouds computed into a |
| 100 | few pixels and inlined, so it is there in the first frame (placeholder.go |
| 101 | has the measurements against the full SVG drawing: 3/255 light, 8/255 |
| 102 | dark). Stretched to cover as an SVG's xMidYMid slice would, and softened |
| 103 | so no pixel grid shows. The haze and clouds SVGs it replaced were |
| 104 | drawing almost nothing on top of it, so they are no longer linked |
| 105 | (impeccable's detector, 2026-09-29). Over it, two SVG layers carry what |
| 106 | a few pixels cannot: the clouds' grain — faint light and dark specks that |
| 107 | average to nothing — and the filaments. No script. */ |
| 108 | [estilo-sky] img { object-fit: cover; } |
| 109 | [estilo-sky-layer="placeholder"] { filter: blur(24px); } |
| 110 | [estilo-sky-layer="grain"] { --estilo-sky-k: 1; } |
| 111 | /* The weights haze and clouds had when they were linked, kept for a page |
| 112 | cached from then that still names them. */ |
| 113 | [estilo-sky-layer="haze"] { --estilo-sky-k: 0.175; } |
| 114 | [estilo-sky-layer="clouds"] { --estilo-sky-k: 0.25; } |
| 115 | [estilo-sky-layer="filaments"] { --estilo-sky-k: 1.3; } |
| 116 | |
| 117 | /* One placeholder per scheme; show the one that matches. An explicit |
| 118 | Appearance choice ([data-theme]) beats the OS, as it does for estilo's |
| 119 | theme. Both are inline, so neither costs a request. */ |
| 120 | [estilo-sky-tone="dark"] { display: none; --estilo-sky-gain: 1.55; } |
| 121 | :root[data-theme="dark"] [estilo-sky-tone="light"] { display: none; } |
| 122 | :root[data-theme="dark"] [estilo-sky-tone="dark"] { display: block; } |
| 123 | @media (prefers-color-scheme: dark) { |
| 124 | :root:not([data-theme="light"]) [estilo-sky-tone="light"] { display: none; } |
| 125 | :root:not([data-theme="light"]) [estilo-sky-tone="dark"] { display: block; } |
| 126 | } |
| 127 | |
| 128 | /* Drifting: the sky breathes, the grain with it, and the filaments |
| 129 | slide. Slow enough to notice only if you look. */ |
| 130 | @media (prefers-reduced-motion: no-preference) { |
| 131 | [estilo-sky-layer="placeholder"], [estilo-sky-layer="grain"] { animation: estilo-sky-breathe-near 64s ease-in-out infinite alternate; } |
| 132 | [estilo-sky-layer="filaments"] { animation: estilo-sky-drift 80s ease-in-out infinite alternate; } |
| 133 | } |
| 134 | @keyframes estilo-sky-breathe-near { to { transform: translate(-3%, 1.5%) scale(1.06); } } |
| 135 | @keyframes estilo-sky-drift { to { transform: translate(-4%, 1%); } } |
| 136 | |
| 137 | /* Oficina brand artwork. Source: oficina/estilo brand/. The icons carry |
| 138 | their own squircle and transparent corners, so nothing here rounds them. */ |
| 139 | [estilo-brand] { |
| 140 | display: inline-flex; |
| 141 | align-items: center; |
| 142 | gap: .5rem; |
| 143 | min-block-size: 24px; |
| 144 | } |
| 145 | [estilo-brand-icon] { |
| 146 | display: inline-block; |
| 147 | flex-shrink: 0; |
| 148 | inline-size: 1.75rem; |
| 149 | block-size: 1.75rem; |
| 150 | vertical-align: middle; |
| 151 | } |
| 152 | [estilo-brand-icon="listing"] { |
| 153 | inline-size: 2.5rem; |
| 154 | block-size: 2.5rem; |
| 155 | } |
| 156 | |
| 157 | /* Sign-in, check-your-email and signed-out pages: the Oficina door. The |
| 158 | suite's sky behind (estilo sky.css places and animates it), one card on |
| 159 | it with the app's mark and name at its head — the same door Home draws |
| 160 | at id.oficina.works, in the app's own colour. The door spans the page |
| 161 | whatever the app's layout gives it, so the sky is never boxed in. */ |
| 162 | :root:has([estilo-door]) { overflow-x: clip; --rst-scrollbar-gutter: auto; scrollbar-gutter: auto; } |
| 163 | [estilo-door] { |
| 164 | box-sizing: border-box; |
| 165 | margin-inline: calc(50% - 50vw); |
| 166 | padding: max(40px, 9vh) var(--rst-sp-4) var(--rst-sp-6); |
| 167 | min-block-size: 680px; |
| 168 | /* The whole sky lies inside the door, fading in and out, so the door's |
| 169 | edges never cut it: under an app's bar there is no page top to hide |
| 170 | an edge behind, as there is on Home. A sky's layers overhang its box |
| 171 | by 12% above and below (sky.css), and fade in over their first 22% |
| 172 | and out from 58% to 92% — so a 560px sky placed 67px down starts |
| 173 | transparent at the door's top and has faded out by 640px. */ |
| 174 | --estilo-sky-top: 67px; |
| 175 | --estilo-sky-height: 560px; |
| 176 | } |
| 177 | [estilo-signin] { |
| 178 | box-sizing: border-box; |
| 179 | max-inline-size: 460px; |
| 180 | margin: 0 auto; |
| 181 | padding: 34px 40px 32px; |
| 182 | background: var(--rst-surface); |
| 183 | border-radius: 20px; |
| 184 | box-shadow: 0 0 0 1px light-dark(transparent, var(--rst-line)), var(--rst-shadow-lift); |
| 185 | } |
| 186 | [estilo-signin] > [estilo-brand] { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; } |
| 187 | [estilo-signin] > [estilo-brand] [estilo-brand-icon] { inline-size: 36px; block-size: 36px; } |
| 188 | [estilo-signin] h1 { margin: 0; font-size: 1.75rem; font-weight: 620; letter-spacing: -0.02em; line-height: 1.15; } |
| 189 | [estilo-signin-lede] { margin: 0.5rem 0 var(--rst-sp-4); color: var(--rst-text-muted); } |
| 190 | [estilo-signin] > h1 + :not([estilo-signin-lede]) { margin-block-start: var(--rst-sp-4); } |
| 191 | [estilo-signin-form] { max-inline-size: none; margin-block-start: var(--rst-sp-4); } |
| 192 | [estilo-signin-body] { margin: var(--rst-sp-4) 0; } |
| 193 | @media (max-width: 520px) { |
| 194 | [estilo-door] { padding-inline: 14px; padding-block-start: 28px; } |
| 195 | [estilo-signin] { padding: 26px 22px 24px; } |
| 196 | } |
| 197 | [estilo-signin-foot] { margin-block-start: var(--rst-sp-6); font-size: var(--rst-fs-xs); color: var(--rst-text-muted); } |
| 198 | /* The door's links are drawn here, not left to the app: an app that does |
| 199 | not link base.css (Calendar, Memoria, Calls, Fichas) showed the browser's |
| 200 | blue on the card. As base.css does, a link in the card is the app's |
| 201 | colour at the lowest specificity, so a link drawn as a button keeps the |
| 202 | button's; the foot's is quiet, like its text. */ |
| 203 | :where([estilo-signin]) a { color: var(--rst-accent); text-underline-offset: 0.15em; } |
| 204 | [estilo-signin-foot] a { color: inherit; } |
| 205 | [estilo-signin-foot] a:hover, [estilo-signin-foot] a:focus-visible { color: var(--rst-text); } |
| 206 | |
| 207 | /* Oficina connect: copied from id.oficina.works (theme.css, estilo sky.css, |
| 208 | brand.css and chrome.css's door rules), plus the few component rules the |
| 209 | consent and connections pages need. */ |
| 210 | :root { |
| 211 | --rst-fs-xs: 0.71875rem; --rst-fs-sm: 0.78125rem; --rst-fs-base: 0.875rem; --rst-fs-lg: 1.0625rem; |
| 212 | --rst-sp-1: 0.25rem; --rst-sp-2: 0.5rem; --rst-sp-3: 0.75rem; --rst-sp-4: 1rem; --rst-sp-5: 1.5rem; --rst-sp-6: 2.5rem; |
| 213 | } |
| 214 | * { box-sizing: border-box; } |
| 215 | html { background: var(--rst-bg); } |
| 216 | body { margin: 0; font: var(--rst-fs-lg)/1.5 var(--rst-font); color: var(--rst-text); background: var(--rst-bg); } |
| 217 | main { display: block; } |
| 218 | [estilo-signin] p { margin: 0 0 var(--rst-sp-4); color: var(--rst-text-muted); } |
| 219 | [estilo-signin] > [estilo-brand] { color: var(--rst-text); } |
| 220 | [estilo-signin] ul { margin: 0 0 var(--rst-sp-5); padding-left: 1.25rem; } |
| 221 | [estilo-signin] li { margin-block: .25rem; } |
| 222 | [estilo-signin] h1 { margin-bottom: var(--rst-sp-3); } |
| 223 | [estilo-signin] h2 { margin: 0 0 .5rem; font-size: var(--rst-fs-lg); } |
| 224 | [estilo-signin] fieldset { margin: 0 0 var(--rst-sp-5); padding: 0; border: 0; min-width: 0; } |
| 225 | [estilo-signin] legend { padding: 0; margin-bottom: .5rem; font-weight: 600; } |
| 226 | [estilo-signin] label { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: .5rem .75rem; margin-bottom: .5rem; border: 1px solid var(--rst-line-strong); border-radius: var(--rst-radius-sm); cursor: pointer; } |
| 227 | [estilo-signin] label:has(input:checked) { border-color: var(--rst-accent); background: var(--rst-accent-soft); } |
| 228 | [estilo-signin] input[type=checkbox] { inline-size: 1.25rem; block-size: 1.25rem; margin: 0; accent-color: var(--rst-accent); flex-shrink: 0; } |
| 229 | [estilo-signin] button { font: inherit; font-size: var(--rst-fs-lg); font-weight: 600; min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--rst-radius-sm); border: 1px solid var(--rst-line-strong); background: var(--rst-surface); color: var(--rst-text); cursor: pointer; } |
| 230 | [estilo-signin] button:hover { border-color: var(--rst-accent); color: var(--rst-accent); } |
| 231 | [estilo-signin] button[value=approve], [estilo-signin] section button { background: var(--rst-accent); border-color: var(--rst-accent); color: var(--rst-on-accent); } |
| 232 | [estilo-signin] button[value=approve]:hover, [estilo-signin] section button:hover { background: var(--rst-accent-strong); border-color: var(--rst-accent-strong); color: var(--rst-on-accent); } |
| 233 | [estilo-signin] button:focus-visible, [estilo-signin] input:focus-visible { outline: 2px solid var(--rst-accent); outline-offset: 2px; } |
| 234 | .actions { display: flex; flex-direction: column; gap: .625rem; } |
| 235 | .actions button { width: 100%; } |
| 236 | [estilo-signin] section { padding-top: var(--rst-sp-4); margin-top: var(--rst-sp-4); border-top: 1px solid var(--rst-line); } |
| 237 | [estilo-signin] section form button { width: 100%; } |
| 238 | @media (min-width: 30rem) { |
| 239 | .actions { flex-direction: row-reverse; } |
| 240 | .actions button { width: auto; flex: 1; } |
| 241 | } |
| 242 | |