/* TrustyBooker shared shell. Loaded last so every page matches the landing page. */
:root{--tbx-ink:#0A1024;--tbx-ink2:#4A5470;--tbx-ink3:#5F6880;--tbx-line:#E4E7EF;--tbx-soft:#F6F7FB;--tbx-blue:#1D4ED8;--tbx-teal:#0B7A65;--tbx-card:#fff;--tbx-bg:#F6F8FC}
body.tbx[data-theme="dark"]{--tbx-ink:#F2F5FC;--tbx-ink2:#C3CCE0;--tbx-ink3:#A7B2C7;--tbx-line:rgba(255,255,255,.12);--tbx-soft:#1F2A40;--tbx-blue:#7FA6FF;--tbx-teal:#3DD6B5;--tbx-card:#1E2840;--tbx-bg:#1A2535}
body.tbx{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;background:var(--tbx-bg);padding-top:0!important}
body.tbx[data-theme="light"]{background:var(--tbx-bg)!important;color:var(--tbx-ink)}
body.tbx h1,body.tbx h2,body.tbx h3{font-family:Sora,Inter,sans-serif;letter-spacing:-.02em;text-wrap:balance}
body.tbx h1{font-size:clamp(1.7rem,3.2vw,2.4rem)!important;line-height:1.15;font-weight:700}
body.tbx[data-theme="light"] h1:not([style*="color: #fff"]):not([style*="color:#fff"]):not([style*="color: white"]){color:var(--tbx-ink);-webkit-text-fill-color:currentColor;background:none}
body.tbx .container{padding-top:24px}

/* Header */
.tbx-top{position:sticky;top:0;z-index:900;background:var(--tbx-card);border-bottom:1px solid var(--tbx-line);font-family:Inter,system-ui,sans-serif}
.tbx-top.tbx-stuck{box-shadow:0 6px 20px rgba(10,16,36,.06)}
.tbx-top *,.tbx-sheet *,.tbx-tabs *{box-sizing:border-box}
.tbx-bar{max-width:1200px;margin:0 auto;min-height:64px;padding:0 24px;display:flex;align-items:center;gap:28px}
.tbx-brand{display:flex;align-items:center;gap:10px;font:700 18px/1 Sora,sans-serif;color:var(--tbx-ink)!important;text-decoration:none!important;letter-spacing:-.02em;flex:none}
.tbx-brand img{width:36px;height:36px;border-radius:10px;display:block}
.tbx-main{display:flex;align-items:center;gap:4px;flex:1;min-width:0}
.tbx-main a{padding:9px 13px;border-radius:999px;font-size:15px;font-weight:500;color:var(--tbx-ink2);text-decoration:none;white-space:nowrap}
.tbx-main a:hover{background:var(--tbx-soft);color:var(--tbx-ink)}
.tbx-main a[aria-current]{background:#EAF0FF;color:#1D4ED8;font-weight:600}
[data-theme="dark"] .tbx-main a[aria-current]{background:rgba(127,166,255,.16);color:#A9C3FF}
.tbx-right{display:flex;align-items:center;gap:8px;flex:none;margin-left:auto}
.tbx-burger,.tbx-acct summary,.tbx-right .tb-bell{display:inline-flex!important;align-items:center;justify-content:center;width:42px!important;height:42px!important;min-height:42px!important;min-width:42px!important;padding:0!important;margin:0!important;border-radius:50%!important;border:1px solid var(--tbx-line)!important;background:var(--tbx-card)!important;color:var(--tbx-ink)!important;cursor:pointer;list-style:none;box-shadow:none!important;transform:none!important;position:relative;overflow:visible!important}
.tbx-right .tb-bell::before,.tbx-right .tb-bell::after{display:none!important}
.tbx-burger:hover,.tbx-acct summary:hover,.tbx-right .tb-bell:hover{background:var(--tbx-soft)!important}
.tbx-acct summary::-webkit-details-marker{display:none}
.tbx-burger{display:none!important}
.tbx-acct{position:relative}
.tbx-drop{position:absolute;right:0;top:calc(100% + 10px);width:240px;max-height:calc(100vh - 90px);overflow:auto;padding:8px;background:var(--tbx-card);border:1px solid var(--tbx-line);border-radius:16px;box-shadow:0 20px 50px rgba(10,16,36,.16)}
.tbx-row{display:flex;align-items:center;gap:12px;width:100%;min-height:42px;padding:9px 12px;border:0;border-radius:10px;background:none;font:500 15px/1.3 Inter,system-ui,sans-serif;color:var(--tbx-ink)!important;text-decoration:none!important;text-align:left;cursor:pointer}
.tbx-row svg{color:var(--tbx-ink3);flex:none}
.tbx-row:hover{background:var(--tbx-soft)}
.tbx-row[aria-current]{background:#EAF0FF;color:#1D4ED8!important}
[data-theme="dark"] .tbx-row[aria-current]{background:rgba(127,166,255,.16);color:#A9C3FF!important}
.tbx-row[aria-current] svg{color:inherit}
.tbx-drop hr,.tbx-panel hr{border:0;border-top:1px solid var(--tbx-line);margin:8px 4px}
.tbx-drop form,.tbx-panel form{margin:0}
.tbx-signin{padding:10px 14px;font-weight:600;font-size:15px;color:var(--tbx-ink)!important;text-decoration:none!important;white-space:nowrap}
.tbx-cta{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 20px;border-radius:999px;background:#0A1024;color:#fff!important;font-weight:600;font-size:15px;text-decoration:none!important;white-space:nowrap}
.tbx-cta:hover{background:#1A2547}
.tbx-top a:focus-visible,.tbx-top button:focus-visible,.tbx-top summary:focus-visible,.tbx-sheet a:focus-visible,.tbx-sheet button:focus-visible,.tbx-tab:focus-visible{outline:3px solid #93B4FF;outline-offset:2px}

/* Menu sheet */
.mobile-sheet.tbx-sheet{background:rgba(10,16,36,.45);z-index:10001}
.tbx-panel{position:absolute;top:0;right:0;bottom:0;width:min(86vw,340px);overflow:auto;overscroll-behavior:contain;padding:12px 14px calc(24px + env(safe-area-inset-bottom));background:var(--tbx-card);box-shadow:-20px 0 60px rgba(10,16,36,.18)}
.tbx-panel-top{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 10px 12px;font:700 18px/1 Sora,sans-serif;color:var(--tbx-ink)}
.tbx-panel-top button{width:42px;height:42px;border-radius:50%;border:1px solid var(--tbx-line);background:var(--tbx-card);color:var(--tbx-ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.tbx-panel .tbx-cta{width:100%;min-height:48px;margin-top:12px}
.tbx-panel .tbx-signin{display:block;text-align:center;margin-top:6px}
.tbx-panel .tbx-row{min-height:48px}

/* Phone tab bar */
.tbx-tabs{display:none}
@media (max-width:980px){
  .tbx-main,.tbx-acct,.tbx-right .tbx-signin{display:none!important}
  .tbx-burger{display:inline-flex!important}
  .tbx-bar{min-height:60px;padding:0 16px;gap:12px}
}
@media (max-width:768px){
  .tbx-tabs{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:890;background:var(--tbx-card);border-top:1px solid var(--tbx-line);padding:6px 6px calc(6px + env(safe-area-inset-bottom))}
  .tbx-tab{flex:1;min-width:0;min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;border-radius:12px;font:500 11.5px/1.2 Inter,system-ui,sans-serif;color:var(--tbx-ink3)!important;text-decoration:none!important;cursor:pointer;padding:0}
  .tbx-tab[aria-current]{color:var(--tbx-blue)!important;font-weight:700}
  body.tbx-in{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
  body.tbx-in .tbx-burger{display:none!important}
  body.tbx-in .trusty-float-btn{bottom:calc(78px + env(safe-area-inset-bottom))!important;right:14px!important;width:54px!important;height:54px!important}
  body.tbx .container{padding-left:16px!important;padding-right:16px!important}
}

/* Notifications */
.tbx-right .tb-dot{position:absolute;top:-5px;right:-6px;min-width:19px;height:19px;padding:0 5px;border:2px solid var(--tbx-card);border-radius:999px;background:#DC2626;color:#fff;font:700 11px/15px Inter,sans-serif;text-align:center;box-sizing:border-box;z-index:1}
.tb-drawer{position:fixed;top:74px;right:max(16px,calc((100vw - 1200px)/2 + 24px));width:400px;max-width:calc(100vw - 32px);max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px);background:var(--tbx-card,#fff);color:var(--tbx-ink,#0A1024);border:1px solid var(--tbx-line,#E4E7EF);border-radius:20px;box-shadow:0 24px 60px rgba(10,16,36,.18);display:none;z-index:950;overflow:hidden;font-family:Inter,system-ui,sans-serif;text-align:left}
.tb-drawer.open{display:flex;flex-direction:column}
.tb-drawer h4{margin:0;padding:16px 16px 12px 20px;display:flex;justify-content:space-between;align-items:center;font:700 17px/1.2 Sora,sans-serif;border-bottom:1px solid var(--tbx-line,#E4E7EF);flex:none;color:inherit}
.tb-drawer h4 .tb-x{display:flex;gap:6px;align-items:center}
.tb-close{border:0;background:none;color:var(--tbx-blue,#1D4ED8);font:600 13px/1 Inter,sans-serif;padding:10px;border-radius:10px;cursor:pointer}
.tb-close:hover{background:var(--tbx-soft,#F6F7FB)}
#tbList{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0}
.tb-item{position:relative;padding:14px 20px 14px 72px;border-top:1px solid var(--tbx-line,#E4E7EF);overflow-wrap:anywhere}
.tb-item:first-child{border-top:0}
.tb-item:hover{background:var(--tbx-soft,#F6F7FB)}
.tb-item.unread::before{content:"";position:absolute;left:9px;top:28px;width:8px;height:8px;border-radius:50%;background:#1D4ED8}
.tb-item strong{display:block;font-size:15px;line-height:1.35;margin-bottom:3px;color:var(--tbx-ink,#0A1024)}
.tb-body{font-size:14px;line-height:1.5;color:var(--tbx-ink2,#4A5470)}
.tb-time{font-size:12.5px;color:var(--tbx-ink3,#5F6880);margin-top:5px}
.tb-item a{display:inline-block;margin-top:7px;color:var(--tbx-blue,#1D4ED8)!important;font-weight:600;font-size:14px;text-decoration:none}
.tb-item a:hover{text-decoration:underline}
.tb-all{flex:none;display:block;padding:14px;border-top:1px solid var(--tbx-line,#E4E7EF);text-align:center;font-weight:600;font-size:14px;color:var(--tbx-blue,#1D4ED8)!important;text-decoration:none}
.tb-empty{padding:40px 20px;text-align:center;color:var(--tbx-ink3,#5F6880)}
@media (max-width:768px){.tb-drawer{top:68px;left:12px;right:12px;width:auto;max-width:none;max-height:calc(100dvh - 160px)}}

.tb-item .tb-bird{position:absolute;left:24px;top:14px;width:36px;height:36px;border-radius:10px}
.tb-h{display:flex;align-items:center;gap:9px}.tb-h img{border-radius:8px}
.notification-item{position:relative;padding-left:68px!important}
.notification-item .tb-bird{position:absolute;left:16px;top:16px;border-radius:10px}

.toast-container .toast{background:#fff!important;color:#0A1024!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-left:5px solid #1D4ED8!important}
.toast-container .toast-close{color:#4A5470!important}
.toast-container .toast.success{border-left-color:#0F766E!important}.toast-container .toast.error{border-left-color:#DC2626!important}.toast-container .toast.warning{border-left-color:#D97706!important}

/* Cards and buttons */
body.tbx[data-theme="light"] .card:not([style*="linear-gradient"]):not(.tbc){background:#fff!important;border:1px solid var(--tbx-line)!important;border-radius:18px;box-shadow:0 1px 2px rgba(10,16,36,.04)!important}
body.tbx .card{backdrop-filter:none;-webkit-backdrop-filter:none!important}
body.tbx .card::before{display:none}
body.tbx .card:hover{transform:none}
body.tbx .btn{border-radius:999px;font-family:Inter,system-ui,sans-serif;font-weight:600;max-width:100%}
body.tbx .btn::before,body.tbx .btn::after{display:none}
body.tbx .btn.primary{background:#1D4ED8;background-image:none;color:#fff!important;border:0;box-shadow:0 8px 20px rgba(29,78,216,.2)}
body.tbx .btn.primary:hover{background:#1E3A8A}
body.tbx[data-theme="light"] .btn.ghost{background:#fff;color:var(--tbx-ink);border:1px solid #CDD3E0}
body.tbx[data-theme="light"] .btn.ghost:hover{border-color:var(--tbx-ink3)}

/* Old pale inline colours that were unreadable on white */
body.tbx[data-theme="light"] [style*="color: #A7B2C7"],body.tbx[data-theme="light"] [style*="color:#A7B2C7"],body.tbx[data-theme="light"] [style*="color: #93A9BD"],body.tbx[data-theme="light"] [style*="color: #9ca3af"],body.tbx[data-theme="light"] [style*="color:#9ca3af"]{color:var(--tbx-ink3)!important}
body.tbx[data-theme="light"] [style*="background: rgba(255,255,255,0.1)"],body.tbx[data-theme="light"] [style*="background: rgba(255,255,255,0.08)"],body.tbx[data-theme="light"] [style*="background:rgba(255,255,255,0.1)"]{background-color:#E9EDF5!important}

/* Page header, quick actions, icon tiles */
body.tbx .container{max-width:1200px;padding-left:24px;padding-right:24px;box-sizing:border-box}
.tbx-pagehead{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:12px 0 24px}
.tbx-pagehead h1{margin:0}
.tbx-pagehead p{margin:6px 0 0;color:var(--tbx-ink3);font-size:16px;line-height:1.5}
.tbx-qgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.tbx-qa{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:0 16px;border-radius:12px;border:1px solid var(--tbx-line);background:var(--tbx-soft);color:var(--tbx-ink)!important;font:600 14.5px/1.3 Inter,system-ui,sans-serif;text-decoration:none!important;cursor:pointer;box-sizing:border-box}
.tbx-qa[style*="none"]{display:none!important}
.tbx-qa::after{content:"\2192";color:var(--tbx-ink3)}
.tbx-qa:hover{border-color:#1D4ED8;background:#EAF0FF}
[data-theme="dark"] .tbx-qa:hover{background:rgba(127,166,255,.16)}
[data-tbx-icon]{display:inline-flex!important;align-items:center;justify-content:center;width:46px!important;height:46px!important;border-radius:13px!important;background:#EAF0FF!important;color:#1D4ED8!important;border:0!important;box-shadow:none!important;flex:none;animation:none!important;padding:0!important;filter:none!important}
[data-theme="dark"] [data-tbx-icon]{background:rgba(127,166,255,.16)!important;color:#A9C3FF!important}
span[data-tbx-icon]{width:34px!important;height:34px!important;border-radius:10px!important}
span[data-tbx-icon] svg{width:19px;height:19px}

/* Dashboard */
.metric-card-dash:hover{transform:none!important}
body.tbx .metric-card-dash [style*="font-size: 2.5rem"]{font:700 30px/1.15 Sora,sans-serif!important;letter-spacing:-.02em;color:var(--tbx-ink)!important;font-variant-numeric:tabular-nums}
body.tbx #dashControlPanel .card{min-height:0!important}
body.tbx .metrics-dashboard,body.tbx #dashControlPanel>div{gap:16px!important}
body.tbx .dashboard-tier-badge>*{box-shadow:none!important}
body.tbx .cards-widget{overflow:visible}
body.tbx .cards-widget .cards-grid{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
body.tbx #viewAllContainer{text-align:left!important}
body.tbx .cards-view-all{display:inline-flex;background:none!important;border:0!important;padding:6px 0!important;color:var(--tbx-blue)!important}
body.tbx[data-theme="light"] #welcomeChecklist,body.tbx[data-theme="light"] #referralWidget,body.tbx[data-theme="light"] .card[style*="rgba(59, 130, 246,0.08)"],body.tbx[data-theme="light"] .card[style*="rgba(59, 130, 246,0.1)"],body.tbx[data-theme="light"] .tbx-tiers{background:#fff!important;border:1px solid var(--tbx-line)!important;box-shadow:0 1px 2px rgba(10,16,36,.04)!important}
body.tbx[data-theme="light"] #budgetContent{background:var(--tbx-soft)!important;border:1px solid var(--tbx-line)!important}
@media (max-width:600px){body.tbx .metrics-dashboard{grid-template-columns:1fr 1fr!important;gap:10px!important}body.tbx .metrics-dashboard .card{padding:16px!important}body.tbx .metric-card-dash [style*="font-size: 2.5rem"]{font-size:23px!important}}

/* Tools index */
body.tbx .tools-grid{margin-top:0;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
body.tbx .tool-card{padding:22px;border-radius:18px;border-color:var(--tbx-line);box-shadow:none}
body.tbx .tool-card:hover{transform:none;border-color:#1D4ED8;box-shadow:0 12px 30px rgba(10,16,36,.08)}
body.tbx .tool-card [data-tbx-icon]{margin-bottom:16px}
body.tbx .tool-card .tier-badge{position:absolute;top:22px;right:22px;margin:0;border:0!important;border-radius:999px;padding:5px 11px;font-size:12.5px;background:var(--tbx-soft)!important;color:var(--tbx-ink2)!important}
body.tbx .tool-card .tier-free{background:#E3F6EF!important;color:#0B5F4F!important}
body.tbx .tool-card .tool-name{font-size:18px}
body.tbx .tool-card .tool-desc{font-size:15px;color:var(--tbx-ink2);margin-bottom:18px}
body.tbx .tool-card .btn.primary{width:auto!important;align-self:flex-start;background:none;box-shadow:none;padding:0;min-height:0;color:var(--tbx-blue)!important;justify-content:flex-start;font-size:15px}
body.tbx .tbx-tiers div[style*="border-radius: 12px"]{background:var(--tbx-soft)!important;border:1px solid var(--tbx-line)!important;box-shadow:none!important;display:flex;flex-direction:column}
body.tbx .tbx-tiers div[style*="border-radius: 12px"] .btn{margin-top:auto;background:#fff;border:1px solid #CDD3E0!important;color:var(--tbx-ink)!important;box-shadow:none}
body.tbx .tbx-tiers div[style*="font-weight: 700"]{color:var(--tbx-ink)!important}

/* Calm entrances, one floating button */
body.tbx .count-animate,body.tbx .card-item,body.tbx .credit-card,body.tbx .cards-grid>*,body.tbx #cardsGrid>*,body.tbx #cards>*{animation:none!important;opacity:1!important;filter:none!important}
body.tbx .fab-btn{display:none!important}
body.tbx nav[aria-label="Breadcrumb"]{max-width:1200px!important;box-sizing:border-box;margin:18px auto 0!important;padding:0 24px!important}
body.tbx .container nav[aria-label="Breadcrumb"]{padding:0!important;margin:0!important}
html:has(body.tbx){background:#F6F8FC}
html:has(body.tbx[data-theme="dark"]){background:#1A2535}
body.tbx{min-height:100vh;box-sizing:border-box}
body.tbx .sticky-back-btn,body.tbx .container form[action="/logout"]{display:none!important}
/* Gradient hero boxes become plain page headings */
body.tbx[data-theme="light"] .habit-hero,body.tbx[data-theme="light"] .fp-hero,body.tbx[data-theme="light"] .hero:not(.lv-hero),body.tbx[data-theme="light"] div[style*="text-align: center"][style*="linear-gradient"][style*="border-radius: 20px"]:not(.card){background:none!important;border:0!important;box-shadow:none!important;padding:12px 0 8px!important;margin-bottom:24px!important}
body.tbx[data-theme="light"] .fp-hero h1,body.tbx[data-theme="light"] .fp-hero p{color:var(--tbx-ink)!important}
body.tbx[data-theme="light"] .fp-hero p{color:var(--tbx-ink3)!important}
body.tbx .fp-badge{background:#FFF6E0!important;color:#7A5410!important;border:0!important}
/* One primary button everywhere */
body.tbx .btn-calc,body.tbx .calc-btn,body.tbx .log-btn,body.tbx .btn-primary,body.tbx .button-primary,body.tbx .price-cta,body.tbx .chat-send,body.tbx .btn[style*="linear-gradient(135deg, #3B82F6"],body.tbx .generate-btn{background:#1D4ED8!important;background-image:none!important;color:#fff!important;border:0!important;border-radius:999px!important;font-family:Inter,system-ui,sans-serif;font-weight:600!important;font-size:15px!important;min-height:44px;padding:10px 24px!important;box-shadow:0 8px 20px rgba(29,78,216,.18)!important;display:inline-flex!important;align-items:center;justify-content:center;transform:none!important;text-decoration:none!important}
body.tbx .btn-calc:hover,body.tbx .calc-btn:hover,body.tbx .log-btn:hover,body.tbx .btn-primary:hover,body.tbx .price-cta:hover,body.tbx .chat-send:hover{background:#1E3A8A!important}
body.tbx .btn-calc:disabled,body.tbx .calc-btn:disabled,body.tbx .log-btn:disabled,body.tbx .btn-primary:disabled{opacity:.55}
body.tbx :is(.btn-calc,.calc-btn,.log-btn,.btn-primary,.button-primary,.price-cta,.chat-send,.generate-btn)[style*="display: none"],body.tbx :is(.btn-primary,.button-primary)[style*="display:none"]{display:none!important}
body.tbx .btn-secondary{background:#fff!important;color:#0A1024!important;border:1px solid #CDD3E0!important;border-radius:999px!important;font:600 14px Inter,system-ui,sans-serif!important;min-height:42px;padding:8px 18px!important}
body.tbx .tab.active:is(button),body.tbx .filter-btn.active{background:#0A1024!important;color:#fff!important;border-color:#0A1024!important}
body.tbx button.tab,body.tbx .filter-btn{border-radius:999px!important;min-height:40px;font-family:Inter,system-ui,sans-serif;font-weight:600}
body.tbx[data-theme="light"] .notification-item{background:#fff!important;border:1px solid var(--tbx-line)!important;border-radius:16px!important}
body.tbx[data-theme="light"] .notification-item.unread{border-left:4px solid #1D4ED8!important}
body.tbx[data-theme="light"] :is(.streak-card,.activity-log,.milestones,.calc-card,.calculator-card,.plan-card,.empty-state){background:#fff!important;border:1px solid var(--tbx-line)!important}
body.tbx .streak-card::before{display:none}
body.tbx .streak-number{background:none!important;-webkit-text-fill-color:var(--tbx-ink)!important;font-family:Sora,sans-serif}
body.tbx .price-amount,body.tbx .price{color:var(--tbx-ink)!important}
body.tbx .btn.active-tab{background:#0A1024!important;color:#fff!important;border-color:#0A1024!important}
body.tbx .tbx-tiers .btn{display:flex!important;align-items:center;justify-content:center}
.tbx-social{display:flex;justify-content:center;gap:8px 22px;flex-wrap:wrap;margin-bottom:18px}
.tbx-social a{font-weight:600;font-size:15px;color:var(--tbx-ink,#0A1024);text-decoration:none}
.tbx-social a:hover{text-decoration:underline}
body.tbx .footer{background:none!important;border-top:1px solid var(--tbx-line)!important}
body.tbx[data-theme="light"] .footer a{color:var(--tbx-ink2)!important}

/* Media never escapes its column */
body.tbx img,body.tbx video,body.tbx canvas,body.tbx iframe{max-width:100%}
body.tbx input,body.tbx select,body.tbx textarea{max-width:100%;box-sizing:border-box}
@media (prefers-reduced-motion:reduce){body.tbx *{animation-duration:.01ms!important;transition-duration:.01ms!important}}

body.tbx.menu-open .trusty-float-btn,body.tbx:has(.tb-drawer.open) .trusty-float-btn{display:none!important}
body.tbx .pricing-header ~ * .badge{color:#fff!important;background:#1D4ED8!important;border:0!important}
body.tbx .streak-emoji{font-size:1.6rem}
@media (max-width:768px){body.tbx #tbSheet{width:100%}}

/* Guide and calculator hero panels that used to be dark */
body.tbx[data-theme="light"] :is(section,div,tr)[style*="#1A2535"][style*="#0f1c2e"]{background:#EEF3FB!important;color:var(--tbx-ink)!important}
body.tbx[data-theme="light"] :is(section,div,tr)[style*="#1A2535"][style*="#0f1c2e"] :is(h1,h2,h3,th){color:var(--tbx-ink)!important}
body.tbx[data-theme="light"] :is(section,div,tr)[style*="#1A2535"][style*="#0f1c2e"] :is(p,span){color:#4A5268!important}
body.tbx[data-theme="light"] section[style*="#1A2535"]{padding-top:40px!important}
body.tbx[data-theme="light"] main [style*="color:#94A3B8"],body.tbx[data-theme="light"] article [style*="color:#94A3B8"],body.tbx[data-theme="light"] .container [style*="color:#94A3B8"],body.tbx[data-theme="light"] [style*="color: #94A3B8"],body.tbx[data-theme="light"] section [style*="color:#94A3B8"],body.tbx[data-theme="light"] div [style*="color:#94A3B8"]{color:#5B6478!important}
body.tbx[data-theme="light"] [style*="color: rgb(167, 178, 199)"],body.tbx[data-theme="light"] [style*="color:#A7B2C7"]{color:#5B6478!important}
body.tbx div[style*="min-width: 40px"][style*="#11C5A1, #0DA98B"]{background:#0B7A65!important;color:#fff!important}
body.tbx div[style*="min-width: 40px"][style*="#F59E0B, #D97706"]{background:#B45309!important;color:#fff!important}
/* Public coach page */
body.tbx .hero:not(.lv-hero) h1 span{color:#0B7A65!important}
body.tbx[data-theme="light"] .hero:not(.lv-hero) p{color:#4A5268!important}
body.tbx .hero-badge{color:#0B5E4F!important}
body.tbx .btn-ghost{background:#fff!important;color:#0A1024!important;border:1px solid #CDD3E0!important;border-radius:999px!important;padding:10px 24px!important;min-height:44px;display:inline-flex;align-items:center}
body.tbx img.parrot{margin:0 auto 20px;height:auto;width:130px;animation:none}
body.tbx[data-theme="light"] .cta-section{background:#EEF3FB!important;border-radius:24px;max-width:1100px;margin:24px auto!important}
body.tbx[data-theme="light"] .cta-section h2{color:var(--tbx-ink)!important}
body.tbx[data-theme="light"] .cta-section p{color:#4A5268!important}
/* Public sample-data page */
body.tbx .demo-banner{position:static!important;background:#EEF3FB!important;color:var(--tbx-ink)!important;box-shadow:none!important}
body.tbx .demo-banner a{color:#1D4ED8!important;background:none!important;border:0!important;text-decoration:underline}
body.tbx .demo-container{max-width:1160px!important}
body.tbx[data-theme="light"] :is(.demo-card,.calculator-box){opacity:1!important;animation:none!important;background:#fff!important;color:var(--tbx-ink)!important;border:1px solid var(--tbx-line)!important;box-shadow:0 8px 24px rgba(10,16,36,.05)!important}
body.tbx :is(.demo-card,.calculator-box)::before{display:none!important}
body.tbx[data-theme="light"] :is(.demo-card,.calculator-box) :is(h3,label,.card-issuer,.stat-value){color:var(--tbx-ink)!important}
body.tbx[data-theme="light"] :is(.demo-card,.calculator-box) :is(.stat-label,.card-last4,p){color:#5B6478!important}
body.tbx[data-theme="light"] .calculator-box input{background:#fff!important;color:var(--tbx-ink)!important;border:1px solid #CDD3E0!important}
body.tbx[data-theme="light"] .cta-box{background:#EEF3FB!important;border:0!important}
body.tbx[data-theme="light"] .cta-box :is(h2,p,p a){color:var(--tbx-ink)!important;opacity:1!important}
body.tbx .progress-bar{background:#E6EAF3!important}
/* Wide tables scroll inside their own box on phones */
@media (max-width:700px){body.tbx table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}

/* Dashboard layout */
.dsh-headact{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.dsh-add,.dsh-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border-radius:999px;background:#1D4ED8;color:#fff!important;font:600 15px Inter,system-ui,sans-serif;text-decoration:none!important}
.dsh-add:hover,.dsh-btn:hover{background:#1E3A8A}
.dsh-stats{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--tbx-line);border-radius:20px;margin-bottom:20px;overflow:hidden}
.dsh-stat{padding:20px 22px;border-left:1px solid var(--tbx-line);margin-left:-1px;min-width:0}
.dsh-k{font:600 14px Inter,system-ui,sans-serif;color:#4A5268;margin-bottom:8px}
.dsh-v{font:700 clamp(1.3rem,2.2vw,1.75rem)/1.1 Sora,sans-serif;color:var(--tbx-ink);font-variant-numeric:tabular-nums}
.dsh-n{font-size:13px;color:#5B6478;margin:6px 0 0}
.dsh-row{display:grid;gap:20px;margin:0 0 20px;align-items:stretch}
.dsh-top{grid-template-columns:1fr 1.25fr}.dsh-mid{grid-template-columns:1.6fr 1fr}.dsh-end{grid-template-columns:1fr 1fr}
.dsh-row>*{min-width:0;margin:0!important}
body.tbx .dsh-card{padding:22px!important;border-radius:20px!important}
body.tbx .dsh-next{background:#EEF3FB!important;border:0!important;box-shadow:none!important;display:flex;flex-direction:column;justify-content:center}
.dsh-nexttext{font:600 18px/1.5 Inter,system-ui,sans-serif;color:var(--tbx-ink);margin-bottom:18px;text-wrap:pretty}
.dsh-cardhead{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px}
.dsh-cardhead h3{margin:0;font-size:18px}.dsh-cardhead a{font:600 14px Inter,sans-serif;color:#1D4ED8;text-decoration:none;padding:6px 0}
.dsh-cardhead .dsh-n{margin:0}
.dsh-duerow{display:flex;align-items:center;gap:14px;padding:10px 0;border-top:1px solid var(--tbx-line);text-decoration:none!important;color:var(--tbx-ink)!important}
.dsh-duerow:first-child{border-top:0}
.dsh-date{flex:0 0 46px;text-align:center;background:#F3F5FA;border-radius:12px;padding:6px 0;font-size:12px;color:#4A5268}
.dsh-date b{display:block;font:700 17px/1.1 Sora,sans-serif;color:var(--tbx-ink)}
.dsh-duename,.dsh-amt{display:flex;flex-direction:column;gap:2px;font-size:13px;color:#5B6478;min-width:0}
.dsh-duename{flex:1}.dsh-amt{text-align:right}
.dsh-duename b,.dsh-amt b{font-size:15px;color:var(--tbx-ink);font-weight:600}
.dsh-duename b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dsh-amt b{font-variant-numeric:tabular-nums}
.dsh-duename .dsh-soon{color:#B42318;font-weight:600}
.dsh-links{display:grid;gap:8px}
body.tbx #checklistItems{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}
.dsh-miles{display:grid;gap:14px}
.dsh-mile{display:flex;gap:12px;align-items:flex-start;color:#5B6478}
.dsh-mile b{display:block;font-size:15px;color:#4A5268;font-weight:600}.dsh-mile span{font-size:13px}
.dsh-mile i{flex:0 0 20px;height:20px;border-radius:50%;border:2px solid #CDD3E0;box-sizing:border-box;margin-top:1px}
.dsh-mile.on b{color:var(--tbx-ink)}
.dsh-mile.on i{border:0;background:#0B7A65 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/20px}
body.tbx #userTierBadge{color:#0A1024!important;background:#fff!important;border:1px solid #CDD3E0!important;border-radius:999px!important}
body.tbx #userTierBadge *{color:#0A1024!important}
@media (max-width:900px){.dsh-stats{grid-template-columns:1fr 1fr}.dsh-stat:nth-child(n+3){border-top:1px solid var(--tbx-line)}.dsh-top,.dsh-mid,.dsh-end{grid-template-columns:1fr}.dsh-links{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.dsh-stat{padding:16px}.dsh-headact{width:100%}.dsh-add{flex:1;justify-content:center}
body.tbx #checklistItems{grid-template-columns:1fr}
body.tbx #cardsGridContainer{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding-bottom:14px;scrollbar-width:none}
body.tbx #cardsGridContainer[style*="none"]{display:none!important}
body.tbx #cardsGridContainer>*{flex:0 0 88%;scroll-snap-align:start}
body.tbx .tbx-pagehead p{font-size:15px}}

body.tbx a.dsh-btn,body.tbx a.dsh-btn span,body.tbx a.dsh-add{color:#fff!important}
body.tbx[data-theme="light"] #nextActionCard.card.dsh-next{background:#EEF3FB!important}
.dsh-nexttext{margin-bottom:14px}.dsh-next .dsh-k{margin-bottom:6px}
body.tbx .dsh-stat{border-color:var(--tbx-line)!important}
body.tbx #cardsStatsRow{display:none!important}
body.tbx .dsh-cardhead button{width:auto!important;min-height:40px!important;flex:none}
.dsh-cardhead{align-items:center}
.dsh-mid .dsh-links{grid-template-columns:1fr 1fr}
@media (min-width:1101px){body.tbx #cardsGridContainer:has(>:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px}}
@media (max-width:640px){body.tbx #cardsGridContainer{margin:0 -16px!important;padding:4px 16px 30px!important;width:auto!important;max-width:none!important}body.tbx #cardsGridContainer>*{scroll-margin-left:16px}}

#tbSheet.tbx-sheet{display:none;position:fixed;inset:0}
#tbSheet.tbx-sheet.open{display:block}

/* Dark theme: the light design inverted, with photos, cards and logos kept as they are */
html[data-tbx-dark]{filter:invert(.91) hue-rotate(180deg);background:#fff!important;color-scheme:light}
html[data-tbx-dark] :is(img,video,iframe,.tbc-f,.tbc-b,[data-tbx-keep]){filter:invert(1) hue-rotate(180deg) contrast(1.22)!important}
html[data-tbx-dark] :is(.tbc-f,.tbc-b) :is(img,svg,video){filter:none!important}
html[data-tbx-dark] body.tbx *{--tbx-shadow:none}
html[data-tbx-dark] body.tbx :is(.card,.cards-widget,.dsh-card,.demo-card,.calculator-box){box-shadow:none!important}
/* Settings gear and theme choice */
.tbx-gear{width:42px;height:42px;border-radius:50%;border:1px solid var(--tbx-line);background:var(--tbx-card);color:var(--tbx-ink)!important;display:inline-flex;align-items:center;justify-content:center;flex:none}
.tbx-gear:hover{border-color:#B8C2D8}
.tbx-gear:focus-visible,.tbx-seg button:focus-visible{outline:3px solid #93B4FF;outline-offset:2px}
.tbx-seg{display:inline-flex;padding:4px;border-radius:999px;background:#EEF1F7;gap:4px}
.tbx-seg button{border:0;background:none;border-radius:999px;min-height:40px;padding:0 20px;font:600 15px Inter,system-ui,sans-serif;color:#4A5268;cursor:pointer}
.tbx-seg button[aria-pressed="true"]{background:#fff;color:#0A1024;box-shadow:0 1px 4px rgba(10,16,36,.16)}
body.tbx .attention-badge.warning{color:#B45309!important}
body.tbx section[style*="#1A2535"] strong[style*="#F97316"]{color:#B45309!important}
@media (max-width:640px){body.tbx div[style*="grid-template-columns"]:has(>input[class*="card-"]),body.tbx .card-row{min-width:0}}
@media (max-width:640px){
body.tbx :is([style*="1fr 110px 80px 110px 40px"],[style*="1fr 120px 90px 100px 40px"]){grid-template-columns:repeat(3,minmax(0,1fr)) 40px!important;padding:0!important}
body.tbx :is([style*="1fr 110px 80px 110px 40px"],[style*="1fr 120px 90px 100px 40px"])>:first-child{grid-column:1/4;order:-2}
body.tbx :is([style*="1fr 110px 80px 110px 40px"],[style*="1fr 120px 90px 100px 40px"])>:last-child{order:-1}
body.tbx :is([style*="1fr 110px 80px 110px 40px"],[style*="1fr 120px 90px 100px 40px"])>span:first-child,body.tbx :is([style*="1fr 110px 80px 110px 40px"],[style*="1fr 120px 90px 100px 40px"])>span:last-child:empty{display:none}
body.tbx :is([style*="1fr 110px 80px 110px 40px"],[style*="1fr 120px 90px 100px 40px"])>span{font-size:11px!important}
}
body.tbx .settings-header{margin-bottom:24px}
body.tbx .settings-section{border-radius:20px!important;box-shadow:none!important}
body.tbx .tbx-white{color:#fff!important}
@media (max-width:640px){body.tbx [style*="1fr 140px 140px 40px"]{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px!important;gap:8px!important}body.tbx [style*="1fr 140px 140px 40px"]>:first-child{grid-column:1/3;order:-2}body.tbx [style*="1fr 140px 140px 40px"]>:last-child{order:-1}}

/* Short message pages: errors, confirmations, locked features */
.tbx-msg{max-width:560px;margin:clamp(24px,8vh,80px) auto 48px;padding:40px 28px;text-align:center;background:#fff;border:1px solid #E2E8F0;border-radius:24px;box-shadow:0 12px 40px rgba(15,23,42,.07)}
.tbx-msg img{border-radius:22px}
.tbx-msg>.tbx-kick{margin:16px auto 0;font-size:.85rem;font-weight:600;color:#0B7A65}
.tbx-msg h1{margin:12px 0 10px;font-size:clamp(1.5rem,4vw,2rem);line-height:1.2;color:#0F172A}
.tbx-msg>p{margin:0 auto 24px;max-width:44ch;color:#475569;line-height:1.6}
.tbx-msg form{margin:0 0 14px}
.tbx-msg-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center}
.tbx-msg-row a{display:inline-flex!important;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:12px;font-weight:600;text-decoration:none}
.tbx-msg-row .tbx-signin{border:1px solid #CBD5E1;color:#0F172A;background:#fff}
@media(max-width:600px){.tbx-msg{margin:20px 16px 110px;padding:32px 20px}.tbx-msg-row{flex-direction:column;align-items:stretch}}
.tbx h1.tbx-white{color:#fff!important;font-size:1.1rem!important;margin:0!important}
.tbx-row small{margin-left:8px;padding:2px 8px;border-radius:99px;background:#EFF6FF;color:#1D4ED8;font-size:.72rem;font-weight:600}
.tbx-ic{display:inline-flex;vertical-align:middle}
.tbx-ph{display:inline-block;width:60%;height:60%;min-width:22px;min-height:22px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232457D6' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1-4.500 4-6.500 8-6.500s7 2 8 6.500'/%3E%3C/svg%3E")}
