Files
Convivo/apps/convivo/src/styles.css
T
Lago 6bde90aac1 fix(convivo): readable descriptions, no feedback UI on service sessions, no demo-clock badge
Three attendee-app polish items from hands-on testing (Sabrina). All
presentation-layer: no migration, no RPC, no admin/sidecar change.

- Session detail collapsed multi-paragraph descriptions into one block. The
  feed carries real newlines (the sidecar passes Sessionize description through
  untouched), so this was pure CSS: new .sd-desc uses white-space: pre-line.
  The AI feedback summary gets the same via .feedback-review .fr-text.
- Staff saw "Your session feedback" on Break/Lunch cards, because
  _assign_service_session_speakers makes every staff member a speaker of every
  service slot. showFeedback = !isService now gates all three feedback surfaces
  (review block, Give-feedback button, "not checked in" note). The sheet itself
  stays openable for service sessions.
- Removed the "Demo clock" badge from the Home header. The simulated clock is an
  internal demo aid; attendees were never meant to see it. useEvent() still
  exposes clockMode and the admin toggle is unchanged.

Tests: three new API-mocked cases in convivo-admin-entry.spec.ts (service
feedback suppression, multi-line description via pre-line CSS + exact textContent
+ rendered-height comparison, no demo-clock badge per clock mode). 45/45 green
against the local dev server; attendee build clean.

Docs synced: screens.md, app-structure.md, backend/tests.md, next-steps.md, plus
a release record at docs/releases/2026-10-18.md noting that items 1/3/7 of the
report were already shipped (ef0446d, 999527b) and that this change is not yet
deployed.
2026-10-18 18:20:16 +02:00

439 lines
22 KiB
CSS

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.speaker-portal { letter-spacing: 0; }
.speaker-portal .h1 { letter-spacing: 0; }
.speaker-portal header { flex-wrap: wrap; }
.speaker-portal form { display: grid; gap: 14px; }
.speaker-portal p, .speaker-portal h3, .speaker-download { overflow-wrap: anywhere; }
.speaker-talk { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); }
.speaker-portal input { width: 100%; min-width: 0; }
.speaker-portal progress { width: 100%; accent-color: var(--accent-2); }
.speaker-download { color: var(--accent-2); }
.speaker-upload {
position: relative;
display: flex;
align-items: center;
gap: 8px;
min-height: 46px;
padding: 12px;
border: 1px solid var(--accent);
border-radius: 8px;
background: var(--accent-soft);
color: var(--accent);
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.speaker-upload svg {
flex-shrink: 0;
}
.speaker-upload span {
min-width: 0;
overflow-wrap: anywhere;
}
.speaker-portal .speaker-upload input[type="file"] {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
opacity: 0;
padding: 0;
cursor: pointer;
}
.speaker-upload:focus-within {
outline: 2px solid var(--accent);
outline-offset: 3px;
}
.speaker-upload:has(input:disabled) {
opacity: 0.55;
cursor: not-allowed;
}
.speaker-upload:has(input:disabled) input[type="file"] {
cursor: not-allowed;
}
.speaker-upload-spinner {
animation: speaker-upload-rotate 900ms linear infinite;
}
@keyframes speaker-upload-rotate {
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: reduce) {
.speaker-upload-spinner {
animation: none;
}
}
:root {
--bg: #f0f2f6; --phone-bg: #ffffff; --surface: #ffffff; --surface-2: #f4f5f9;
--line: #e4e6ee; --text: #423c3c; --muted: #8a8484;
--accent: #d50000; --accent-2: #20b2aa; --accent-soft: rgba(213,0,0,.08);
--cyan: #20b2aa; --amber: #f59e0b; --green: #059669; --red: #d50000;
}
html, body, #root { height: 100%; }
body {
background: radial-gradient(1100px 700px at 75% -10%, rgba(213,0,0,.06) 0%, var(--bg) 55%);
font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
color: var(--text);
}
/* ---------- App shell (phone frame on desktop, full-bleed on mobile) ---------- */
.app {
position: relative; width: 100%; height: 100dvh; max-width: 480px; margin: 0 auto;
background: var(--phone-bg); overflow: hidden; display: flex; flex-direction: column;
}
@media (min-width: 520px) {
.app { height: min(920px, 96dvh); border-radius: 34px; border: 10px solid #1f1b1b;
box-shadow: 0 0 0 2px #3a3333, 0 40px 90px rgba(66,60,60,.28); margin-top: 2vh; }
}
.screen { flex: 1; overflow-y: auto; padding: 22px 20px calc(100px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.no-tab { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
/* ---------- Primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 8px 24px rgba(66,60,60,.07); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.h1 { font-size: 23px; font-weight: 800; letter-spacing: -.5px; }
.h2 { font-size: 17px; font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.btn {
display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line);
background: var(--surface-2); color: var(--text); font-size: 15px; font-weight: 700;
cursor: pointer; transition: transform .08s ease, opacity .15s; font-family: inherit;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border: none; color: #fff; box-shadow: 0 8px 20px rgba(213,0,0,.25); }
.btn.ghost { background: transparent; }
.btn.danger { background: rgba(213,0,0,.08); border-color: rgba(213,0,0,.35); color: var(--red); }
.btn.small { width: auto; padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.pill {
display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line);
}
.pill.amber { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.4); color: #b45309; }
.pill.green { background: rgba(5,150,105,.12); border-color: rgba(5,150,105,.35); color: var(--green); }
.pill.violet { background: var(--accent-soft); border-color: rgba(213,0,0,.35); color: var(--accent); }
.pill.cyan { background: rgba(32,178,170,.13); border-color: rgba(32,178,170,.4); color: #0f766e; }
.pill.admin { background: var(--accent-soft); border-color: rgba(213,0,0,.35); color: var(--accent); }
/* registration types */
.pill.reg-attendee { background: rgba(148,163,184,.14); border-color: rgba(148,163,184,.4); color: #64748b; }
.pill.reg-speaker { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.4); color: #6d28d9; }
.pill.reg-staff { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.4); color: #b91c1c; }
.pill.reg-sponsor { background: rgba(234,88,12,.13); border-color: rgba(234,88,12,.4); color: #c2410c; }
/* slot types (slot_type enum: session | service_session) */
.pill.slot-type-session { background: rgba(14,165,233,.12); border-color: rgba(14,165,233,.4); color: #0369a1; }
.pill.slot-type-service_session { background: rgba(120,113,108,.14); border-color: rgba(120,113,108,.4); color: #57534e; }
.pill.speaker-tag { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.4); color: #6d28d9; padding: 2px 8px; font-size: 11px; }
/* pending-connection red dot on the Connect tab */
.tab .ico { position: relative; display: inline-flex; }
.dot {
position: absolute; top: -3px; right: -6px; width: 9px; height: 9px; border-radius: 50%;
background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(213,0,0,.3);
}
/* speaker material upload notice (non-dismissible) */
.material-notice {
background: rgba(32,178,170,.08); border: 1px solid rgba(32,178,170,.4); border-left: 3px solid var(--accent-2);
border-radius: 12px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px;
}
.material-notice .mn-title { font-weight: 800; font-size: 14px; }
/* speaker's post-session feedback review (rating + AI summary) */
.feedback-review {
background: rgba(124,58,237,.07); border: 1px solid rgba(124,58,237,.35); border-left: 3px solid #7c3aed;
border-radius: 12px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px;
}
.feedback-review .fr-title { font-weight: 800; font-size: 14px; }
.feedback-review .fr-rating { display: flex; align-items: center; gap: 10px; }
.feedback-review .fr-stars { font-size: 18px; letter-spacing: 2px; color: #d6d3d1; }
.feedback-review .fr-stars .on { color: #f59e0b; }
.feedback-review .fr-num { font-weight: 800; font-size: 16px; }
.feedback-review .fr-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
/* The AI summary is free text written by the model with real paragraphs. */
.feedback-review .fr-text { line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; color: #fff; flex-shrink: 0; }
.input {
width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line);
background: var(--surface-2); color: var(--text); font-size: 15px; outline: none; font-family: inherit;
}
.input:focus { border-color: var(--accent); }
textarea.input { resize: none; min-height: 96px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
/* toggle switch */
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .track {
width: 42px; height: 24px; border-radius: 999px; background: var(--line);
position: relative; transition: background .15s; flex-shrink: 0;
}
.toggle .knob {
position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s;
}
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track .knob { transform: translateX(18px); }
.toggle-lbl { font-size: 14px; font-weight: 600; }
/* ---------- Tab bar ---------- */
.tabbar {
position: absolute; left: 0; right: 0; bottom: 0; min-height: 84px; z-index: 40;
background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
border-top: 1px solid var(--line); display: flex; align-items: flex-start;
justify-content: space-around; padding: 10px 8px env(safe-area-inset-bottom);
}
.tab {
background: none; border: none; color: var(--muted); font-size: 10.5px; font-weight: 700;
display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
width: 64px; padding-top: 4px; font-family: inherit;
}
.tab .ico { font-size: 21px; line-height: 1; filter: grayscale(.4); }
.tab.active { color: var(--accent); }
.tab.active .ico { filter: none; }
.tab-scan { position: relative; top: -18px; }
.tab-scan .scan-btn {
width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
font-size: 24px; background: linear-gradient(135deg, var(--accent), #ff5a4e);
box-shadow: 0 8px 20px rgba(213,0,0,.4); border: 4px solid var(--phone-bg);
}
.tab-scan.active { color: var(--accent); }
/* ---------- Splash ---------- */
.splash { align-items: center; justify-content: center; text-align: center; gap: 18px; }
.logo {
width: 96px; height: 96px; border-radius: 26px; display: flex; align-items: center; justify-content: center;
background: #fff; overflow: hidden;
box-shadow: 0 16px 40px rgba(213,0,0,.35);
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.splash-title { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
.splash-tag { color: var(--muted); font-size: 15px; }
.tap-hint { margin-top: 26px; color: var(--muted); font-size: 13px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: .45 } 50% { opacity: 1 } }
/* ---------- Camera / scan ---------- */
.viewfinder {
position: relative; height: 300px; border-radius: 20px; overflow: hidden;
background: radial-gradient(220px 160px at 50% 45%, rgba(213,0,0,.14), transparent 70%), linear-gradient(160deg,#26211f 0%, #171312 100%);
border: 1px solid var(--line);
}
.vf-corner { position: absolute; width: 34px; height: 34px; border: 3px solid #ff6b5e; }
.vf-corner.tl { top: 18px; left: 18px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.vf-corner.tr { top: 18px; right: 18px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.vf-corner.bl { bottom: 18px; left: 18px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.vf-corner.br { bottom: 18px; right: 18px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.vf-line {
position: absolute; left: 26px; right: 26px; height: 2px; border-radius: 2px;
background: linear-gradient(90deg, transparent, var(--cyan), transparent);
animation: scan 2.2s ease-in-out infinite;
}
@keyframes scan { 0%,100% { top: 34px; } 50% { top: 258px; } }
.vf-qr { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 120px; height: 120px; opacity: .5; }
#qr-reader, #qr-reader video { width: 100% !important; height: 300px !important; object-fit: cover; border-radius: 20px; }
/* ---------- Home ---------- */
.points-pill {
display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.4);
color: #b45309; font-weight: 800; font-size: 14px; cursor: pointer; flex-shrink: 0; white-space: nowrap;
}
.material-pill {
display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px;
background: rgba(213,0,0,.1); border: 1px solid rgba(213,0,0,.4);
color: #d50000; font-weight: 800; font-size: 14px; cursor: pointer; flex-shrink: 0; white-space: nowrap;
}
.now-card { background: linear-gradient(135deg, rgba(213,0,0,.1), rgba(32,178,170,.08)); border: 1px solid rgba(213,0,0,.35); }
/* Concurrent-session list inside the Now/Next card (shown when there's no pick). */
.now-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.now-item { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.now-item .t { font-weight: 700; font-size: 14px; }
/* Pending-feedback nudge (attendees who attended a session that's now over). */
.feedback-pill {
display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px;
padding: 12px 14px; border-radius: 14px; cursor: pointer; font-family: inherit;
background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.4);
color: #6d28d9; font-weight: 800; font-size: 14px; text-align: left;
}
.feedback-pill:active { transform: scale(.99); }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa {
display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; cursor: pointer;
background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(66,60,60,.06); transition: transform .08s;
}
.qa:active { transform: scale(.97); }
.qa .ico { font-size: 22px; }
.qa .lbl { font-weight: 700; font-size: 14px; }
.pick-chip {
display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
padding: 12px 14px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line);
color: var(--text); cursor: pointer; font-size: 13.5px; font-family: inherit;
}
.pick-chip + .pick-chip { margin-top: 8px; }
.pick-chip .t { color: var(--muted); font-weight: 800; font-size: 12px; min-width: 74px; }
/* ---------- Agenda ---------- */
.slot-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(66,60,60,.07); }
.slot-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.slot-head .name { font-weight: 800; font-size: 14.5px; }
.slot-head .time { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sess {
display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
padding: 13px 16px; background: none; border: none; border-bottom: 1px solid var(--line);
color: var(--text); cursor: pointer; font-family: inherit;
}
.sess:last-child { border-bottom: none; }
.sess.picked { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.sess .title { font-weight: 700; font-size: 14px; }
.sess .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.sess .check {
margin-left: auto; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
font-size: 13px; color: transparent;
}
.sess.picked .check { background: var(--accent); border-color: var(--accent); color: #fff; }
/* ---------- Modal (bottom sheet) ---------- */
.backdrop { position: absolute; inset: 0; background: rgba(5,5,10,.66); backdrop-filter: blur(3px); z-index: 70; display: flex; align-items: flex-end; }
.sheet {
width: 100%; background: var(--surface); border-radius: 26px 26px 0 0;
border-top: 1px solid var(--line); padding: 14px 20px 26px; max-height: 82%;
overflow-y: auto; animation: up .22s ease;
}
@keyframes up { from { transform: translateY(40px); opacity: .4 } to { transform: none; opacity: 1 } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.sheet .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
/* Session description: the Sessionize/Excel feed carries line breaks and blank
lines, so keep them instead of collapsing everything into one block. */
.sd-desc { margin: 12px 0; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
/* ---------- Scan: uiverse check-in type toggle (Shoh2008 / brown-bulldog-12) ---------- */
.uiverse-toggle { display: inline-flex; }
.uiverse-toggle input[type="checkbox"] {
--size: 58px;
-webkit-appearance: none;
appearance: none;
width: var(--size);
height: calc(var(--size) / 2);
background-color: var(--surface);
border: 3px solid var(--line);
border-radius: 30px 100px 100px 100px;
box-shadow: 0 6px 14px rgba(66,60,60,.14);
outline: none;
cursor: pointer;
position: relative;
transition: all .4s;
}
.uiverse-toggle input[type="checkbox"]::before {
content: "";
position: absolute;
width: calc(var(--size) / 2 - 8px);
height: calc(var(--size) / 2 - 8px);
left: 3px;
top: 50%;
transform: translateY(-50%) scale(1);
border-radius: 50%;
background-color: var(--muted);
transition: all .4s;
}
.uiverse-toggle input[type="checkbox"]:checked {
background-color: var(--accent);
border-color: var(--accent);
}
.uiverse-toggle input[type="checkbox"]:checked::before {
left: calc(100% - calc(var(--size) / 2 - 8px) - 3px);
background-color: #fff;
}
/* ---------- Connections ---------- */
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 4px; }
.seg button {
flex: 1; padding: 10px; border: none; border-radius: 10px; background: none; color: var(--muted);
font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.seg button.active { background: var(--accent-soft); color: var(--accent); }
.conn {
display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px;
background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(66,60,60,.06);
}
.conn + .conn { margin-top: 9px; }
.conn .name { font-weight: 700; font-size: 14.5px; }
.conn .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.empty {
text-align: center; padding: 38px 20px; color: var(--muted); font-size: 14px;
border: 1.5px dashed var(--line); border-radius: 16px;
}
.empty .big { font-size: 34px; margin-bottom: 10px; }
/* ---------- Feedback ---------- */
.stars { display: flex; gap: 10px; justify-content: center; padding: 6px 0 2px; }
.star { font-size: 40px; cursor: pointer; color: #d5d8e2; transition: transform .1s, color .1s; user-select: none; background: none; border: none; }
.star.on { color: var(--amber); text-shadow: 0 0 18px rgba(245,158,11,.4); }
.star:active { transform: scale(1.2); }
.success-box { text-align: center; padding: 30px 16px; }
.success-box .emoji { font-size: 56px; }
.success-box h3 { font-size: 22px; margin-top: 12px; }
.success-box p { color: var(--muted); margin-top: 6px; font-size: 14px; }
/* ---------- Leaderboard ---------- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 18px 6px 6px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 96px; }
.pod .bar {
width: 100%; border-radius: 12px 12px 0 0; display: flex; align-items: flex-start; justify-content: center;
padding-top: 8px; font-weight: 900; font-size: 15px;
}
.pod .bar.b1 { height: 86px; background: linear-gradient(180deg, rgba(245,158,11,.32), rgba(245,158,11,.08)); border: 1px solid rgba(245,158,11,.5); border-bottom: none; color: #b45309; }
.pod .bar.b2 { height: 62px; background: linear-gradient(180deg, rgba(148,163,184,.32), rgba(148,163,184,.08)); border: 1px solid rgba(148,163,184,.5); border-bottom: none; color: #64748b; }
.pod .bar.b3 { height: 48px; background: linear-gradient(180deg, rgba(217,119,6,.3), rgba(217,119,6,.1)); border: 1px solid rgba(217,119,6,.5); border-bottom: none; color: #c2620a; }
.pod .pname { font-size: 12px; font-weight: 700; }
.pod .ppoints { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.lb-row {
display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px;
background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(66,60,60,.06);
}
.lb-row + .lb-row { margin-top: 8px; }
.lb-row.me { border-color: rgba(213,0,0,.5); background: var(--accent-soft); }
.lb-row .rank { width: 26px; font-weight: 900; color: var(--muted); font-size: 14px; text-align: center; }
.lb-row .pts { margin-left: auto; font-weight: 800; color: #b45309; font-size: 14px; }
/* ---------- Profile ---------- */
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; }
.qr-frame { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid var(--line); }
.break-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.break-row:last-child { border-bottom: none; }
.break-row .v { font-weight: 800; color: var(--amber); }
/* ---------- Toast ---------- */
.toast {
position: absolute; left: 16px; right: 16px; bottom: 104px; z-index: 90;
background: #fff; border: 1px solid var(--line); border-radius: 14px;
padding: 13px 16px; font-size: 13.5px; font-weight: 600; text-align: center;
box-shadow: 0 12px 30px rgba(66,60,60,.22); opacity: 0; transform: translateY(12px);
transition: all .25s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: rgba(5,150,105,.5); }
.toast.err { border-color: rgba(213,0,0,.55); }
/* ---------- Misc ---------- */
.spinner {
width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent);
border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.center { display: flex; align-items: center; justify-content: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.clickable { cursor: pointer; }