/* MyBankroll Premium responsive UI · 2.3
   Visual-only progressive enhancement: no application logic or schema changes.
   Loaded AFTER style.css and public.css, so old installs retain a safe fallback. */
:root {
  color-scheme:light;
  --red:#781b32;
  --red-dark:#4b1224;
  --red-pale:#f9edef;
  --gold:#c79845;
  --cream:#f7f6f2;
  --ink:#27282e;
  --muted:#6e7280;
  --line:#e8e6e3;
  --paper:#fff;
  --shadow:0 8px 30px rgba(31,30,37,.045);
  --tf-radius:18px;
  --tf-shadow:0 12px 36px rgba(32,29,34,.048);
  font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;
  font-size:14px;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
}
body{background:var(--cream);color:var(--ink)}
button,input,textarea,select{font-family:inherit}
button,.button{border-radius:11px;min-height:40px;font-weight:650}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(199,152,69,.68);outline-offset:2px}
input,textarea,select{
  border:1px solid #dedfe2;
  border-radius:11px;
  min-height:43px;
  background:#fff;
  font-size:13px;
  transition:border-color .18s,box-shadow .18s;
}
input:focus,select:focus,textarea:focus{border-color:#a86c7a;box-shadow:0 0 0 4px rgba(120,27,50,.08)}
input::placeholder,textarea::placeholder{color:#90939c}
label{color:#626675;font-size:12px;font-weight:650}
h1,h2,h3{color:inherit}
h1{font-size:clamp(27px,2.35vw,37px);letter-spacing:-1.25px;font-weight:750}
h2{font-weight:750;letter-spacing:-.35px}
h3{font-weight:710}
.eyebrow{font-size:10px;letter-spacing:1.75px;font-weight:780;color:#966a51}
.muted{color:var(--muted)}
.small{line-height:1.6}
.primary{background:linear-gradient(135deg,#8b1f3d,#68182d);border-color:#791b35;color:#fff;box-shadow:0 5px 14px rgba(120,27,50,.14)}
.primary:hover:not(:disabled){background:linear-gradient(135deg,#9a2847,#741b34);box-shadow:0 8px 19px rgba(120,27,50,.22);transform:translateY(-1px)}
.secondary,.button.secondary{background:#fff;color:#4c4e57;border:1px solid #e3e0db}
.secondary:hover:not(:disabled){border-color:#ba9c83;background:#fffaf5}
.text-btn{color:var(--red)}
.icon-btn{border-radius:11px;min-width:40px;min-height:40px}
.icon-btn:hover{background:#f6eef0}
.segmenteD button,.segmented button{font-weight:700}
.segmented{border-radius:13px;background:#f0eff0;border-color:#e9e8e8;padding:4px}
.segmented button{border-radius:10px;min-height:34px;color:#646670;font-weight:650}
.segmented button.active{background:#fff;color:#741b32;box-shadow:0 2px 7px rgba(30,26,35,.09)}
.card,.filter-details{
  border:1px solid #ece9e5;
  border-radius:var(--tf-radius);
  background:#fff;
  box-shadow:var(--tf-shadow);
}
.card{padding:24px}
.card-head{margin-bottom:22px;gap:14px}
.card-head h2{font-size:16px;letter-spacing:-.45px}
.card-head .eyebrow{color:#9c8077}
.card-head p{color:var(--muted)}
#toast{background:#29262b;border:1px solid #4b4348;border-radius:14px;box-shadow:0 16px 45px #1b1b2440}

/* Brand and sign-in: spacious desktop, compact mobile above the fold. */
.auth-layout{grid-template-columns:minmax(0,1.08fr) minmax(380px,.92fr);min-height:100dvh}
.auth-story{
  background:
    radial-gradient(circle at 12% 12%,rgba(222,124,135,.18),transparent 44%),
    radial-gradient(circle at 96% 80%,rgba(199,152,69,.12),transparent 33%),
    linear-gradient(145deg,#811b35 0%,#5b1429 63%,#350f20 100%);
  padding:clamp(28px,4.2vw,65px) clamp(32px,6vw,105px);
  min-height:100dvh;
}
.auth-story:after{width:590px;height:590px;right:-330px;bottom:-240px;border-color:#ecc17c30}
.auth-story .brand{font-size:25px;font-weight:800;gap:13px}
.auth-story .brand img{width:56px;height:56px}
.brand{letter-spacing:-.85px;font-weight:820}
.brand small{letter-spacing:2px;font-weight:700;color:#efcfb5}
.brand-light{font-weight:460}
.auth-copy{max-width:670px}
.auth-copy h1{font-size:clamp(46px,4.9vw,79px);font-weight:750;letter-spacing:-3px;line-height:1.07;margin:22px 0 26px}
.auth-copy>p{font-size:clamp(15px,1.16vw,18px);line-height:1.8;color:#f2d9de;max-width:500px}
.auth-features{gap:18px;margin-top:40px}
.auth-features span{font-size:13px;color:#f8e4dc}
.auth-features span:before{background:#ead0a025;color:#f3d195}
.auth-panel{background:radial-gradient(circle at 88% 16%,#f5ebdd 0,transparent 47%),#faf9f6;padding:96px clamp(28px,5vw,100px)}
.auth-form{max-width:430px;gap:21px;background:#fff;border:1px solid #eee8e0;box-shadow:0 24px 85px rgba(53,26,30,.085);padding:clamp(27px,3.1vw,48px);border-radius:27px}
.auth-form h2{font-size:clamp(30px,2.6vw,42px);font-weight:770}
.auth-form>p.muted{font-size:13px;line-height:1.65}
.auth-form label{font-size:12px;color:#535662}
.auth-form input{min-height:49px;padding:12px 15px}
.auth-form button.primary{min-height:49px;font-size:13px;letter-spacing:.15px}
.auth-switch{border-top:1px solid #f0edf0;padding-top:18px}
.auth-panel .language-label{top:25px;right:clamp(25px,4vw,64px)}
.language-label select{background:#fff;border-color:#eae5dd;border-radius:13px;padding:10px 13px;font-size:12px}
.password-wrap button{min-height:39px;min-width:39px}

/* App shell / navigation */
.app-layout{grid-template-columns:250px minmax(0,1fr)}
#sidebar{
  background:linear-gradient(173deg,#5c152d 0%,#421328 65%,#301323 100%);
  border-right:1px solid #ffffff10;
  padding:31px 16px 19px;
  height:100vh;height:100dvh;min-height:0;overflow:hidden;
}
#sidebar>.brand,#sidebar>.logout{flex-shrink:0}
.sidebar-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ac7887 transparent;padding:0 3px 4px;margin:12px -3px 0}
#sidebar .brand{font-size:23px;padding:2px 9px}
#sidebar .brand img{width:42px;height:42px}
#sidebar .brand small{font-size:7px;letter-spacing:1.5px}
#sidebar .nav-label{display:block;margin:18px 16px 16px;color:#cba7ac;font-size:9px}
.desktop-nav{gap:6px}
.desktop-nav button,.desktop-nav .community-link{min-height:47px;border-radius:12px;font-size:13px;font-weight:620;transition:background .18s,color .18s}
.desktop-nav button{color:#e2cbd0;padding:12px 14px}
.desktop-nav button .icon{width:20px;height:20px}
.desktop-nav button.active{background:#fff3e7;color:#6d1c33;border-color:transparent;box-shadow:0 5px 15px #13081320}
.desktop-nav button.active .icon{color:#8c2942}
.desktop-nav button:hover:not(.active){background:#ffffff12;color:#fff}
.desktop-nav .community-link{background:#ddab5820;border:1px solid #e4b76e40;color:#f3d7a3;margin-top:19px;padding:12px 13px}
.desktop-nav .community-link:hover{background:#ddab5836;color:white}
.sidebar-note{padding:22px 5px 0;margin:30px 9px 12px}
.sidebar-note p{line-height:1.7}
.logout{border-radius:12px;min-height:43px;margin-top:12px;border-top:1px solid #ffffff20}
.tf-community-preview{margin-bottom:22px;padding:20px 23px}
.tf-community-preview-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
.tf-community-preview-head h2{font-size:15px;margin:0 0 4px}
.tf-community-preview-head p{margin:0}
.tf-community-preview-head>a{font-size:12px;white-space:nowrap;color:#7b1d37;font-weight:700;text-decoration:none}
.tf-community-preview-head>a:hover{text-decoration:underline;text-underline-offset:3px}
.tf-community-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tf-community-person{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #eee7e2;border-radius:12px;color:#482d37;text-decoration:none;min-width:0;transition:background .15s}
.tf-community-person:hover{background:#faf4ee;border-color:#cdb58e}
.tf-community-person>span:nth-child(2){min-width:0;flex:1}
.tf-community-person strong,.tf-community-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tf-community-person strong{font-size:12px}.tf-community-person small{font-size:10px;color:#8d7e80;margin-top:4px}
.tf-community-face{width:37px;height:37px;flex-shrink:0;display:grid;place-items:center;background:#f7ecd7;border:1px solid #e8d7b7;border-radius:50%;font-size:11px;font-weight:750;overflow:hidden}
.tf-community-face img{width:100%;height:100%;object-fit:contain}
.tf-community-quick-search{display:flex;gap:10px;margin-top:14px;align-items:center}
.tf-community-quick-search input{font-size:12px;min-height:40px}.tf-community-quick-search button{min-height:40px}
.tf-publication-status{font-size:12px;line-height:1.65;margin:0;padding:11px 13px;border-radius:9px;background:#f6f3ed;color:#776249}
.tf-publication-status.is-public{background:#edf5ed;color:#365d3c}
.tf-bankroll-warning{margin:0;color:#895623;font-size:12px;line-height:1.65}
@media(max-width:1050px){.tf-community-people{grid-template-columns:minmax(0,1fr)}.tf-community-person{padding:9px 12px}}
@media(max-width:760px){.tf-community-preview{padding:16px;margin-bottom:16px}.tf-community-preview-head{align-items:flex-start}.tf-community-preview-head>a{font-size:10px}.tf-community-quick-search{gap:7px}.tf-community-quick-search .grow{min-width:0}.tf-community-quick-search input{width:100%}}
.main-shell{background:#f7f6f3;min-width:0}
.topbar{
  position:sticky;top:0;z-index:30;
  height:76px;background:rgba(255,255,255,.96);
  border-bottom:1px solid #e8e6e4;
  padding:0 clamp(22px,3.2vw,53px);
  backdrop-filter:blur(14px);
}
.topbar-crumb{font-size:12px;color:#8a8e95}
.topbar-crumb strong{font-weight:750;color:#3f414b}
.topbar-tools{gap:13px}
.bankroll-picker{background:#f8f7f5;border:1px solid #ece9e5;border-radius:12px;padding:2px 9px}
.bankroll-picker select{background:transparent;min-height:35px;color:#35363f}
#languageSelect{border:1px solid #ece9e5;background:#fff;border-radius:11px;width:60px;min-height:39px}
#profileAvatar{width:39px;height:39px;background:#f6e9ce;border:2px solid #fff;box-shadow:0 0 0 1px #ded4bb;color:#7c1c32;font-weight:800}
.topbar-mobile-brand{display:none}
.main-shell main{max-width:1580px;padding:34px clamp(22px,3.2vw,53px) 30px}
.page-heading{margin-bottom:25px;gap:20px}
.page-heading .eyebrow{color:#8e5560;letter-spacing:1.85px}
.page-heading h1{font-size:clamp(27px,2.45vw,38px)}
.page-heading p{font-size:13px}
.page-heading>.primary{min-height:45px;padding:11px 19px;font-size:12px;white-space:nowrap;border-radius:12px}
.filter-bar{margin-bottom:22px}
.filter-top{flex-wrap:wrap}
.filter-top .secondary{background:#fff;border:1px solid #e5e2df;min-height:39px}
.filter-details{background:#fff;padding:22px;border-color:#e9e6e3}
.filter-grid{gap:15px}
.report-context{color:#70717b}
.search-field input{background:#fff}
.capital-hero{
  background:
    radial-gradient(circle at 72% -75%,rgba(252,219,158,.17),transparent 54%),
    linear-gradient(120deg,#791c35,#4e1429 86%);
  border:1px solid #77243b;
  border-radius:22px;
  padding:29px 34px;
  margin-bottom:20px;
  box-shadow:0 15px 32px rgba(91,19,42,.12);
}
.capital-hero:after{border-color:#ffdf9c2c}
.capital-main strong{font-weight:800;letter-spacing:-1.6px;font-size:clamp(32px,3vw,44px)}
.capital-details strong{font-weight:750}
.capital-main p,.capital-details p{color:#e4bdc8;font-size:11px}
.capital-main .eyebrow,.capital-details small{color:#f5cda9}
.kpis{gap:16px;margin-bottom:20px}
.kpi{
  position:relative;
  overflow:hidden;
  border:1px solid #eae8e5;
  border-radius:18px;
  padding:23px;
  box-shadow:var(--tf-shadow);
  transition:transform .2s,box-shadow .2s,border-color .2s;
}
.kpi:before{content:"";position:absolute;top:0;left:23px;right:23px;height:3px;background:linear-gradient(90deg,#9a2b47,#d5b075);border-radius:0 0 5px 5px;opacity:.65}
.kpi-top{margin-bottom:19px}
.kpi-top small{font-size:11px;color:#727581;font-weight:680}
.kpi-top .icon{color:#9b7b5e}
.kpi strong{font-size:clamp(22px,2.25vw,31px);font-weight:780;letter-spacing:-.9px;color:#292832}
.kpi p{font-size:10px;color:#858590;line-height:1.6}
.dashboard-grid{gap:18px;margin-bottom:20px}
.chart-card,.results-card{min-width:0}
.chart-total{font-size:30px;font-weight:750}
#equity{overflow:hidden}
#equity .equity-line,.equity-line{stroke-width:3}
#resultDonut svg{max-width:175px;height:auto}
.result-list>div{padding-block:10px}
.recent-item{transition:background .16s}
.recent-item:hover{background:#fff8f8}

/* Journal, data tables and bankroll cards */
.journal-toolbar{gap:12px}
.journal-tabs button{min-height:38px;border-radius:11px}
.journal-day{border-radius:14px;overflow:hidden}
.journal-day>summary{background:#f8f7f5;padding:14px 18px}
.journal-row{border-color:#efedf0;transition:background .15s}
.journal-row:hover{background:#fefaf8}
.journal-row:before{width:4px;top:16px;bottom:16px}
.journal-open>strong{font-weight:750;color:#303039}
.journal-pick{color:#896e62}
.journal-odds strong,.journal-stake strong,.journal-profit strong{font-variant-numeric:tabular-nums;font-weight:730}
.journal-month-head h3{font-weight:800}
.table-wrap{border:1px solid #efeeee;border-radius:13px;overflow-x:auto}
table{border-collapse:separate;border-spacing:0}
th{background:#f8f7f6;color:#666974;font-weight:730;font-size:10px;letter-spacing:.65px}
td{color:#636670;font-size:12px}
tr:last-child td{border-bottom:0}
tr:hover td{background:#fdfafa}
.status-select{border-radius:9px;border-color:#e8e1df}
.bankroll-cards{gap:16px}
.bankroll-card{border-radius:18px;transition:transform .18s,box-shadow .18s}
.bankroll-card.selected{border-top-color:#a13755;box-shadow:0 14px 34px #81233b15}
.bankroll-card .balance{font-weight:780;letter-spacing:-1.2px}
.bankroll-info{border-color:#eee9e7}
.bankroll-card .card-actions{flex-wrap:wrap}
.profile-public-grid,.profile-grid{gap:20px}
.publication-switch{border-radius:15px;background:#fbf4e9;border-color:#eee0c5}
.avatar-editor{border-radius:27px;background:#f8eeda}
.privacy-card{background:linear-gradient(180deg,#fff,#fffcf7)}
.app-footer{color:#858590;border-color:#e9e6e3}

/* New bet flow: compact guided inputs, visible preview and usable actions. */
dialog{
  background:#fff;
  border:1px solid #e6e1e2;
  border-radius:23px;
  box-shadow:0 34px 100px rgba(19,10,22,.3);
  padding:26px;
  scrollbar-gutter:stable;
}
dialog::backdrop{background:rgba(24,13,24,.7);backdrop-filter:blur(5px)}
dialog .dialog-head{padding-bottom:12px;border-bottom:1px solid #eeeaeb}
dialog .dialog-head h2{font-size:23px;font-weight:800}
.bet-dialog{width:min(750px,calc(100vw - 26px))}
.detail-dialog{width:min(590px,100vw);border-radius:23px 0 0 23px}
.dialog-footer{background:#fff;gap:13px}
.bet-amounts input{background:#fffdf9;font-size:25px;font-weight:780;color:#402b35}
.bet-preview{border-radius:15px;border-color:#eadac0;background:linear-gradient(120deg,#fdf8ed,#fffaf3);padding:18px 20px}
.bet-preview strong{font-size:23px;font-weight:750;color:#7a2237}
.bet-preview small{font-size:11px;font-weight:700}
.quick-stakes button,.quick-chips button{border-radius:9px;min-height:34px}
.quick-chips button.active{border-color:#d8b2bb}
.leg-card{background:#fcfaf7;border-radius:14px}
details{border-radius:13px;border-color:#e9e5e3}
details>summary{font-size:12px;color:#6b5e61;min-height:45px}
.detail-metrics{background:#faf5f0;border-radius:16px}
.detail-title h2{font-weight:800}
.share-preview{border-radius:16px}
#csvPreview{min-width:0}

/* Public tipster profiles, searchable cards and rankings. */
.public-page{background:#f7f6f2;color:#30303a}
.public-header{
  max-width:none;
  padding:20px max(28px,calc((100vw - 1180px)/2));
  background:#fff;
  border-bottom:1px solid #e9e5e2;
  box-shadow:0 3px 16px rgba(24,23,27,.025);
}
.public-header .brand{color:#6e1c32;font-size:22px}
.public-header .brand small{color:#aa8558}
.public-header nav>a{color:#555964;font-size:12px}
.public-header nav>a:hover{color:#8b2440}
.public-header select{background:#faf9f7;border-color:#e7e2dd;border-radius:10px;min-height:37px;width:67px}
.public-main{max-width:1248px;padding:34px 34px 26px}
.public-main .card{background:#fff;border:1px solid #eae7e4}
.public-main .card h2{color:#392b31}
.public-hero{border-radius:23px;padding:31px 34px;background:linear-gradient(115deg,#fff,#fdf8f3)}
.public-identity h1{color:#3c2d37;font-weight:780}
.public-avatar{border-radius:24px;background:#f7eaca;color:#7f3447}
.public-avatar img{object-fit:cover}
.public-bio{color:#56515a}
.public-handle{color:#9c675e}
.public-main .kpi{background:#fff}
.public-main .kpi strong{font-weight:770;color:#27262e}
.public-results strong{font-weight:740;color:#744654}
.public-bet>summary{transition:background .2s;border-radius:12px}
.public-bet>summary:hover{background:#fbf7f4}
.public-bet-event>strong{color:#3e3539;font-weight:740}
.public-bet-numbers{background:#faf6ef;border-radius:14px}
.public-stats-grid{gap:18px}
.community-heading{margin:14px 0 25px}
.community-heading h1{color:#33262f;font-weight:800}
.community-heading p{color:#73717b;font-size:14px}
.community-tabs{gap:9px;margin-bottom:22px;border-bottom:1px solid #e9e5e3}
.community-tabs button{color:#77757b;font-weight:700;border-radius:10px 10px 0 0}
.community-tabs button.active{color:#7b1d37;background:#fcf5f3;border-bottom-color:#922e49}
.tipster-grid{gap:17px}
.tipster-card{border-radius:19px;padding:22px;transition:transform .18s,box-shadow .18s,border-color .18s}
.tipster-card:hover{transform:translateY(-2px);border-color:#dfcfc7;box-shadow:0 15px 30px #442a2a14}
.tipster-card h2{color:#302b33!important;font-weight:800}
.tipster-visit{color:#8c2a45}
.ranking-list{border-radius:19px}
.ranking-row{border-color:#efebea;transition:background .16s}
.ranking-row:hover{background:#fcf9f7}
.ranking-position.podium{color:#a86e25;font-weight:830}
.ranking-name strong{font-weight:750;color:#353039}
.ranking-metric strong{font-weight:760;color:#32313a}
.ranking-metric small{color:#797782}

/* Desktop micro interactions only on pointer devices */
@media(hover:hover) and (pointer:fine){
  .kpi:hover,.bankroll-card:hover{transform:translateY(-2px);box-shadow:0 17px 42px rgba(39,28,39,.085)}
}
@media(max-width:1200px){
  .app-layout{grid-template-columns:218px minmax(0,1fr)}
  #sidebar{padding-inline:12px}
  #sidebar .brand{font-size:19px}
  #sidebar .brand img{width:35px;height:35px}
  .main-shell main{padding-inline:24px}
  .kpi{padding:20px 16px}
  .capital-hero{padding:25px}
}
@media(max-width:1000px){
  .dashboard-grid{grid-template-columns:minmax(0,1fr)}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .results-card{grid-template-columns:1fr 1fr}
  .auth-story{padding-inline:34px}
  .auth-copy h1{font-size:clamp(39px,4.6vw,55px)}
  .auth-panel{padding-inline:22px}
  .auth-form{padding:30px 24px}
  .public-stats-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
  html{scroll-padding-top:65px}
  .auth-layout{display:flex;flex-direction:column;min-height:100dvh}
  .auth-story{
    min-height:0;flex:none;
    padding:23px 24px 23px;
    overflow:hidden;
    border-radius:0 0 25px 25px;
    box-shadow:0 10px 25px #50172d14;
  }
  .auth-story .brand{font-size:23px;gap:11px}
  .auth-story .brand img{height:42px;width:42px}
  .auth-story .brand small{font-size:6px;margin-top:3px}
  .auth-copy{margin:0;padding:29px 0 0;max-width:540px}
  .auth-copy>.eyebrow{font-size:9px;letter-spacing:1.25px}
  .auth-copy h1{font-size:clamp(29px,7.7vw,38px);line-height:1.13;letter-spacing:-1.3px;margin:13px 0 11px;font-weight:780}
  .auth-copy>p{font-size:13px;line-height:1.55;max-width:480px;color:#f5dce2}
  .auth-story:after{width:240px;height:240px;right:-155px;bottom:-95px}
  .auth-panel{min-height:0;flex:1;align-items:flex-start;padding:58px 20px 32px;background:#faf9f6}
  .auth-panel .language-label{right:20px;top:13px}
  .language-label select{font-size:12px;min-height:37px;padding:6px 12px}
  .auth-form{max-width:540px;padding:23px 22px;gap:15px;border-radius:20px;box-shadow:0 13px 35px #2d222a0b}
  .auth-form h2{font-size:27px;margin-top:-7px}
  .auth-form>p.muted{font-size:12px;margin:-9px 0 3px}
  .auth-form input{font-size:16px;min-height:48px}
  .auth-form button.primary{min-height:47px}
  .auth-switch{padding-top:14px}
  .app-layout{display:block}
  #sidebar{width:min(290px,85vw);padding:28px 17px}
  #sidebar .brand{font-size:23px}
  #sidebar .brand img{height:40px;width:40px}
  .menu-scrim{background:#1b111db3}
  .topbar{height:62px;padding:0 15px;gap:8px}
  .topbar-mobile-brand{display:inline-flex;font-weight:830;font-size:18px;letter-spacing:-.65px;color:#722039;margin-right:auto}
  .topbar-tools{flex:0 1 auto;gap:8px}
  .bankroll-picker{max-width:40vw;padding:0 4px}
  .bankroll-picker .icon{display:none}
  .bankroll-picker select{max-width:100%;width:unset;font-size:10px;padding:6px}
  #languageSelect{width:52px;min-height:36px;padding:4px}
  #profileAvatar{width:34px;height:34px;font-size:10px}
  #menu{min-width:38px;padding:7px}
  .main-shell main{padding:23px 15px calc(110px + env(safe-area-inset-bottom))}
  .page-heading{margin-bottom:18px;align-items:flex-start;gap:11px}
  .page-heading .eyebrow{font-size:9px;letter-spacing:1.2px}
  .page-heading h1{font-size:27px}
  .page-heading p{font-size:11px}
  .page-heading>.primary{font-size:0;width:43px;height:43px;min-width:43px;border-radius:13px;padding:0}
  .page-heading>.primary .icon{width:23px;height:23px}
  .filter-bar{margin-bottom:17px}
  .filter-top{flex-wrap:nowrap;gap:7px;align-items:center}
  .filter-top>.segmented{min-width:0;flex:1;overflow:auto;scrollbar-width:none}
  .filter-top>.segmented::-webkit-scrollbar{display:none}
  .filter-top>.segmented button{font-size:10px;padding:8px 10px;min-height:36px}
  .filter-top-right{flex-shrink:0}
  .filter-top .secondary{min-height:40px;padding:7px 9px}
  .filter-details{padding:16px;border-radius:16px}
  .filter-grid{gap:12px}
  .capital-hero{border-radius:20px;padding:22px;margin-bottom:15px}
  .capital-main strong{font-size:34px}
  .capital-main p{font-size:10px}
  .capital-details{gap:10px;margin-top:19px}
  .capital-details>div{min-width:0}
  .capital-details strong{font-size:18px;overflow-wrap:anywhere}
  .kpis{gap:11px;margin-bottom:15px}
  .kpi{padding:18px 15px;border-radius:15px;min-height:124px}
  .kpi:before{left:15px;right:15px}
  .kpi-top{margin-bottom:13px}
  .kpi strong{font-size:clamp(21px,5.6vw,27px)}
  .kpi-top small{font-size:10px}
  .kpi p{font-size:10px;line-height:1.45}
  .dashboard-grid{gap:14px;margin-bottom:14px}
  .card{padding:18px;border-radius:16px;margin-bottom:14px}
  .card-head{margin-bottom:17px}
  .card-head h2{font-size:15px}
  .card-head p{font-size:11px}
  .chart-total{font-size:25px}
  .mobile-nav{
    min-height:68px;
    padding:7px 9px calc(6px + env(safe-area-inset-bottom));
    border-top:1px solid #e9e3e2;
    background:rgba(255,255,255,.98);
    box-shadow:0 -8px 30px #2612250c;
    backdrop-filter:blur(15px);
  }
  .mobile-nav button{min-height:50px;border-radius:11px;color:#737783;font-size:10px;font-weight:720;gap:4px}
  .mobile-nav button .icon{width:20px;height:20px}
  .mobile-nav button.active{color:#7d1f39;background:#faedf1}
  .mobile-nav button.mobile-add{background:linear-gradient(140deg,#8b2441,#64162d);width:48px;height:48px;border-radius:16px;box-shadow:0 5px 14px #7e183653}
  .journal-row{border-radius:10px;padding:17px 10px 17px 15px}
  .journal-day>summary{padding:12px}
  .journal-odds strong,.journal-stake strong,.journal-profit strong{font-size:13px}
  .journal-tabs{overflow:auto;scrollbar-width:none}
  .journal-tabs::-webkit-scrollbar{display:none}
  .journal-tabs button{min-width:0}
  .bet-mobile-card{padding:17px 0}
  .bet-mobile-card h3{font-size:14px;font-weight:750}
  .bet-mobile-metrics{border-radius:12px;background:#faf8f6;padding:13px}
  .bet-mobile-metrics small{font-size:10px}
  .bet-mobile-metrics strong{font-size:13px}
  .profile-grid,.profile-public-grid{gap:15px}
  .publication-switch{border-radius:13px}
  .bankroll-cards{gap:12px}
  .bankroll-card .balance{font-size:29px}
  .method-grid{gap:12px}
  dialog{width:calc(100vw - 16px);max-height:94dvh;border-radius:19px;padding:19px 16px;scrollbar-gutter:auto}
  .bet-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:20px;padding:20px 15px}
  .detail-dialog{width:100vw;max-height:100dvh;padding:22px 17px;border-radius:0}
  .dialog-head h2{font-size:21px}
  .dialog-footer{position:sticky;bottom:-19px;margin:0 -16px -19px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));z-index:2;box-shadow:0 -7px 16px #20181e09}
  .bet-dialog .dialog-footer{margin:0 -15px -20px;bottom:-20px;padding-inline:15px}
  .dialog-footer button{min-height:44px}
  .dialog-footer .primary{font-size:12px!important}
  .bet-amounts{gap:10px}
  .bet-amounts input{font-size:20px}
  .bet-preview{padding:14px 12px;gap:9px}
  .bet-preview strong{font-size:19px;overflow-wrap:anywhere}
  .two{gap:11px}
  .share-actions{gap:8px}
  .public-header{padding:15px 17px;align-items:center}
  .public-header .brand{font-size:20px}
  .public-header .brand img{width:34px;height:34px}
  .public-header .brand small{font-size:6px}
  .public-header nav{gap:10px}
  .public-header nav>a{font-size:11px}
  .public-header select{width:59px;padding:6px}
  .public-main{padding:23px 15px 30px}
  .public-hero{padding:23px 18px;border-radius:19px}
  .public-identity{gap:13px}
  .public-identity h1{font-size:25px}
  .public-avatar{width:69px;height:69px;border-radius:18px;font-size:22px}
  .public-avatar.avatar-small{width:47px;height:47px}
  .public-bio{font-size:13px}
  .public-stats-grid{gap:15px}
  .public-main .kpis{gap:10px}
  .public-main .kpi{padding:15px;min-height:110px}
  .community-heading{margin:8px 0 20px}
  .community-heading h1{font-size:30px}
  .community-tabs button{min-height:45px;font-size:12px}
  .tipster-grid{gap:12px}
  .tipster-card{padding:17px;border-radius:16px}
  .ranking-list{padding:4px 14px}
  .ranking-row{gap:13px 11px}
  .ranking-metrics{gap:9px}
  .ranking-metrics .ranking-metric strong{font-size:15px}
  .public-bet>summary{padding:17px 0}
  .public-bet-summary{flex-wrap:wrap}
  .public-footer{margin-top:30px}
}
@media(max-width:410px){
  .auth-story{padding:20px 19px}
  .auth-copy{padding-top:20px}
  .auth-copy h1{font-size:28px}
  .auth-copy>p{font-size:12px}
  .auth-panel{padding:56px 14px 24px}
  .auth-form{padding:20px 18px}
  .page-heading h1{font-size:24px}
  .main-shell main{padding-inline:12px}
  .bankroll-picker{max-width:36vw}
  .kpis{gap:9px}
  .kpi{padding:14px 12px}
  .kpi strong{font-size:20px}
  .capital-hero{padding:19px}
  .public-header{gap:8px}
  .public-header nav>a{font-size:10px}
  .public-header .brand{font-size:17px}
  .public-avatar{width:60px;height:60px}
  .ranking-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dialog-footer{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}


/* MyBankroll 2.6 · consistent local type, real language flags and compact empty states. */
@font-face{font-family:"MyBankroll Inter";src:url("fonts/InterVariable.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
:root,body{font-family:"MyBankroll Inter",Inter,"Segoe UI",system-ui,-apple-system,sans-serif;font-optical-sizing:auto}
button,input,textarea,select,.button{font-family:inherit}
.brand{white-space:nowrap;letter-spacing:-.7px}.brand .brand-light{font-weight:450}
.kpi strong,.capital-hero strong,.ranking-metric strong,.chart-total{font-variant-numeric:tabular-nums}
.tf-language-native{display:none!important}
.tf-language-switcher{display:inline-flex;position:relative;flex-shrink:0;text-align:left;vertical-align:middle;line-height:1.4}
.tf-language-trigger{min-height:42px;display:inline-flex;gap:9px;align-items:center;justify-content:flex-start;background:#fff;color:#4b3741;border:1px solid #e8e2db;border-radius:12px;padding:9px 12px;font-size:12px;white-space:nowrap;font-weight:600}
.tf-language-trigger:hover,.tf-language-trigger[aria-expanded=true]{border-color:#c3a077;background:#fffaf4}
.tf-language-flag{width:23px;height:16px;border-radius:3px;box-shadow:0 0 0 1px #49333114;flex-shrink:0;overflow:hidden}
.tf-language-code{display:none}.tf-language-chevron{width:14px;height:14px;flex-shrink:0;margin-left:auto;color:#8c7c77}
.tf-language-list{position:absolute;right:0;top:calc(100% + 8px);z-index:90;min-width:170px;padding:6px;background:#fff;border:1px solid #e9e1da;border-radius:14px;box-shadow:0 14px 40px #42293624}
.tf-language-list[hidden]{display:none}
.tf-language-list>button{display:flex;gap:11px;width:100%;justify-content:flex-start;background:transparent;color:#55434a;padding:11px;min-height:43px;border-radius:9px;font-size:12px;font-weight:550}
.tf-language-list>button:hover,.tf-language-list>button[aria-selected=true]{background:#f8edf0;color:#7d1f39}
.tf-language-list>button:focus-visible{outline-offset:-2px}
.language-label .tf-language-trigger{min-width:141px}.public-header nav .tf-language-trigger{min-width:130px}
.tf-chart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:27px 18px;margin-top:20px;background:linear-gradient(120deg,#fcfaf6,#faf5f3);border:1px dashed #e3d6cf;border-radius:14px;min-height:156px}
.tf-chart-empty>.icon{width:28px;height:28px;color:#b78d58;margin-bottom:3px}.tf-chart-empty h3{font-size:14px;font-weight:650;color:#67515c}.tf-chart-empty p{font-size:12px;line-height:1.7;max-width:350px;color:#8d7b7e}.tf-chart-empty button{font-size:11px;min-height:40px;margin-top:4px}
.chart-card.is-empty .chart-note{display:none}.chart-card.is-empty .chart-total{display:none}
.ranking-unrated .ranking-position{color:#b0a6a5;font-weight:400}.ranking-state{display:block;font-size:10px;line-height:1.6;margin-top:7px;color:#a18d72}.ranking-unrated .ranking-metric strong{color:#8d8188}
.public-avatar img{object-fit:contain}.tf-tipster-card{min-width:0}.tf-tipster-details h2{overflow-wrap:anywhere}
@media(min-width:761px) and (max-height:800px){.auth-panel{padding-block:62px 28px}.auth-form{padding:28px 30px;gap:16px}.auth-form h2{font-size:32px}.auth-story{padding-block:35px}.auth-copy h1{font-size:clamp(42px,4.8vw,68px)}.auth-features{margin-top:25px;gap:13px}}
@media(max-width:760px){
 .auth-story{padding:19px 21px;border-radius:0 0 22px 22px}.auth-story .brand{font-size:22px}.auth-story .brand img{width:36px;height:36px}.auth-story .brand small{font-size:6px}
 .auth-copy{padding-top:15px}.auth-copy>.eyebrow{display:none}.auth-copy h1{font-size:26px;line-height:1.14;letter-spacing:-1px;margin:0 0 10px}.auth-copy>p{font-size:12px;line-height:1.55;max-width:460px}
 .auth-panel{padding:58px 15px 25px;min-height:0}.auth-panel .language-label{right:16px;top:12px}.language-label .tf-language-trigger{min-height:38px;padding:7px 11px;min-width:136px}
 .auth-form{padding:21px 20px;gap:14px}.auth-form>.eyebrow,.auth-form>p.muted{display:none}.auth-form h2{font-size:27px;margin:0 0 3px}.auth-form input{min-height:46px}.auth-form button.primary{min-height:46px}.auth-switch{padding-top:13px}.auth-form>small{font-size:11px;line-height:1.6}
 .topbar{padding-inline:12px;gap:6px}.topbar-tools{min-width:0;gap:7px}.topbar-mobile-brand{font-size:17px;flex-shrink:0;margin-right:3px}.bankroll-picker{min-width:0;max-width:unset;flex:1}.bankroll-picker select{width:100%;text-overflow:ellipsis}
 .topbar .tf-language-name{display:none}.topbar .tf-language-code{display:inline;font-size:10px}.topbar .tf-language-trigger{min-width:0;min-height:40px;padding:7px;gap:5px;border-radius:10px}.topbar .tf-language-flag{width:20px;height:14px}.topbar .tf-language-chevron{width:11px}
 .topbar #profileAvatar{flex-shrink:0}.tf-chart-empty{padding:23px 14px;min-height:145px;gap:9px}.tf-chart-empty h3{font-size:14px}.tf-chart-empty p{font-size:11px}
 .chart-card.is-empty{margin-bottom:0}.public-header nav{align-items:center;gap:12px}.public-header nav .tf-language-trigger{min-width:128px;min-height:40px}
 .ranking-state{font-size:10px}.public-main .ranking-metrics .ranking-metric strong{white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:760px) and (max-height:740px){.auth-copy>p{display:none}.auth-copy h1{font-size:24px;margin:0}.auth-story{padding-block:17px}.auth-form{gap:12px}}

/* MyBankroll 2.13: room for the longer brand and circular WebP icon. */
.brand img{object-fit:contain;border-radius:50%}
.sidebar .brand{font-size:clamp(17px,1.65vw,23px)}
.brand small{letter-spacing:1.5px}
@media(max-width:760px){.brand{font-size:20px}.topbar-mobile-brand{font-size:16px;letter-spacing:-.4px}}
