/* RackApp prototype · mobile app components (inspector + warehouse apps).
   Field ergonomics: 48 px minimum targets for gloves, primary actions in the thumb zone, 16 px body text. */

:root {
  /* Photo stand-ins are drawings of a dim warehouse: constant in every theme, like real photos. */
  --ph-floor: #2B3542;
  --ph-upright: #2F6CC9;
  --ph-perf: #0F1F38;
  --ph-beam: #E2661B;
  --ph-conn: #A3AEBB;
  --ph-load: #8A6A45;
  --ph-dark: #0A0F16;
  --ph-steel: #8F9BA8;
  --ph-bolt: #CBD3DC;
  --ph-guard: #E8B923;
}

.ra-app {
  position: relative; height: 100%; width: 100%; overflow: hidden;
  background: var(--app-bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.4;
  display: flex; flex-direction: column;
}
.ra-app.is-mini { pointer-events: none; user-select: none; }
.scr { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; animation: scrIn 0.18s ease-out; }
.ra-app.is-mini .scr { animation: none; }
@keyframes scrIn { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- app bar ---------- */
.appbar { flex: none; background: var(--appbar); border-bottom: var(--bw) solid var(--line); padding: 6px var(--gr) 10px var(--gl); display: flex; flex-direction: column; gap: 8px; }
.appbar-row { display: flex; align-items: center; gap: 6px; min-height: 52px; }
.appbar-back { margin-left: -10px; }
.appbar-titles { flex: 1; min-width: 0; }
.appbar-sub { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.05; letter-spacing: 0.005em; color: var(--ink); overflow-wrap: anywhere; }
.appbar--big .appbar-title { font-size: 34px; }
.appbar-actions { display: flex; align-items: center; gap: 2px; margin-right: -8px; }

/* ---------- body + bars ---------- */
.scr-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gr) 28px var(--gl); display: flex; flex-direction: column; gap: 18px; }
.bottom-bar { flex: none; background: var(--appbar); border-top: var(--bw) solid var(--line); padding: 12px var(--gr) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gl); display: flex; gap: 10px; align-items: center; }
.bottom-bar > .btn { flex: 1; }
.tabbar { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--appbar); border-top: var(--bw) solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
.tabbar.tabbar--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; justify-content: center; background: none; border: 0; color: var(--ink-3); font-size: 12.5px; font-weight: 600; border-radius: 12px; }
.tab .ico { padding: 3px 14px; border-radius: 999px; box-sizing: content-box; }
.tab.is-on { color: var(--accent); }
.tab.is-on .ico { background: var(--accent-soft); }
.tab-badge { position: absolute; top: 4px; left: calc(50% + 8px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--red-fill); color: var(--on-status); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }

/* ---------- buttons ---------- */
.btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: var(--bw) solid transparent; font-weight: 600; font-size: 16px; line-height: 1.15; text-align: center; transition: background 0.15s, border-color 0.15s, transform 0.08s; }
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover:not(:disabled) { background: var(--accent-strong); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--accent); padding: 0 10px; }
.btn--ghost:hover:not(:disabled) { background: var(--accent-soft); }
.btn--danger { background: var(--red-fill); color: var(--on-status); }
.btn--danger:hover:not(:disabled) { filter: brightness(0.95); }
.btn--onred { background: var(--on-status); color: #7E1A13; }
.btn--xl { min-height: 64px; font-size: 18px; border-radius: 14px; padding: 0 20px; }
.btn--sm { min-height: 40px; font-size: 14.5px; padding: 0 12px; border-radius: 10px; }
.btn--full { width: 100%; }
.btn-label { min-width: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn--boxed { border: var(--bw) solid var(--line-strong); background: var(--surface); }
.icon-btn--accent { color: var(--accent); }
.link-btn { background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 14.5px; min-height: 44px; padding: 0 6px; }

/* ---------- chips, segmented ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gr)) 0 calc(-1 * var(--gl)); padding: 2px var(--gr) 4px var(--gl); scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: var(--bw) solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; flex: none; }
.chip:hover { border-color: var(--ink-3); }
.chip.is-on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.chip-count { font-size: 12px; background: var(--surface-3); color: var(--ink-2); border-radius: 999px; padding: 1px 7px; }
.chip.is-on .chip-count { background: var(--accent); color: var(--accent-ink); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 12px; }
.seg-opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14.5px; line-height: 1.1; text-align: center; }
.seg-opt.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.ra-app[data-app-theme="contrast"] .seg-opt.is-on { outline: 2px solid #000; }
.seg--lg .seg-opt { min-height: 52px; font-size: 15.5px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field-opt { font-weight: 500; color: var(--ink-3); }
.field-hint { font-size: 13px; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: var(--bw) solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 16px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
.textarea { min-height: 92px; resize: vertical; line-height: 1.4; }
.input--num { text-align: center; font-size: 20px; font-weight: 600; }
.input--xl { font-family: var(--font-display); font-size: 40px; font-weight: 600; min-height: 76px; text-align: center; letter-spacing: 0.02em; }
.input--code { font-family: var(--font-mono); letter-spacing: 0.3em; text-align: center; font-size: 26px; }
.stepper { display: flex; flex-direction: column; gap: 6px; }
.stepper-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; align-items: center; }
.toggle-row, .check-row { display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; }
.toggle-row { justify-content: space-between; }
.toggle-text { display: flex; flex-direction: column; min-width: 0; }
.toggle-label { font-weight: 600; }
.toggle-sub { font-size: 13.5px; color: var(--ink-3); }
.toggle { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 32px; border-radius: 999px; background: var(--surface-3); border: var(--bw) solid var(--line-strong); position: relative; cursor: pointer; transition: background 0.15s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-1); transition: transform 0.15s; border: var(--bw) solid var(--line-strong); box-sizing: border-box; }
.toggle:checked { background: var(--accent); border-color: var(--accent); }
.toggle:checked::after { transform: translateX(20px); border-color: var(--accent); }
.check { flex: none; width: 24px; height: 24px; accent-color: var(--accent); margin: 0; }
.check-row span { line-height: 1.35; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: var(--bw) solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; text-align: left; color: inherit; }
.card--btn { width: 100%; font: inherit; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.card--btn:hover { border-color: var(--accent-line); box-shadow: var(--shadow-1); }
.card--accent { background: var(--accent-soft); border-color: var(--accent-line); }
.card--red { background: var(--red-soft); border-color: var(--red-line); }
.card--amber { background: var(--amber-soft); border-color: var(--amber-line); }
.card--flat { background: var(--surface-2); }
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.sec-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.list { background: var(--surface); border: var(--bw) solid var(--line); border-radius: 16px; overflow: hidden; }
.lr { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 60px; width: 100%; box-sizing: border-box; background: transparent; border: 0; border-bottom: var(--bw) solid var(--line); text-align: left; color: inherit; font: inherit; }
.list > .lr:last-child, .list > :last-child .lr { border-bottom: 0; }
.lr--btn { cursor: pointer; }
.lr--btn:hover { background: var(--surface-2); }
.lr-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; }
.lr-icon--accent { background: var(--accent-soft); color: var(--accent); }
.lr-icon--red { background: var(--red-soft); color: var(--red); }
.lr-icon--amber { background: var(--amber-soft); color: var(--amber); }
.lr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lr-title { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.lr-sub { font-size: 14px; color: var(--ink-3); overflow-wrap: anywhere; }
.lr-meta { flex: none; font-size: 14px; color: var(--ink-2); text-align: right; }
.lr-chev { color: var(--ink-3); flex: none; }
.banner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; border: var(--bw) solid var(--accent-line); background: var(--accent-soft); }
.banner-ico { flex: none; color: var(--accent); margin-top: 1px; }
.banner-main { flex: 1; min-width: 0; }
.banner-title { font-weight: 700; }
.banner-text { font-size: 14.5px; color: var(--ink-2); }
.banner--warn { background: var(--amber-soft); border-color: var(--amber-line); }
.banner--warn .banner-ico { color: var(--amber); }
.banner--red { background: var(--red-soft); border-color: var(--red-line); }
.banner--red .banner-ico { color: var(--red); }
.banner--demo { background: var(--surface-2); border: var(--bw) dashed var(--line-strong); }
.banner--demo .banner-ico { color: var(--ink-2); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.3s; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.muted { color: var(--ink-3); }
.fine { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.big-num { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; }
.ref { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); background: var(--surface-2); border: var(--bw) solid var(--line); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.code { font-family: var(--font-mono); font-size: 13px; }

/* ---------- class counts + sync chip ---------- */
.cls-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.cc { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: var(--bw) solid var(--line); font-size: 14px; color: var(--ink-2); }
.cc b { font-size: 17px; color: var(--ink); }
.cc.is-zero { opacity: 0.55; }
.cls-counts--compact .cc { padding: 3px 8px; }
.cls-counts--compact .cc b { font-size: 15px; }
.sync-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: var(--bw) solid var(--line); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sync-chip--busy { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.sync-chip--busy .ico { animation: spin 1.4s linear infinite; }
.sync-chip--off { color: var(--ink); background: var(--surface-3); border-color: var(--line-strong); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- gauge ---------- */
.gauge { position: relative; padding-top: 58px; }
.gauge-marker { position: absolute; top: 0; width: 0; height: 74px; z-index: 1; }
.gauge-val { position: absolute; bottom: 38px; left: 0; transform: translateX(calc(-1 * var(--anchor, 50%))); white-space: nowrap; font-weight: 700; font-size: 15px; padding: 4px 9px; border-radius: 8px; background: var(--ink); color: var(--surface); }
.gauge-tip { position: absolute; bottom: 0; left: -1.5px; width: 3px; height: 40px; border-radius: 2px; background: var(--ink); }
.gauge-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; height: 16px; border-radius: 8px; overflow: hidden; background: var(--surface); }
.gz--green { background: var(--green-fill); }
.gz--amber { background: var(--amber-fill); }
.gz--red { background: var(--red-fill); }
.gauge-ticks { position: relative; height: 20px; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.gauge-ticks span { position: absolute; transform: translateX(-50%); }
.gauge-ticks span:first-child { transform: none; }
.gauge-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 12px; color: var(--ink-3); text-align: center; font-family: var(--font-mono); }

/* ---------- signature ---------- */
.sigpad { display: flex; flex-direction: column; gap: 6px; position: relative; }
.sigpad-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.sigpad-canvas { width: 100%; height: 140px; background: var(--surface); border: var(--bw) dashed var(--line-strong); border-radius: 12px; touch-action: none; color: var(--ink); cursor: crosshair; }
.sigpad-hint { position: absolute; left: 0; right: 0; bottom: 56px; text-align: center; color: var(--ink-3); font-size: 14px; pointer-events: none; }

/* ---------- photos, thumbs, QR ---------- */
.thumb { display: inline-block; width: 72px; height: 72px; flex: none; border-radius: 10px; overflow: hidden; border: var(--bw) solid var(--line); background: var(--photo-bg); padding: 0; }
button.thumb { cursor: zoom-in; }
.photo-illus { display: block; width: 100%; height: 100%; }
.ph-bg { fill: var(--photo-bg); }
.ph-floor { fill: var(--ph-floor); }
.ph-upright path { stroke: var(--ph-upright); stroke-width: 7; fill: none; stroke-linecap: butt; }
.ph-perf { fill: var(--ph-perf); }
.ph-beam { fill: var(--ph-beam); }
.ph-conn { fill: var(--ph-conn); }
.ph-load { fill: var(--ph-load); opacity: 0.85; }
.ph-crack { fill: none; stroke: var(--ph-dark); stroke-width: 1.4; stroke-linejoin: bevel; }
.ph-bend { fill: none; stroke: var(--ph-dark); stroke-width: 1.6; }
.ph-hole { fill: var(--ph-dark); }
.ph-slab { stroke: var(--ph-steel); stroke-width: 1; stroke-dasharray: 2 2; }
.ph-base { fill: var(--ph-steel); }
.ph-bolt { fill: var(--ph-bolt); }
.ph-bolt-loose { fill: none; stroke: var(--ph-bolt); stroke-width: 1; stroke-dasharray: 1.4 1.2; }
.ph-guardshape { fill: var(--ph-guard); }
.ph-brace { fill: none; stroke: var(--ph-upright); stroke-width: 3.5; }
.ph-annot, .ph-annot line, .ph-annot path { fill: none; stroke: var(--annot); stroke-width: 2.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.qr { display: block; flex: none; border-radius: 4px; }

/* ---------- bay diagram ---------- */
.bay-diagram { width: 100%; height: auto; display: block; max-height: 330px; }
.bd-floor { fill: var(--surface-3); }
.bd-load { fill: var(--surface-2); stroke: var(--line); stroke-dasharray: 4 3; }
.bd-upright, .bd-beam, .bd-conn { fill: var(--surface-3); stroke: var(--ink-2); stroke-width: 1.6; }
.bd-conn { fill: var(--line); }
.bd-perf { fill: var(--ink-3); }
.bd-lock { fill: var(--ink-2); }
.bd-base { fill: var(--ink-2); }
.bd-anchor circle { fill: var(--ink); }
.bd-guard { fill: none; stroke: var(--ink-3); stroke-width: 3; stroke-linejoin: round; }
.bd-brace { stroke: var(--ink-2); stroke-width: 4; stroke-linecap: round; }
.bd-horiz { stroke: var(--line-strong); stroke-width: 2; }
.bd-hit { fill: transparent; stroke: transparent; }
line.bd-hit { stroke: transparent; }
.bd-part { cursor: pointer; outline: none; }
.bd-part:hover > :not(.bd-hit) { stroke: var(--accent); }
.bd-part.is-sel > :not(.bd-hit), .bd-part.is-sel > g > * { fill: var(--accent); stroke: var(--accent-strong); }
.bd-part.is-sel > .bd-brace, .bd-part.is-sel > .bd-guard { fill: none; stroke: var(--accent); }
.bd-part:focus-visible > :not(.bd-hit) { stroke: var(--focus); stroke-width: 3; }
.bd-lv, .bd-cap { fill: var(--ink-3); font-size: 12px; font-weight: 600; font-family: var(--font-body); }

/* ---------- how-to drawing ---------- */
.howto-svg { width: 100%; height: auto; display: block; }
.hw-upright-bow { stroke: var(--ink-2); stroke-width: 12; fill: none; stroke-linecap: round; }
.hw-edge { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.hw-dim { stroke: var(--accent); stroke-width: 1.6; fill: none; }
.hw-text { fill: var(--ink); font-size: 13px; font-weight: 600; font-family: var(--font-body); }
.hw-small { fill: var(--ink-3); font-size: 12px; font-family: var(--font-body); }
.hw-lead { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.hw-upright { fill: var(--surface-3); stroke: var(--ink-2); stroke-width: 1.5; }
.hw-beam { stroke: var(--ink-2); stroke-width: 9; fill: none; stroke-linecap: round; }
.hw-line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }

/* ---------- sheets, share, toast ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-scrim { position: absolute; inset: 0; border: 0; padding: 0; background: var(--scrim); cursor: default; animation: fadeIn 0.18s ease-out; }
.sheet { position: relative; background: var(--surface); border-radius: 20px 20px 0 0; max-height: 88%; display: flex; flex-direction: column; box-shadow: var(--shadow-2); animation: sheetUp 0.22s cubic-bezier(0.2, 0.9, 0.3, 1); }
.sheet--tall { height: 88%; }
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px calc(var(--gr) - 8px) 2px var(--gl); }
.sheet-title { font-family: var(--font-display); font-size: 23px; font-weight: 600; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px var(--gr) 16px var(--gl); display: flex; flex-direction: column; gap: 14px; }
.sheet-actions { flex: none; display: flex; gap: 10px; padding: 12px var(--gr) calc(14px + env(safe-area-inset-bottom, 0px)) var(--gl); border-top: var(--bw) solid var(--line); }
.sheet-actions > .btn { flex: 1; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.share-file { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); border: var(--bw) solid var(--line); color: var(--ink-2); }
.share-file b { color: var(--ink); font-weight: 600; }
.share-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.share-target { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; font-size: 12px; color: var(--ink-2); padding: 4px 0; min-height: 80px; }
.share-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); border: var(--bw) solid var(--line); display: grid; place-items: center; color: var(--ink); }
.share-text { font-size: 14px; background: var(--surface-2); border: var(--bw) solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; user-select: text; }
.toast { position: absolute; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; background: var(--ink); color: var(--surface); padding: 13px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; box-shadow: var(--shadow-2); animation: sheetUp 0.2s ease-out; }
.toast--warn { background: var(--amber-fill); color: var(--on-amber); }
.toast--ok { background: var(--green); color: var(--surface); }
