/* Layout only. Colours, borders, radii, shadows and fonts come from the dynamic UI kit. */
html, body { margin: 0; min-height: 100%; }
#app { max-width: 960px; margin: 0 auto; padding: 0 16px 150px; box-sizing: border-box; }
.boot-note:empty { display: none; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; }
.app-header .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); z-index: 50; background: var(--ra-surface-1); }
.bottom-nav .ra-tab { text-align: center; padding: 12px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row .grow, .grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.card-pad { padding: 12px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; }
.list-item .grow { overflow: hidden; text-overflow: ellipsis; }
.modal-body { width: min(440px, 94vw); max-height: 88vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: var(--ra-fs-sm); color: var(--ra-text-dim); }
.field > .ra-input, .field > .ra-select, .field > .ra-textarea { width: 100%; box-sizing: border-box; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.table-wrap { overflow-x: auto; }
.table-wrap .ra-table { width: 100%; }
.num { text-align: right; white-space: nowrap; }
.wheel-box { display: flex; justify-content: center; }
.wheel-box canvas { width: min(92vw, 420px); height: min(92vw, 420px); }
.qr-box { display: flex; justify-content: center; }
.qr-box svg { width: 200px; height: 200px; }
.star-row { display: flex; gap: 4px; }
.tabs-scroll { overflow-x: auto; }
.muted-note { display: block; }
.hidden { display: none !important; }
/* Lift the kit's floating buttons above our bottom tab bar (position only). */
#ra-settings-fab { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
a.ra-btn { display: inline-flex; align-items: center; justify-content: center; }
.ra-pill > .ra-btn { padding: 0 6px; min-height: 0; }
