mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 13:54:02 +00:00
1865 lines
38 KiB
CSS
1865 lines
38 KiB
CSS
/* ═══════════════════════════════════════════════════════════
|
|
* Miniapp Global Styles — Supabase Dark Theme
|
|
* Uses CSS custom properties defined in theme.css
|
|
* ═══════════════════════════════════════════════════════════ */
|
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
|
|
/* ── Reset ────────────────────────────────────────────── */
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
font-size: 15px;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans);
|
|
background: var(--bg-root);
|
|
color: var(--text-primary);
|
|
line-height: 1.5;
|
|
overflow-x: hidden;
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea,
|
|
button {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
}
|
|
|
|
a {
|
|
color: var(--text-accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* ── Utility ──────────────────────────────────────────── */
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border-width: 0;
|
|
}
|
|
|
|
.ui-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
display: block;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.empty-state {
|
|
color: var(--text-muted);
|
|
font-size: var(--text-sm);
|
|
padding: var(--spacing-lg) 0;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ── Shell ────────────────────────────────────────────── */
|
|
|
|
.shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100dvh;
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
padding: 0 var(--spacing-lg);
|
|
padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
|
|
}
|
|
|
|
.shell--centered {
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ── Top Bar ──────────────────────────────────────────── */
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
padding: var(--spacing-xl) 0 var(--spacing-md);
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.topbar__copy {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.topbar__copy h1 {
|
|
font-size: var(--text-xl);
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.topbar__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-sm);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.eyebrow {
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* ── Locale Switch ────────────────────────────────────── */
|
|
|
|
.locale-switch--compact {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-xs);
|
|
}
|
|
|
|
.locale-switch__buttons {
|
|
display: flex;
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-full);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.locale-switch__buttons button {
|
|
padding: 4px 10px;
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition:
|
|
color var(--transition-fast),
|
|
background var(--transition-fast);
|
|
}
|
|
|
|
.locale-switch__buttons button.is-active {
|
|
color: var(--bg-root);
|
|
background: var(--accent);
|
|
}
|
|
|
|
.locale-switch__buttons button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ── Context Row ──────────────────────────────────────── */
|
|
|
|
.app-context-row {
|
|
display: flex;
|
|
padding: 0 0 var(--spacing-md);
|
|
}
|
|
|
|
.app-context-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--spacing-xs);
|
|
align-items: center;
|
|
}
|
|
|
|
/* ── Content Stack ────────────────────────────────────── */
|
|
|
|
.content-stack {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-md);
|
|
padding-bottom: var(--spacing-xl);
|
|
}
|
|
|
|
/* ── Bottom Nav ───────────────────────────────────────── */
|
|
|
|
.app-bottom-nav {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
background: var(--bg-surface);
|
|
border-top: 1px solid var(--border);
|
|
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
}
|
|
|
|
.nav-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
max-width: 480px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.nav-grid button {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: var(--spacing-sm) var(--spacing-xs);
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: var(--text-xs);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: color var(--transition-fast);
|
|
position: relative;
|
|
}
|
|
|
|
.nav-grid button.is-active {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.nav-grid button.is-active::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 24px;
|
|
height: 2px;
|
|
background: var(--accent);
|
|
border-radius: 0 0 2px 2px;
|
|
}
|
|
|
|
/* ── Button ───────────────────────────────────────────── */
|
|
|
|
.ui-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--spacing-sm);
|
|
padding: 10px var(--spacing-lg);
|
|
min-height: 40px;
|
|
border-radius: var(--radius-md);
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
transition:
|
|
background var(--transition-fast),
|
|
border-color var(--transition-fast),
|
|
color var(--transition-fast),
|
|
opacity var(--transition-fast);
|
|
white-space: nowrap;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.ui-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.ui-button--primary {
|
|
background: var(--accent);
|
|
color: #111;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.ui-button--primary:hover:not(:disabled) {
|
|
background: var(--accent-hover);
|
|
border-color: var(--accent-hover);
|
|
}
|
|
|
|
.ui-button--secondary {
|
|
background: var(--bg-elevated);
|
|
color: var(--text-primary);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.ui-button--secondary:hover:not(:disabled) {
|
|
border-color: var(--border-hover);
|
|
background: var(--bg-input-hover);
|
|
}
|
|
|
|
.ui-button--danger {
|
|
background: var(--danger-soft);
|
|
color: var(--text-danger);
|
|
border-color: var(--danger-border);
|
|
}
|
|
|
|
.ui-button--danger:hover:not(:disabled) {
|
|
background: rgba(247, 95, 95, 0.18);
|
|
}
|
|
|
|
.ui-button--ghost {
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
border-color: transparent;
|
|
}
|
|
|
|
.ui-button--ghost:hover:not(:disabled) {
|
|
color: var(--text-primary);
|
|
background: var(--bg-input);
|
|
}
|
|
|
|
.ui-button--icon {
|
|
padding: var(--spacing-sm);
|
|
min-height: 32px;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
border-color: transparent;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.ui-button--icon:hover:not(:disabled) {
|
|
color: var(--text-primary);
|
|
background: var(--bg-input);
|
|
}
|
|
|
|
.ui-button--sm {
|
|
padding: 6px 12px;
|
|
min-height: 32px;
|
|
font-size: var(--text-xs);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.ui-button--very-left {
|
|
padding-left: 0 !important;
|
|
margin-left: -4px;
|
|
}
|
|
|
|
.ui-button--lg {
|
|
padding: 14px 24px;
|
|
min-height: 48px;
|
|
font-size: var(--text-base);
|
|
}
|
|
|
|
.ui-button__spinner {
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* ── Input ────────────────────────────────────────────── */
|
|
|
|
.ui-input {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 10px var(--spacing-md);
|
|
min-height: 40px;
|
|
background: var(--bg-input);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
font-size: var(--text-sm);
|
|
transition:
|
|
border-color var(--transition-fast),
|
|
background var(--transition-fast);
|
|
outline: none;
|
|
}
|
|
|
|
.ui-input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.ui-input:hover {
|
|
background: var(--bg-input-hover);
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.ui-input:focus {
|
|
border-color: var(--border-focus);
|
|
background: var(--bg-input-hover);
|
|
}
|
|
|
|
.ui-input[aria-invalid='true'] {
|
|
border-color: var(--danger);
|
|
}
|
|
|
|
.ui-input:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.ui-textarea {
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
}
|
|
|
|
/* ── Select ───────────────────────────────────────────── */
|
|
|
|
.ui-select {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--spacing-sm);
|
|
width: 100%;
|
|
min-height: 40px;
|
|
padding: 10px var(--spacing-md);
|
|
background: var(--bg-input);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
font-size: var(--text-sm);
|
|
outline: none;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition:
|
|
border-color var(--transition-fast),
|
|
background var(--transition-fast),
|
|
transform var(--transition-fast);
|
|
}
|
|
|
|
.ui-select__value {
|
|
min-width: 0;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ui-select:focus {
|
|
border-color: var(--border-focus);
|
|
background: var(--bg-input-hover);
|
|
}
|
|
|
|
.ui-select[data-expanded] {
|
|
border-color: var(--border-focus);
|
|
background: var(--bg-input-hover);
|
|
}
|
|
|
|
.ui-select:hover:not(:disabled) {
|
|
background: var(--bg-input-hover);
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.ui-select__icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
flex-shrink: 0;
|
|
transition:
|
|
transform var(--transition-fast),
|
|
color var(--transition-fast);
|
|
}
|
|
|
|
.ui-select[data-expanded] .ui-select__icon {
|
|
transform: rotate(180deg);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.ui-select:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.ui-select__content {
|
|
z-index: 260;
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border-hover);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-lg);
|
|
overflow: hidden;
|
|
transform-origin: var(--kb-select-content-transform-origin);
|
|
}
|
|
|
|
.ui-select__listbox {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: var(--spacing-xs);
|
|
max-height: min(280px, 40dvh);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.ui-select__item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--spacing-sm);
|
|
width: 100%;
|
|
min-height: 40px;
|
|
padding: 10px var(--spacing-md);
|
|
border-radius: calc(var(--radius-md) - 2px);
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
outline: none;
|
|
transition:
|
|
background var(--transition-fast),
|
|
color var(--transition-fast);
|
|
}
|
|
|
|
.ui-select__item-label {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ui-select__item-indicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--accent);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ui-select__item[data-highlighted] {
|
|
background: var(--bg-input-hover);
|
|
}
|
|
|
|
.ui-select__item[data-selected] {
|
|
background: var(--accent-soft);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.ui-select__item[data-disabled] {
|
|
color: var(--text-muted);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ── Toggle ───────────────────────────────────────────── */
|
|
|
|
.ui-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.ui-toggle__track {
|
|
position: relative;
|
|
width: 40px;
|
|
height: 22px;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-full);
|
|
cursor: pointer;
|
|
transition:
|
|
background var(--transition-fast),
|
|
border-color var(--transition-fast);
|
|
}
|
|
|
|
.ui-toggle[data-checked] .ui-toggle__track {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.ui-toggle__thumb {
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 16px;
|
|
height: 16px;
|
|
background: var(--text-primary);
|
|
border-radius: 50%;
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.ui-toggle[data-checked] .ui-toggle__thumb {
|
|
transform: translateX(18px);
|
|
}
|
|
|
|
.ui-toggle__label {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* ── Badge ────────────────────────────────────────────── */
|
|
|
|
.ui-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-full);
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
white-space: nowrap;
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
border: none;
|
|
cursor: default;
|
|
}
|
|
|
|
.ui-badge--muted {
|
|
background: var(--bg-elevated);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.ui-badge--accent {
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.ui-badge--danger {
|
|
background: var(--danger-soft);
|
|
color: var(--text-danger);
|
|
}
|
|
|
|
/* Keep backward compat with MiniChip */
|
|
.mini-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-full);
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.mini-chip--muted {
|
|
background: var(--bg-elevated);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* ── Card ─────────────────────────────────────────────── */
|
|
|
|
.ui-card {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--spacing-lg);
|
|
transition: border-color var(--transition-fast);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ui-card--accent {
|
|
border-color: var(--accent-border);
|
|
background: linear-gradient(135deg, var(--accent-softer) 0%, var(--bg-surface) 100%);
|
|
}
|
|
|
|
.ui-card--muted {
|
|
background: var(--bg-root);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.ui-card--wide {
|
|
margin-left: calc(-1 * var(--spacing-lg));
|
|
margin-right: calc(-1 * var(--spacing-lg));
|
|
border-radius: 0;
|
|
border-left: 0;
|
|
border-right: 0;
|
|
}
|
|
|
|
.stat-card {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--spacing-md);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-xs);
|
|
}
|
|
|
|
.stat-card__icon {
|
|
color: var(--accent);
|
|
margin-bottom: var(--spacing-xs);
|
|
}
|
|
|
|
.stat-card__label {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.stat-card__value {
|
|
font-size: var(--text-lg);
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ── Collapsible ──────────────────────────────────────── */
|
|
|
|
.ui-collapsible {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ui-collapsible__trigger {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: var(--spacing-lg);
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
text-align: left;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.ui-collapsible__trigger:hover {
|
|
background: var(--bg-input);
|
|
}
|
|
|
|
.ui-collapsible__copy {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.ui-collapsible__copy strong {
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ui-collapsible__copy p {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.ui-collapsible__chevron {
|
|
color: var(--text-muted);
|
|
flex-shrink: 0;
|
|
transition: transform var(--transition-base);
|
|
}
|
|
|
|
.ui-collapsible__trigger[data-expanded] .ui-collapsible__chevron,
|
|
.ui-collapsible__trigger[aria-expanded='true'] .ui-collapsible__chevron {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.ui-collapsible__content {
|
|
padding: 0 var(--spacing-lg) var(--spacing-lg);
|
|
overflow: hidden;
|
|
animation: collapsible-slide-down var(--transition-base);
|
|
}
|
|
|
|
@keyframes collapsible-slide-down {
|
|
from {
|
|
max-height: 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
max-height: 1000px;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* ── Skeleton ─────────────────────────────────────────── */
|
|
|
|
.ui-skeleton {
|
|
background: var(--bg-elevated);
|
|
border-radius: var(--radius-sm);
|
|
animation: skeleton-shimmer 1.5s ease infinite;
|
|
}
|
|
|
|
@keyframes skeleton-shimmer {
|
|
0%,
|
|
100% {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.2;
|
|
}
|
|
}
|
|
|
|
/* ── Field ────────────────────────────────────────────── */
|
|
|
|
.ui-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-xs);
|
|
}
|
|
|
|
.ui-field--wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.ui-field__label {
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.ui-field__hint {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ── Modal / Dialog ───────────────────────────────────── */
|
|
|
|
.modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 200;
|
|
background: var(--bg-overlay);
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
animation: modal-backdrop-in var(--transition-base);
|
|
}
|
|
|
|
@keyframes modal-backdrop-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.modal-sheet {
|
|
width: min(100%, 480px);
|
|
max-width: 480px;
|
|
max-height: min(92dvh, 900px);
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-xl) var(--radius-xl) 0 0;
|
|
overflow-y: auto;
|
|
animation: modal-sheet-in var(--transition-slow);
|
|
}
|
|
|
|
@keyframes modal-sheet-in {
|
|
from {
|
|
transform: translateY(40px);
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.modal-sheet__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: var(--spacing-md);
|
|
padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-md);
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--bg-surface);
|
|
z-index: 1;
|
|
}
|
|
|
|
.modal-sheet__header [data-kb-dialog-title] {
|
|
font-size: var(--text-lg);
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-sheet__header [data-kb-dialog-description] {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.modal-close-button {
|
|
flex-shrink: 0;
|
|
width: 40px;
|
|
min-width: 40px;
|
|
min-height: 40px;
|
|
color: var(--text-primary);
|
|
background: var(--bg-root);
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.modal-close-button:hover:not(:disabled) {
|
|
background: var(--bg-elevated);
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.modal-sheet__body {
|
|
padding: 0 var(--spacing-xl) var(--spacing-lg);
|
|
}
|
|
|
|
.modal-sheet__footer {
|
|
padding: var(--spacing-md) var(--spacing-xl) var(--spacing-xl);
|
|
border-top: 1px solid var(--border);
|
|
position: sticky;
|
|
bottom: 0;
|
|
background: var(--bg-surface);
|
|
}
|
|
|
|
.modal-action-row {
|
|
display: flex;
|
|
gap: var(--spacing-sm);
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.modal-action-row--single {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
/* ── Editor Grid ──────────────────────────────────────── */
|
|
|
|
.editor-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
@media (max-width: 380px) {
|
|
.editor-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ── Hero Banner / Session states ─────────────────────── */
|
|
|
|
.hero-card {
|
|
text-align: center;
|
|
padding: var(--spacing-2xl);
|
|
max-width: 320px;
|
|
}
|
|
|
|
.hero-card__meta {
|
|
margin-bottom: var(--spacing-md);
|
|
}
|
|
|
|
.hero-card h2 {
|
|
font-size: var(--text-xl);
|
|
font-weight: 700;
|
|
margin-bottom: var(--spacing-sm);
|
|
}
|
|
|
|
.hero-card p {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--spacing-lg);
|
|
}
|
|
|
|
.hero-card .nav-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.pill {
|
|
display: inline-flex;
|
|
padding: 4px 12px;
|
|
border-radius: var(--radius-full);
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
background: var(--accent-soft);
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* ── Home Route ───────────────────────────────────────── */
|
|
|
|
.route--home {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.home-hero {
|
|
padding: var(--spacing-md) 0;
|
|
}
|
|
|
|
.home-hero__greeting {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.home-hero__name {
|
|
font-size: var(--text-2xl);
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
/* ── Balance Card ─────────────────────────────────────── */
|
|
|
|
.balance-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.balance-card__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.balance-card__label {
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.balance-card__amounts {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-xs);
|
|
}
|
|
|
|
.balance-card__row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.balance-card__row--subtotal {
|
|
padding-top: var(--spacing-xs);
|
|
margin-top: var(--spacing-xs);
|
|
border-top: 1px dashed var(--border);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.balance-card__row--subtotal span {
|
|
color: var(--text-secondary) !important;
|
|
}
|
|
|
|
.balance-card__row--subtotal strong {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.balance-card__row span {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.balance-card__row strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.copyable-detail {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
cursor: pointer;
|
|
transition: background-color 150ms ease;
|
|
}
|
|
|
|
.copyable-detail:hover {
|
|
background: rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.copyable-detail svg {
|
|
opacity: 0.65;
|
|
transition:
|
|
opacity 120ms ease,
|
|
transform 120ms ease,
|
|
color 120ms ease;
|
|
}
|
|
|
|
.copyable-detail:hover svg {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.copyable-detail.is-copied svg {
|
|
opacity: 1;
|
|
color: var(--status-credit);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.copyable-detail.is-copied {
|
|
background: rgba(34, 197, 94, 0.12);
|
|
}
|
|
|
|
.balance-card__remaining {
|
|
padding-top: var(--spacing-sm);
|
|
margin-top: var(--spacing-sm);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.balance-card__remaining span {
|
|
font-size: var(--text-base);
|
|
font-weight: 700;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.balance-card__remaining strong {
|
|
font-size: var(--text-lg);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.balance-card__remaining.is-credit strong {
|
|
color: var(--status-credit);
|
|
}
|
|
|
|
.balance-card__remaining.is-settled strong {
|
|
color: var(--status-settled);
|
|
}
|
|
|
|
.balance-card__remaining.is-due strong {
|
|
color: var(--status-due);
|
|
}
|
|
|
|
/* ── FX Card ──────────────────────────────────────────── */
|
|
|
|
.fx-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.fx-card__title {
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.fx-card__row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.fx-card__row span {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.fx-card__row--muted span,
|
|
.fx-card__row--muted strong {
|
|
color: var(--text-muted);
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* ── Activity Card ────────────────────────────────────── */
|
|
|
|
.activity-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.activity-card__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-sm);
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.activity-card__list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.activity-card__item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--spacing-sm) 0;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.activity-card__item:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.activity-card__title {
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.activity-card__amount {
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.activity-card__show-more {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--spacing-xs);
|
|
width: 100%;
|
|
padding: var(--spacing-sm);
|
|
margin-top: var(--spacing-xs);
|
|
background: none;
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
color: var(--accent);
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.activity-card__show-more:hover {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.activity-card__show-more:active {
|
|
background: var(--bg-tertiary);
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
/* ── Balances Route ───────────────────────────────────── */
|
|
|
|
.route--balances {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
margin-bottom: var(--spacing-md);
|
|
}
|
|
|
|
.section-header strong {
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.section-header p {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.section-header svg {
|
|
color: var(--accent);
|
|
margin-bottom: var(--spacing-xs);
|
|
}
|
|
|
|
/* ── Member Balance ───────────────────────────────────── */
|
|
|
|
.member-balance-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.member-balance-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--spacing-sm) 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.member-balance-row:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.member-balance-row__name {
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.member-balance-row__amounts {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 1px;
|
|
}
|
|
|
|
.member-balance-row__due {
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.member-balance-row__remaining {
|
|
font-size: var(--text-xs);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.member-balance-row.is-credit .member-balance-row__remaining {
|
|
color: var(--status-credit);
|
|
}
|
|
|
|
.member-balance-row.is-settled .member-balance-row__remaining {
|
|
color: var(--status-settled);
|
|
}
|
|
|
|
.member-balance-row.is-due .member-balance-row__remaining {
|
|
color: var(--status-due);
|
|
}
|
|
|
|
.text-credit {
|
|
color: var(--status-credit);
|
|
}
|
|
|
|
.text-debit {
|
|
color: var(--status-due);
|
|
}
|
|
|
|
/* ── Balance Summary ─────────────────────────────────────── */
|
|
|
|
.balance-summary {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.balance-summary__col {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
padding: var(--spacing-sm);
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.balance-summary__label {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--spacing-xs);
|
|
}
|
|
|
|
.balance-summary__value {
|
|
font-size: var(--text-lg);
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.balance-summary__sub {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-tertiary);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* ── Balance Visuals ──────────────────────────────────── */
|
|
|
|
.balance-visuals {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.balance-bar-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.balance-bar-row__name {
|
|
width: 72px;
|
|
font-size: var(--text-xs);
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.balance-bar-row__track {
|
|
display: flex;
|
|
height: 18px;
|
|
border-radius: var(--radius-sm);
|
|
overflow: hidden;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.balance-bar-row__segment {
|
|
min-width: 2px;
|
|
transition: width var(--transition-slow);
|
|
}
|
|
|
|
.balance-bar-row__segment--rent {
|
|
background: var(--chart-1);
|
|
}
|
|
|
|
.balance-bar-row__segment--utilities {
|
|
background: var(--chart-3);
|
|
}
|
|
|
|
.balance-bar-row__segment--purchase-credit {
|
|
background: var(--chart-2);
|
|
}
|
|
|
|
.balance-bar-row__segment--purchase-debit {
|
|
background: var(--chart-4);
|
|
}
|
|
|
|
.balance-bar-row__label {
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.balance-bar-legend {
|
|
display: flex;
|
|
gap: var(--spacing-md);
|
|
padding-top: var(--spacing-sm);
|
|
}
|
|
|
|
.balance-bar-legend__item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-xs);
|
|
font-size: var(--text-xs);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.balance-bar-legend__item::before {
|
|
content: '';
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.balance-bar-legend__item--rent::before {
|
|
background: var(--chart-1);
|
|
}
|
|
|
|
.balance-bar-legend__item--utilities::before {
|
|
background: var(--chart-3);
|
|
}
|
|
|
|
.balance-bar-legend__item--purchase::before {
|
|
background: var(--chart-2);
|
|
}
|
|
|
|
/* ── Donut Chart ──────────────────────────────────────── */
|
|
|
|
.donut-chart {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-xl);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.donut-chart__svg {
|
|
width: 120px;
|
|
height: 120px;
|
|
transform: rotate(-90deg);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.donut-chart__slice {
|
|
transition: stroke-dasharray var(--transition-slow);
|
|
}
|
|
|
|
.donut-chart__total {
|
|
fill: var(--text-primary);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
transform: rotate(90deg);
|
|
transform-origin: 50% 50%;
|
|
}
|
|
|
|
.donut-chart__label {
|
|
fill: var(--text-muted);
|
|
font-size: 7px;
|
|
font-weight: 500;
|
|
transform: rotate(90deg);
|
|
transform-origin: 50% 50%;
|
|
}
|
|
|
|
.donut-chart__legend {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-xs);
|
|
flex: 1;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.donut-chart__legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-sm);
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.donut-chart__color {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.donut-chart__legend-item strong {
|
|
margin-left: auto;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ── Ledger Route ─────────────────────────────────────── */
|
|
|
|
.route--ledger {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
/* ── Editable List (used in Ledger, Settings, etc.) ───── */
|
|
|
|
.editable-list-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
padding-bottom: var(--spacing-sm);
|
|
}
|
|
|
|
.editable-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.editable-list-section-title {
|
|
font-size: var(--text-xs);
|
|
font-weight: 700;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--spacing-sm);
|
|
}
|
|
|
|
.editable-list-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 0 calc(var(--spacing-lg) * -1);
|
|
padding: var(--spacing-sm) var(--spacing-lg);
|
|
border-bottom: 1px solid var(--border);
|
|
background: transparent;
|
|
border-left: 0;
|
|
border-right: 0;
|
|
border-top: 0;
|
|
color: inherit;
|
|
text-align: left;
|
|
width: calc(100% + var(--spacing-lg) * 2);
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.editable-list-row:hover:not(:disabled) {
|
|
background: var(--bg-input);
|
|
}
|
|
|
|
.editable-list-row--static {
|
|
cursor: default;
|
|
}
|
|
|
|
.editable-list-row--stacked {
|
|
align-items: flex-start;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.editable-list-row:disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
.editable-list-row:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.editable-list-row__main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
}
|
|
|
|
.editable-list-row__title {
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.editable-list-row__subtitle {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.editable-list-row__meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 1px;
|
|
}
|
|
|
|
.editable-list-row__meta strong {
|
|
font-size: var(--text-sm);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.editable-list-inline-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
gap: var(--spacing-xs);
|
|
}
|
|
|
|
.editable-list-row__secondary {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ── Settings Route ───────────────────────────────────── */
|
|
|
|
.route--settings {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.settings-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: var(--spacing-sm);
|
|
padding: var(--spacing-md) 0;
|
|
}
|
|
|
|
.settings-header h2 {
|
|
font-size: var(--text-xl);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.settings-header p {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.settings-profile {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.settings-profile__row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.settings-profile__row.interactive {
|
|
margin: 0 calc(var(--spacing-lg) * -1);
|
|
padding: var(--spacing-sm) var(--spacing-lg);
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.settings-profile__row.interactive:hover {
|
|
background: var(--bg-input);
|
|
}
|
|
|
|
.settings-profile__row svg {
|
|
color: var(--text-muted);
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.settings-profile__row > div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-xs);
|
|
}
|
|
|
|
.settings-profile__label {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.settings-billing-summary {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.settings-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.settings-row span {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ── Settings Route ───────────────────────────────────── */
|
|
|
|
/* ── Testing Card ─────────────────────────────────────── */
|
|
|
|
.testing-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.testing-card__section {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: var(--spacing-sm);
|
|
flex-wrap: wrap;
|
|
padding: var(--spacing-sm);
|
|
background: var(--bg-root);
|
|
border-radius: var(--radius-sm);
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.testing-card__section span {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.testing-card__section strong {
|
|
margin-left: auto;
|
|
text-align: right;
|
|
}
|
|
|
|
.testing-card__section--stack {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.testing-card__section--stack strong {
|
|
margin-left: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.testing-card__section-content {
|
|
flex: 1 1 220px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.testing-card__section-description {
|
|
margin-top: 4px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.testing-card__actions {
|
|
display: flex;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.testing-card__actions--wrap {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.testing-card__actions--wrap .ui-button {
|
|
flex: 1 1 160px;
|
|
}
|
|
|
|
.testing-card__actions--stack {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.modal-sheet {
|
|
width: calc(100% - 16px);
|
|
}
|
|
|
|
.modal-sheet__header,
|
|
.modal-sheet__body,
|
|
.modal-sheet__footer {
|
|
padding-left: var(--spacing-lg);
|
|
padding-right: var(--spacing-lg);
|
|
}
|
|
|
|
.testing-card__actions .ui-button,
|
|
.modal-action-row .ui-button {
|
|
flex: 1 1 100%;
|
|
}
|
|
}
|
|
|
|
/* ── Balance Item (legacy compat) ─────────────────────── */
|
|
|
|
.balance-item {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--spacing-lg);
|
|
}
|
|
|
|
.balance-item--accent {
|
|
border-color: var(--accent-border);
|
|
}
|
|
|
|
/* ── Toast Notifications ─────────────────────── */
|
|
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(0);
|
|
background: var(--text-primary);
|
|
color: var(--bg-root);
|
|
padding: 12px 20px;
|
|
border-radius: 999px;
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
|
|
z-index: var(--z-toast);
|
|
animation: toast-slide-up 200ms ease-out;
|
|
max-width: calc(100vw - 48px);
|
|
text-align: center;
|
|
}
|
|
|
|
.toast--success {
|
|
background: var(--status-credit);
|
|
color: #fff;
|
|
}
|
|
|
|
.toast--info {
|
|
background: var(--text-primary);
|
|
color: var(--bg-root);
|
|
}
|
|
|
|
.toast--error {
|
|
background: var(--status-danger);
|
|
color: #fff;
|
|
}
|
|
|
|
.toast__message {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
@keyframes toast-slide-up {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-50%) translateY(16px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
}
|