Files
gods-eye-view/src/ui/styles/voice-cost.css
T
German KhokhlovandClaude Opus 5.5 20f4cf3763 i18n: fix the LGTM review findings and tidy the branch texts
- i18n scanner: lastError sink, no false sinks on defaults and ternaries
- shared src/i18n/marker.js for modules that only mark strings
- wind field messages move to wind/fields.js; CITY_POIS imports from cityPois.js
- drop review IDs, change history and stale references from comments and docs

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-16 21:00:28 +04:00

143 lines
3.9 KiB
CSS

/* ------------------------------------------------------------------ *
* Voice cost control — model-tier toggle + running session estimate.
* Appended (not woven into the dock passes above) so the three existing
* #gev-voice-control cascades stay untouched; these rules only add the
* new .gev-voice-cost cluster inside the existing .gev-voice-heading row.
* ------------------------------------------------------------------ */
.gev-voice-cost {
display: flex;
align-items: center;
gap: 0.22rem;
margin-left: auto; /* pin right; kicker + status keep their left cluster */
flex: 0 0 auto;
}
.gev-voice-tier-btn {
padding: 0 0.24rem;
height: 0.72rem;
min-width: 1.55rem;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(0, 212, 255, 0.06);
border: 1px solid rgba(0, 212, 255, 0.34);
border-radius: 0.18rem;
color: var(--text-secondary);
font-family: var(--font-mono);
font-size: 0.4rem;
letter-spacing: 0.045rem;
line-height: 1;
cursor: pointer;
transition:
color var(--transition-fast),
border-color var(--transition-fast),
background var(--transition-fast);
}
.gev-voice-tier-btn:hover {
color: var(--text-primary);
border-color: rgba(0, 212, 255, 0.6);
background: rgba(0, 212, 255, 0.12);
}
/* MINI engaged — amber, distinct from the cyan default so the cheaper tier
is legible at a glance without reading the label. */
.gev-voice-tier-btn[aria-pressed='true'] {
color: #ffc46b;
border-color: rgba(255, 196, 107, 0.55);
background: rgba(255, 196, 107, 0.12);
}
.gev-voice-cost-value {
color: var(--text-dim);
font-family: var(--font-mono);
font-size: 0.4rem;
letter-spacing: 0.02rem;
line-height: 1;
font-variant-numeric: tabular-nums;
transition: color var(--transition-fast);
}
.gev-voice-cost-value[data-level='warn'] {
color: #ffc46b;
}
.gev-voice-cost-value[data-level='cap'] {
color: #ff6b6b;
font-weight: 600;
}
/* The dock heading row is 0.8rem tall; keep the cluster inside it. */
#command-dock .gev-voice-cost {
max-height: 0.8rem;
}
/* The dock collapses the kicker/readout when a tray is open — the cost
cluster follows the same rule so the row never overflows. */
#command-dock.tray-open .gev-voice-cost {
display: none;
}
.gev-voice-tier-btn[hidden],
.gev-voice-cost-value[hidden] {
display: none;
}
/* The heading row is only as wide as the voice column: the cost cluster
keeps its size and a long state (ПОДКЛЮЧЕНИЕ, CONECTANDO) ends in an
ellipsis. Dropping the kicker returns its gap to the state label; the
negative margin reaches over the gutter beside the mic ring, which has
curved away at heading height. */
html:not([lang='en']) #command-dock .gev-voice-heading {
gap: 0.2rem;
margin-left: -0.6rem;
}
html:not([lang='en']) #command-dock .gev-voice-heading > .gev-voice-kicker {
display: none;
}
html:not([lang='en']) #command-dock .gev-voice-heading > #gev-voice-status {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
letter-spacing: 0;
text-overflow: ellipsis;
white-space: nowrap;
}
html:not([lang='en']) #command-dock .gev-voice-cost {
gap: 0.16rem;
padding-left: 0.1rem;
}
html:not([lang='en']) #command-dock .gev-voice-tier-btn {
min-width: 0;
padding: 0 0.2rem;
}
html:not([lang='en']) #command-dock .gev-voice-cost-value {
letter-spacing: 0;
}
/* Live hints and the tier switch ("СТАНДАРТ — со следующей сессии") run
longer: a second line from the spare space under the readout, with no
tracking so the tier line does not need a third. */
html:not([lang='en'])
#command-dock
#gev-voice-control:is(
[data-status='connecting'],
[data-status='listening'],
[data-status='executing']
)
#gev-voice-detail {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
line-height: 1.15;
letter-spacing: 0;
white-space: normal;
overflow-wrap: anywhere;
}