/* TBP Smart Launcher */
#tbp-sl, #tbp-sl * { box-sizing: border-box; font-family: inherit; }
#tbp-sl { direction: rtl; }
#tbp-sl [hidden] { display: none !important; }

.tbp-sl-bars { position: fixed; top: 0; left: 0; right: 0; z-index: 2147483600; display: flex; flex-direction: column; gap: 6px; padding: 8px; pointer-events: none; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
.tbp-sl-bar { pointer-events: auto; max-width: 560px; width: 100%; margin: 0 auto; background: #1e1e1e; color: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 26px rgba(0,0,0,.32); display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.6; animation: tbpSlIn .3s ease; }
.tbp-sl-bar strong { font-size: 15px; }
.tbp-sl-bar span { color: #d8d8d8; font-size: 13px; }
.tbp-sl-bar.warn { background: #3b2a00; border: 1px solid #f0b429; }
.tbp-sl-bar.alert { background: #5a0f0f; border: 1px solid #ff6b6b; animation: tbpSlPulse 1.4s infinite; }
.tbp-sl-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tbp-sl-row button { border: 0; border-radius: 8px; padding: 9px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; background: #25a0e8; color: #fff; }
.tbp-sl-row button.ghost { background: rgba(255,255,255,.14); }

.tbp-sl-toast { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: 10px 16px; border-radius: 22px; font-size: 13.5px; z-index: 2147483640; max-width: 90%; text-align: center; box-shadow: 0 4px 18px rgba(0,0,0,.35); transition: opacity .4s; }
.tbp-sl-toast.out { opacity: 0; }

.tbp-sl-fab { position: fixed; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); left: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #1e1e1e; color: #fff; font-size: 21px; cursor: pointer; z-index: 2147483500; box-shadow: 0 4px 16px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.tbp-sl-fabn { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; background: #e11d48; color: #fff; border-radius: 10px; font-size: 11px; line-height: 20px; font-weight: 700; }

.tbp-sl-sheetwrap { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2147483620; display: flex; align-items: flex-end; justify-content: center; }
.tbp-sl-sheet { position: relative; background: #fff; color: #222; width: 100%; max-width: 520px; border-radius: 18px 18px 0 0; padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 86vh; overflow-y: auto; animation: tbpSlUp .28s ease; text-align: right; }
.tbp-sl-sheet h3 { margin: 0 0 12px; font-size: 18px; }
.tbp-sl-x { position: absolute; top: 10px; left: 12px; border: 0; background: #eee; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.tbp-sl-st { font-size: 13.5px; color: #555; margin: 0 0 12px; }
.tbp-sl-hint { font-size: 13px; color: #666; margin: 10px 0 6px; }
.tbp-sl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.tbp-sl-b { display: block; border: 0; background: #eef3f7; color: #0b5d8a; border-radius: 10px; padding: 12px 8px; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; }
.tbp-sl-b.big { width: 100%; background: #0073aa; color: #fff; padding: 14px; font-size: 15px; }
.tbp-sl-url { word-break: break-all; background: #f4f4f5; border-radius: 8px; padding: 10px; font-size: 12px; color: #333; }
.tbp-sl-ol { padding-inline-start: 20px; line-height: 2; font-size: 14.5px; }
.tbp-sl-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.tbp-sl-item { background: #f6f7f8; border: 1px solid #e3e5e8; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.tbp-sl-item[data-order] { cursor: pointer; border-color: #0073aa; }
.tbp-sl-item span { font-size: 13px; color: #444; }
.tbp-sl-item small { font-size: 11.5px; color: #888; }

.tbp-sl-hl { outline: 3px solid #f0b429 !important; outline-offset: 3px; animation: tbpSlGlow 1.2s ease 3; border-radius: 6px; }

@keyframes tbpSlIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes tbpSlUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes tbpSlPulse { 0%, 100% { box-shadow: 0 8px 26px rgba(255,80,80,.25); } 50% { box-shadow: 0 8px 34px rgba(255,80,80,.7); } }
@keyframes tbpSlGlow { 0%, 100% { box-shadow: 0 0 0 rgba(240,180,41,0); } 50% { box-shadow: 0 0 22px rgba(240,180,41,.9); } }
