/* Send big file sheet (bigfile.js). Grouped inset rows, 14 px radius, hairlines, layered shadows, pill buttons.
   Orange #f08c2e only as a thin accent (1-2 px lines, progress bar, focus ring). Inputs >= 16 px, touch targets >= 44 px. */
.tbf-back{--tbf-top:0px;--tbf-bg:#f2f2f7;--tbf-card:#fff;--tbf-ink:#16181d;--tbf-mut:#6a6e7a;--tbf-line:rgba(60,60,67,.16);--tbf-tile:#eef0f5;--tbf-acc:#f08c2e;--tbf-bad:#c93a30;--tbf-ok:#2c8a57;--tbf-scrim:rgba(20,24,36,.38);--tbf-btn:#16181d;--tbf-btnink:#fff;--tbf-press:rgba(30,40,80,.07);
  position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-end;justify-content:center;padding:var(--tbf-top) 0 0;background:var(--tbf-scrim);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Arial,sans-serif;color:var(--tbf-ink);box-sizing:border-box;animation:tbf-fade .18s ease-out}
.tbf-back[data-theme=dark]{--tbf-bg:#1c1c1f;--tbf-card:#2a2a2e;--tbf-ink:#f4f4f6;--tbf-mut:#a0a3ae;--tbf-line:rgba(255,255,255,.14);--tbf-tile:#38383d;--tbf-bad:#ff6b5e;--tbf-ok:#59c389;--tbf-scrim:rgba(0,0,0,.55);--tbf-btn:#f4f4f6;--tbf-btnink:#16181d;--tbf-press:rgba(255,255,255,.08)}
.tbf-back *{box-sizing:border-box}
.tbf-back.tbf-over .tbf-sheet{box-shadow:0 0 0 2px var(--tbf-acc),0 24px 60px rgba(0,0,0,.3)}
.tbf-sheet{width:100%;max-width:520px;max-height:100%;display:flex;flex-direction:column;background:var(--tbf-bg);border-radius:14px 14px 0 0;box-shadow:0 -1px 2px rgba(0,0,0,.06),0 -8px 24px rgba(0,0,0,.12),0 -24px 60px rgba(0,0,0,.18);overflow:hidden;animation:tbf-up .26s cubic-bezier(.2,.8,.2,1)}
.tbf-desk{align-items:center;padding-bottom:16px}
.tbf-desk .tbf-sheet{border-radius:14px;max-height:calc(100% - 16px);box-shadow:0 1px 2px rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.14),0 24px 60px rgba(0,0,0,.2)}
.tbf-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px 6px 8px;min-height:56px;border-bottom:2px solid var(--tbf-acc);background:var(--tbf-bg);flex:none}
.tbf-title{flex:1;text-align:center;font-size:17px;font-weight:600;letter-spacing:-.2px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tbf-hbtn{min-height:44px;min-width:64px;padding:0 12px;border:0;background:none;color:var(--tbf-ink);font:inherit;font-size:16px;border-radius:22px;cursor:pointer;touch-action:manipulation}
.tbf-hbtn:active{background:var(--tbf-press)}
.tbf-hs{min-width:64px;flex:none}
.tbf-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px 8px;-webkit-overflow-scrolling:touch}
.tbf-lead{margin:0 4px 14px;font-size:14px;line-height:1.4;color:var(--tbf-mut)}
.tbf-cap{display:flex;justify-content:space-between;gap:8px;margin:16px 6px 6px;font-size:12.5px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--tbf-mut)}
.tbf-capr{font-weight:500;text-transform:none;letter-spacing:0}
.tbf-group{list-style:none;margin:0;padding:0;background:var(--tbf-card);border-radius:14px;box-shadow:0 1px 2px rgba(0,0,0,.05),0 2px 8px rgba(0,0,0,.04);overflow:hidden}
.tbf-row{position:relative;display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 8px 8px 14px;margin:0}
.tbf-row+.tbf-row{border-top:1px solid var(--tbf-line)}
.tbf-tile{flex:none;width:36px;height:36px;border-radius:10px;background:var(--tbf-tile);display:inline-flex;align-items:center;justify-content:center}
.tbf-tile svg{width:20px;height:20px;fill:none;stroke:var(--tbf-ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tbf-tile-acc{box-shadow:inset 0 0 0 1px var(--tbf-acc)}
.tbf-tile-bad svg{stroke:var(--tbf-bad)}
.tbf-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tbf-name{font-size:16px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tbf-sub{font-size:13px;color:var(--tbf-mut);line-height:1.25}
.tbf-bar{display:block;height:4px;margin-top:6px;border-radius:2px;background:var(--tbf-line);overflow:hidden}
.tbf-bar i{display:block;height:100%;width:0;background:var(--tbf-acc);border-radius:2px;transition:width .18s linear}
.tbf-pct{flex:none;min-width:44px;text-align:right;padding-right:8px;font-size:15px;font-variant-numeric:tabular-nums;color:var(--tbf-ink)}
.tbf-ok svg{width:22px;height:22px;fill:none;stroke:var(--tbf-ok);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.tbf-bad .tbf-sub,.tbf-bad .tbf-name{color:var(--tbf-bad)}
.tbf-bad .tbf-bar i{background:var(--tbf-bad)}
.tbf-icobtn{flex:none;width:44px;height:44px;border:0;border-radius:22px;background:none;color:var(--tbf-mut);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation}
.tbf-icobtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.tbf-icobtn:active{background:var(--tbf-press)}
.tbf-mini{flex:none;min-height:44px;padding:0 12px;border:1px solid var(--tbf-line);border-radius:22px;background:none;color:var(--tbf-ink);font:inherit;font-size:14px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;touch-action:manipulation}
.tbf-mini svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tbf-drop{cursor:pointer;min-height:64px}
.tbf-drop:active{background:var(--tbf-press)}
.tbf-plus{flex:none;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;color:var(--tbf-mut)}
.tbf-plus svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.tbf-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.tbf-input:focus-visible+*,.tbf-drop:focus-within{outline:2px solid var(--tbf-acc);outline-offset:-2px;border-radius:14px}
.tbf-seg{flex:none;display:inline-flex;padding:2px;border-radius:22px;background:var(--tbf-tile)}
.tbf-seg button{min-height:44px;min-width:64px;padding:0 14px;border:0;border-radius:20px;background:none;color:var(--tbf-ink);font:inherit;font-size:15px;font-weight:500;cursor:pointer;touch-action:manipulation}
.tbf-seg button.on{background:var(--tbf-card);box-shadow:0 0 0 1px var(--tbf-line),0 1px 3px rgba(0,0,0,.12)}
.tbf-pw{padding-right:14px}
.tbf-field{flex:1;min-width:0;min-height:44px;border:0;background:none;color:var(--tbf-ink);font:inherit;font-size:16px;outline:0}
.tbf-field::placeholder{color:var(--tbf-mut)}
.tbf-pw:focus-within{box-shadow:inset 0 -2px 0 var(--tbf-acc)}
.tbf-note{margin:10px 6px 4px;font-size:13px;line-height:1.4;color:var(--tbf-mut)}
.tbf-alert{display:flex;gap:12px;align-items:center;margin-top:12px;padding:10px 14px;border-radius:14px;background:var(--tbf-card);border:1px solid var(--tbf-bad);font-size:14px;line-height:1.4}
.tbf-foot{flex:none;display:flex;gap:10px;justify-content:center;padding:10px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--tbf-line);background:var(--tbf-bg)}
.tbf-btn{flex:1;min-height:48px;padding:0 20px;border:1px solid var(--tbf-line);border-radius:999px;background:var(--tbf-card);color:var(--tbf-ink);font:inherit;font-size:16px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;touch-action:manipulation;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.tbf-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tbf-btn:active{transform:scale(.98)}
.tbf-primary{background:var(--tbf-btn);color:var(--tbf-btnink);border-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.18),0 6px 16px rgba(0,0,0,.16)}
.tbf-btn[disabled]{opacity:.4;cursor:default;box-shadow:none}
.tbf-back button:focus-visible{outline:2px solid var(--tbf-acc);outline-offset:2px}
@keyframes tbf-fade{from{opacity:0}to{opacity:1}}
@keyframes tbf-up{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.tbf-back,.tbf-sheet{animation:none}.tbf-bar i{transition:none}}
