loopable / web /src /account /account.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
1ad1eea verified
Raw History Blame Contribute Delete
14.2 kB
/* ─────────────────────────────────────────────────────────────────────────────────────────
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);
}