/* The tip jar (tip/panel.js), in the Sassy look: cream card, ink outline, hard shadow. */
dialog.tip {
  --t-ink: #1b1210; --t-cream: #fffaf0; --t-sun: #ffc40c; --t-muted: #4f5b60; --t-ok: #137a36; --t-bad: #b3261e;
  margin: auto; width: min(520px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; border: 0; background: none;
  color: var(--t-ink); overflow: visible; font: 400 15px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
dialog.tip::backdrop { background: rgb(12 20 32 / .66); }
.tip *, .tip *::before, .tip *::after { box-sizing: border-box; }
.tip__in { position: relative; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding: 22px clamp(16px, 4vw, 24px) 18px; background: var(--t-cream); border: 4px solid var(--t-ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--t-ink); }
.tip__in:focus { outline: none; }
.tip__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 3px solid var(--t-ink); border-radius: 50%; background: #fff; color: var(--t-ink); font: 700 22px/1 system-ui, sans-serif; cursor: pointer; }
.tip__title { margin: 0 48px 6px 0; font: 400 26px/1.05 'Bowlby One', Impact, 'Arial Black', sans-serif; }
.tip__lede { margin: 0 0 12px; font-size: 14px; color: var(--t-muted); }
.tip__lede a { color: var(--t-ink); font-weight: 700; }
.tip__to { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tip__k { font: 700 12px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--t-muted); }
.tip__name { font-size: 18px; }
.tip__addr { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 3px solid var(--t-ink); border-radius: 999px; background: #fff; color: var(--t-ink); font: 700 14px/1 ui-monospace, Menlo, Consolas, monospace; cursor: pointer; }
.tip__verify { margin: 8px 0 12px; font-size: 13px; }
.tip__full { display: block; margin-bottom: 2px; font: 12.5px/1.35 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; user-select: all; }
.tip__check { color: var(--t-muted); }
.tip__check.is-ok { color: var(--t-ok); font-weight: 700; }
.tip__check.is-warn { color: var(--t-bad); font-weight: 700; }
.tip__amtrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tip__amts { display: flex; gap: 8px; }
.tip__amts button { min-height: 44px; min-width: 62px; padding: 0 12px; border: 3px solid var(--t-ink); border-radius: 12px; background: #fff; color: var(--t-ink); font: 700 15px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 2px 2px 0 var(--t-ink); }
.tip__amts button[aria-pressed="true"] { background: var(--t-sun); }
.tip__customwrap { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 3px solid var(--t-ink); border-radius: 12px; background: #fff; }
.tip__custom { width: 4.5em; border: 0; outline: 0; background: none; color: var(--t-ink); font: 700 15px/1 system-ui, sans-serif; }
.tip__custom[aria-invalid="true"] { color: var(--t-bad); }
.tip__unit { font: 700 12px/1 system-ui, sans-serif; color: var(--t-muted); }
.tip__pay { display: grid; grid-template-columns: 150px 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.tip__qr { border: 3px solid var(--t-ink); border-radius: 12px; overflow: hidden; background: #fffaf0; line-height: 0; }
.tip__qr svg { width: 100%; height: auto; display: block; }
.tip__qr.is-off { opacity: .25; }
.tip__acts { display: grid; gap: 10px; }
.tip__btn { display: block; min-height: 46px; padding: 12px 14px; border: 3px solid var(--t-ink); border-radius: 12px; background: #fff; color: var(--t-ink); font: 700 14px/1.15 system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--t-ink); }
.tip__btn.is-main { background: var(--t-sun); }
.tip__btn:disabled, .tip__btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.tip__btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--t-ink); }
.tip__btn img { vertical-align: middle; margin-right: 6px; }
.tip__hint { margin: 0; font-size: 12.5px; color: var(--t-muted); }
.tip__wallets { display: grid; gap: 8px; margin-top: 12px; }
.tip__status { margin: 12px 0 0; min-height: 1.4em; font-size: 14px; font-weight: 600; }
.tip__status.is-ok { color: var(--t-ok); }
.tip__status.is-err { color: var(--t-bad); }
.tip__status.is-busy, .tip__status.is-note { color: var(--t-muted); }
.tip__status a { color: inherit; }
.tip__small { margin: 10px 0 0; padding-top: 10px; border-top: 2px dashed rgb(27 18 16 / .25); font-size: 12px; color: var(--t-muted); }
.tip :focus-visible { outline: 3px solid #2f8cc4; outline-offset: 2px; }
@media (max-width: 440px) { .tip__pay { grid-template-columns: 1fr; } .tip__qr { max-width: 180px; } }
