/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); font-weight: 600; }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-contrast); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.btn.danger-solid:hover { filter: brightness(1.08); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn.icon { width: 36px; padding: 0; }
.btn.icon.sm { width: 30px; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid currentColor; border-color: var(--text-3) transparent var(--text-3) transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn.primary.loading::after { border-color: var(--brand-contrast) transparent var(--brand-contrast) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.field .error { font-size: 12px; color: var(--danger); }
.field.invalid .input { border-color: var(--danger); }

.input, .select, .textarea {
  width: 100%; min-width: 0;
  height: 40px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  font-size: 14px;
  transition: border-color .12s, box-shadow .12s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { padding-right: 32px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b8799' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--text-3); }
.input.sm, .select.sm { height: 32px; font-size: 13px; padding: 0 10px; }
.select.sm { padding-right: 28px; background-position: right 8px center; }
.input.mono { font-family: var(--font-mono); font-size: 13px; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-right: 42px; }
.input-wrap .input-action {
  position: absolute; right: 4px;
  width: 34px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: transparent; color: var(--text-3);
}
.input-wrap .input-action:hover { color: var(--text); background: var(--surface-2); }
.input-wrap .input-action svg { width: 18px; height: 18px; }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix .input { padding-right: 44px; text-align: right; }
.input-affix .affix { position: absolute; right: 12px; color: var(--text-3); font-size: 12.5px; pointer-events: none; }

.otp {
  font-family: var(--font-mono); font-size: 24px; letter-spacing: .5em; text-align: center;
  height: 54px; padding-left: .5em;
}

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }

/* switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  width: 36px; height: 20px; flex: none; border-radius: 99px;
  background: var(--border-strong); position: relative; transition: background .15s;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s;
}
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch input:disabled + .track { opacity: .5; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card-head h2, .card-head h3 { font-size: 14.5px; }
.card-head .sub { font-size: 12.5px; color: var(--text-3); }
.card-head .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.card.flush .card-body { padding: 0; }

/* ---------- stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.tile .label { font-size: 12.5px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.tile .label svg { width: 16px; height: 16px; color: var(--text-3); }
.tile .value { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.tile .value.null { font-size: 14px; font-weight: 500; color: var(--text-3); font-style: italic; }
.tile .foot { font-size: 12px; color: var(--text-3); margin-top: auto; }
.tile.link { cursor: pointer; transition: border-color .12s; color: inherit; }
.tile.link:hover { border-color: var(--brand); text-decoration: none; }
.tile.attention { box-shadow: inset 3px 0 0 var(--warning), var(--shadow-sm); }
.tile.danger { box-shadow: inset 3px 0 0 var(--danger), var(--shadow-sm); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; white-space: nowrap;
  padding: 10px 16px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-3); background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.table td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td { background: var(--surface-2); }
.table th.right, .table td.right { text-align: right; }
.table td.num { font-variant-numeric: tabular-nums; }
.table td.wrap { white-space: normal; min-width: 220px; }
.table td.actions { text-align: right; }
.table td.actions .btn + .btn { margin-left: 6px; }
.table .cell-main { font-weight: 500; color: var(--text); }
.table .cell-sub { font-size: 12px; color: var(--text-3); }
.table.loading tbody { opacity: .5; transition: opacity .15s; }
.table.compact td { padding: 8px 14px; }
.table.compact th { padding: 8px 14px; }

.table-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-3);
}
.pager { display: flex; align-items: center; gap: 6px; }

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 44px 20px; text-align: center; color: var(--text-3);
}
.empty svg { width: 28px; height: 28px; opacity: .7; }
.empty b { color: var(--text-2); font-weight: 600; font-size: 14px; }
.empty .btn { margin-top: 6px; }

/* ---------- toolbar / filters ---------- */
.toolbar {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.toolbar .field { gap: 4px; }
.toolbar .field > label, .toolbar .field > .field-label { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.toolbar .search { min-width: 220px; flex: 1 1 240px; max-width: 360px; }
.toolbar .spacer { flex: 1; }
/* chips (ui/table.js): a status picked from a row of buttons, on a line of its own above the other filters */
.toolbar .chips-field { flex: 1 1 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 30px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text-2);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
/* a checkbox filter, level with the inputs beside it */
.toolbar .check-field { justify-content: center; min-height: 32px; }

.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-3); border-radius: var(--radius);
}
.segmented button {
  border: 0; background: transparent; color: var(--text-2);
  padding: 5px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------- pills & badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 18px;
  background: var(--neutral-soft); color: var(--text-2);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.plain::before { display: none; }
.pill.success { background: var(--success-soft); color: var(--success); }
.pill.warning { background: var(--warning-soft); color: var(--warning); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.neutral { background: var(--neutral-soft); color: var(--text-2); }
/* LITE tag next to a Lite merchant's name (ui/lite.js) */
.pill.lite {
  padding: 0 6px; font-size: 10.5px; line-height: 16px; letter-spacing: .05em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.lite-name { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 100%; }
.lite-name > .pill.lite { flex: none; }
/* A Lite's three account limits (ui/lite.js limitInputs): on a Lite's Fees & limits and in Settings */
.lite-limit-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 14px; }
.lite-limit-fields .input { text-align: right; }
.lite-limit-money { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 6px; }
.lite-limit-ro { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lite-limit-ro-value { font-size: 15px; font-weight: 600; color: var(--text); }
.lite-limit-ro-value.muted { font-weight: 500; color: var(--text-3); }
@media (max-width: 640px) { .lite-limit-fields { grid-template-columns: minmax(0, 1fr); } }
.status-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.row-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.row-flag.warning { color: var(--warning); }
.row-flag svg { width: 14px; height: 14px; flex: none; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px; border-radius: 5px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 11.5px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.tag.mono { font-family: var(--font-mono); font-size: 11px; }

/* ---------- alerts ---------- */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--info-soft); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--info) 25%, transparent);
  font-size: 13.5px;
}
.alert svg { width: 18px; height: 18px; flex: none; color: var(--info); margin-top: 1px; }
.alert.warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.alert.warning svg { color: var(--warning); }
.alert.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert.danger svg { color: var(--danger); }
.alert.success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert.success svg { color: var(--success); }
.alert .alert-body { min-width: 0; }
.alert .alert-body b { display: block; margin-bottom: 2px; }

/* ---------- tabs ---------- */
.tabs {
  display: flex; gap: 2px; overflow-x: auto;
  border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.tabs a, .tabs button {
  border: 0; background: none;
  padding: 10px 14px; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs [aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ---------- key/value lists ---------- */
.kv { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 8px; } }

.copyable { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.copyable code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { border: 0; background: none; padding: 2px; color: var(--text-3); border-radius: 4px; flex: none; }
.copy-btn:hover { color: var(--brand); background: var(--surface-2); }
.copy-btn svg { width: 14px; height: 14px; }

.secret-box {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px dashed var(--border-strong);
  font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere;
}
.secret-box code { flex: 1; min-width: 0; }

/* ---------- drawer & modal ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(5, 10, 20, .45);
  animation: fade-in .15s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(560px, 100%);
  display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: slide-in .18s ease;
}
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 16px; }
.drawer-head .sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.drawer-head .btn.icon { margin-left: auto; flex: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.drawer-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--border); }
.drawer-section h3 { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }

.modal-layer { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.modal-layer .scrim { z-index: 0; }
.modal {
  position: relative; z-index: 1;
  width: min(480px, 100%); max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: pop-in .16s ease;
}
.modal.wide { width: min(640px, 100%); }
.modal-head { padding: 18px 20px 0; }
.modal-head h2 { font-size: 16.5px; }
.modal-head p { color: var(--text-2); margin-top: 6px; font-size: 13.5px; }
.modal-body { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 0 20px 18px; flex-wrap: wrap; }
.modal-head + .modal-foot { padding-top: 18px; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
@keyframes pop-in { from { transform: translateY(8px) scale(.98); opacity: 0; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: 13.5px; animation: pop-in .16s ease;
}
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast.success svg { color: var(--success); }
.toast.error svg { color: var(--danger); }
.toast.info svg { color: var(--info); }
.toast .toast-close { margin-left: auto; border: 0; background: none; color: var(--text-3); padding: 0 2px; }

/* ---------- dropdown menu ---------- */
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head b { display: block; font-size: 13px; }
.menu-head span { font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 6px; background: none;
  color: var(--text); font-size: 13.5px; text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu svg { width: 16px; height: 16px; color: var(--text-3); }

.avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 700; border: 0;
}

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -8px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-strong);
}
.timeline li.current::after { border-color: var(--brand); background: var(--brand); }
.timeline li.success::after { border-color: var(--success); background: var(--success); }
.timeline li.warning::after { border-color: var(--warning); background: var(--warning); }
.timeline li.danger::after { border-color: var(--danger); background: var(--danger); }
.timeline .t-title { font-weight: 600; font-size: 13.5px; }
.timeline .t-meta { font-size: 12px; color: var(--text-3); }
.timeline .t-note { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ---------- loading ---------- */
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border-strong); border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}
.loading-block { display: grid; place-items: center; padding: 48px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.null-value { color: var(--text-3); font-style: italic; }

/* ---------- progress / meter ---------- */
.meter { height: 6px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.meter.warning { background: var(--warning-soft); }
.meter.warning > span { background: var(--warning); }
.meter.danger { background: var(--danger-soft); }
.meter.danger > span { background: var(--danger); }

/* theme toggle */
.theme-toggle svg { width: 18px; height: 18px; }

.ic-sm { width: 16px; height: 16px; flex: none; }
.ic-sm.ok { color: var(--success); }

/* Radio choices drawn as cards: div.field > fieldset.choice-list > label.choice > input[type=radio] + .choice-text */
.choice-list { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-list > legend { padding: 0; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.choice {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface);
  transition: border-color .12s, background .12s;
}
.choice:hover { border-color: var(--brand); }
.choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.choice input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); }
.choice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice-text b { font-weight: 600; }
.choice-text span { font-size: 13px; color: var(--text-2); }

/* sign-in help (ui/sign-in-help.js): the chooser's rows and the password shown once */
.signin-help-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.signin-help-option + .signin-help-option { border-top: 1px solid var(--border); }
.signin-help-option > div { min-width: 0; }
.signin-help-option .cell-main { font-weight: 500; color: var(--text); }
.signin-help-option .cell-sub { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.signin-help-option .btn { flex: none; }
.signin-help-secret { padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.signin-help-secret .copyable code { font-size: 18px; letter-spacing: 0.04em; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .signin-help-option { flex-direction: column; align-items: stretch; }
}
