/* install hint, bubble map, fund from another chain (class prefix ex-). Lane extras: docs/LANES.md chapter 9 and the
   width contract of 3.7. Colours only through the tokens of styles.css: no colour literal and no custom property in
   this file, so the light theme arrives without touching it. No block here has a fixed width (two icon sizes
   aside): every block is one column that takes the room its host gives it. */

/* ---------- the install entry and the home-screen hint ----------
   Two places, never the top bar: a row of the "More" sheet (#bar3-menu, a grid of rows) and a line of the footer.
   In the sheet the entry looks like the sheet's own links. */
.ex-inst-row { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: 600 13px/1.2 var(--font-ui); text-align: left; cursor: pointer; }
.ex-inst-row:hover, .ex-inst-row:focus-visible { background: var(--chip); color: var(--brand-hi); }
.ex-inst-row .ico { flex: none; }
.ex-inst-two { display: grid; gap: 2px; min-width: 0; }
.ex-inst-sub { color: var(--warn); font: 600 11.5px/1.3 var(--font-ui); }
/* the iOS hint: its words, the way to close it for good, and the sentence about the empty vault under both */
.ex-inst-hint { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 8px; min-width: 0; max-width: 34ch; padding: 8px 10px; border-top: 1px solid var(--line); color: var(--muted); font: 500 12.5px/1.45 var(--font-ui); }
.ex-inst-hint p { margin: 0; }
.ex-inst-how { color: var(--text); font-weight: 700; }
.ex-inst-vault, .ex-inst-save { grid-column: 1 / -1; }
.ex-inst-x { width: 28px; height: 28px; }
.ex-inst-x .ico { width: 14px; height: 14px; }
/* in the footer */
.ex-inst-foot { margin: 6px 0 0; }
.ex-inst-link { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-decoration: underline; cursor: pointer; }
.ex-inst-link:hover, .ex-inst-link:focus-visible { color: var(--brand-hi); }
.ex-inst-wait.ex-inst-link { color: var(--warn); }
.ex-inst-hint-foot { max-width: 60ch; margin: 8px 0 0; padding: 8px 0 0; }
/* the first run as an installed app: two paragraphs of the shared dialog */
.ex-inst-first { margin: 0 0 10px; }

/* ---------- the leave-site notice (the bridge and the bubble map) ---------- */
.ex-leave-t { margin: 0 0 14px; }
.ex-leave-go { display: flex; }

/* ---------- fund from another chain ----------
   The panel lives in the shared dialog: under the QR code of the deposit dialog (folded to one row) and in a dialog
   of its own. One column; the address breaks anywhere; the chips wrap. */
.ex-br-box { width: 100%; min-width: 0; justify-self: stretch; }
.ex-br { display: grid; gap: 10px; width: 100%; min-width: 0; text-align: left; }
.ex-br-in { display: grid; gap: 10px; min-width: 0; }
.ex-br-in[hidden] { display: none; }
.ex-br-h { margin: 0; color: var(--text); font: 800 15px/1.3 var(--font-ui); }
.ex-br-body { margin: 0; color: var(--muted); font-size: 13.5px; }
.ex-br .field { margin: 0; }
.ex-br-row { display: grid; gap: 5px; min-width: 0; }
.ex-br-k { color: var(--muted); font: 700 12px/1.2 var(--font-ui); }
.ex-br-pick { min-width: 0; }
.ex-br-to { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-3); }
.ex-br-addr { flex: 1 1 auto; min-width: 0; color: var(--text); font-size: 12.5px; overflow-wrap: anywhere; word-break: break-all; }
.ex-br-check { margin: 0; padding: 2px 0 2px 10px; border-left: 3px solid var(--brand); color: var(--text); font-size: 13.5px; overflow-wrap: anywhere; }
.ex-br-go { display: flex; }
.ex-br-go[hidden] { display: none; }
.ex-br-fine { margin: 0; color: var(--muted); font-size: 12px; }
.ex-br-warn { margin: 0; padding: 8px 10px; border: 1px solid var(--line-2); border-left: 3px solid var(--warn); border-radius: 8px; background: var(--warn-soft); color: var(--text); font-size: 13px; }
/* the one row under the QR code: a click opens the panel */
.ex-br-fold { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-3); color: var(--text); font: 700 13px/1.3 var(--font-ui); text-align: left; cursor: pointer; }
.ex-br-fold:hover, .ex-br-fold:focus-visible { border-color: var(--brand); }
.ex-br-fold .ico { flex: none; width: 16px; height: 16px; color: var(--brand-hi); }
.ex-br-fold-t { min-width: 0; }

/* ---------- the Security page: the paragraph about funding from another chain ---------- */
.ex-sec h2 { margin: 0 0 8px; text-transform: lowercase; }
.ex-sec p { max-width: 74ch; }
.ex-sec-backed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.ex-sec-check, .ex-sec-check:hover { font-family: var(--font-mono); text-decoration: none; }
.ex-sec-nocheck { margin: 10px 0 0; padding-left: 10px; border-left: 2px solid var(--warn); color: var(--muted); }
