/* BLACKOUT app: names (usernames.js) and the privacy helper (privacy-helper.js). Uses app.css's colours, so it
   follows the accent (purple by default, red with ?theme=red). */

/* ---------- @name: the match shown before paying ---------- */
.name-match {
  margin-top: 12px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), var(--bg-2));
  border: 1px solid rgba(var(--accent-rgb), 0.35); border-left: 3px solid var(--red);
}
.name-match[data-state='changed'] { border-color: rgba(255, 107, 116, 0.55); border-left-color: var(--err); background: linear-gradient(180deg, rgba(255, 107, 116, 0.08), var(--bg-2)); }
.nm-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nm-head b { font: 800 20px/1.1 var(--display); font-stretch: 80%; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.nm-head .st { margin-left: 0; }
.name-match .kv { margin-top: 10px; }
.nm-check { font: 700 16px/1.3 var(--mono); letter-spacing: 0.18em; color: var(--red-2); }
/* The whole private address, so a payer can compare all of it: first and last characters stand out. */
#v-nm-addr { font-size: 12px; line-height: 1.5; color: var(--muted); word-break: break-all; }
#v-nm-addr b { color: var(--text); font-weight: 700; }
.name-match .note { margin-top: 8px !important; }

/* ---------- your name (Keys screen) ---------- */
.name-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0; }
.name-in .at {
  display: grid; place-items: center; height: 100%; min-height: 46px; padding: 0 12px;
  border: 1px solid var(--line-2); border-right: 0; border-radius: 10px 0 0 10px; background: var(--panel-2);
  font: 700 16px/1 var(--mono); color: var(--red-2);
}
.name-in .input { border-radius: 0 10px 10px 0; min-width: 0; }

/* ---------- round amounts and the timing note ---------- */
.round-hint { margin-top: 10px; }
.hint {
  margin: 10px 0 0; padding: 9px 12px; border-radius: 0 10px 10px 0;
  border-left: 2px solid var(--red); background: rgba(var(--accent-rgb), 0.07);
  font-size: 12.5px; line-height: 1.5; color: var(--text);
}
.round-hint .hint { margin-top: 0; }
.hint.ok { border-left-color: var(--ok); background: rgba(168, 240, 192, 0.05); color: var(--muted); }
.hint.timing { border-left-color: var(--wait); background: rgba(255, 197, 107, 0.07); }
.round-hint .chips { margin-top: 8px; }
.round-hint .chipbtn { color: var(--text); border-color: rgba(var(--accent-rgb), 0.45); }

/* ---------- split withdrawals ---------- */
.split { margin-top: 14px; padding-top: 2px; }
.split .toggle { margin-top: 6px; }
#v-split-plan { margin-top: 12px; }
#v-split-plan .list { margin-top: 10px; }
#v-split-note.err { color: var(--err); }
#v-split-why { margin: 0 0 10px; }
.split-parts li > div:first-child { min-width: 0; flex: 1; }
.split-parts .input { margin-top: 8px; width: 100%; font-size: 12px; }
#btn-split-redraw { margin-top: 8px; }
#v-splits .s { overflow-wrap: anywhere; }

@media (max-width: 620px) {
  .name-match { padding: 12px 13px; }
  .nm-check { font-size: 15px; letter-spacing: 0.14em; }
  .name-match .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .name-match .kv dd { margin-bottom: 6px; }
}

/* ---------- standard amounts (privacy-helper.js): the buttons under an amount field ---------- */
.std { margin: 10px 0 2px; display: flex; flex-wrap: wrap; gap: 8px; }
.std .chipbtn { color: var(--text); border-color: var(--line-2); min-height: 36px; }
.std .chipbtn.on { background: rgba(var(--accent-rgb), 0.18); border-color: var(--red); color: var(--text); font-weight: 700; }
.std .chipbtn.other { color: var(--muted); }
.std .chipbtn.other.on { color: var(--text); }
#v-meter-wd { margin-top: 10px; }
#v-split-how { margin-bottom: 10px; }
/* "Now": the one warning, under the choice. The crowd meter (crowd-meter/) under the amount. */
.hint.now-warn { border-left-color: var(--err); background: rgba(255, 107, 116, 0.07); }
#v-crowd-wd, #v-crowd-swap { margin-top: 12px; }
