/* =====================================================================
   Breezy Tips theme: one consistent look for every page.
   Loaded after each page's own styles; everything is scoped to body.bt-app.
   ===================================================================== */
:root {
  --bt-sky: #0ea5e9;
  --bt-blue: #2563eb;
  --bt-indigo: #4f46e5;
  --bt-grad: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #4f46e5 100%);
  --bt-ink: #0f172a;
  --bt-ink-2: #334155;
  --bt-mute: #64748b;
  --bt-line: #e2e8f0;
  --bt-soft: #f1f5f9;
  --bt-card: #ffffff;
  --bt-ok-bg: #dcfce7; --bt-ok: #166534;
  --bt-err-bg: #fee2e2; --bt-err: #991b1b;
  --bt-warn-bg: #fef3c7; --bt-warn: #92400e;
  --bt-info-bg: #e0f2fe; --bt-info: #075985;
  --bt-radius: 18px;
  --bt-radius-sm: 12px;
  --bt-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -14px rgba(15, 23, 42, .18);
  --bt-focus: 0 0 0 3px rgba(37, 99, 235, .25);
  --bt-safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- page ---------- */
body.bt-app {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--bt-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(14, 165, 233, .14), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(79, 70, 229, .10), transparent 60%),
    #f4f6fb;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  padding-bottom: calc(76px + var(--bt-safe-b)); /* room for the music button */
}
.bt-app *, .bt-app *::before, .bt-app *::after { box-sizing: border-box; }

/* ---------- brand bar ---------- */
.bt-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  padding-top: env(safe-area-inset-top, 0px);
}
.bt-topbar-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
.bt-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bt-ink); }
.bt-brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 10px -4px rgba(37, 99, 235, .6); }
.bt-brand span { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.bt-brand b { font-weight: 800; background: var(--bt-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bt-topnav { display: flex; gap: 6px; align-items: center; min-width: 0; }
.bt-topnav a { text-decoration: none; color: var(--bt-ink-2); font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--bt-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.bt-topnav a:hover { background: #e2e8f0; }
.bt-topnav a.bt-user::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 7px; vertical-align: 1px; }

/* ---------- containers ---------- */
.bt-app .wrapper, .bt-app .tp-wrap {
  width: 100%;
  margin-left: auto; margin-right: auto;
  padding: 20px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
}
.bt-app .tp-wrap { max-width: 560px; }
.bt-app .card, .bt-app .tp-card {
  background: var(--bt-card);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--bt-radius);
  box-shadow: var(--bt-shadow);
  padding: clamp(16px, 3.2vw, 26px);
  margin-bottom: 16px;
}
.bt-app .card + .card { margin-top: 0; }
.bt-app .card .card { box-shadow: none; border-color: var(--bt-line); }

/* ---------- type ---------- */
.bt-app h1 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; text-align: center; color: var(--bt-ink); }
.bt-app h2 { font-size: 16px; font-weight: 750; margin: 20px 0 10px; color: var(--bt-ink); letter-spacing: -.01em; }
.bt-app h3 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
.bt-app .tp-card h2 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--bt-mute); }
.bt-app .subtitle, .bt-app .tp-sub, .bt-app .date-label { text-align: center; color: var(--bt-mute); font-size: 14px; margin-bottom: 16px; }
.bt-app .muted, .bt-app .help, .bt-app .hint, .bt-app .subnote, .bt-app small { color: var(--bt-mute); }
.bt-app .help, .bt-app .hint { font-size: 12.5px; margin-top: 4px; }
.bt-app .section-title { font-size: 12.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--bt-mute); margin: 0 0 10px; }
.bt-app .section { border: 1px solid var(--bt-line); border-radius: var(--bt-radius-sm); padding: 14px; margin: 14px 0; background: #fcfdff; }
.bt-app a { color: var(--bt-blue); }
.bt-app .text-right, .bt-app td.r, .bt-app th.r { text-align: right; }
.bt-app .text-center { text-align: center; }

/* ---------- messages ---------- */
.bt-app .msg-ok, .bt-app .msg-err, .bt-app .msg-warn, .bt-app .msg-info, .bt-app .error, .bt-app .notice, .bt-app .tp-msg {
  border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 0 0 10px; border: 1px solid transparent; line-height: 1.4;
}
.bt-app .msg-ok, .bt-app .tp-ok { background: var(--bt-ok-bg); color: var(--bt-ok); border-color: #bbf7d0; }
.bt-app .msg-err, .bt-app .error, .bt-app .tp-err { background: var(--bt-err-bg); color: var(--bt-err); border-color: #fecaca; }
.bt-app .msg-warn { background: var(--bt-warn-bg); color: var(--bt-warn); border-color: #fde68a; }
.bt-app .msg-info, .bt-app .notice { background: var(--bt-info-bg); color: var(--bt-info); border-color: #bae6fd; }

/* ---------- form fields ---------- */
.bt-app .field, .bt-app .tp-field { display: block; margin: 0 0 14px; }
.bt-app .field label, .bt-app .tp-field > span, .bt-app label.lbl { display: block; font-size: 13.5px; font-weight: 650; color: var(--bt-ink-2); margin: 0 0 6px; }
.bt-app input[type=text], .bt-app input[type=email], .bt-app input[type=password], .bt-app input[type=number],
.bt-app input[type=date], .bt-app input[type=time], .bt-app input[type=datetime-local], .bt-app input[type=tel],
.bt-app input[type=search], .bt-app input:not([type]), .bt-app select, .bt-app textarea {
  width: 100%; max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit; font-size: 16px; /* 16px stops iPhone zooming in */
  color: var(--bt-ink);
  background: #fff;
  border: 1.5px solid #d6dde8;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.bt-app select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.bt-app input:focus, .bt-app select:focus, .bt-app textarea:focus { border-color: var(--bt-blue); box-shadow: var(--bt-focus); }
.bt-app input[type=checkbox], .bt-app input[type=radio] { width: 20px; height: 20px; accent-color: var(--bt-blue); vertical-align: middle; margin: 0 6px 0 0; }
.bt-app input[type=file] { width: 100%; padding: 10px; border: 1.5px dashed #c7d2fe; border-radius: 12px; background: #f8faff; font-size: 14px; }
.bt-app table input[type=text], .bt-app table input[type=number], .bt-app table select { min-height: 38px; padding: 6px 8px; font-size: 15px; border-radius: 9px; }
.bt-app .tp-check { display: flex; gap: 10px; align-items: center; font-size: 15px; margin: 12px 0; }

/* rows of fields stack on small screens */
.bt-app .row, .bt-app .row-2, .bt-app .grid2 { display: flex; flex-wrap: wrap; gap: 12px; }
.bt-app .row > *, .bt-app .row-2 > *, .bt-app .grid2 > * { flex: 1 1 180px; min-width: 0; }
.bt-app .row-2 .row-2 > * { flex: 1 1 70px; }

/* ---------- buttons ---------- */
.bt-app button, .bt-app input[type=submit], .bt-app .btn, .bt-app .tp-primary, .bt-app .tp-secondary {
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
  min-height: 44px; padding: 11px 18px;
  border-radius: 12px; border: 0; cursor: pointer;
  color: #fff; background: var(--bt-grad);
  box-shadow: 0 8px 18px -10px rgba(37, 99, 235, .8);
  transition: transform .08s, filter .15s, box-shadow .15s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  -webkit-tap-highlight-color: transparent;
}
.bt-app button:hover, .bt-app .btn:hover, .bt-app .tp-primary:hover { filter: brightness(1.05); }
.bt-app button:active, .bt-app .btn:active, .bt-app .tp-primary:active { transform: translateY(1px); }
.bt-app button:disabled { opacity: .55; cursor: default; }
.bt-app button:focus-visible, .bt-app a:focus-visible { outline: none; box-shadow: var(--bt-focus); }
.bt-app button.secondary, .bt-app .btn.secondary, .bt-app .tp-secondary, .bt-app a.secondary {
  background: var(--bt-soft); color: var(--bt-ink); box-shadow: none; border: 1px solid var(--bt-line);
}
.bt-app button.danger, .bt-app .btn.danger { background: #dc2626; box-shadow: 0 8px 18px -10px rgba(220, 38, 38, .8); }
.bt-app .tp-primary, .bt-app .tp-secondary { display: flex; width: 100%; margin-top: 10px; }
.bt-app form > button[type=submit]:only-of-type:not(.tp-link):not(.tp-danger-link) { width: 100%; }
.bt-app .tp-link, .bt-app .tp-danger-link, .bt-app button.link {
  background: none; box-shadow: none; color: var(--bt-blue); min-height: 0; padding: 6px 4px; font-weight: 650; width: auto;
}
.bt-app .tp-danger-link { color: #b91c1c; font-size: 13px; display: block; margin: 14px auto 0; }

/* dashboard / admin menu buttons */
.bt-app .action-grid { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bt-app .action-grid { grid-template-columns: 1fr 1fr; } .bt-app .action-grid > .big, .bt-app .action-grid > .note { grid-column: 1 / -1; } }
.bt-app .action-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 12px 14px; border-radius: 14px; text-decoration: none;
  font-weight: 700; font-size: 15px; color: #fff; background: var(--bt-grad); box-shadow: 0 10px 20px -12px rgba(37, 99, 235, .9);
}
.bt-app .action-grid a.secondary { background: #fff; color: var(--bt-ink); border: 1px solid var(--bt-line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.bt-app .action-grid a.secondary:hover { border-color: #c7d2fe; background: #f8faff; }
.bt-app .action-grid a.big { min-height: 64px; font-size: 18px; }
.bt-app .action-grid a.end { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 10px 20px -12px rgba(22, 163, 74, .9); }
/* bottom-of-page links (Back to Home, Log out, Back to login, …) look like the secondary buttons */
.bt-app .footer-link, .bt-app .links, .bt-app .bt-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.bt-app .footer-link a, .bt-app .links a, .bt-app .bt-links a {
  flex: 1 1 140px; display: flex; align-items: center; justify-content: center; text-align: center; box-sizing: border-box;
  min-height: 44px; padding: 11px 18px; border-radius: 12px;
  font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none;
  background: var(--bt-soft); color: var(--bt-ink); border: 1px solid var(--bt-line);
  transition: transform .08s, filter .15s; -webkit-tap-highlight-color: transparent;
}
.bt-app .footer-link a:hover, .bt-app .links a:hover, .bt-app .bt-links a:hover { filter: brightness(.97); }
.bt-app .footer-link a:active, .bt-app .links a:active, .bt-app .bt-links a:active { transform: translateY(1px); }

/* ---------- tables ---------- */
.bt-app .bt-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0 14px;
  border: 1px solid var(--bt-line); border-radius: 14px; background: #fff; }
.bt-app .bt-scroll > table { margin: 0; border: 0; }
.bt-app table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.bt-app th { background: #f8fafc; color: var(--bt-mute); font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em;
  text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--bt-line); white-space: nowrap; }
.bt-app td { padding: 10px 10px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.bt-app tbody tr:last-child td, .bt-app table tr:last-child td { border-bottom: 0; }
.bt-app tbody tr:hover td { background: #fafcff; }
.bt-app .pill, .bt-app .badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.bt-app .badge { background: #e0e7ff; color: #3730a3; }
.bt-app .pill-red, .bt-app .pill.todo { background: #fee2e2; color: #991b1b; }
.bt-app .pill-green, .bt-app .pill.ok { background: #dcfce7; color: #166534; }
.bt-app .pill.wait { background: #fef3c7; color: #92400e; }
.bt-app .stat-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #eef2f7; }
.bt-app .stat-row .value { font-weight: 750; font-variant-numeric: tabular-nums; }

/* ---------- number keypads ---------- */
.bt-app .bt-keypad, .bt-app .pin-keypad, .bt-app .keypad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 4px auto 14px;
  position: static; width: auto;
}
.bt-app .bt-keypad button, .bt-app .pin-keypad button, .bt-app .keypad button {
  min-height: 56px; font-size: 22px; font-weight: 650; border-radius: 16px;
  background: #fff; color: var(--bt-ink); border: 1px solid var(--bt-line); box-shadow: 0 2px 0 #e2e8f0; width: 100%;
}
.bt-app .bt-keypad button:active, .bt-app .pin-keypad button:active, .bt-app .keypad button:active { background: #eef2ff; transform: translateY(1px); box-shadow: none; }
.bt-app .bt-keypad button[data-k="CLR"], .bt-app .pin-keypad button[data-k="CLR"], .bt-app .keypad .keypad-wide { font-size: 14px; color: var(--bt-mute); }
.bt-app .keypad .keypad-wide { grid-column: 1 / -1; min-height: 44px; }
.bt-app .keypad-wrapper .keypad { max-width: 100%; }

/* old on/off switch (Log Shift email toggle) */
.bt-app .switch { width: auto; min-height: 36px; padding: 4px 14px 4px 4px; border-radius: 999px; background: #e2e8f0; color: var(--bt-ink-2); box-shadow: none; gap: 10px; }
.bt-app .switch.switch-on { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.bt-app .switch .switch-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); display: inline-block; }

/* ---------- sign-in ---------- */
.bt-app.bt-auth .tp-wrap { max-width: 440px; padding-top: 28px; }
.bt-app .bt-hero { text-align: center; margin-bottom: 18px; }
.bt-app .bt-hero img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 14px 28px -12px rgba(37, 99, 235, .7); }
.bt-app .bt-hero h1 { margin: 12px 0 4px; font-size: 26px; }
.bt-app .bt-hero p { margin: 0; color: var(--bt-mute); font-size: 14px; }
.bt-app .bt-passkey-btn { width: 100%; background: #0f172a; box-shadow: 0 10px 20px -12px rgba(15, 23, 42, .9); margin-bottom: 14px; }
.bt-app .bt-pin-input { letter-spacing: .5em; text-align: center; font-size: 22px; font-weight: 700; }
.bt-app .bt-passkey-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef2f7; }
.bt-app .bt-passkey-row small { display: block; }

/* ---------- tip entry ---------- */
.bt-app .tipgrid { gap: 10px; }
.bt-app .tipfield { border-radius: 14px; padding: 10px 12px; border: 1.5px solid var(--bt-line); background: #fff; transition: border-color .15s, box-shadow .15s; }
.bt-app .tipfield:focus-within { border-color: var(--bt-blue); box-shadow: var(--bt-focus); }
.bt-app .tipfield:nth-child(n+3) { background: #fbfcfe; }
.bt-app .tipinput input { border: 0 !important; box-shadow: none !important; min-height: 34px; padding: 0; font-size: 21px; font-weight: 750; background: transparent; }
.bt-app .tiplabel { font-size: 13px; }
.bt-app .tiptotal { background: var(--bt-grad); color: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 12px 26px -14px rgba(37, 99, 235, .9); }
.bt-app .tiptotal strong { color: #fff; font-size: 26px; }
.bt-app .signbtn { min-height: 32px; width: 32px; padding: 0; font-size: 18px; box-shadow: none; color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; }
.bt-app .signbtn.neg { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
@media (max-width: 360px) { .bt-app .tipgrid { grid-template-columns: 1fr; } }

/* start popup tweaks to match */
.bt-app .tp-step { min-height: 44px; width: 44px; padding: 0; font-size: 13px; color: var(--bt-ink-2); background: #fff; border: 1px solid var(--bt-line); box-shadow: none; border-radius: 50%; }
.bt-app .tp-close { min-height: 34px; padding: 0; color: #475569; background: #f1f5f9; box-shadow: none; width: 34px; }
.bt-app .tp-chip span { border-radius: 999px; }
@media (max-width: 380px) { .bt-app .tp-time { min-width: 0; font-size: 38px; } .bt-app .tp-step { width: 38px; min-height: 38px; } }

/* ---------- admin: songs ---------- */
.bt-app .bt-song { border: 1px solid var(--bt-line); border-radius: 14px; padding: 12px; margin: 10px 0; background: #fff; }
.bt-app .bt-song-title { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.bt-app .bt-song audio { width: 100%; height: 40px; }
.bt-app .bt-song-meta { font-size: 12.5px; color: var(--bt-mute); margin-top: 6px; }

/* ---------- music toggle (top bar, next to your name) ---------- */
.bt-music-slot { display: inline-flex; }
.bt-music-slot:empty { display: none; }
.bt-music {
  position: relative; flex: 0 0 auto;
  width: 36px !important; height: 36px; min-height: 36px !important; padding: 0 !important; margin: 0 !important;
  border-radius: 50% !important; font-size: 17px !important;
  color: #fff; background: var(--bt-grad) !important;
  box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .9) !important;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, .85) !important;
}
.bt-music.bt-music-float { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + var(--bt-safe-b, 0px)); width: 46px !important; height: 46px; min-height: 46px !important; font-size: 20px !important; }
.bt-music span { line-height: 1; transform: translateX(-1px); }
.bt-music.off { background: #fff !important; color: #64748b !important; border-color: #e2e8f0 !important; box-shadow: none !important; }
.bt-music i { position: absolute; width: 22px; height: 2.5px; background: #ef4444; border-radius: 2px; transform: rotate(-45deg); }
.bt-music.waiting { animation: btpulse 1.8s ease-in-out infinite; }
@keyframes btpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); } 50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0); } }
@media (prefers-reduced-motion: reduce) { .bt-music.waiting { animation: none; } }

/* ---------- install / notification card ---------- */
.bt-app .tp-appcard { border-radius: 14px; }

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  body.bt-app { font-size: 15px; }
  .bt-app .wrapper, .bt-app .tp-wrap { padding-top: 14px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .bt-app .card, .bt-app .tp-card { border-radius: 16px; }
  .bt-app th, .bt-app td { padding: 9px 8px; }
  .bt-brand span { font-size: 17px; }
  .bt-topnav a { padding: 6px 10px; font-size: 13px; }
}
@media (min-width: 1024px) {
  .bt-app .wrapper { padding-top: 28px; }
}
/* print: no chrome */
@media print { .bt-topbar, .bt-music, .tp-appcard { display: none !important; } body.bt-app { background: #fff; padding: 0; } .bt-app .card { box-shadow: none; } }

/* ---------- refinements ---------- */
.bt-app .tiptotal { margin-bottom: 14px; }
/* Log Shift: phones already show a number pad for guests, so the old on-screen pad is hidden */
.bt-app .keypad-wrapper { display: block; }
.bt-app .keypad-wrapper .keypad { display: none; }
/* Log Shift: email on/off switch */
.bt-app .switch { position: relative; width: 74px; min-width: 74px; height: 36px; min-height: 36px; padding: 0; border-radius: 999px; background: #cbd5e1; box-shadow: none; }
.bt-app .switch .switch-thumb { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; transition: left .15s; }
.bt-app .switch.switch-on .switch-thumb { left: 42px; }
.bt-app .switch .switch-label { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-size: 12.5px; font-weight: 750; right: 11px; color: #475569; }
.bt-app .switch.switch-on .switch-label { right: auto; left: 12px; color: #fff; }
/* summary tables: a row label (th next to td) reads like a label, not a column heading */
.bt-app tr:has(td) > th { background: transparent; color: var(--bt-ink-2); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; white-space: normal; border-bottom: 1px solid #eef2f7; }
/* music button: a touch smaller on phones */

.bt-app .switch .switch-thumb { transform: none; }
.bt-app .tp-modal h2 { font-size: 21px; margin: 8px 0 2px; text-transform: none; letter-spacing: -.01em; color: var(--bt-ink); }
.bt-app .bt-brand, .bt-app .bt-brand:visited { color: var(--bt-ink); }

/* ---------- Get the app ---------- */
.bt-app.bt-getapp .tp-wrap { max-width: 560px; }
.bt-app .bt-ga { border: 1px solid var(--bt-line, #e2e8f0); border-radius: 16px; padding: 14px 16px 6px; margin: 12px 0; background: #fff; }
.bt-app .bt-ga h2 { font-size: 18px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bt-app .bt-ga ol { margin: 0 0 10px; padding-left: 20px; line-height: 1.55; font-size: 15px; }
.bt-app .bt-ga li { margin: 4px 0; }
.bt-app .bt-ga [data-install] { width: 100%; margin: 4px 0 10px; }
.bt-app .bt-ga-mine { border-color: #93c5fd; box-shadow: 0 10px 24px -16px rgba(37, 99, 235, .55); }
.bt-app .bt-ga-tag { font-size: 12px; font-weight: 700; color: #1d4ed8; background: #dbeafe; border-radius: 999px; padding: 2px 9px; }
.bt-app .bt-ga-ico { display: inline-block; min-width: 1.4em; text-align: center; font-weight: 700; color: #2563eb; }
.bt-app .bt-ga-alt, .bt-app .bt-ga-note { font-size: 14px; color: var(--bt-mute, #64748b); margin: 6px 0 10px; }
.bt-app .bt-ga-sub { margin: 8px 0 2px; font-size: 15px; }
.bt-app .bt-page-title { font-size: 26px; margin: 4px 0 14px; text-align: center; }

/* ---------- top bar: back + payments ---------- */
.bt-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bt-back { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: -6px; border-radius: 12px;
  color: var(--bt-ink-2, #334155); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.bt-back:hover, .bt-back:active { background: var(--bt-soft, #f1f5f9); }
.bt-topnav a.bt-pay { position: relative; display: inline-flex; align-items: center; gap: 6px; overflow: visible; }
.bt-pay-ico { font-size: 15px; line-height: 1; }
.bt-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; box-shadow: 0 2px 6px -2px rgba(239, 68, 68, .8); }
@media (max-width: 560px) {
  .bt-pay-txt { display: none; }
  .bt-topnav a.bt-pay { padding: 7px 10px; }
  .bt-topnav a.bt-pay .bt-badge { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  .bt-brand span { font-size: 16px; }
  .bt-topnav a { padding: 7px 10px; font-size: 13px; }
}
@media (max-width: 380px) { .bt-brand span { display: none; } }

/* ---------- overdue payments banner ---------- */
.bt-overdue { max-width: 1200px; margin: 10px auto 0; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.bt-overdue[hidden] { display: none; }
.bt-overdue p { margin: 0 0 8px; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45;
  background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }
.bt-overdue p span { color: #9a3412; font-size: 13px; }
.bt-overdue p.bt-overdue-me { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.bt-overdue a { color: inherit; font-weight: 700; white-space: nowrap; }

/* ---------- buyouts ---------- */
.bt-app .bt-buyout-toggle { margin-top: 6px; font-weight: 600; }
.bt-app .bt-buyout { border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 16px; padding: 12px 14px 4px; margin: 8px 0 14px; }
.bt-app .bt-buyout[hidden], .bt-app [data-tips-section][hidden] { display: none; }
.bt-app .bt-buyout-note { font-size: 14px; color: #3730a3; margin: 0 0 10px; line-height: 1.45; }
.bt-app .bt-buyout-post { font-size: 15px; margin: -2px 0 12px; color: #1e1b4b; }
.bt-app .bt-buyout-post b { font-size: 17px; }
.bt-app .bt-buyout-box { border: 1px solid #c7d2fe; background: #f5f7ff; border-radius: 16px; padding: 12px 14px; margin: 6px 0 16px; }
.bt-app .bt-buyout-box h2 { margin-top: 0; }
.bt-app .bt-buyout-sub { font-size: 14px; color: #3730a3; margin: 0 0 10px; }
.bt-app .bt-buyout-totals { margin-bottom: 10px; }
.bt-app .bt-buyout-totals small { font-weight: 400; color: #64748b; }

/* ---------- Shift Switch ---------- */
.bt-app .bt-switch-btn { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bt-app .bt-switch-ico { font-size: 18px; line-height: 1; }
.bt-app .bt-switch-hot { border-color: #93c5fd !important; background: linear-gradient(180deg, #eff6ff, #fff) !important; }
.bt-app .bt-switch-avail { font-size: 12px; font-weight: 700; color: #1d4ed8; background: #dbeafe; border-radius: 999px; padding: 2px 9px; }
.bt-app.bt-switch .tp-wrap { max-width: 620px; }
.bt-app .bt-sw-remind { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: 14px; padding: 10px 14px; font-size: 14px; margin: 4px 0 14px; }
.bt-app .bt-sw-card { border: 1px solid var(--bt-line, #e2e8f0); background: #fff; border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.bt-app .bt-sw-off { opacity: .7; }
.bt-app .bt-sw-pending { border-color: #93c5fd; background: #f8fbff; }
.bt-app .bt-sw-done { border-color: #bbf7d0; background: #f0fdf4; }
.bt-app .bt-sw-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bt-app .bt-sw-role { font-weight: 800; font-size: 17px; }
.bt-app .bt-sw-when { font-size: 15px; color: var(--bt-ink-2, #334155); }
.bt-app .bt-sw-by, .bt-app .bt-sw-status, .bt-app .bt-sw-why { font-size: 13px; color: var(--bt-mute, #64748b); margin-top: 6px; }
.bt-app .bt-sw-what { font-size: 15px; line-height: 1.45; }
.bt-app .bt-sw-kind { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.bt-app .bt-sw-trade { background: #ede9fe; color: #5b21b6; }
.bt-app .bt-sw-giveaway { background: #dcfce7; color: #166534; }
.bt-app .bt-sw-either { background: #dbeafe; color: #1e40af; }
.bt-app .bt-sw-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 10px; }
.bt-app .bt-sw-actions form { margin: 0; }
.bt-app .bt-sw-actions button, .bt-app .bt-sw-actions summary { width: auto; min-width: 130px; margin: 0; }
.bt-app .bt-sw-offer { flex: 1 1 100%; }
.bt-app .bt-sw-offer[open] summary { margin-bottom: 8px; }
.bt-app .bt-sw-offer summary, .bt-app .bt-sw-new summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bt-app .bt-sw-offer summary::-webkit-details-marker, .bt-app .bt-sw-new summary::-webkit-details-marker { display: none; }
.bt-app .bt-sw-new[open] summary { margin-bottom: 10px; }
.bt-app .bt-sw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bt-app .bt-sw-kinds { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- end-of-shift cheese explosion ---------- */
.bt-cheese { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.bt-cheese span { position: absolute; left: 50%; top: 45%; line-height: 1; will-change: transform, opacity; user-select: none; }

/* ---------- opt out of the tip pool ---------- */
.bt-app .bt-optout { border: 1px solid #fde68a; background: #fffbeb; border-radius: 14px; padding: 10px 14px 2px; margin: -2px 0 12px; }
.bt-app .bt-optout[hidden] { display: none; }
.bt-app .bt-optout p { margin: 0 0 8px; font-size: 14px; color: #78350f; line-height: 1.45; }
.bt-app .pill-optout { display: inline-block; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* Schedule reader (admin/schedule.php) */
.bt-app.bt-sched-wide .tp-wrap { max-width: 1080px; }
.bt-app .bt-sch-table td { vertical-align: top; padding: 6px 4px; }
.bt-app .bt-sch-table input[type=text], .bt-app .bt-sch-table input[type=date], .bt-app .bt-sch-table input[type=time], .bt-app .bt-sch-table select {
  width: auto; min-height: 38px; padding: 6px 8px; font-size: 14px; border-radius: 9px; }
.bt-app .bt-sch-table select { padding-right: 28px; background-position: right 9px center; }
.bt-app .bt-sch-table input.bt-sch-name { width: 120px; }
.bt-app .bt-sch-table select[name$="[user_id]"] { width: 175px; }
.bt-app .bt-sch-table select[name$="[role_id]"] { width: 160px; }
.bt-app .bt-sch-table input[type=date] { width: 150px; }
.bt-app .bt-sch-table input[type=time] { width: 118px; }
.bt-app .bt-sch-table small { display: block; color: var(--tp-mute, #64748b); font-size: 11px; margin-top: 2px; }
.bt-app .bt-sch-need td { background: #fef2f2; }
.bt-app .bt-sch-need select[name$="[user_id]"] { border-color: #f87171; }
.bt-app .bt-sch-unsure td { background: #fffbeb; }
.bt-app .bt-sch-off td { opacity: .45; }
.bt-app .bt-sch-needtxt { color: #b91c1c; }
.bt-app .bt-sch-unsuretxt { color: #92400e; }
.bt-app .bt-sch-notes { margin: 6px 0 0; padding-left: 18px; }
.bt-app .bt-sch-add { margin-top: 12px; }
.bt-app .bt-sch-busy { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #eff6ff; color: #1e3a8a; font-size: 14px; }
.bt-app .bt-sch-test { margin-top: 8px; font-size: 13px; }
.bt-app .bt-sch-day { margin: 12px 0; }
.bt-app .bt-sch-dayhead { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.bt-app .bt-sch-six td { background: #fffbeb; font-weight: 600; }
.bt-app .bt-sch-del { margin-top: 12px; color: #b91c1c; }
/* Shift Switch: pick one of your scheduled shifts */
.bt-app .bt-sw-picks { margin: 10px 0 4px; }
.bt-app .bt-sw-picks > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bt-app button.bt-sw-pick { display: inline-block; min-height: 0; margin: 0 6px 6px 0; padding: 7px 11px; border-radius: 999px; border: 1.5px solid #d6dde8;
  background: #fff; box-shadow: none; font-size: 13px; font-weight: 600; color: #374151; }
.bt-app button.bt-sw-pick.on { border-color: var(--bt-blue, #2563eb); background: #eff6ff; color: #1d4ed8; }
.bt-app .bt-sw-six { font-size: 13px; color: #92400e; background: #fffbeb; border-radius: 10px; padding: 6px 10px; margin-top: 8px; }
/* Start Shift: scheduled time hint */
.bt-app .tp-sched-hint { text-align: center; font-size: 14px; color: #1e3a8a; background: #eff6ff; border-radius: 10px; padding: 7px 10px; margin: 0 0 10px; }
/* Schedule reader: "Who is this?" */
.bt-app .bt-sch-who { border: 1.5px solid #fecaca; background: #fff7f7; border-radius: 16px; padding: 4px 14px 10px; margin: 12px 0; }
.bt-app .bt-sch-who h2 { color: #b91c1c; }
.bt-app .bt-sch-ask { border-top: 1px solid #fde2e2; padding: 10px 0; }
.bt-app .bt-sch-ask:first-of-type { border-top: 0; }
.bt-app .bt-sch-ask.done { opacity: .6; }
.bt-app .bt-sch-ask.done .bt-sch-askname::after { content: " ✓"; color: #15803d; }
.bt-app .bt-sch-askname { font-weight: 700; margin-bottom: 6px; }
.bt-app .bt-sch-cands { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.bt-app .bt-sch-cands .tp-chip span { font-size: 14px; padding: 7px 12px; }
.bt-app .bt-sch-cands small { color: var(--tp-mute, #64748b); font-weight: 500; }
.bt-app .bt-sch-ask select { max-width: 260px; min-height: 38px; padding: 6px 30px 6px 10px; font-size: 14px; }
.bt-app .bt-sch-auto { margin: 10px 0; font-size: 14px; }
.bt-app .bt-sch-auto summary { cursor: pointer; font-weight: 600; }
.bt-app .bt-sch-auto ul { margin: 6px 0; padding-left: 18px; }
/* My Schedule */
.bt-app .bt-ms-tabs { display: flex; gap: 6px; background: #f1f5f9; border-radius: 12px; padding: 4px; margin: 6px 0 14px; }
.bt-app .bt-ms-tabs a { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #475569; text-decoration: none; }
.bt-app .bt-ms-tabs a.on { background: #fff; color: #1d4ed8; box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.bt-app .bt-ms-empty { text-align: center; margin: 18px 0; }
.bt-app .bt-ms-day { display: flex; gap: 12px; border: 1px solid #e2e8f0; border-radius: 16px; padding: 12px; margin: 10px 0; background: #fff; }
.bt-app .bt-ms-day.bt-ms-mine { border-color: #bfdbfe; background: #f8fbff; }
.bt-app .bt-ms-day.bt-ms-today { box-shadow: 0 0 0 2px #93c5fd inset; }
.bt-app .bt-ms-date { flex: 0 0 52px; text-align: center; border-radius: 12px; background: #eff6ff; color: #1e3a8a; padding: 6px 0; align-self: flex-start; }
.bt-app .bt-ms-dow, .bt-app .bt-ms-mon { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bt-app .bt-ms-num { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.bt-app .bt-ms-body { flex: 1; min-width: 0; }
.bt-app .bt-ms-head { font-weight: 700; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bt-app .bt-ms-you { font-size: 12.5px; font-weight: 700; color: #fff; background: var(--bt-grad, #2563eb); border-radius: 999px; padding: 3px 9px; }
.bt-app .bt-ms-off { font-size: 12.5px; font-weight: 600; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 3px 9px; }
.bt-app .bt-ms-pos { margin: 6px 0; }
.bt-app .bt-ms-posname { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin-bottom: 3px; }
.bt-app .bt-ms-people { display: flex; flex-wrap: wrap; gap: 5px; }
.bt-app .bt-ms-person { font-size: 13.5px; background: #f1f5f9; border-radius: 8px; padding: 3px 8px; }
.bt-app .bt-ms-person small { color: #64748b; font-size: 11.5px; }
.bt-app .bt-ms-person.me { background: #dbeafe; color: #1e3a8a; font-weight: 700; }
.bt-app .bt-ms-none { font-size: 13px; }

/* schedule: days off */
.bt-app .bt-sch-dayoff td { background: #f8fafc; }
.bt-app .bt-sch-offtag, .bt-app .bt-ms-offlabel { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #475569; background: #e2e8f0; border-radius: 999px; padding: 2px 9px; }
.bt-app .bt-sch-offline, .bt-app .bt-ms-offlist { margin-top: 8px; font-size: 13.5px; color: #475569; }
