File size: 14,245 Bytes
3331871 b58ff54 3331871 1ad1eea 3331871 8145bee | 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 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 | /* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
account/account.css β WAVE 35, owner item 13: the three surfaces that hang off the
account button (Feedback, Usage, Subscription).
β ITS OWN STYLESHEET, NOT index.css. That file belongs to the INTEGRATOR for the whole
wave, and the wave's own rule is that a new surface brings its own sheet. Every selector
here is .acct-*; nothing in this file redefines a .home-*, .shell-* or .cg-* rule, so
nothing here can win or lose a source-order fight with the shared sheet.
β .acct-page RESTATES .shell-home's five box declarations rather than reusing that class,
and that is deliberate rather than lazy. .shell-home is Home's box by name and by its own
region header; borrowing it would make every future Home layout change silently a change
to three account pages. The VALUES are copied on purpose β DESIGN.md 2's sibling rule
("a panel matches its sibling's rendered values, not merely the scale") is what makes the
account pages read as the same system as Home, and .shell-main is overflow:hidden, so a
page that does not own its own scroll box simply loses everything below the fold.
β EVERY font-size IS A --lp-fs-* TOKEN. verify_ui globs src/**.css (every stylesheet in
the tree, not just index.css) and goes RED on a literal β wave-21 R5.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.acct-page {
height: 100%;
overflow-y: auto;
padding: 34px 44px 56px;
box-sizing: border-box;
background: var(--lp-surface);
}
/* A short plain noun, same size and weight as .home-title, because it is the same role on a
sibling surface. DESIGN.md 2: headers are 1 to 3 words, never a sentence. */
.acct-title {
margin: 0 0 20px;
font-size: var(--lp-fs-lg);
font-weight: var(--lp-fw-semibold);
color: var(--lp-ink);
}
/* THE ONE COLUMN. Every account surface is a reading-width column, not a full-bleed page:
a composer, a meter list and a note are all narrow objects, and stretching them to a
1600px window is how a page stops looking like it was designed. The reference the owner
gave for the assistant uses the same centred column for the same reason. */
.acct-col {
max-width: 640px;
}
/* ββ the honest note (Subscription today; any boarded account surface tomorrow) βββββββββ
ONE containment layer: a hairline panel on the wash, no card inside a card, no shadow
(DESIGN.md 4). It is a panel rather than a bare paragraph so the emptiness reads as
deliberate instead of as a page that failed to load. */
.acct-note {
margin: 0;
padding: 16px 18px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
font-size: var(--lp-fs-xs);
line-height: var(--lp-lh);
color: var(--lp-muted);
}
/* ββ loading, and the way back from a failed read βββββββββββββββββββββββββββββββββββββββββββ */
.acct-loading {
display: flex;
align-items: center;
justify-content: center;
min-height: 180px;
}
.acct-failed {
display: flex;
align-items: center;
gap: 12px;
}
/* DESIGN.md 4's quiet button, with the UA chrome reset explicitly (the wave-19 "mystery outer
lines and tinted fill" rule). */
.acct-retry {
flex: 0 0 auto;
padding: 6px 12px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-2xs);
font-weight: 600;
cursor: pointer;
}
.acct-retry:hover {
background: var(--lp-surface-2);
border-color: var(--lp-blue-deep);
}
/* ββ the two answers a write can give βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Green = positive, red = negative: the fixed semantics (DESIGN.md 3), on the DEEP companions
because a pastel on white is not a light aesthetic, it is an unreadable one. */
.acct-ok,
.acct-error {
margin: 0 0 12px;
padding: 9px 12px;
border-radius: var(--lp-r-md);
font-size: var(--lp-fs-2xs);
line-height: var(--lp-lh);
}
.acct-ok {
border: 1px solid var(--lp-green);
background: var(--lp-green-tint);
color: var(--lp-green-deep);
}
.acct-error {
border: 1px solid var(--lp-red);
background: var(--lp-red-tint);
color: var(--lp-red-deep);
}
/* ββ the composer βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
The ASSISTANT'S anatomy in this module's own rules: one rounded field that contains its own
control row, so the category and the send button read as part of the thing being written
rather than as chrome around it. `assistant.css` is another session's file this wave and is
deliberately not imported; the shape is borrowed, the rules are local.
β The radius is smaller than the assistant's 22px pill on purpose: this field is a paragraph
box, not a one-line prompt, and a heavily rounded tall box reads as a speech bubble. */
.acct-field {
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-lg);
background: var(--lp-surface);
padding: 12px 10px 10px 14px;
}
.acct-field:focus-within {
border-color: var(--lp-blue-solid);
}
.acct-prompt {
display: block;
width: 100%;
border: 0;
outline: none;
padding: 0 6px 0 0;
background: transparent;
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-sm);
line-height: var(--lp-lh);
resize: vertical;
box-sizing: border-box;
}
.acct-prompt::placeholder {
color: var(--lp-muted);
}
.acct-field-foot {
display: flex;
align-items: center;
gap: 10px;
margin-top: 10px;
}
.acct-pick {
display: inline-flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.acct-pick-label {
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
}
.acct-select {
max-width: 220px;
padding: 4px 8px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-sm);
background: var(--lp-surface);
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-2xs);
cursor: pointer;
}
/* Tabular figures so the count does not jitter as it climbs. Red only once the limit is actually
passed: a counter that warns before anything is wrong trains people to ignore it. */
.acct-count {
color: var(--lp-muted);
font-size: var(--lp-fs-3xs);
font-variant-numeric: tabular-nums;
}
.acct-count.is-over {
color: var(--lp-red-deep);
font-weight: 600;
}
/* The send button takes the ink fill when it can send and the wash when it cannot, which is the
assistant's own rule: the control says whether there is anything to send before it is pressed. */
.acct-send {
flex: 0 0 auto;
margin-left: auto;
width: 30px;
height: 30px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 0;
border-radius: var(--lp-r-pill);
background: var(--lp-ink);
color: var(--lp-surface);
font: inherit;
cursor: pointer;
}
.acct-send:disabled {
background: var(--lp-surface-2);
color: var(--lp-muted);
cursor: default;
}
.acct-send-icon {
fill: none;
stroke: currentColor;
stroke-width: 1.7;
stroke-linecap: round;
stroke-linejoin: round;
}
/* ββ the usage meter (R9) βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
One containment layer, hairline, no shadow. The bar is the only new SHAPE on these pages, and
the ticket asks for it by name ("over the allowance the bar is red"). */
.acct-note--inline {
margin: 12px 0 0;
padding: 9px 12px;
font-size: var(--lp-fs-2xs);
}
.acct-scope {
display: inline-flex;
gap: 2px;
margin-bottom: 14px;
padding: 2px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
}
/* Selection is TINT plus WEIGHT with the ink left alone, which is `.shell-nav-item.is-active`'s
rule. β NOT `--lp-blue-deep` on `--lp-blue-tint`: that pair measures 2.96:1, under the 4.5:1
text bar and under the 3:1 graphical one, and this control holds words. */
.acct-scope-btn {
padding: 4px 12px;
border: 0;
border-radius: var(--lp-r-sm);
background: transparent;
color: var(--lp-muted);
font: inherit;
font-size: var(--lp-fs-2xs);
font-weight: 600;
cursor: pointer;
}
.acct-scope-btn:hover {
background: var(--lp-surface-2);
}
.acct-scope-btn.is-on {
background: var(--lp-blue-tint);
color: var(--lp-ink);
}
.acct-meter {
padding: 16px 18px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
}
.acct-meter-head {
display: flex;
align-items: baseline;
gap: 8px;
flex-wrap: wrap;
}
.acct-meter-who {
font-size: var(--lp-fs-2xs);
font-weight: 600;
color: var(--lp-muted);
margin-bottom: 4px;
}
/* Tabular figures on every financial-grade number (DESIGN.md 2), so a total that climbs does not
make the label beside it dance. Weight 650, never a display weight. */
.acct-meter-value {
font-size: var(--lp-fs-xl);
font-weight: 650;
color: var(--lp-ink);
font-variant-numeric: tabular-nums;
}
/* Red = negative/over, the fixed semantic, on the deep companion. */
.acct-meter-value.is-over {
color: var(--lp-red-deep);
}
.acct-meter-of {
font-size: var(--lp-fs-xs);
color: var(--lp-muted);
font-variant-numeric: tabular-nums;
}
.acct-meter-foot {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
margin-top: 8px;
font-size: var(--lp-fs-2xs);
color: var(--lp-muted);
}
.acct-meter-calls {
flex: 0 0 auto;
font-variant-numeric: tabular-nums;
}
/* The track is the wash so an empty meter still reads as a meter rather than as a missing
element; the fill is the brand at rest and red once the allowance is passed. */
.acct-bar {
display: block;
width: 100%;
height: 8px;
margin-top: 10px;
border-radius: var(--lp-r-pill);
background: var(--lp-wash);
overflow: hidden;
}
.acct-bar-fill {
display: block;
height: 100%;
border-radius: var(--lp-r-pill);
background: var(--lp-primary);
transition: width 0.18s var(--lp-fold-e);
}
.acct-bar-fill.is-over {
background: var(--lp-red-deep);
}
/* A short plain noun, muted, sentence case, matching `.home-section-title` exactly: the same role
on a sibling surface takes the same rendered values (DESIGN.md 2). */
.acct-section {
margin: 22px 0 9px;
font-size: var(--lp-fs-2xs);
font-weight: 600;
color: var(--lp-muted);
}
.acct-rows {
display: flex;
flex-direction: column;
gap: 2px;
}
/* One row per surface: name, share bar, tokens, calls. Fixed columns so the four numbers form a
column a reader can scan rather than four numbers at four different left edges. */
.acct-row {
display: grid;
grid-template-columns: 120px 1fr 92px 150px;
align-items: center;
gap: 12px;
padding: 8px 2px;
border-bottom: 1px solid var(--lp-line);
}
.acct-row:last-child {
border-bottom: 0;
}
.acct-row-name {
font-size: var(--lp-fs-xs);
font-weight: 600;
color: var(--lp-ink);
}
/* Numbers right-aligned, text left (DESIGN.md 2), tabular so the column lines up digit for digit. */
.acct-row-num {
text-align: right;
font-size: var(--lp-fs-xs);
color: var(--lp-ink);
font-variant-numeric: tabular-nums;
}
.acct-row-sub {
font-size: var(--lp-fs-2xs);
color: var(--lp-muted);
font-variant-numeric: tabular-nums;
}
.acct-row .acct-bar {
margin-top: 0;
height: 6px;
}
.acct-col--usage {
max-width: none;
}
.acct-col--usage > .acct-meter,
.acct-col--usage > .acct-rows {
max-width: calc(var(--lp-home-tile-min-width) * 3);
}
.acct-turns-scroll {
overflow-x: auto;
}
.acct-turns-scroll:focus-visible,
.acct-turns-button:focus-visible {
outline: var(--lp-hairline-width) solid var(--lp-blue-deep);
outline-offset: var(--lp-hairline-width);
}
.acct-turns-table {
width: 100%;
border-collapse: collapse;
color: var(--lp-ink);
font-size: var(--lp-fs-2xs);
line-height: var(--lp-lh);
}
.acct-turns-table th,
.acct-turns-table td {
padding: calc(var(--lp-content-inset) / 2) calc(var(--lp-content-inset) / 3);
border-bottom: var(--lp-hairline-width) solid var(--lp-line);
text-align: left;
vertical-align: top;
white-space: nowrap;
}
.acct-turns-table th {
color: var(--lp-muted);
font-weight: var(--lp-fw-semibold);
}
.acct-turns-table .acct-turns-number {
text-align: right;
font-variant-numeric: tabular-nums;
}
.acct-turns-table .acct-turns-tools {
white-space: normal;
overflow-wrap: anywhere;
}
.acct-turns-outcome--failed {
color: var(--lp-red-deep);
}
.acct-turns-outcome--stopped {
color: var(--lp-muted);
}
.acct-turns-note {
margin: calc(var(--lp-content-inset) / 2) 0;
color: var(--lp-muted);
font-size: var(--lp-fs-xs);
line-height: var(--lp-lh);
}
.acct-turns-button {
border: 0;
background: transparent;
font: inherit;
color: inherit;
margin-top: calc(var(--lp-content-inset) / 2);
padding: calc(var(--lp-content-inset) / 3) calc(var(--lp-content-inset) / 2);
border-radius: var(--lp-r-sm);
color: var(--lp-ink);
font-size: var(--lp-fs-2xs);
cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
.acct-turns-button:hover { background: var(--lp-surface-2); }
}
.acct-turns-button:disabled {
opacity: var(--lp-home-disabled-opacity);
cursor: not-allowed;
}
.acct-turns-placeholder {
display: block;
height: var(--lp-content-inset);
margin: calc(var(--lp-content-inset) / 2) 0;
border-radius: var(--lp-r-sm);
background: var(--lp-surface-2);
}
|