/* TipKit v4 (10/08 night, custom amount row) — based on v3 (10/08) — coffee theme ☕. Quiet inline strip below the share buttons + a tap-to-open slide-up card (no overlay, no auto popup).
   .tip-lt = strip on a light page, .tip-dk = strip on a dark page (picked automatically from the text color around it). */
.tipbox{display:block;width:100%;max-width:520px;margin:10px auto 2px;box-sizing:border-box}.tipbox[hidden]{display:none!important}
.tipstrip{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 2px;padding:8px 8px 8px 12px;border-radius:14px;font:500 13.5px/1.35 -apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans CJK SC","Segoe UI",sans-serif;text-align:left;cursor:pointer;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.tipbox .tipstrip{margin:0}
.tipstrip .ts-t{flex:1;min-width:0}
.tipstrip .ts-b{flex:0 0 auto;padding:6px 14px;border-radius:999px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;line-height:1.2}
.tipstrip.tip-lt{background:#fff7ee;border:1px dashed #d6b08a;color:#5a3a26}
.tipstrip.tip-lt .ts-b{background:#6f4e37;border:1px solid #6f4e37;color:#fff8f0}
.tipstrip.tip-dk{background:rgba(214,170,125,.10);border:1px dashed rgba(214,170,125,.5);color:#f1dfcc}
.tipstrip.tip-dk .ts-b{background:none;border:1px solid #d9a86c;color:#f0c08a}
.tipsheet{position:fixed;left:0;right:0;bottom:0;z-index:2147483000;max-width:460px;margin:0 auto;padding:6px 14px calc(12px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:#fffaf3;border:1px solid #e3c7a6;border-bottom:0;box-shadow:0 -10px 28px rgba(60,36,20,.28);color:#4b2e1e;font:500 14px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans CJK SC","Segoe UI",sans-serif;text-align:left;transform:translateY(110%);transition:transform .32s cubic-bezier(.2,.9,.3,1);box-sizing:border-box}
.tipsheet.up{transform:translateY(0)}.tipsheet[hidden]{display:none}
.tipsheet .tsh{display:flex;align-items:center;gap:8px;padding:10px 2px 2px;cursor:pointer;position:relative}.tipsheet .tsh i{position:absolute;left:50%;top:0;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:#e3c7a6}
.tipsheet .tcup{font-size:22px;line-height:1}
.tipsheet .tsh b{flex:1;font-size:16px;color:#6f4e37}.tipsheet .tf{font-size:18px;color:#a8876b;line-height:1}
.tipsheet .tsub{margin:2px 2px 10px;font-size:12.5px;color:#8a6a52}
.tipsheet .tcs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
.tipsheet .tc{min-height:46px;border-radius:13px;border:1.5px solid #c89b6d;background:#f6e7d6;color:#4b2e1e;font:inherit;font-size:17px;font-weight:800;cursor:pointer}.tipsheet .tc.cu{font-size:14px}
.tipsheet .tn{min-height:0;margin:6px 2px 0;font-size:12px;color:#a0522d;text-align:center}.tipsheet .tn:empty{display:none}
.tipsheet .tl{display:block;margin:8px auto 0;padding:6px 14px;border:0;background:none;color:#8a6a52;font:inherit;font-size:13.5px;text-decoration:underline;cursor:pointer}
.tipline{position:fixed;left:12px;right:12px;bottom:calc(86px + env(safe-area-inset-bottom));z-index:2147483001;max-width:436px;margin:0 auto;display:flex;align-items:center;gap:6px;padding:9px 10px 9px 12px;border-radius:14px;background:#fffaf3;border:1px solid #e3c7a6;box-shadow:0 8px 24px rgba(60,36,20,.3);color:#4b2e1e;font-size:13px;line-height:1.35;opacity:0;transform:translateY(12px);transition:opacity .25s,transform .25s}
.tipline.up{opacity:1;transform:none}.tipline span{flex:1}
.tipline button{flex:0 0 auto;padding:6px 10px;border-radius:999px;border:1px solid #6f4e37;background:none;color:#6f4e37;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}.tipline .tx,.tipline .tg{border-color:#e3c7a6;color:#8a6a52;font-weight:500}
.tipthx{margin:0 0 8px;padding:8px 10px;border-radius:12px;background:#fff7ee;border:1px solid #c89b6d;color:#5a3a26;font-weight:800;font-size:14px;text-align:center}
.tipthx-fx{position:fixed;top:calc(10px + env(safe-area-inset-top));left:12px;right:12px;z-index:2147483002;max-width:436px;margin:0 auto;box-shadow:0 6px 18px rgba(60,36,20,.25)}
/* v4: custom amount row, states */
.tipsheet .tcs-4{grid-auto-columns:1fr}
.tipsheet .tc:disabled,.tipsheet .tgo:disabled{opacity:.55;cursor:default}
.tipsheet .tc.tload,.tipsheet .tgo.tload{opacity:1;position:relative;color:transparent}
.tipsheet .tc.tload::after,.tipsheet .tgo.tload::after{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;border:2.5px solid #c89b6d;border-top-color:#4b2e1e;animation:tipspin .8s linear infinite}
@keyframes tipspin{to{transform:rotate(360deg)}}
.tipsheet .tc.cu.on{background:#6f4e37;border-color:#6f4e37;color:#fff8f0}
.tipsheet .tcu-row{display:flex;align-items:center;gap:8px;margin:10px 0 0;padding:0 2px}
.tipsheet .tcu-row[hidden]{display:none}
.tipsheet .tcur{font-size:18px;font-weight:800;color:#6f4e37}
.tipsheet .tin{flex:1;min-width:0;height:44px;padding:0 12px;border-radius:12px;border:1.5px solid #c89b6d;background:#fff;color:#4b2e1e;font:inherit;font-size:17px;font-weight:700;outline:none;-webkit-appearance:none;appearance:none}
.tipsheet .tin:focus{border-color:#6f4e37;box-shadow:0 0 0 3px rgba(111,78,55,.15)}
.tipsheet .tin[aria-invalid="true"]{border-color:#c0392b}
.tipsheet .tgo{flex:0 0 auto;height:44px;padding:0 18px;border-radius:12px;border:0;background:#6f4e37;color:#fff8f0;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
.tipsheet .tn.tn-err{color:#c0392b}
.tipsheet .tn.tn-ok{color:#2e7d32}
.tipsheet .tn.tn-load{color:#8a6a52}
.tipsheet .tld{grid-column:1/-1;text-align:center;color:#a8876b;padding:12px 0}
