:root {
  --ink:#201b17; --muted:#74665b; --coffee:#795337; --coffee-dark:#604027;
  --cream:#f4ece4; --line:rgba(115,83,57,.12);
  --glass:rgba(255,252,248,.67);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:var(--ink); background:#f1e8de; font-synthesis:none;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(ellipse at 87% 16%,#d6bba375,transparent 45%),radial-gradient(ellipse at 7% 4%,#fffefd,transparent 56%),linear-gradient(120deg,#f6f0e9,#efe4d9);font-size:15px}
button,input,a{-webkit-tap-highlight-color:transparent}
button,input{font:inherit}
button{cursor:pointer}
button,a{touch-action:manipulation}
button:disabled{opacity:.6;cursor:wait}
button,a{transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
button:hover:not(:disabled),.share-button:hover{transform:translateY(-2px)}
button:active:not(:disabled),.share-button:active{transform:translateY(0)}
a{color:inherit}
svg{display:block;width:24px;height:24px;flex-shrink:0}
h1,h2,p{margin:0}
h1,h2{color:#171411;letter-spacing:-.7px;font-weight:650}
h1{font-size:clamp(26px,2.8vw,34px);line-height:1.22}
h2{font-size:26px;line-height:1.3}
.glass{background:linear-gradient(125deg,rgba(255,254,251,.82),rgba(252,247,241,.57));border:1px solid rgba(255,255,255,.78);border-radius:28px;box-shadow:0 14px 38px rgba(108,76,48,.075),inset 0 1px 0 rgba(255,255,255,.85);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.ambient{position:fixed;z-index:-1;pointer-events:none;border-radius:50%}
.ambient-one{width:50vw;height:50vw;right:-15vw;top:10vh;background:radial-gradient(circle,#ccaa8560,transparent 65%)}
.ambient-two{width:60vw;height:60vw;left:-20vw;bottom:-10vh;background:radial-gradient(circle,#fff9,transparent 65%)}
.shell{width:100%;max-width:1280px;margin:0 auto;padding:16px 18px 24px}
.top-header{min-height:88px;padding:16px 30px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:28px;border-radius:27px;box-shadow:0 10px 23px #74503312}
.brand{display:flex;align-items:center;gap:17px;font-size:26px;font-weight:700;letter-spacing:-1px;white-space:nowrap}
.brand-mark{display:grid;place-items:center;width:49px;height:49px;flex:0 0 auto;background:linear-gradient(135deg,#906344,#69472f);color:#fff;font-size:30px;font-weight:650;line-height:1;border-radius:15px;box-shadow:0 5px 9px #68473415}
nav{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}
.nav-tab{position:relative;display:flex;align-items:center;justify-content:center;gap:11px;border:0;background:transparent;padding:17px 17px;border-radius:19px 19px 12px 12px;color:#493425;font-size:14px;white-space:nowrap;font-weight:500}
.nav-tab svg{width:22px;height:22px}
.nav-tab.active{background:linear-gradient(120deg,#fffdfbcc,#ffffffa6);box-shadow:0 5px 15px #98795a05}
.nav-tab.active::after{content:"";position:absolute;bottom:-3px;left:9px;right:9px;height:3px;border-radius:3px;background:#775339}
.nav-tab:hover{background:#ffffff80}
.profile-badge{display:flex;align-items:center;gap:11px;min-width:0;max-width:210px;padding:7px 13px 7px 7px;background:#ffffff63;border:1px solid #fff8;border-radius:36px}
.avatar{display:grid;place-items:center;width:39px;height:39px;flex:0 0 auto;background:linear-gradient(130deg,#dfd1c4,#eee4db);border-radius:50%;font-size:23px;color:#5c4737}
.profile-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:135px}
.main{padding:30px 14px 0;min-width:0}
.page{display:grid;gap:24px;animation:page-enter .28s ease-out}
.hero{position:relative;isolation:isolate;overflow:hidden;padding:28px 30px}
.hero-heading{position:relative;z-index:1;display:flex;align-items:center;gap:20px;margin-bottom:24px}
.hero-icon{display:grid;place-items:center;flex:0 0 auto;width:74px;height:74px;background:linear-gradient(135deg,#eee3d8,#f3eae3);border:1px solid #fff7;border-radius:23px;color:#694426}
.hero-icon svg{width:42px;height:42px;stroke-width:1.65}
.hero-heading p{margin-top:6px;color:#6d5e53;font-size:16px;line-height:1.5;max-width:570px}
.liquid-decoration{position:absolute;z-index:0;top:-72px;right:-22px;width:370px;height:auto;pointer-events:none;opacity:.95}
.hero::before{content:"";position:absolute;z-index:-1;width:390px;height:260px;right:-60px;top:-30px;background:radial-gradient(ellipse,#b78e6970,transparent 70%);pointer-events:none}
.link-row{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 172px;gap:12px}
.link-row input{width:100%;min-width:0;height:62px;border:1px solid #bca48e4d;border-radius:18px;background:linear-gradient(110deg,#ffffff70,#f2e9e06b);box-shadow:inset 0 1px 1px #fff9;padding:14px 25px;color:#332419;font-size:20px;font-weight:500;text-overflow:ellipsis}
.copy-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:1px solid #92684855;border-radius:17px;background:linear-gradient(135deg,#8c6445,#775034);box-shadow:inset 0 1px 0 #ffffff20,0 6px 14px #7550350c;padding:17px 22px;color:#fff;font-size:16px;font-weight:500;white-space:nowrap;min-height:52px}
.copy-button:hover{background:linear-gradient(135deg,#80593d,#67432b);box-shadow:0 7px 18px #75503524}
.copy-button svg{width:23px;height:23px}
.share-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:20px;position:relative;z-index:1}
.share-button{display:flex;align-items:center;justify-content:center;gap:14px;min-height:59px;border:1px solid #d7c8ba91;border-radius:18px;background:#fffcf761;box-shadow:inset 0 1px 0 #fffc;color:#241e19;text-decoration:none;font-size:13px;font-weight:500;padding:12px 10px;min-width:0;white-space:nowrap}
.share-button:hover{background:#fffaf3;box-shadow:0 5px 16px #7953370d}
.share-button svg{width:28px;height:28px}
.configuration-note{color:var(--muted);font-size:12px;line-height:1.7;margin-top:16px}











.chart-panel,.statistics-panel{padding:24px 30px 26px;min-width:0;position:relative;overflow:hidden}
.chart-panel::before{content:"";position:absolute;pointer-events:none;right:-70px;top:-170px;width:370px;height:370px;border:14px double #fff5;border-radius:46% 54% 40% 60%;transform:rotate(32deg);box-shadow:inset 5px 6px 10px #c3a58d0b,0 0 0 2px #e9d7c422}
.chart-panel::after{content:"";position:absolute;pointer-events:none;right:-80px;bottom:-230px;width:270px;height:300px;border:10px double #fff3;border-radius:45%;transform:rotate(-35deg)}
.panel-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}
.panel-head h2{display:flex;align-items:center;gap:14px;font-size:26px}
.period-pill{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;border:1px solid #fff5;border-radius:28px;background:#fffaf582;color:#4e3828;font-size:14px;padding:10px 16px;white-space:nowrap}
.period-pill svg{width:21px;height:21px}
.chart{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;height:210px;margin-top:36px}
.y-axis{display:flex;flex-direction:column;justify-content:space-between;color:#827469;font-size:12px;text-align:right;padding-right:8px}
.y-axis span{line-height:1;transform:translateY(-50%)}
.y-axis span:last-child{transform:translateY(50%)}
.plot{position:relative;min-width:0;border-bottom:1px solid #ad968538}
.grid-lines{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.grid-lines span{display:block;border-top:1px solid #9a82630d;width:100%}
.bars{height:100%;display:flex;align-items:flex-end;gap:20px;padding:0 20px}
.bar-column{height:100%;flex:1;min-width:0;display:flex;align-items:flex-end;justify-content:center}
.bar{position:relative;width:100%;max-width:94px;height:var(--bar-height);min-height:2px;border-radius:9px 9px 0 0;background:linear-gradient(140deg,#c9a17e,#a47d5f 48%,#795136);box-shadow:inset 1px 0 0 #fff3,inset -1px 0 5px #714b2d08;transform-origin:bottom;animation:bar-enter .45s cubic-bezier(.2,.7,.3,1) both}
.bar-value{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);color:#503926;white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}
.chart-labels{margin:12px 0 0 44px;display:flex;gap:20px;padding:0 20px;color:#756557;text-align:center}
.chart-labels>span{flex:1;min-width:0;font-size:13px}
.chart-labels small{display:block;font-size:10px;color:#9b8979;margin-top:5px;white-space:nowrap}
.chart-legend{display:flex;align-items:center;gap:9px;margin:26px 0 0 52px;color:#746354;font-size:13px;position:relative}
.legend-dot{width:14px;height:14px;border-radius:50%;background:#8a5e3f;flex-shrink:0}
.chart-empty{color:var(--muted);font-size:11px;margin-left:12px}
.statistics-panel .panel-head{margin-bottom:18px}
.table-icon{width:44px;height:44px;display:grid;place-items:center;background:linear-gradient(135deg,#eee1d4,#f7efe8);border-radius:14px;color:#795335;flex:0 0 auto}
.table-icon svg{width:27px;height:27px}
.table-wrap{overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;border-radius:11px;scrollbar-width:thin;scrollbar-color:#c2a68d transparent}
table{width:100%;min-width:620px;border-collapse:collapse;table-layout:auto;font-variant-numeric:tabular-nums;text-align:center}
th{font-size:11px;font-weight:500;text-transform:uppercase;color:#7e6d5e;background:#eee2d74d;padding:14px 12px;white-space:nowrap;letter-spacing:.1px}
th:first-child,td:first-child{text-align:left;padding-left:22px}
th:first-child{border-radius:11px 0 0 11px}
th:last-child{border-radius:0 11px 11px 0}
td{padding:15px 12px;border-bottom:1px solid #c9b8a62b;color:#635246;font-size:14px;white-space:nowrap}
tbody tr:last-child td{border-bottom:0}
tbody tr{transition:background .16s ease}
tbody tr:hover{background:#fff9}
.unavailable{color:#938171}
td.empty{text-align:center;padding:40px 15px;white-space:normal;color:var(--muted)}
.data-note{font-size:11px;color:#938173;line-height:1.6;margin:18px 0 0}



#toast{position:fixed;z-index:30;bottom:24px;left:50%;max-width:calc(100% - 32px);transform:translate(-50%,12px);opacity:0;pointer-events:none;padding:13px 22px;border:1px solid #ffffff30;border-radius:15px;background:#63442ff2;color:#fff;font-size:13px;box-shadow:0 8px 28px #4b2e232b;transition:opacity .2s,transform .2s;text-align:center}
#toast.show{opacity:1;transform:translate(-50%,0)}
.error-page{padding:32px;min-height:100vh;display:grid;place-items:center}
.error-card{padding:36px;max-width:580px}
.error-card h1{font-size:26px;margin-top:24px}
.error-card p{margin:16px 0 24px;color:var(--muted);line-height:1.7}
.loading{padding:60px;text-align:center;color:var(--muted)}
@keyframes page-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes bar-enter{from{transform:scaleY(.04);opacity:.5}to{transform:scaleY(1);opacity:1}}
@media(min-width:1200px){.main{padding-top:32px}.hero{padding:32px}.hero-heading{margin-bottom:27px}.link-row input{height:66px}.share-row{margin-top:23px}.share-button{min-height:62px}.chart{height:245px}.chart-panel{padding-bottom:30px}}
@media(max-width:1050px){.top-header{padding:14px 22px;gap:15px}.brand{gap:13px;font-size:23px}.brand-mark{width:46px;height:46px}.nav-tab{padding:16px 12px;font-size:13px;gap:8px}.profile-badge{max-width:176px}.profile-name{max-width:105px}.share-button{gap:10px}}
@media(max-width:850px){.top-header{grid-template-columns:1fr auto;gap:12px;padding:16px 22px}.top-header nav{grid-column:1/-1;grid-row:2;justify-content:center}.profile-badge{grid-column:2;grid-row:1;max-width:220px}.nav-tab{padding:12px 22px}.main{padding:24px 6px 0}.hero{padding:25px}.hero-heading p{font-size:14px;max-width:410px}.liquid-decoration{width:290px;top:-65px;opacity:.65}.share-row{gap:9px}.share-button{font-size:12px;gap:8px;flex-direction:column}.share-button svg{width:23px;height:23px}.link-row{grid-template-columns:minmax(0,1fr) 150px}.link-row input{font-size:16px;padding:14px 18px}.copy-button{font-size:14px;padding:14px}.panel-head h2{font-size:24px}.chart-panel,.statistics-panel{padding:24px}.bars,.chart-labels{gap:14px;padding-left:12px;padding-right:12px}}
@media(max-width:540px){body{font-size:14px}.shell{padding:12px 12px 20px}.top-header{border-radius:23px;padding:15px 16px;gap:14px}.brand{gap:10px;font-size:22px;letter-spacing:-.8px}.brand-mark{width:39px;height:39px;border-radius:12px;font-size:26px}.profile-badge{max-width:137px;padding:5px 8px 5px 5px;gap:6px}.avatar{width:30px;height:30px;font-size:18px}.profile-name{font-size:11px;max-width:84px}.top-header nav{justify-content:space-between;gap:3px}.nav-tab{padding:13px 8px;gap:7px;font-size:11px;flex:1}.nav-tab svg{width:17px;height:17px}.nav-tab.active::after{height:2px}.main{padding:20px 0 0}.page{gap:16px}.glass{border-radius:23px}.hero{padding:21px 18px}.hero-heading{gap:12px;align-items:flex-start;margin-bottom:21px}.hero-icon{width:49px;height:49px;border-radius:15px}.hero-icon svg{width:29px;height:29px}h1{font-size:25px}.hero-heading p{font-size:12px;line-height:1.6;max-width:255px;margin-top:5px}.liquid-decoration{width:220px;top:-55px;right:-80px;opacity:.4}.hero::before{width:230px;opacity:.5}.link-row{grid-template-columns:minmax(0,1fr);gap:10px}.link-row input{height:52px;font-size:14px;border-radius:14px;padding:13px 15px}.copy-button{min-height:48px;border-radius:14px;padding:12px;font-size:14px}.share-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:16px}.share-button{flex-direction:row;grid-column:span 2;min-height:48px;padding:10px 5px;border-radius:13px;font-size:11px;gap:7px}.share-button:nth-child(n+4){grid-column:span 3}.share-button svg{width:22px;height:22px}.chart-panel,.statistics-panel{padding:20px 17px}.panel-head{gap:10px;margin-bottom:24px}.panel-head h2{font-size:20px;letter-spacing:-.6px;gap:8px}.period-pill{font-size:11px;gap:6px;padding:9px 10px}.period-pill svg{width:16px;height:16px}.chart{grid-template-columns:27px minmax(0,1fr);gap:3px;height:170px;margin-top:32px}.y-axis{font-size:10px;padding-right:5px}.bars{gap:9px;padding:0 5px}.bar{border-radius:6px 6px 0 0}.bar-value{font-size:10px}.chart-labels{margin-left:30px;gap:9px;padding:0 5px}.chart-labels>span{font-size:10px}.chart-labels small{font-size:8px;margin-top:4px}.chart-legend{margin:20px 0 0 32px;font-size:11px;gap:7px;flex-wrap:wrap}.legend-dot{width:11px;height:11px}.chart-empty{font-size:10px;margin-left:0}.statistics-panel .panel-head{align-items:flex-start;flex-wrap:wrap;gap:12px}.table-icon{width:32px;height:32px;border-radius:10px}.table-icon svg{width:21px;height:21px}.statistics-panel .period-pill{margin-left:auto}.data-note{font-size:10px}}
@media(max-width:360px){.top-header{padding:13px 12px}.brand{font-size:19px;gap:7px}.profile-badge{max-width:111px}.profile-name{max-width:63px;font-size:10px}.nav-tab{font-size:10px;gap:5px;padding-left:5px;padding-right:5px}.share-button{font-size:10px;gap:5px}.panel-head h2{font-size:18px}.period-pill{font-size:10px}.hero-heading h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@supports not (backdrop-filter:blur(1px)){.glass{background:#faf5ef}.top-header{background:#faf7f2}}
.h0{--bar-height:0%}.h1{--bar-height:1%}.h2{--bar-height:2%}.h3{--bar-height:3%}.h4{--bar-height:4%}.h5{--bar-height:5%}.h6{--bar-height:6%}.h7{--bar-height:7%}.h8{--bar-height:8%}.h9{--bar-height:9%}.h10{--bar-height:10%}.h11{--bar-height:11%}.h12{--bar-height:12%}.h13{--bar-height:13%}.h14{--bar-height:14%}.h15{--bar-height:15%}.h16{--bar-height:16%}.h17{--bar-height:17%}.h18{--bar-height:18%}.h19{--bar-height:19%}.h20{--bar-height:20%}.h21{--bar-height:21%}.h22{--bar-height:22%}.h23{--bar-height:23%}.h24{--bar-height:24%}.h25{--bar-height:25%}.h26{--bar-height:26%}.h27{--bar-height:27%}.h28{--bar-height:28%}.h29{--bar-height:29%}.h30{--bar-height:30%}.h31{--bar-height:31%}.h32{--bar-height:32%}.h33{--bar-height:33%}.h34{--bar-height:34%}.h35{--bar-height:35%}.h36{--bar-height:36%}.h37{--bar-height:37%}.h38{--bar-height:38%}.h39{--bar-height:39%}.h40{--bar-height:40%}.h41{--bar-height:41%}.h42{--bar-height:42%}.h43{--bar-height:43%}.h44{--bar-height:44%}.h45{--bar-height:45%}.h46{--bar-height:46%}.h47{--bar-height:47%}.h48{--bar-height:48%}.h49{--bar-height:49%}.h50{--bar-height:50%}.h51{--bar-height:51%}.h52{--bar-height:52%}.h53{--bar-height:53%}.h54{--bar-height:54%}.h55{--bar-height:55%}.h56{--bar-height:56%}.h57{--bar-height:57%}.h58{--bar-height:58%}.h59{--bar-height:59%}.h60{--bar-height:60%}.h61{--bar-height:61%}.h62{--bar-height:62%}.h63{--bar-height:63%}.h64{--bar-height:64%}.h65{--bar-height:65%}.h66{--bar-height:66%}.h67{--bar-height:67%}.h68{--bar-height:68%}.h69{--bar-height:69%}.h70{--bar-height:70%}.h71{--bar-height:71%}.h72{--bar-height:72%}.h73{--bar-height:73%}.h74{--bar-height:74%}.h75{--bar-height:75%}.h76{--bar-height:76%}.h77{--bar-height:77%}.h78{--bar-height:78%}.h79{--bar-height:79%}.h80{--bar-height:80%}.h81{--bar-height:81%}.h82{--bar-height:82%}.h83{--bar-height:83%}.h84{--bar-height:84%}.h85{--bar-height:85%}.h86{--bar-height:86%}.h87{--bar-height:87%}.h88{--bar-height:88%}.h89{--bar-height:89%}.h90{--bar-height:90%}.h91{--bar-height:91%}.h92{--bar-height:92%}.h93{--bar-height:93%}.h94{--bar-height:94%}.h95{--bar-height:95%}.h96{--bar-height:96%}.h97{--bar-height:97%}.h98{--bar-height:98%}.h99{--bar-height:99%}.h100{--bar-height:100%}



.footer{margin:10px 0 0;padding:6px 0 0;border-top:1px solid var(--line);font-size:11px;line-height:1.6;color:var(--muted);min-width:0;overflow-wrap:normal}

/* Permit ordinary scrolling while excluding pinch and double-tap scaling. */
@media(any-pointer:coarse){
 html,body{touch-action:pan-x pan-y}
 .link-row input,input,select,textarea{font-size:max(16px,1em)}
}


/* Account header: profile disclosure and two balance widgets only. */
.top-header.account-header{
 position:relative;isolation:isolate;z-index:10;overflow:visible;
 display:grid;grid-template-columns:minmax(200px,.9fr) minmax(0,2fr);
 align-items:center;gap:28px;min-height:150px;padding:28px 32px;
 color:#fff8ee;border:1px solid #a56f4b99;border-radius:38px 38px 32px 56px;
 background:radial-gradient(ellipse at 92% 2%,#c3936d66,transparent 57%),linear-gradient(115deg,#98613d,#79482b 46%,#a76c46);
 box-shadow:0 16px 32px #784c2b24,inset 0 2px 1px #ffe6ca70,inset 0 -2px 0 #5a311c44;
}
.account-header>.header-surface{position:absolute;inset:0;z-index:-1;overflow:hidden;border-radius:inherit;pointer-events:none}
.header-surface::before{content:"";position:absolute;width:104%;height:185%;right:-10%;bottom:-140%;border:1px solid #ffe0bb77;border-radius:50%;transform:rotate(-10deg);background:linear-gradient(155deg,#edbd9524,#ffdec60a);box-shadow:0 -30px 0 #f1c5a00b}
.header-surface::after{content:"";position:absolute;inset:5px;border-radius:inherit;border:1px solid #ffe4c74d;background:linear-gradient(135deg,#ffe1bb0b,transparent 40%,#ffefce08)}
.profile-control{position:relative;min-width:0;z-index:3}
.publisher-trigger{display:flex;align-items:center;gap:14px;max-width:100%;min-width:0;padding:0;border:0;border-radius:20px;background:transparent;color:#fff7ed;text-align:left}
.publisher-trigger:hover{transform:none;background:#fff1df0a}
.publisher-avatar{display:grid;place-items:center;flex:0 0 auto;width:62px;height:62px;border:1px solid #ffe6cc80;border-radius:21px;background:linear-gradient(135deg,#e6b58c80,#c1885d30);box-shadow:inset 0 1px 2px #fff9,0 5px 12px #4e2b1710;color:#fff9ef;font-size:36px;font-weight:600}
.publisher-name{min-width:0;white-space:normal;overflow-wrap:normal;font-size:clamp(18px,1.8vw,24px);font-weight:600;line-height:1.3;letter-spacing:-.4px}
.profile-chevron{flex:0 0 auto;transition:transform .18s ease}
.profile-chevron svg{width:20px;height:20px}
.publisher-trigger[aria-expanded="true"] .profile-chevron{transform:rotate(180deg)}
.header-balances{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;min-width:0}
.header-balance{display:flex;align-items:center;gap:15px;min-width:0;margin:0;padding:17px 18px;border:1px solid #efd4bb69;border-radius:27px;background:linear-gradient(135deg,#e6b89022,#b77b5213);box-shadow:inset 0 1px 0 #ffe1c447,0 4px 12px #5c351a06;backdrop-filter:blur(10px);transition:background .2s,box-shadow .2s}
.header-balance:hover{background:#f0bc8b2b;box-shadow:inset 0 1px 0 #ffe1c477,0 6px 14px #5c351a10}
.balance-icon{display:grid;place-items:center;flex:0 0 auto;width:54px;height:54px;border:1px solid #ffead480;border-radius:18px;background:linear-gradient(135deg,#f0c7a650,#daaa8220);box-shadow:inset 0 1px 2px #fff6;color:#fff8ec}
.balance-icon svg{width:31px;height:31px;stroke-width:1.8}
.balance-content{min-width:0}
.header-balance h2{color:#fff1df;font-size:14px;line-height:1.4;font-weight:400;letter-spacing:0;overflow-wrap:normal}
.header-balance-value{margin-top:3px;color:#fff9ef;font-size:30px;font-weight:650;line-height:1.2;letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:normal}
.account-header .profile-menu{
 position:absolute;z-index:40;top:calc(100% + 16px);left:0;
 display:flex;flex-direction:column;align-items:stretch;gap:4px;
 width:284px;max-width:calc(100vw - 64px);max-height:min(360px,60vh);overflow-y:auto;
 margin:0;padding:12px;border:1px solid #ffffffd9;border-radius:24px;
 background:linear-gradient(130deg,#fffdf8f7,#fbf2e9f5);
 box-shadow:0 18px 42px #68432a29,inset 0 1px 0 white;
 backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
 opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-5px) scale(.98);transform-origin:30px 0;
 transition:opacity .17s ease,transform .17s ease,visibility .17s;
}
.account-header .profile-menu.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}
.menu-item{display:flex;align-items:center;gap:15px;min-width:0;width:100%;padding:15px 17px;border:0;border-radius:17px;background:transparent;color:#624b39;text-align:left;font-size:16px;line-height:1.4;white-space:normal}
.menu-item span{min-width:0;overflow-wrap:normal}
.menu-item svg{width:24px;height:24px;color:#705137}
.menu-item.active{background:linear-gradient(110deg,#efd9c788,#f2e2d5a6);color:#644126;font-weight:600}
.menu-item:hover{transform:none;background:#edddcc8c}
@media(max-width:1050px){
 .top-header.account-header{padding:25px 25px;gap:22px;grid-template-columns:minmax(180px,.85fr) minmax(0,2fr)}
 .publisher-avatar{width:52px;height:52px;border-radius:18px;font-size:31px}
 .publisher-trigger{gap:11px}
 .header-balances{gap:14px}
 .header-balance{padding:15px 14px;gap:11px;border-radius:24px}
 .balance-icon{width:44px;height:44px;border-radius:15px}
 .balance-icon svg{width:27px;height:27px}
 .header-balance h2{font-size:12px}
 .header-balance-value{font-size:27px}
}
@media(max-width:850px){
 .top-header.account-header{grid-template-columns:minmax(0,1fr);gap:18px;min-height:0;padding:22px 24px;border-radius:31px 31px 28px 45px}
 .profile-control{justify-self:start;max-width:100%}
 .publisher-name{font-size:22px}
 .header-balances{width:100%;gap:15px}
 .header-balance{gap:14px;padding:15px 17px}
 .header-balance h2{font-size:13px}
}
@media(max-width:540px){
 .top-header.account-header{padding:17px 15px;gap:15px;border-radius:27px 27px 25px 36px}
 .publisher-avatar{width:43px;height:43px;font-size:27px;border-radius:15px}
 .publisher-name{font-size:19px}
 .profile-chevron svg{width:18px;height:18px}
 .header-balances{gap:10px}
 .header-balance{gap:8px;padding:11px 10px;border-radius:18px;align-items:flex-start}
 .balance-icon{width:30px;height:30px;border-radius:11px}
 .balance-icon svg{width:21px;height:21px}
 .header-balance h2{font-size:10px;line-height:1.4}
 .header-balance-value{font-size:23px;margin-top:5px}
 .account-header .profile-menu{top:calc(100% + 12px);width:264px;border-radius:21px;padding:9px}
 .menu-item{padding:14px;gap:12px;font-size:15px}
}
@media(max-width:360px){
 .top-header.account-header{padding:16px 12px}
 .header-balance{gap:6px;padding:11px 8px}
 .balance-icon{width:26px;height:26px;border-radius:9px}
 .balance-icon svg{width:18px;height:18px}
 .header-balance-value{font-size:21px}
}

/* Full-bleed header: only the bottom-left corner is rounded. */
.top-header.account-header{
 width:100%;max-width:none;margin:0;border-top:0;border-left:0;border-right:0;
 border-radius:0 0 0 clamp(64px,8vw,120px);
 min-height:clamp(160px,15vw,210px);
 padding-inline:max(32px,calc((100% - 1180px)/2));
}
.account-header+.shell{padding-top:0}
@media(max-width:850px){
 .top-header.account-header{min-height:0;padding-inline:24px;border-radius:0 0 0 78px}
}
@media(max-width:540px){
 .top-header.account-header{padding:18px 18px 21px;border-radius:0 0 0 64px}
}
@media(max-width:360px){
 .top-header.account-header{padding-inline:14px}
}

/* A single main balance stays at the top right; profile stays left. */
.top-header.account-header{grid-template-columns:minmax(0,1fr) minmax(0,320px);align-items:start}
.account-header .header-balances{grid-template-columns:minmax(0,1fr);justify-self:end;align-self:start;width:100%;max-width:320px}
@media(max-width:850px){
 .top-header.account-header{grid-template-columns:minmax(0,1fr) minmax(0,260px);gap:18px}
 .account-header .profile-control{align-self:start}
}
@media(max-width:540px){
 .top-header.account-header{grid-template-columns:minmax(0,1fr) minmax(0,142px);gap:12px}
 .account-header .publisher-trigger{gap:8px}
 .account-header .publisher-avatar{width:36px;height:36px;font-size:24px;border-radius:12px}
 .account-header .publisher-name{font-size:15px}
 .account-header .profile-chevron svg{width:14px;height:14px}
}
@media(max-width:360px){
 .top-header.account-header{grid-template-columns:minmax(0,1fr) minmax(0,134px);gap:10px}
 .account-header .publisher-trigger{gap:6px}
 .account-header .publisher-name{font-size:14px}
}

/* Compact main-balance widget; header shape and other content stay unchanged. */
.account-header .header-balances{max-width:190px}
.account-header .header-balance{padding:10px 12px;gap:10px;border-radius:20px}
.account-header .balance-icon{width:34px;height:34px;border-radius:12px}
.account-header .balance-icon svg{width:22px;height:22px}
.account-header .header-balance h2{font-size:11px;line-height:1.35}
.account-header .header-balance-value{font-size:25px;line-height:1.2;margin-top:2px}
@media(max-width:850px){.account-header .header-balances{max-width:170px}}
@media(max-width:540px){
 .account-header .header-balances{max-width:124px}
 .account-header .header-balance{padding:8px;gap:6px;border-radius:15px}
 .account-header .balance-icon{width:24px;height:24px;border-radius:9px}
 .account-header .balance-icon svg{width:17px;height:17px}
 .account-header .header-balance h2{font-size:10px}
 .account-header .header-balance-value{font-size:21px}
}

/* High-contrast profile disclosure; only profile/menu presentation changes. */
.top-header.account-header{z-index:20;overflow:visible}
.account-header .profile-control{z-index:5;overflow:visible}
.account-header .publisher-trigger{
 min-height:44px;padding:6px 10px 6px 6px;
 border:1px solid #ffe7cf94;border-radius:22px;
 color:#fff;background:linear-gradient(130deg,#fff3df30,#ffdebd17);
 box-shadow:inset 0 1px 0 #fff5,0 5px 14px #4b281316;
 backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.account-header .publisher-trigger:hover:not(:disabled),
.account-header .publisher-trigger[aria-expanded="true"]{transform:none;background:linear-gradient(130deg,#fff3df43,#ffdebd28);border-color:#ffe9d0c4}
.account-header .publisher-avatar{
 width:50px;height:50px;border-radius:16px;
 background:linear-gradient(135deg,#fff0db,#eac7a2);color:#5a341b;
 border-color:#fff3dfd9;box-shadow:inset 0 1px 2px #fff9,0 3px 9px #4b28131a;
 font-size:30px;font-weight:700;
}
.account-header .publisher-name{color:#fffaf3;font-weight:700;text-shadow:0 1px 3px #3a1b1655}
.account-header .profile-chevron{color:#fffaf1}
.account-header .profile-chevron svg{stroke-width:2.7}
.account-header .profile-menu{
 z-index:1000;background:linear-gradient(135deg,#fffdf9fc,#fff5eafa);
 border:1px solid #fffdf7;box-shadow:0 18px 46px #4d2a1e38,inset 0 1px 0 white;
}
.account-header .menu-item{color:#432b1c;font-weight:500;border:1px solid transparent}
.account-header .menu-item svg{color:#56351f;stroke-width:2}
.account-header .menu-item.active{color:#3d2414;font-weight:700;background:linear-gradient(110deg,#ead1b8bf,#f1ddc9b3);border-color:#c6a27d33}
.account-header .menu-item:hover:not(:disabled){transform:none;color:#3d2414;background:#ead6c0b3}
@media(max-width:540px){
 .account-header .publisher-trigger{padding:5px 8px 5px 5px;border-radius:16px;gap:6px}
 .account-header .publisher-avatar{width:32px;height:32px;font-size:23px;border-radius:11px}
 .account-header .profile-menu{padding:9px;border-radius:19px}
 .account-header .menu-item{min-height:44px;padding:12px;font-size:14px;gap:11px}
}

/* Compact profile and dropdown sizing; existing contrast and behavior retained. */
.account-header .profile-control{justify-self:start;max-width:100%}
.account-header .publisher-trigger{width:fit-content;max-width:100%;min-height:44px;padding:4px 9px 4px 4px;gap:9px;border-radius:16px}
.account-header .publisher-avatar{width:34px;height:34px;font-size:23px;border-radius:12px}
.account-header .publisher-name{font-size:17px;line-height:1.3;letter-spacing:-.2px}
.account-header .profile-chevron svg{width:16px;height:16px}
.account-header .profile-menu{width:238px;max-width:calc(100vw - 48px);padding:8px;gap:3px;top:calc(100% + 10px);border-radius:18px}
.account-header .menu-item{min-height:44px;padding:10px 12px;gap:11px;font-size:14px;line-height:1.4;border-radius:12px}
.account-header .menu-item svg{width:21px;height:21px}
@media(max-width:540px){
 .account-header .publisher-trigger{padding:4px 7px 4px 4px;gap:6px;border-radius:14px}
 .account-header .publisher-avatar{width:30px;height:30px;font-size:21px;border-radius:10px}
 .account-header .publisher-name{font-size:14px}
 .account-header .profile-chevron svg{width:14px;height:14px}
 .account-header .profile-menu{width:224px;padding:7px;top:calc(100% + 8px);border-radius:17px}
 .account-header .menu-item{padding:9px 11px;gap:10px}
}

/* Payout: retain the existing coffee / cream glass design and header. */
.payout-panel{padding:28px 30px;min-width:0}
.payout-notice{padding:14px 16px;border:1px solid var(--line);border-radius:15px;background:#fff9f080;color:var(--coffee-dark);font-size:13px;line-height:1.65}
.payout-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:26px 0 18px}
.payout-summary div{display:flex;flex-direction:column;gap:7px;min-width:0}
.payout-summary span,.payout-summary small{color:var(--muted);font-size:12px;line-height:1.5}
.payout-summary strong{font-size:20px;color:var(--coffee-dark);overflow-wrap:normal}
.payout-summary div:first-child strong{font-size:30px}
.payout-reserved{font-size:13px;color:var(--muted);padding-bottom:22px;border-bottom:1px solid var(--line);line-height:1.6}
.payout-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}
.payout-fields label{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:600;color:var(--coffee-dark);min-width:0}
.payout-fields input,.payout-fields select{width:100%;min-width:0;min-height:50px;padding:13px 14px;border:1px solid #bca48e70;border-radius:14px;background:#fffaf5b3;color:var(--ink);font:inherit;font-size:16px}
.payout-wallet{grid-column:1/-1}
.payout-feedback{font-size:13px;line-height:1.6;color:var(--coffee-dark);margin:18px 0;overflow-wrap:normal}
#request-withdrawal:disabled{cursor:not-allowed}
.payout-history{min-width:800px}
.payout-history .wallet-address{white-space:normal;overflow-wrap:normal;min-width:180px;max-width:260px}
.payout-status{display:inline-block;border:1px solid #b9915660;border-radius:20px;padding:6px 10px;font-size:12px;font-weight:600;background:#f2e4c4;color:#72501f}
.status-approved{background:#e4e9da;color:#425334;border-color:#7d96615c}
.status-rejected{background:#f3dfd9;color:#813d32;border-color:#b978645c}
.status-completed{background:#dce9df;color:#355d41;border-color:#70947a5c}
@media(max-width:850px){.payout-panel{padding:24px}.payout-summary{gap:16px}.payout-summary strong{font-size:17px}}
@media(max-width:540px){.payout-panel{padding:20px 17px}.payout-summary,.payout-fields{grid-template-columns:minmax(0,1fr);gap:18px}.payout-wallet{grid-column:auto}.payout-summary{margin-top:20px}.payout-summary div{gap:4px}.payout-panel .panel-head{align-items:center;flex-wrap:wrap}.payout-panel h2{font-size:22px}#request-withdrawal{width:100%}}

/* Keep controls free of active/focus rings across all publisher views. */
button:focus,a:focus,input:focus,select:focus,textarea:focus,.table-wrap:focus,[tabindex]:focus{outline:none}

/* Admin workspace shares the established coffee glass surfaces. */
.admin-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}
.admin-summary>div{padding:16px;border-radius:18px;background:#fff9f080;border:1px solid var(--line);display:flex;flex-direction:column;gap:7px}
.admin-summary span{font-size:12px;color:var(--muted)}
.admin-summary strong{font-size:26px;color:var(--coffee-dark)}
.admin-tabs{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#bca48e transparent;border-bottom:1px solid var(--line);padding:4px 0 14px;margin:18px 0;max-width:100%;-webkit-overflow-scrolling:touch}.admin-tabs .admin-button{flex:0 0 auto;white-space:nowrap}
.admin-button{border:1px solid #bca48e60;background:#fffaf58c;color:var(--coffee-dark);border-radius:12px;padding:10px 13px;min-height:42px;font:inherit;font-size:13px;line-height:1.4}
.admin-button.selected{background:#795337;color:#fff}
.admin-note{color:var(--muted);font-size:13px;line-height:1.7;margin:12px 0 20px}
.admin-form{margin-bottom:25px;padding-bottom:25px;border-bottom:1px solid var(--line)}
.admin-form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.admin-table{min-width:720px}
.admin-table td{white-space:nowrap;overflow-wrap:normal}
.admin-table small{display:block;color:var(--muted);margin-top:6px}
.admin-table .admin-actions{min-width:210px}
.admin-actions .admin-button{margin:3px}
.admin-url,.admin-table .wallet-address{min-width:180px;overflow-wrap:normal}
#admin-content h2{font-size:24px}#admin-content h3{font-size:18px;color:var(--coffee-dark);margin:26px 0 16px}
@media(max-width:540px){.admin-summary{gap:8px}.admin-summary>div{padding:12px 10px;border-radius:14px}.admin-summary span{font-size:11px}.admin-summary strong{font-size:23px}.admin-tabs .admin-button{flex:0 0 auto;font-size:12px}#admin-content h2{font-size:21px}.admin-form-actions .copy-button{width:100%}}

/* Compact admin page navigation and session overview. */
.admin-panel{min-width:0}
.admin-tabs .admin-button.selected{background:linear-gradient(135deg,#896144,#604027);color:#fff;font-weight:600}
#admin-content{min-width:0;animation:admin-enter .22s ease-out}
.admin-withdrawals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-withdrawals>div{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fffaf580;border-radius:14px;padding:16px}
.admin-withdrawals strong{font-size:22px;color:var(--coffee-dark)}
@keyframes admin-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.admin-withdrawals{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){#admin-content{animation:none}.admin-tabs{scroll-behavior:auto}.admin-tabs .admin-button{transition:none}}

/* Application-wide responsive sizing. Tables keep their intrinsic column widths
   and scroll within panels; content is never clipped to conceal overflow. */
:root{
 --text-small:clamp(.75rem,.72rem + .12vw,.8125rem);
 --text-body:clamp(.875rem,.84rem + .15vw,.9375rem);
 --text-title:clamp(1.25rem,1.1rem + .65vw,1.625rem);
 --panel-space:clamp(16px,2.5vw,28px);
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:var(--text-body);line-height:1.5;min-width:0}
#app,.shell,.main,.page,.page>*,form{min-width:0;max-width:100%}
.ambient{contain:strict}
.shell{padding-inline:clamp(12px,2vw,24px);padding-bottom:max(24px,env(safe-area-inset-bottom))}
.main{padding:clamp(16px,2.5vw,28px) 0 0}
.page{gap:clamp(16px,2vw,24px)}
h1,h2,#admin-content h2,.panel-head h2,.payout-panel h2,.hero-heading h1{
 font-size:var(--text-title);line-height:1.3;letter-spacing:-.025em;font-weight:650;
 overflow-wrap:normal;min-width:0;
}
#admin-content h3{font-size:clamp(1rem,.95rem + .2vw,1.125rem);line-height:1.4;letter-spacing:-.015em}
p,label,small,.payout-feedback{overflow-wrap:normal}
.hero,.chart-panel,.statistics-panel,.payout-panel{padding:var(--panel-space)}
.hero-heading{gap:14px;margin-bottom:20px}
.hero-heading>div{min-width:0}
.hero-heading p{font-size:var(--text-body);line-height:1.6;max-width:60ch}
.hero-icon{width:52px;height:52px;border-radius:16px}
.hero-icon svg{width:28px;height:28px}
.panel-head{flex-wrap:wrap;align-items:center;gap:10px 16px;margin-bottom:20px}
.panel-head h2{gap:10px}
.period-pill{font-size:var(--text-small);line-height:1.4;padding:7px 11px;max-width:100%;flex-shrink:0}
.period-pill svg{width:17px;height:17px}
.top-header.account-header{
 grid-template-columns:minmax(0,1fr) minmax(0,210px);align-items:center;gap:clamp(10px,2vw,24px);
 min-height:112px;padding-block:24px;
 padding-left:max(16px,env(safe-area-inset-left),calc((100% - 1180px)/2));
 padding-right:max(16px,env(safe-area-inset-right),calc((100% - 1180px)/2));
}
.account-header .profile-control{width:100%;align-self:center}
.account-header .publisher-trigger{min-height:44px}
.account-header .publisher-name{font-size:clamp(.875rem,.8rem + .3vw,1.0625rem);overflow-wrap:normal;word-break:normal;white-space:normal}
.account-header .header-balances{max-width:210px;align-self:center}
.account-header .header-balance{align-items:center}
.account-header .header-balance-value{font-size:clamp(1.125rem,1rem + .45vw,1.5rem);line-height:1.3;letter-spacing:-.02em;overflow-wrap:normal}
.account-header .header-balance h2{font-size:.75rem;white-space:nowrap;letter-spacing:0}
.account-header .profile-menu{justify-content:flex-start;max-height: min(360px,calc(100dvh - 124px));max-width:calc(100vw - 32px);overflow-y:auto;overscroll-behavior:contain}
.account-header .menu-item{flex-shrink:0;min-height:44px;font-size:.875rem}
.link-row{grid-template-columns:minmax(0,1fr) auto}
.link-row input{height:48px;padding:12px 14px;font-size:16px;border-radius:14px}
.copy-button{font-size:.875rem;min-height:48px;padding:12px 18px;border-radius:14px;white-space:normal;line-height:1.4;max-width:100%;overflow-wrap:normal}
.copy-button svg{width:20px;height:20px}
.share-row{gap:10px;margin-top:16px}
.share-button{min-height:44px;gap:8px;padding:10px 8px;font-size:.8125rem;line-height:1.4;border-radius:13px}
.share-button svg{width:22px;height:22px}
.share-button span{min-width:0}
.payout-notice,.admin-note,.payout-reserved,.payout-feedback{font-size:var(--text-small);line-height:1.65}
.payout-notice{padding:12px 14px}
.payout-summary{margin:20px 0;gap:16px}
.payout-summary strong,.payout-summary div:first-child strong{font-size:clamp(1rem,.9rem + .5vw,1.375rem);line-height:1.4}
.payout-summary span,.payout-summary small{font-size:var(--text-small)}
.payout-fields{gap:16px;margin-top:20px}
.payout-fields label{font-size:.8125rem;line-height:1.5;gap:7px}
.payout-fields input,.payout-fields select{font-size:16px;line-height:1.5;min-height:48px;max-width:100%;padding:10px 12px}
.payout-fields select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.payout-fields input::placeholder{font-size:.875rem}
.payout-feedback:empty{margin:0}
.admin-summary{gap:12px;margin:20px 0}
.admin-summary>div{min-width:0;padding:14px}
.admin-summary span{font-size:var(--text-small);line-height:1.5;overflow-wrap:normal}
.admin-summary strong{font-size:clamp(1.125rem,.95rem + .7vw,1.5rem);line-height:1.35;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.admin-tabs{padding:4px 0 10px;margin:16px 0;min-width:0}
.admin-tabs .admin-button,.admin-button{min-height:44px;font-size:.8125rem;line-height:1.4}
.admin-form{padding-bottom:20px;margin-bottom:20px}
.admin-form-actions{gap:8px;margin-top:16px}
.admin-withdrawals{gap:10px}
.admin-withdrawals>div{min-width:0;flex-wrap:wrap;padding:12px;gap:8px}
.admin-withdrawals strong{font-size:1.25rem;overflow-wrap:normal}
.payout-status{font-size:.75rem;line-height:1.4;padding:5px 9px;white-space:nowrap;vertical-align:middle}
.table-wrap{width:100%;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding-bottom:8px}
table,.admin-table,.payout-history{table-layout:auto;width:100%;min-width:640px;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
th,td{vertical-align:middle;padding:13px 16px;line-height:1.5;text-align:left}
th{font-size:.75rem;font-weight:600;letter-spacing:.025em;white-space:nowrap;text-transform:none}
th:first-child,td:first-child{padding-left:16px}
td,.admin-table td{font-size:.8125rem;white-space:nowrap;overflow-wrap:normal;max-width:none}
td.empty{white-space:normal;padding:28px 16px;line-height:1.6}
.admin-table .cell-person{min-width:160px;max-width:240px;white-space:normal;overflow-wrap:normal}
.admin-table .cell-text{min-width:150px;max-width:260px;white-space:normal;overflow-wrap:normal}
.admin-table .admin-url,.admin-table .wallet-address,.payout-history .wallet-address{
 min-width:220px;width:240px;max-width:280px;white-space:normal;overflow-wrap:normal;word-break:normal;
}
.admin-table .cell-date,.payout-history td:first-child{min-width:190px;white-space:nowrap;overflow-wrap:normal}
.admin-table .cell-money,.admin-table .cell-number{min-width:120px;text-align:right;white-space:nowrap}
.admin-table th.cell-person,.admin-table th.cell-text{white-space:nowrap;overflow-wrap:normal}
.admin-table .admin-actions{min-width:230px;white-space:normal}
.admin-actions .admin-button{margin:3px 4px 3px 0;white-space:nowrap}
.admin-table small{font-size:.75rem;line-height:1.5;margin-top:4px}
.statistics-panel td:not(:first-child):not(.empty),.statistics-panel th:not(:first-child),.payout-history td:nth-child(2),.payout-history th:nth-child(2){text-align:right}
.payout-history{min-width:1050px}
.data-note,.configuration-note,.footer{font-size:var(--text-small);line-height:1.6}
.chart-scroll{min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding-top:4px}
.chart-canvas{min-width:320px}
.chart{height:clamp(170px,22vw,230px);grid-template-columns:48px minmax(0,1fr);gap:6px;margin-top:28px}
.y-axis{font-size:.6875rem;padding-right:4px}
.chart-labels{margin-left:54px;gap:8px;padding:0 8px}
.bars{gap:8px;padding:0 8px}
.chart-labels>span{font-size:.6875rem}
.chart-labels small{font-size:.625rem;white-space:nowrap}
.bar-value{font-size:.6875rem}
.chart-legend{margin:20px 0 0 0;flex-wrap:wrap;font-size:.8125rem}
.chart-empty{font-size:.75rem;margin-left:0}
#toast{bottom:max(16px,env(safe-area-inset-bottom));padding:12px 16px;overflow-wrap:normal}
.error-page{padding:16px}.error-card{min-width:0;padding:var(--panel-space)}
@media(max-width:700px){
 .top-header.account-header{grid-template-columns:minmax(0,1fr) minmax(0,160px);min-height:96px;padding-block:18px}
 .account-header .header-balances{max-width:160px}
 .account-header .balance-icon{display:none}
 .payout-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .payout-summary>div:last-child{grid-column:1/-1}
 .share-button{flex-direction:column}
}
@media(max-width:540px){
 .top-header.account-header{grid-template-columns:minmax(0,1fr) minmax(0,132px);border-bottom-left-radius:44px}
 .account-header .header-balances{max-width:132px}
 .account-header .header-balance{padding:9px 10px}
 .account-header .publisher-trigger{gap:6px;padding:4px 6px}
 .account-header .publisher-avatar{width:26px;height:26px;font-size:18px;border-radius:9px}
 .account-header .publisher-name{overflow-wrap:normal}
 .hero-heading{gap:10px}.hero-icon{width:40px;height:40px;border-radius:12px}.hero-icon svg{width:24px;height:24px}
 .link-row{grid-template-columns:minmax(0,1fr)}
 .share-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .share-button,.share-button:nth-child(n+4){grid-column:auto;flex-direction:row;font-size:.8125rem}
 .share-button:last-child{grid-column:1/-1}
 .payout-fields{grid-template-columns:minmax(0,1fr)}
 .payout-wallet{grid-column:auto}
 .admin-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .admin-withdrawals{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-form-actions .copy-button{width:100%}
 .panel-head .period-pill{margin-left:0}
}
@media(max-width:359px){
 .top-header.account-header{grid-template-columns:minmax(0,1fr) minmax(0,120px);gap:8px;padding-inline:12px}
 .account-header .publisher-avatar{display:none}
 .account-header .publisher-trigger{padding:6px 8px;min-height:44px}
 .account-header .publisher-name{font-size:.875rem}
 .admin-summary>div{padding:12px 10px}
 .admin-withdrawals>div{padding:10px 8px}
 .payout-summary{gap:14px 10px}
}
@media(orientation:landscape) and (max-height:540px){
 .top-header.account-header{min-height:80px;padding-block:12px}
 .account-header .profile-menu{max-height:calc(100dvh - 92px)}
}

/* Shared URL / identifier display: tap text or icon to copy the original. */
.long-value{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:100%;vertical-align:middle}
.long-value-view{display:block;min-width:0;max-width:100%;min-height:44px;padding:8px 2px;border:0;background:transparent;color:var(--coffee-dark);font:inherit;font-weight:500;line-height:1.5;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.long-value-view:hover:not(:disabled){transform:none;background:#ede0d650;border-radius:8px}
.value-wide{display:inline}.value-medium,.value-small{display:none}
.value-copy{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:10px;border:1px solid #bca48e60;border-radius:12px;background:#fffaf58c;color:var(--coffee-dark);vertical-align:middle}
.value-copy svg{width:18px;height:18px}
.long-link-row{display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #bca48e4d;border-radius:14px;background:linear-gradient(110deg,#ffffff70,#f2e9e06b)}
.long-link-row>.long-value{flex:1;min-width:0}
.long-link-row .long-value-view{font-size:clamp(.8125rem,.75rem + .2vw,.9375rem)}
.link-row input.tracking-source{display:none}
.admin-table .admin-url,.admin-table .wallet-address,.payout-history .wallet-address{min-width:190px;width:220px;max-width:280px}
.clipboard-source{position:fixed;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none}
@media(max-width:900px){.value-wide{display:none}.value-medium{display:inline}}

/* Copy affordances are icons only, with invisible touch targets. */
.value-copy,.value-copy:hover:not(:disabled),.value-copy:active:not(:disabled){border:0;background:transparent;box-shadow:none;border-radius:0;transform:none;color:var(--coffee-dark)}
.long-value-view:hover:not(:disabled){background:transparent;transform:none}
@media(max-width:900px){.value-wide{display:none}.value-medium{display:inline}}
@media(max-width:540px){.value-medium{display:none}.value-small{display:inline}.long-value-view{font-size:.8125rem}.long-link-row{padding:4px 8px}}

/* Row actions float outside scrolling tables, with one menu open at a time. */
.admin-table .admin-actions{min-width:76px;width:76px;text-align:center;white-space:nowrap}
.admin-more{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:11px;border:0;border-radius:50%;background:transparent;color:var(--coffee-dark)}
.admin-more svg{width:22px;height:22px}
.admin-more:hover:not(:disabled),.admin-more[aria-expanded="true"]{background:#ebddcf99;transform:none}
.admin-action-menu{position:fixed;z-index:1100;width:218px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;padding:7px;border:1px solid #ffffffdf;border-radius:17px;background:linear-gradient(130deg,#fffdf9f7,#faf1e8f7);box-shadow:0 12px 34px #68432a29;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.admin-action-menu[hidden]{display:none}
.admin-action-menu .admin-button{display:flex;align-items:center;gap:11px;width:100%;margin:0;padding:11px 12px;min-height:44px;border:0;border-radius:10px;background:transparent;font-size:14px;text-align:left;white-space:normal}
.admin-action-menu .admin-button svg{width:19px;height:19px;flex-shrink:0}
.admin-action-menu .admin-button:hover,.admin-action-menu .admin-button:focus-visible{background:#ebddcf80;transform:none}
.admin-action-menu [data-admin-action^="delete"]{color:#ac5a50;border-top:1px solid #c9b8a64d;border-radius:0 0 10px 10px;margin-top:5px;padding-top:14px}
.admin-action-menu [data-admin-action^="delete"]:hover,.admin-action-menu [data-admin-action^="delete"]:focus-visible{background:#f3dfd980}

/* Keep the full balance on one line; JS fits its actual glyph width. */
.account-header .header-balances{max-width:100%}
.account-header .balance-content{flex:1;min-width:0}
.account-header .header-balance-value{min-width:0;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.account-header .balance-amount{display:inline-block;white-space:nowrap}
@media(max-width:700px){
 .top-header.account-header{grid-template-columns:minmax(0,1fr) minmax(0,48%)}
}

/* Version 11: publisher-focused admin workspace */
.admin-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0}
.admin-section-heading h2{margin:0;overflow-wrap:normal}.admin-section-heading .admin-note{margin:6px 0 0}
.admin-section-heading>.admin-button{flex-shrink:0}.publisher-open{border:0;background:transparent;padding:6px 0;color:var(--coffee-dark);font:inherit;font-weight:600;text-align:left;overflow-wrap:normal;cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#bca48e70}
.publisher-breadcrumb{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;margin-top:16px}.publisher-identity{display:flex;align-items:center;gap:12px;min-width:0}.publisher-identity>div{min-width:0}.publisher-identity .payout-status{margin-top:8px}
.publisher-management-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px}
.publisher-section{min-width:0;border:1px solid var(--line);background:#fffaf55c;border-radius:18px;padding:20px}.publisher-section-wide{grid-column:1/-1}
#admin-content .publisher-section h3{margin:0 0 18px;font-size:16px}.publisher-section .admin-form{border:0;margin:0;padding:0}.publisher-section .payout-fields{gap:14px}.publisher-section label{display:flex;flex-direction:column;gap:8px;color:var(--coffee-dark);font-size:13px}.publisher-section input,.publisher-section select{width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fffaf5;color:var(--coffee-dark);font:inherit;min-height:44px;box-sizing:border-box}
.publisher-balance-summary,.publisher-click-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}.publisher-balance-summary>div,.publisher-click-summary>div{min-width:0;padding:12px;background:#f0e5d96b;border-radius:12px}.publisher-balance-summary span,.publisher-click-summary span,.field-caption{display:block;color:var(--muted);font-size:12px;line-height:1.6}.publisher-balance-summary strong,.publisher-click-summary strong{display:block;font-size:18px;margin-top:5px;color:var(--coffee-dark);overflow-wrap:normal;font-variant-numeric:tabular-nums}
.publisher-link-details{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.publisher-link-details>div{min-width:0;font-size:13px;line-height:1.7;overflow-wrap:normal}.publisher-link-details small{display:block;color:var(--muted)}.publisher-link-details .long-value{max-width:100%}.publisher-section #admin-assignment-form{max-width:440px}
.admin-panel #managed-publisher-heading:focus{outline:none}
@media(max-width:900px){.publisher-management-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:540px){.admin-section-heading{align-items:flex-start;flex-wrap:wrap}.publisher-section{padding:14px;border-radius:14px}.publisher-link-details{grid-template-columns:minmax(0,1fr)}.publisher-balance-summary,.publisher-click-summary{gap:6px}.publisher-balance-summary>div,.publisher-click-summary>div{padding:10px 8px}.publisher-balance-summary span,.publisher-click-summary span{font-size:11px}.publisher-balance-summary strong,.publisher-click-summary strong{font-size:16px}.publisher-breadcrumb{flex-wrap:wrap}.publisher-section .payout-fields{grid-template-columns:minmax(0,1fr)}}

/* Version 13: quiet focus surfaces; borders retain their resting styles. */
:is(input,textarea,select,[contenteditable="true"],[role="textbox"],[role="combobox"]){
 -webkit-tap-highlight-color:transparent;
 transition:background-color .16s ease;
}
:is(input,textarea,select,[contenteditable="true"],[role="textbox"],[role="combobox"]):is(:focus,:focus-visible,:active){
 outline:none;
 outline-offset:0;
 box-shadow:none;
 background:#f1e5d9;
}
/* Preserve keyboard location for ring-free controls with a quiet surface tint. */
.admin-button:not(.selected):focus-visible,.publisher-open:focus-visible,.admin-more:focus-visible,.long-value-view:focus-visible,.value-copy:focus-visible,.table-wrap:focus-visible{
 outline:none;
 box-shadow:none;
 background-color:#ebddcf80;
}
@media(prefers-reduced-motion:reduce){
 :is(input,textarea,select,[contenteditable="true"],[role="textbox"],[role="combobox"]){transition:none}
}

.redirect-error{max-width:560px;margin:12vh auto;padding:32px}.redirect-error p{margin-top:18px;line-height:1.7;color:var(--muted)}@media(max-width:600px){.redirect-error{margin:12vh 16px;padding:24px}}

/* AdNex login: reference-matched, isolated from account and admin screens. */
:root:has(.login-page),body:has(.login-page){min-width:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
.login-page{--login-gap:clamp(12px,2.2dvh,24px);--login-pad:clamp(20px,3.2dvh,30px);position:fixed;inset:0;isolation:isolate;width:100%;height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;align-items:center;padding:clamp(12px,2.4vh,28px) 20px;padding-top:max(clamp(12px,2.4dvh,28px),env(safe-area-inset-top,0px));padding-bottom:max(clamp(12px,2.4dvh,28px),env(safe-area-inset-bottom,0px));padding-left:max(clamp(16px,4vw,24px),env(safe-area-inset-left,0px));padding-right:max(clamp(16px,4vw,24px),env(safe-area-inset-right,0px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:20px;-webkit-overflow-scrolling:touch;background:linear-gradient(112deg,#fffdf8aa 0%,#f5ece2a6 54%,#e8d7c894 100%)}
.login-wave{position:absolute;z-index:-1;top:-12px;left:50%;width:max(100%,600px);max-width:1600px;aspect-ratio:60/31;transform:translateX(-50%);pointer-events:none;animation:login-wave-enter 1s ease both}
.login-wave svg{display:block;width:100%;height:auto;aspect-ratio:60/31;overflow:visible}
.login-layout{position:relative;flex:0 0 auto;margin-block:auto;width:100%;max-width:440px;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:var(--login-gap);overflow-wrap:normal}
.login-intro{min-width:0;text-align:center;animation:login-arrive .6s ease both}
.login-wordmark{display:flex;align-items:center;justify-content:center;gap:clamp(10px,2dvh,14px);color:#52301c;font-size:clamp(21px,3.1dvh,25px);font-weight:650;letter-spacing:3px;margin-bottom:clamp(14px,2.7dvh,26px)}
.login-emblem{display:grid;place-items:center;width:clamp(38px,6dvh,50px);height:clamp(38px,6dvh,50px);border-radius:clamp(12px,1.8dvh,15px);background:linear-gradient(135deg,#986e4f,#69412a);color:#fffdf9;font-size:clamp(25px,4dvh,32px);font-weight:600;line-height:1;letter-spacing:-1px;box-shadow:0 5px 12px #68473416,inset 0 1px 1px #fff5;flex-shrink:0}
.login-intro h1{font-size:clamp(24px,min(6.4vw,3.8dvh),32px);font-weight:650;line-height:1.22;letter-spacing:-1.1px;color:#422613;white-space:normal}
.login-card{min-width:0;padding:var(--login-pad);border-radius:clamp(24px,3.7dvh,30px);background:linear-gradient(125deg,#fffefaeb,#fff9f0b5);border:1px solid #ffffffe6;box-shadow:0 20px 48px #7853330c,inset 0 1px 0 #fff;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);animation:login-arrive .6s .06s ease both}
.login-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:clamp(16px,3dvh,28px);gap:16px}
.login-card-label{font-size:10px;font-weight:650;letter-spacing:1.7px;color:#74675b}
.login-status-dot{width:6px;height:6px;border-radius:50%;background:#90694d;box-shadow:0 0 0 5px #af8c6c12}
.login-card h2{font-size:clamp(22px,min(6vw,3.2dvh),26px);line-height:1.3;font-weight:650;letter-spacing:-.8px;color:#422613}
.login-card-copy{font-size:clamp(13px,1.75dvh,14px);line-height:1.7;color:#74695e;margin-top:clamp(10px,1.8dvh,14px)}
.login-auth{position:relative;margin-top:clamp(18px,3dvh,28px);min-width:0}
.login-auth[aria-busy="true"]{opacity:.65;pointer-events:none}
.login-google-slot{width:100%;min-width:0;display:flex;justify-content:center}.login-google-slot:empty{height:0}
.login-google-fallback{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:48px;border:1px solid #dededb;border-radius:28px;background:linear-gradient(#fff,#fefefe);color:#252725;font-size:14px;font-weight:500;letter-spacing:.05px;box-shadow:inset 0 1px 0 #fff}
.login-google-fallback:disabled{opacity:1;cursor:not-allowed}.login-google-mark{width:21px;height:21px}
.login-configuration,.login-error{font-size:12px;line-height:1.7;border-radius:13px;padding:clamp(10px,1.5dvh,12px) 14px;margin-top:clamp(12px,2dvh,16px);background:#b88b4b05;border:1px solid #b68f6020;color:#80684f}
.login-error{color:#8e4439;background:#a3493107;border-color:#a349311a}.login-error .admin-button{margin-top:10px}
.login-state{font-size:12px;line-height:1.6;color:var(--muted);margin-top:14px;text-align:center}
.login-divider{display:flex;align-items:center;margin-top:clamp(16px,2.8dvh,24px)}.login-divider span{height:1px;width:100%;background:linear-gradient(90deg,transparent,#79533713,transparent)}
.login-account-note{display:flex;align-items:center;justify-content:center;gap:9px;font-size:10px;line-height:1.6;color:#8d7e6e;margin-top:clamp(12px,2.2dvh,20px);text-align:center}.login-account-note svg{width:14px;height:14px}
.login-footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;color:#9b8371;font-size:clamp(10px,1.4dvh,11px);letter-spacing:.1px;margin-top:0;text-align:center}
@keyframes login-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes login-wave-enter{from{opacity:0}to{opacity:1}}
@media(min-width:900px){.login-layout{max-width:450px}.login-wave{top:-100px;width:100%;min-width:1000px}}
@media(max-width:480px){.login-desktop-break{display:none}.login-account-note{font-size:10px}.login-card-copy{line-height:1.65}}
@media(max-height:720px){.login-page{--login-gap:12px;--login-pad:20px}.login-wordmark{margin-bottom:14px}.login-card-top{margin-bottom:16px}.login-card-copy{margin-top:10px}.login-auth{margin-top:18px}.login-divider{margin-top:16px}.login-account-note{margin-top:12px}.login-state{margin-top:10px}.login-configuration,.login-error{margin-top:12px;padding-block:10px}}
@media(max-width:340px){.login-page{padding-inline:max(12px,env(safe-area-inset-left,0px)) max(12px,env(safe-area-inset-right,0px))}.login-card{padding-inline:18px}.login-wordmark{font-size:20px;letter-spacing:2px}.login-intro h1{font-size:23px}.login-card h2{font-size:21px}.login-account-note{gap:6px}.login-footer{gap:7px}}
@media(prefers-reduced-motion:reduce){.login-intro,.login-card,.login-wave{animation:none}.login-page *{scroll-behavior:auto}}

/* Viewport-level navigation: no header blur/overflow ancestor can clip the dropdown. */
.publisher-menu-frame{position:fixed;inset:max(8px,env(safe-area-inset-top,0px)) max(8px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));z-index:2000;pointer-events:none}
.profile-menu.publisher-navigation{position:absolute;display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;align-content:start;gap:4px;width:284px;max-width:100%;max-height:none;overflow:visible;margin:0;padding:12px;border:1px solid #ffffffd9;border-radius:24px;background:linear-gradient(130deg,#fffdf8f7,#fbf2e9f5);box-shadow:0 18px 42px #68432a29,inset 0 1px 0 white;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);opacity:0;visibility:hidden;pointer-events:none;transform:none;transition:opacity .17s ease,visibility .17s}
.profile-menu.publisher-navigation.is-open[data-positioned="true"]{opacity:1;visibility:visible;pointer-events:auto}
.publisher-navigation .menu-item{min-height:48px;padding:12px 14px;gap:12px;font-size:15px;line-height:1.4;white-space:normal}
.publisher-navigation .menu-item svg{width:22px;height:22px}
.publisher-navigation[data-density="1"]{padding:8px;gap:2px;border-radius:21px}
.publisher-navigation[data-density="1"] .menu-item{min-height:42px;padding:7px 9px;gap:8px;font-size:14px;border-radius:14px}
.publisher-navigation[data-density="1"] .menu-item svg{width:20px;height:20px}
.publisher-navigation[data-density="2"]{padding:4px;gap:2px;border-radius:17px}
.publisher-navigation[data-density="2"] .menu-item{min-height:32px;padding:3px 6px;gap:6px;font-size:12px;line-height:1.2;border-radius:10px}
.publisher-navigation[data-density="2"] .menu-item svg{width:16px;height:16px}
.publisher-navigation[data-density="3"]{padding:2px;gap:0;border-radius:13px}
.publisher-navigation[data-density="3"] .menu-item{min-height:28px;padding:2px 4px;gap:4px;font-size:11px;line-height:1.2;border-radius:8px}
.publisher-navigation[data-density="3"] .menu-item svg{width:14px;height:14px}

/* V37: consistent rhythm, full identifiers and responsive record cards. */
:root{--section-gap:clamp(18px,2.2vw,28px);--field-gap:clamp(16px,2vw,22px)}
.page{gap:var(--section-gap)}
.shell{max-width:1280px;padding-inline:max(16px,env(safe-area-inset-left),env(safe-area-inset-right))}
.main{padding-top:var(--section-gap)}
.hero,.chart-panel,.statistics-panel,.payout-panel{padding:clamp(20px,3vw,32px)}
.panel-head{align-items:flex-start;gap:12px 20px;margin-bottom:24px}
.panel-head>h1,.panel-head>h2{flex:1 1 180px;min-width:0}
.panel-head .period-pill{align-self:flex-start;margin:0}
.admin-form{display:grid;gap:var(--field-gap);margin-bottom:0;padding-bottom:24px}
.admin-form>.payout-fields{margin-top:0}
.admin-form>.payout-feedback{margin:0}
.admin-form>.payout-feedback:empty{display:none}
.admin-form>.copy-button{justify-self:start;margin:0}
.admin-form-actions{margin-top:0;gap:12px}
.payout-fields{gap:var(--field-gap)}
.payout-fields label{gap:10px;min-width:0}
.payout-fields :is(input,select),.readonly-value{min-height:48px;border-radius:14px;padding:12px 14px;font-size:1rem;line-height:1.5}
.readonly-value{display:block;width:100%;max-width:100%;border:1px solid #bca48e70;background:#fffaf5b3;color:var(--ink);font-weight:400;white-space:normal;overflow-wrap:normal;word-break:normal;user-select:text}
.payout-notice{line-height:1.75;padding:16px 18px}
.payout-notice+.payout-notice{margin-top:14px}
.payout-summary{gap:24px;margin:24px 0}
.payout-summary>div{gap:8px}
.payout-summary strong,.payout-summary div:first-child strong{line-height:1.45}
.payout-summary small{line-height:1.65}
.admin-summary,.admin-withdrawals{gap:16px}
.admin-section-heading,.publisher-breadcrumb,.publisher-identity{flex-wrap:wrap}
.admin-section-heading>div{min-width:0;flex:1 1 220px}
.admin-button{max-width:100%;overflow-wrap:normal;white-space:normal}
.admin-tabs .admin-button{white-space:nowrap}
.share-button{white-space:normal;text-align:center}
.chart-scroll{padding-bottom:8px}
.chart-canvas{min-width:360px}
.chart-legend{gap:10px;line-height:1.6}
.table-wrap{padding-bottom:12px;scroll-padding-inline:12px}
.table-wrap:has(td.empty) table{min-width:0;table-layout:fixed}
.table-wrap:has(td.empty) th{white-space:normal;overflow-wrap:normal;padding:12px 8px}
.table-wrap:has(td.empty) td.empty{text-align:center;max-width:100%;padding:32px 16px}
.long-value{max-width:100%;min-width:0}
.long-value-view{flex:1 1 auto;min-width:0}
.header-balance,.balance-content,.hero-heading>div,.publisher-section{min-width:0}
.top-header.account-header{gap:20px;padding-block:24px}
.account-header .header-balance h2{white-space:normal;line-height:1.5}
.account-header .publisher-trigger{min-height:48px}
.account-header .publisher-name{line-height:1.5}
button:focus-visible,a:focus-visible,.table-wrap:focus-visible{outline:2px solid #986e4f;outline-offset:4px}
.login-google-fallback{padding:12px 16px;line-height:1.5;white-space:normal}
.login-google-fallback span{min-width:0;overflow-wrap:normal}
.login-account-note{align-items:flex-start;line-height:1.7}
.login-account-note svg{margin-top:2px}
@media(min-width:1200px){
 .payout-fields{column-gap:28px}
 .payout-summary{gap:32px}
}
@media(max-width:900px){
 .publisher-management-grid{grid-template-columns:minmax(0,1fr)}
 .payout-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .payout-summary>div:last-child{grid-column:1/-1}
 .publisher-balance-summary,.publisher-click-summary{grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr))}
}
@media(max-width:600px){
 .shell{padding-inline:max(12px,env(safe-area-inset-left),env(safe-area-inset-right))}
 .hero,.chart-panel,.statistics-panel,.payout-panel{padding:20px 16px;border-radius:24px}
 .panel-head{margin-bottom:20px;gap:12px}
 .panel-head>h1,.panel-head>h2{flex-basis:160px}
 .payout-summary{grid-template-columns:minmax(0,1fr);gap:20px}
 .payout-summary>div:last-child{grid-column:auto}
 .payout-summary>div+div{padding-top:16px;border-top:1px solid var(--line)}
 .payout-summary strong,.payout-summary div:first-child strong{font-size:1.125rem}
 .payout-fields{grid-template-columns:minmax(0,1fr)}
 .payout-wallet{grid-column:auto}
 .admin-form>.copy-button,.admin-form-actions>.copy-button{justify-self:stretch;width:100%;min-height:48px;padding:14px 16px}
 .payout-notice{padding:14px;line-height:1.75}
 .admin-summary,.admin-withdrawals{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .publisher-section{padding:16px}
 .top-header.account-header{grid-template-columns:minmax(0,1fr) minmax(0,48%);gap:12px;padding:20px 16px;min-height:104px}
 .account-header .header-balances{width:100%;max-width:100%}
 .account-header .header-balance{padding:12px}
 .table-wrap{overflow-x:visible;padding-bottom:0;border-radius:0}
 .table-wrap table,.table-wrap .admin-table,.table-wrap .payout-history{display:block;width:100%;min-width:0;max-width:100%;table-layout:auto}
 .table-wrap thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .table-wrap tbody{display:grid;width:100%;gap:14px}
 .table-wrap tbody tr{display:grid;min-width:0;width:100%;padding:6px 14px;border:1px solid var(--line);border-radius:16px;background:#fffaf580}
 .table-wrap tbody tr td,.table-wrap tbody tr td:first-child{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;width:100%;min-width:0;max-width:100%;padding:12px 0;text-align:left;white-space:normal;overflow-wrap:normal;border:0;border-bottom:1px solid var(--line)}
 .table-wrap tbody tr td:last-child{border-bottom:0}
 .table-wrap td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:.75rem;line-height:1.5;font-weight:600;text-align:left}
 .table-wrap tbody tr td.empty{display:block;padding:24px 0;text-align:center;line-height:1.7}
 .table-wrap .long-value{width:100%;justify-content:space-between}
 .table-wrap .long-value-view{white-space:normal;overflow:visible;text-overflow:clip}
 .table-wrap .payout-status{justify-self:start;white-space:normal}
 .table-wrap .admin-more{justify-self:start}
}
@media(max-width:359px){
 .top-header.account-header{padding:16px 12px;gap:10px}
 .admin-summary,.admin-withdrawals{grid-template-columns:minmax(0,1fr)}
 .panel-head>h1,.panel-head>h2{flex-basis:140px}
 .share-row{grid-template-columns:minmax(0,1fr)}
 .share-button:last-child{grid-column:auto}
}
/* Keep the original full URL, wallet and identifier visible and selectable by copy. */
.long-value-view{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal;word-break:normal}
.value-full{display:block;min-width:0;max-width:100%;overflow-wrap:normal}
/* V38 profile: display-only account fields share the existing form geometry. */
.profile-readonly-field{display:flex;flex-direction:column;gap:10px;min-width:0;font-size:.8125rem;line-height:1.5;font-weight:600;color:var(--coffee-dark)}

/* V40: one compact profile surface with quiet, aligned information rows. */
.profile-unified-card{padding:clamp(20px,2.5vw,28px)}
.profile-unified-card h1{font-size:clamp(1.25rem,1.1rem + .5vw,1.5rem);line-height:1.35;margin:0 0 10px}
.profile-information-list{margin:0;padding:0}
.profile-information-row{display:grid;grid-template-columns:minmax(140px,180px) minmax(0,1fr);align-items:baseline;gap:12px 24px;min-width:0;padding:16px 0}
.profile-information-row+.profile-information-row{border-top:1px solid #bca48e30}
.profile-information-row:last-child{padding-bottom:0}
.profile-information-row dt{min-width:0;margin:0;color:#85715f;font-size:.8125rem;font-weight:500;line-height:1.65;overflow-wrap:normal}
.profile-information-row dd{min-width:0;max-width:100%;margin:0;color:#573a25;font-size:.9375rem;font-weight:500;line-height:1.65;letter-spacing:-.005em;overflow-wrap:normal;word-break:normal;user-select:text}
.profile-information-code dd{font-size:.875rem;letter-spacing:.01em;font-variant-numeric:tabular-nums}
@media(max-width:540px){
 .profile-unified-card{padding:20px 18px}
 .profile-unified-card h1{margin-bottom:8px}
 .profile-information-row{grid-template-columns:minmax(0,1fr);gap:4px;padding:13px 0}
 .profile-information-row dt{font-size:.75rem}
 .profile-information-row dd{font-size:.9375rem;line-height:1.6}
 .profile-information-code dd{font-size:.8125rem;line-height:1.7}
}

/* V42: all sign-in progress lives inside the original Google pill button. */
.login-auth[aria-busy="true"]{opacity:1}
.login-google-fallback{min-height:52px;padding:12px 16px;gap:10px;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}
.login-google-fallback:hover:not(:disabled){transform:none;background:#fff;color:#252725;box-shadow:0 4px 14px #7953370c}
.login-google-fallback[aria-busy="true"]{cursor:wait;color:#6f655c;border-color:#d8ccc0;background:linear-gradient(#fffdfb,#faf5ef)}
.login-google-fallback[aria-busy="true"]:disabled{opacity:1}
.login-button-label{min-width:0;line-height:1.5;text-align:center}
.login-button-spinner{display:block;width:20px;height:20px;flex:0 0 20px;border:2px solid #79533729;border-top-color:#795337;border-radius:50%;animation:login-button-spin .8s linear infinite}
@keyframes login-button-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.login-button-spinner{animation:none;border-color:#79533729;border-top-color:#795337}}
@media(max-width:340px){.login-google-fallback{padding-inline:12px;gap:8px;font-size:13px}}

/* V45: one type scale, natural word boundaries and content-led proportions. */
:root{
 --text-small:clamp(.75rem,.72rem + .12vw,.8125rem);
 --text-body:clamp(.875rem,.84rem + .15vw,.9375rem);
 --text-title:clamp(1.125rem,1rem + .65vw,1.5rem);
 --text-control:clamp(.8125rem,.78rem + .15vw,.9375rem);
 --panel-space:clamp(18px,2.4vw,30px);
 --section-gap:clamp(16px,2vw,26px);
 --field-gap:clamp(16px,1.8vw,22px);
}
body{font-size:var(--text-body);line-height:1.6;word-break:normal;overflow-wrap:normal;hyphens:none}
h1,h2,h3,p,label,small,dt,dd,button,th,td{word-break:normal;hyphens:none}
h1,h2,.panel-head h2,.payout-panel h2,.hero-heading h1,#admin-content h2{font-size:var(--text-title);line-height:1.35;letter-spacing:-.02em;overflow-wrap:normal}
#admin-content h3,.publisher-section h3{font-size:clamp(.9375rem,.9rem + .2vw,1.0625rem);line-height:1.45;overflow-wrap:normal}
.hero,.chart-panel,.statistics-panel,.payout-panel{padding:var(--panel-space)}
.panel-head{align-items:center;gap:10px 16px;margin-bottom:20px}
.panel-head>h1,.panel-head>h2{flex:0 1 auto;max-width:100%;min-width:0}
.panel-head .period-pill{margin-left:auto;align-self:center}
.period-pill{font-size:var(--text-small);line-height:1.4;padding:7px 10px;white-space:nowrap}
.hero-heading p,.admin-note,.payout-notice,.payout-reserved,.data-note,.configuration-note,.payout-feedback{font-size:var(--text-body);line-height:1.65;overflow-wrap:normal}
.hero-heading{align-items:flex-start;gap:14px}
.payout-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:var(--field-gap)}
.payout-fields label,.publisher-section label{font-size:var(--text-small);line-height:1.5;gap:8px}
.payout-fields :is(input,select),.publisher-section :is(input,select){font-size:1rem;line-height:1.5;min-height:48px}
.copy-button,.admin-button,.share-button{font-size:var(--text-control);line-height:1.45;word-break:normal;overflow-wrap:normal;white-space:normal}
.admin-form-actions{align-items:center;gap:12px}
.admin-tabs .admin-button,.period-pill,.payout-status{white-space:nowrap}
.payout-summary{gap:20px;margin-block:22px}
.payout-summary strong,.payout-summary div:first-child strong{font-size:clamp(1rem,.94rem + .3vw,1.1875rem);line-height:1.45;word-break:normal;overflow-wrap:normal}
.payout-summary span,.payout-summary small{font-size:var(--text-small);line-height:1.6}
.payout-date-range{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 7px}
.payout-date-range time{white-space:nowrap}
.admin-summary span,.publisher-balance-summary span,.publisher-click-summary span,.field-caption{font-size:var(--text-small);line-height:1.5;overflow-wrap:normal}
.admin-summary strong,.admin-withdrawals strong,.publisher-balance-summary strong,.publisher-click-summary strong{font-size:clamp(1rem,.9rem + .5vw,1.375rem);line-height:1.4;overflow-wrap:normal;font-variant-numeric:tabular-nums}
.publisher-balance-summary,.publisher-click-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px}
.profile-information-row dt{font-size:var(--text-small);line-height:1.6;overflow-wrap:normal}
.profile-information-row dd{font-size:var(--text-body);line-height:1.6;overflow-wrap:break-word}
.profile-information-code dd{font-size:var(--text-small)}
/* Only genuinely unbroken identifiers need an emergency wrap. Never hide their data. */
.long-value-view,.value-full,.readonly-value,.admin-table .cell-person,.admin-table .cell-text,.admin-table .admin-url,.admin-table .wallet-address,.payout-history .wallet-address{overflow-wrap:break-word;word-break:normal;hyphens:none}
.table-wrap :is(th,td){font-size:var(--text-small);line-height:1.55}
.table-wrap:has(td.empty) table{table-layout:auto;min-width:640px}
.table-wrap:has(td.empty) th{white-space:nowrap;overflow-wrap:normal;padding:13px 16px}
.table-wrap .cell-person,.table-wrap .cell-text{white-space:normal}
.chart-legend{font-size:var(--text-small);line-height:1.5;gap:8px}
.chart-empty{line-height:1.5}
.login-layout{overflow-wrap:normal;word-break:normal}
.login-intro h1{font-size:clamp(22px,5.8vw,30px);line-height:1.3;letter-spacing:-.035em;overflow-wrap:normal}
.login-card h2{font-size:clamp(20px,5.3vw,26px);line-height:1.35;letter-spacing:-.025em;overflow-wrap:normal}
.login-card-copy{font-size:var(--text-body);line-height:1.65;overflow-wrap:normal}
.login-google-fallback{font-size:var(--text-control);line-height:1.45;gap:10px}
.login-google-fallback span{overflow-wrap:normal;word-break:normal}
.login-account-note{font-size:.6875rem;line-height:1.6;gap:8px}
.account-header .publisher-name{font-size:var(--text-control);line-height:1.4;overflow-wrap:normal}
.publisher-navigation .menu-item{line-height:1.4;overflow-wrap:normal;word-break:normal}
@media(max-width:600px){
 .panel-head{gap:10px 12px}
 .panel-head>h1,.panel-head>h2{flex-basis:auto}
 .payout-fields,.publisher-section .payout-fields{grid-template-columns:minmax(0,1fr)}
 .admin-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
 .admin-withdrawals{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}
 .table-wrap:has(td.empty) table{min-width:0}
 .table-wrap tbody tr td,.table-wrap tbody tr td:first-child{overflow-wrap:break-word;font-size:var(--text-body);line-height:1.6}
 .table-wrap td[data-label]::before{font-size:var(--text-small);line-height:1.5}
 .table-wrap .payout-status{white-space:nowrap}
 .payout-summary{gap:16px}
 .payout-summary>div+div{padding-top:14px}
 .profile-unified-card{padding:20px 18px}
 .login-google-fallback{gap:8px;padding-inline:12px}
}
@media(min-width:601px) and (max-width:900px){
 .admin-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.payout-summary .payout-date-range,.payout-summary .payout-date-range>span{font:inherit;line-height:inherit;color:inherit}
.publisher-identity h2,.publisher-open{overflow-wrap:break-word;word-break:normal}

/* V46: quieter surfaces and a compact, consistent information hierarchy. */
:root{--panel-space:clamp(18px,2.2vw,28px);--section-gap:clamp(16px,1.8vw,22px);--field-gap:clamp(16px,1.6vw,20px)}
.glass{box-shadow:0 10px 28px #6c4c300b,inset 0 1px 0 #ffffffb3}
.hero,.chart-panel,.statistics-panel,.payout-panel{padding:var(--panel-space)}
.panel-head{margin-bottom:18px;gap:10px 14px}
.payout-notice{font-size:var(--text-small);line-height:1.65;padding:12px 14px;background:#fffaf55c;border-color:#bca48e30}
.payout-notice>span{display:block}
.payment-availability{margin-top:6px;font-weight:500;color:var(--coffee-dark)}
.payout-summary{margin-block:20px;gap:18px}
.payout-summary>div{gap:6px}
.admin-note,.data-note{font-size:var(--text-small);line-height:1.6}
.admin-note{margin-block:10px 16px}
.data-note{margin-top:14px}
.payout-feedback{font-size:var(--text-small);line-height:1.6}
.publisher-section{padding:18px;border-color:#bca48e2b;box-shadow:none}
#admin-content .publisher-section h3{margin-bottom:16px}
.publisher-management-grid{gap:16px}
.admin-summary{margin-block:18px;gap:12px}
.admin-summary>div{padding:14px;background:#fffaf561;border-color:#bca48e2b}
.publisher-balance-summary>div,.publisher-click-summary>div{background:#f0e5d94d}
.hero .liquid-decoration{opacity:.3}
.hero::before{opacity:.35}
.chart-panel::before,.chart-panel::after{opacity:.4}
.admin-form>.payout-feedback:empty,#admin-feedback:empty{display:none}
.profile-unified-card .profile-information-row{padding-block:14px}
.profile-unified-card .profile-information-row:last-child{padding-bottom:0}
@media(max-width:600px){
 .hero,.chart-panel,.statistics-panel,.payout-panel{padding:18px 16px}
 .publisher-section{padding:16px}
 .panel-head{margin-bottom:16px}
 .payout-summary{gap:14px;margin-block:18px}
 .payout-summary>div+div{padding-top:12px}
 .profile-unified-card .profile-information-row{padding-block:12px}
 .profile-unified-card .profile-information-row:last-child{padding-bottom:0}
}

/* V47: Publishers stay in a true, compact six-column table at every width. */
.table-wrap.table-row-layout{display:block;width:100%;min-width:0;max-width:100%;overflow-x:auto;overflow-y:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding-bottom:10px;border-radius:12px;scrollbar-width:thin;scrollbar-color:#bca48e transparent}
.table-wrap.table-row-layout table,.table-wrap.table-row-layout .admin-table{display:table;width:100%;min-width:960px;max-width:none;table-layout:auto;border-collapse:separate;border-spacing:0}
.table-wrap.table-row-layout thead{display:table-header-group;position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:nowrap}
.table-wrap.table-row-layout tbody{display:table-row-group;width:auto}
.table-wrap.table-row-layout thead tr,.table-wrap.table-row-layout tbody tr{display:table-row;width:auto;padding:0;border:0;border-radius:0;background:transparent}
.table-wrap.table-row-layout :is(th,td),.table-wrap.table-row-layout tbody tr td:first-child{display:table-cell;width:auto;min-width:0;max-width:none;padding:10px 16px;vertical-align:middle;text-align:left;white-space:nowrap;overflow-wrap:normal;word-break:normal;line-height:1.45}
.table-wrap.table-row-layout th{font-size:.75rem;font-weight:600}
.table-wrap.table-row-layout tbody tr td{font-size:.8125rem;border-bottom:1px solid var(--line)}
.table-wrap.table-row-layout tbody tr:last-child td{border-bottom:0}
.table-wrap.table-row-layout tbody tr:hover{background:#fff9}
.table-wrap.table-row-layout td[data-label]::before{display:none;content:none}
.table-row-layout .publisher-open{padding:8px 0;min-height:40px;font-size:inherit;line-height:1.45;white-space:nowrap;overflow-wrap:normal}
.table-row-layout .long-value{width:auto;max-width:none;gap:4px;justify-content:flex-start}
.table-row-layout .long-value-view,.table-row-layout .value-full{max-width:none;white-space:nowrap;overflow:visible;text-overflow:clip;overflow-wrap:normal}
.table-wrap.table-row-layout .admin-actions{width:76px;min-width:76px;text-align:center}
.table-wrap.table-row-layout .payout-status{display:inline-block;white-space:nowrap}
.table-wrap.table-row-layout tbody tr td.empty{display:table-cell;padding:24px 16px;text-align:center;white-space:normal}
.table-row-layout .long-value{min-width:max-content;flex-wrap:nowrap}
.table-row-layout .long-value-view{flex:0 0 auto;min-width:max-content}

/* V48: Admin account/payment states are compact colored text, not badges. */
.admin-panel .payout-status{display:inline-block;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:.75rem;font-weight:600;line-height:1.45;letter-spacing:0;white-space:nowrap;vertical-align:baseline;color:#a95c12}
.admin-panel .payout-status.status-completed{color:#2d6b45}
.admin-panel .payout-status.status-pending,.admin-panel .payout-status.status-approved{color:#a95c12}
.admin-panel .payout-status.status-rejected{color:#b14439}
.admin-panel .publisher-identity .payout-status{margin-top:4px}

/* V49: measured middle truncation; clipboard values always retain the original. */
.long-value{display:inline-flex;align-items:center;gap:4px;width:100%;min-width:0;max-width:28rem;vertical-align:middle;flex-wrap:nowrap}
.long-value-view{display:block;flex:1 1 0;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:clip;overflow-wrap:normal;word-break:normal;font-size:inherit;line-height:1.5}
.value-middle{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;overflow-wrap:normal}
.long-value>.value-copy{flex:0 0 40px;width:40px;height:44px}
.long-link-row>.long-value{flex:1 1 0;width:0;min-width:0;max-width:none}
.table-wrap .long-value,.table-wrap.table-row-layout .long-value{width:240px;min-width:0;max-width:100%;justify-content:flex-start}
.table-wrap .long-value-view,.table-wrap.table-row-layout .long-value-view{flex:1 1 0;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:clip}
.profile-information-row dd .long-value{vertical-align:middle}
.profile-information-code .long-value-view{padding-block:4px;min-height:36px}
@media(max-width:600px){
 .table-wrap:not(.table-row-layout) .long-value{width:100%;min-width:0;max-width:28rem}
 .publisher-section .long-value{max-width:100%}
}
.long-value-view{letter-spacing:0;word-spacing:0}

/* V50: seven days fit together; this static chart has no scroll/pan surface. */
.chart-viewport{display:block;width:100%;min-width:0;max-width:100%;overflow:hidden;overflow:clip;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.chart-viewport .chart-canvas{--axis-width:36px;--plot-gap:8px;--column-gap:clamp(3px,1vw,12px);--plot-inset:clamp(2px,.5vw,8px);display:flow-root;width:100%;min-width:0;max-width:100%}
.chart-viewport .chart{grid-template-columns:var(--axis-width) minmax(0,1fr);gap:var(--plot-gap);width:100%;min-width:0;height:clamp(160px,25vw,220px);margin-top:24px}
.chart-viewport .y-axis{min-width:0;padding-right:2px;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
.chart-viewport .y-axis span{line-height:1.2}
.chart-viewport .plot{min-width:0;max-width:100%}
.chart-viewport .bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:var(--column-gap);padding:0 var(--plot-inset);height:100%;min-width:0}
.chart-viewport .bar-column{width:100%;min-width:0;height:100%}
.chart-viewport .bar{width:72%;max-width:64px;min-width:0;border-radius:7px 7px 0 0}
.chart-viewport .bar-value{bottom:calc(100% + 7px);font-size:clamp(9px,.55rem + .2vw,12px);line-height:1.3;white-space:nowrap;letter-spacing:0;font-variant-numeric:tabular-nums}
.chart-viewport .chart-number-full{display:none}
.chart-viewport .chart-number-compact{display:inline}
.chart-viewport .chart-labels{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--column-gap);margin:10px 0 0 calc(var(--axis-width) + var(--plot-gap));padding:0 var(--plot-inset);min-width:0}
.chart-viewport .chart-labels time{display:block;min-width:0;font-size:clamp(10px,.6rem + .15vw,12px);line-height:1.35;text-align:center;font-variant-numeric:tabular-nums}
.chart-viewport .chart-weekday{display:block;white-space:nowrap}
.chart-viewport .chart-labels small{display:flex;justify-content:center;align-items:center;gap:3px;margin-top:4px;font-size:clamp(10px,.6rem + .1vw,11px);line-height:1.35;white-space:nowrap}
.chart-viewport .chart-date-month,.chart-viewport .chart-date-day{display:block;white-space:nowrap}
.chart-viewport .chart-legend{margin:16px 0 0;gap:8px;line-height:1.5;flex-wrap:wrap}
.chart-viewport .legend-dot{width:10px;height:10px}
.chart-viewport .chart-empty{flex:0 1 auto;min-width:0;margin-left:0;line-height:1.5}
@media(max-width:400px){
 .chart-viewport .chart-canvas{--axis-width:28px;--plot-gap:6px;--column-gap:3px;--plot-inset:2px}
 .chart-viewport .chart{height:168px}
 .chart-viewport .chart-labels small{flex-direction:column;gap:0;margin-top:3px}
 .chart-viewport .bar-value{font-size:9px}
 .chart-viewport .y-axis{font-size:9px}
}
@media(min-width:1100px){
 .chart-viewport .chart-number-full{display:inline}
 .chart-viewport .chart-number-compact{display:none}
}
/* V54 reuses the existing coffee/white cards, type scale and button treatment. */
.revenue-summary{padding:20px;margin-bottom:20px}.revenue-summary .admin-summary{margin-bottom:0}
.revenue-admin{margin:24px 0;padding-block:16px;border-block:1px solid #e8dfd7}
.revenue-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-block:16px}
.revenue-form label{display:flex;flex:1 1 180px;min-width:0;flex-direction:column;gap:6px;font-size:13px}
.revenue-form input{width:100%;min-width:0;padding:11px 12px;border:1px solid #dfd5cc;border-radius:10px;background:#fff;color:inherit;font:inherit;box-sizing:border-box}
.revenue-form button{flex:0 0 auto}.revenue-form :disabled{opacity:.55;cursor:not-allowed}
.revenue-table{max-width:100%;overflow-x:auto}.revenue-table table{width:100%;border-collapse:collapse;font-size:13px}.revenue-table th,.revenue-table td{text-align:left;white-space:nowrap;padding:10px 12px;border-bottom:1px solid #eee7e0}
.revenue-admin summary{cursor:pointer;margin-top:16px}.revenue-admin p{font-size:13px}
@media(max-width:600px){.revenue-summary{padding:14px}.revenue-form label{flex-basis:100%}.revenue-form button{flex:1 1 auto}}

/* Keep page scrolling and horizontal tables while suppressing page pinch/double-tap. */
html, body { touch-action: pan-x pan-y; }
.revenue-admin { min-width: 0; max-width: 100%; }
@media (max-width: 600px) {
  .revenue-form input { font-size: 16px; }
  .revenue-form button { min-height: 44px; }
}

/* Navigation glyphs retain the menu's coffee/active colors and density sizing. */
.publisher-navigation .menu-item > svg {
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Unified account surface, using the existing Coffee & White cards and controls. */
.profile-settings-page{display:grid;gap:20px;min-width:0}
.profile-settings-heading h1{font-size:clamp(1.4rem,1.1rem + 1vw,1.9rem);line-height:1.3;margin:0 0 6px}
.profile-settings-heading p,.profile-settings-description{margin:0;color:#85715f;font-size:.875rem;line-height:1.6}
.profile-settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:20px;align-items:start;min-width:0}
.profile-settings-controls{display:grid;gap:20px;min-width:0}
.profile-settings-section-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:#705137}
.profile-settings-section-heading>svg,.profile-logout>svg{width:22px;height:22px;flex:0 0 22px}
.profile-settings-section-heading h2,.profile-session-card h2{margin:0;font-size:1.0625rem;line-height:1.4;color:#573a25}
.profile-settings-card .admin-form{margin-top:20px;padding-bottom:0}
.profile-settings-card .payout-fields{grid-template-columns:minmax(0,1fr);gap:16px}
.profile-settings-card .payout-fields input,.profile-settings-card .payout-fields select{min-width:0;max-width:100%}
.profile-session-card{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.profile-session-card .profile-settings-description{margin-top:5px}
.profile-logout{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px}
@media(max-width:800px){.profile-settings-grid{grid-template-columns:minmax(0,1fr)}.profile-settings-page,.profile-settings-grid,.profile-settings-controls{gap:16px}}
@media(max-width:540px){.profile-settings-card .payout-fields input,.profile-settings-card .payout-fields select{font-size:16px}.profile-settings-card .copy-button{width:100%}}

/* Coffee liquid glass: presentation only; existing geometry and behavior retained. */
:root{--ink:#2b211b;--muted:#6d5c50;--line:rgba(113,78,50,.18);--glass:rgba(255,252,248,.82);--liquid-edge:rgba(255,255,255,.92);--liquid-shadow:0 12px 28px rgba(80,53,34,.10),0 3px 6px rgba(80,53,34,.06),inset 0 2px 2px #fff,inset 0 -2px 4px rgba(144,108,78,.10)}
body{background:radial-gradient(ellipse at 90% 12%,rgba(202,165,132,.35),transparent 48%),radial-gradient(ellipse at 8% 38%,#fffdf9,transparent 55%),linear-gradient(135deg,#eee7df,#f7f2ec 55%,#e8ded3);color:var(--ink)}
.glass,.top-header,.profile-menu,.admin-action-menu,.login-card,.profile-unified-card,.profile-settings-card,.profile-session-card,.payout-panel{background:linear-gradient(135deg,rgba(255,255,255,.90),rgba(255,250,243,.75) 48%,rgba(235,220,205,.80));border-color:var(--liquid-edge);box-shadow:var(--liquid-shadow);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.glass .glass{backdrop-filter:none;-webkit-backdrop-filter:none}
.copy-button,.login-google-fallback,.share-button,.nav-tab,.menu-item,.period-pill,.profile-badge,.admin-button{box-shadow:inset 0 1px 1px rgba(255,255,255,.85),inset 0 -2px 3px rgba(108,75,49,.09),0 3px 7px rgba(91,61,39,.07);transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}
.share-button,.period-pill,.profile-badge,.admin-button{background:linear-gradient(165deg,#fffffff0,#f5ece1b8 52%,#e6d5c3bd);border-color:rgba(255,255,255,.95);color:#493323}
.copy-button,.login-google-fallback{background:linear-gradient(165deg,#a17b5d,#795337 52%,#65432c);color:#fff;box-shadow:inset 0 2px 2px #ffffff70,inset 0 -2px 3px #38221540,0 5px 12px #6b472d29;border-color:#b79b82}
.nav-tab.active,.menu-item.active,.publisher-navigation .active,.admin-tabs .active{background:linear-gradient(145deg,#fffefa,#ead9c6);color:#4e321e;box-shadow:inset 0 2px 2px #fff,inset 0 -2px 3px #ac80592b,0 4px 10px #7654381f}
input:not([type=checkbox]):not([type=radio]),select,textarea,.link-row input,.readonly-value,.profile-readonly-field{background:linear-gradient(175deg,rgba(232,222,211,.80),rgba(255,255,255,.90));border-color:rgba(142,110,82,.25);box-shadow:inset 0 2px 4px #6d503216,0 1px 0 #fff;color:#35271d}
input::placeholder,textarea::placeholder{color:#7a695c;opacity:1}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #93633e;outline-offset:3px}
input[type=checkbox],input[type=radio]{accent-color:#795337}
.hero-icon,.balance-icon,.avatar,.publisher-avatar,.login-emblem{background:linear-gradient(145deg,#fffdf8,#e4d0bd);box-shadow:inset 0 2px 3px #fff,inset 0 -3px 5px #926b4426,0 6px 12px #7550351a;border-color:#fff9}
.brand-mark{box-shadow:inset 0 2px 2px #ffffff75,inset 0 -2px 3px #38221540,0 5px 12px #6b472d25}
.profile-information-row,.table-row-layout,.payout-summary,.revenue-summary{border-color:rgba(113,78,50,.14)}
.admin-table thead,.revenue-table thead{background:rgba(238,225,211,.78)}
@media(hover:hover){button:hover:not(:disabled),.share-button:hover{box-shadow:inset 0 2px 2px #ffffffa0,0 7px 15px #72503324} .menu-item:hover,.nav-tab:hover{background-color:#fff8}}
button:active:not(:disabled),.share-button:active{transform:translateY(1px);box-shadow:inset 0 2px 4px #573b2526}
@media(max-width:760px){.glass,.top-header,.login-card{backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.glass .glass{backdrop-filter:none;-webkit-backdrop-filter:none}}
@supports not (backdrop-filter:blur(1px)){.glass,.profile-menu,.admin-action-menu,.login-card{background:linear-gradient(135deg,#fffdfa,#efe5d9)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}button:hover:not(:disabled),button:active:not(:disabled),.share-button:hover{transform:none}}
@media(forced-colors:active){.glass,button,input,select,textarea{box-shadow:none;border:1px solid CanvasText}}

/* The viewport-sized portal is a positioning layer, never a glass surface. */
.publisher-menu-frame{background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;border:0}

/* Structural wrappers and inline actions must not acquire independent glass boxes. */
.account-header>.header-surface{background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;border:0;border-radius:inherit}
.header-surface::before,.header-surface::after{content:none}
.profile-control{background:transparent;border:0;box-shadow:none}
.publisher-trigger,.publisher-trigger:hover:not(:disabled),.publisher-trigger:active:not(:disabled){background:transparent;box-shadow:none;color:var(--coffee-dark)}
.account-header .header-balance,.account-header .header-balance-value{color:var(--coffee-dark)}
.long-value-view,.long-value-view:hover:not(:disabled),.long-value-view:active:not(:disabled),.value-copy,.value-copy:hover:not(:disabled),.value-copy:active:not(:disabled){background:transparent;border:0;box-shadow:none;transform:none}
.long-value-view{border-radius:8px}
.value-copy{border-radius:12px}
input:not([type=checkbox]):not([type=radio]),select,textarea{border-radius:14px;background-clip:padding-box}
.glass,.login-card,.profile-menu,.admin-action-menu,.copy-button,.share-button,.admin-button,.period-pill{background-clip:padding-box}

/* Directional optical edges: no extra DOM layers, filters or animated surfaces. */
:root{--liquid-edge:rgba(128,92,61,.14);--liquid-shadow:0 14px 30px rgba(77,49,29,.09),0 3px 7px rgba(77,49,29,.05),inset 1px 1px 2px rgba(255,255,255,.65),inset -1px -2px 3px rgba(137,100,68,.13)}
.glass,.top-header.account-header,.login-card,.profile-menu.publisher-navigation,.admin-action-menu,.profile-unified-card,.profile-settings-card,.profile-session-card,.payout-panel{border-color:rgba(147,112,81,.19) rgba(115,79,49,.27) rgba(115,79,49,.33) rgba(255,255,255,.56);background:radial-gradient(ellipse at 12% 0%,rgba(255,255,255,.76),transparent 58%),linear-gradient(130deg,rgba(255,253,248,.88),rgba(249,241,229,.76) 47%,rgba(226,207,187,.70));box-shadow:var(--liquid-shadow);backdrop-filter:none;-webkit-backdrop-filter:none}
.share-button,.admin-button,.period-pill,.profile-badge,.nav-tab.active,.menu-item.active,.hero-icon,.balance-icon,.avatar,.publisher-avatar,.login-emblem{border-color:rgba(255,255,255,.52) rgba(124,88,57,.24) rgba(124,88,57,.33) rgba(255,255,255,.44);background:radial-gradient(ellipse at 22% 0%,rgba(255,255,255,.8),transparent 65%),linear-gradient(145deg,rgba(255,251,244,.80),rgba(228,210,190,.68));box-shadow:inset 1px 1px 2px #ffffff8c,inset -1px -2px 3px #8d654227,0 4px 10px #64412712}
.copy-button,.login-google-fallback{border-color:#b28c6890 #64402785 #4e301b85 #caa58375;background:radial-gradient(ellipse at 20% 0%,#d4b79755,transparent 65%),linear-gradient(145deg,#9b7453,#795337 58%,#67432c);box-shadow:inset 1px 1px 2px #fff7,inset -1px -2px 3px #38221540,0 5px 12px #6b472d25}
input:not([type=checkbox]):not([type=radio]),select,textarea,.readonly-value,.profile-readonly-field{border-color:#8f6c4c52 #8f6c4c42 #ffffff85 #8f6c4c48;box-shadow:inset 0 2px 4px #6d503212,0 1px 0 #ffffff70;background:linear-gradient(175deg,#e9dfd2b8,#fffcf5d9)}
@media(hover:hover){.share-button:hover,.admin-button:hover:not(:disabled),.copy-button:hover:not(:disabled),.login-google-fallback:hover:not(:disabled){box-shadow:inset 1px 1px 3px #ffffff90,inset -1px -2px 3px #79533726,0 7px 16px #6b472d22}}
@media(forced-colors:active){.glass,button,input,select,textarea{border-color:CanvasText;box-shadow:none}}

/* Opaque frosted navigation keeps underlying page content out of the menu. */
.profile-menu.publisher-navigation{background:radial-gradient(ellipse at 12% 0%,#fffefa,transparent 70%),linear-gradient(135deg,#fcf8f1,#f3eadd 55%,#e9dccb);background-clip:padding-box;color:#493323;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 18px 40px #51351e29,0 4px 10px #51351e14,inset 1px 1px 2px #ffffffb3,inset -1px -2px 3px #89644426}
.profile-menu.publisher-navigation.is-open[data-positioned="true"]{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.publisher-navigation .menu-item{color:#493323}
.publisher-navigation .menu-item.active{color:#4e321e}
@supports not (backdrop-filter:blur(1px)){.profile-menu.publisher-navigation{background:linear-gradient(135deg,#fcf8f1,#eee2d2)}}

/* Surface-only header refinement: inherited geometry and responsive rules unchanged. */
.top-header.account-header{background:radial-gradient(ellipse at 14% 0%,#fffdf7c9,transparent 65%),linear-gradient(120deg,#f5ecdfed,#dfc7abe8);color:#513721;box-shadow:0 14px 30px #593b2417,inset 1px 1px 2px #ffffffa3,inset -1px -2px 3px #89644421}
.account-header>.header-surface{background:url('/artwork/header-waves.svg') center / cover no-repeat;opacity:.7;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.account-header .publisher-trigger,.account-header .publisher-name,.account-header .profile-chevron,.account-header .publisher-avatar,.account-header .header-balance-value{color:#513721;text-shadow:none}
.account-header .publisher-trigger{background:linear-gradient(140deg,#fffdf78c,#efdfcc40);box-shadow:inset 1px 1px 2px #ffffff70,0 3px 9px #7853330a}
.account-header .header-balance{background:linear-gradient(145deg,#e6d2b961,#fffaf078);border-color:#a77e5526;box-shadow:inset 1px 1px 2px #ffffff70,0 3px 9px #7853330a;backdrop-filter:none;-webkit-backdrop-filter:none}
@media(forced-colors:active){.account-header .publisher-trigger,.account-header .header-balance{box-shadow:none;background:Canvas;color:CanvasText}}


/* Resolution-independent refinement; no geometry, palette or font-family changes. */
svg { shape-rendering: geometricPrecision; }
body { text-rendering: optimizeLegibility; }
/* Keep text on its native rendering surface after the entrance animation. */
.login-intro, .login-card, .login-wave { animation-fill-mode: backwards; }
/* Only the bar artwork scales; the numeric labels remain full-resolution text. */
.chart-viewport .bar { animation: none; background: none; box-shadow: none; }
.chart-viewport .bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg,#c9a17e,#a47d5f 48%,#795136);
  box-shadow: inset 1px 0 0 #fff3,inset -1px 0 5px #714b2d08;
  transform-origin: bottom;
  animation: bar-enter .45s cubic-bezier(.2,.7,.3,1) backwards;
}
/* Preserve endpoint shadows/colors without interpolating blurred shadows each frame. */
button, a, .copy-button, .login-google-fallback, .share-button,
.nav-tab, .menu-item, .period-pill, .profile-badge, .admin-button,
.header-balance { transition-property: transform, opacity; }
/* This menu already has an opaque frosted gradient; a second live blur is redundant. */
.profile-menu.publisher-navigation.is-open[data-positioned="true"] {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Links Management: compact rows on desktop and mobile, scoped to this page. */
.links-management-table{min-width:0;width:100%;margin-top:20px}
.links-management-table .table-wrap.table-row-layout{border:1px solid var(--line);border-radius:14px;background:#ffffff80;padding-bottom:0}
.links-management-table .table-wrap.table-row-layout .admin-table{min-width:640px;table-layout:fixed}
.links-management-table .table-row-layout th{background:#f3ece5;color:#6d4c36;letter-spacing:.02em}
.links-management-table .table-row-layout :is(th,td){padding:13px 16px}
.links-management-table .table-row-layout :is(th,td):first-child{width:24%;white-space:normal;overflow-wrap:anywhere}
.links-management-table .table-wrap.table-row-layout tbody tr td:first-child{white-space:normal;overflow-wrap:anywhere}
.links-management-table .table-row-layout :is(th,td):nth-child(2){width:44%;min-width:0;max-width:none}
.links-management-table .table-row-layout :is(th,td):nth-child(3){width:18%}
.links-management-table .table-row-layout :is(th,td):last-child{width:14%;min-width:76px;text-align:center}
.links-management-table .table-row-layout .long-value{width:100%;min-width:0;max-width:100%;gap:4px}
.links-management-table .table-row-layout .long-value-view{flex:1 1 0;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap}
.links-management-table .link-status{display:inline-flex;align-items:center;gap:7px;font-size:.75rem;font-weight:600;white-space:nowrap}
.links-management-table .link-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}
.links-management-table .is-enabled{color:#2d6b45}
.links-management-table .is-disabled{color:#806e60}
@media(max-width:640px){.links-management-table .table-row-layout :is(th,td){padding:11px 12px}}

/* Approved Defined edges option: table strokes only; geometry and glass retained. */
.table-wrap,.table-wrap tbody tr,.table-wrap tbody tr td{border-color:rgba(113,78,50,.29)}
.payout-fields select,.publisher-section select{border-color:#8f6c4c52 #8f6c4c42 #ffffff85 #8f6c4c48}
.links-management-table .table-wrap.table-row-layout{border-color:rgba(113,78,50,.29)}

/* Popup surfaces must occlude page content; preserve their glass gradients and shadows. */
.admin-action-menu,.profile-menu.publisher-navigation{background-color:#fcf8f1}
#toast{background-color:#63442f}

/* Daily revenue: scoped layout, inherited Coffee & White glass surfaces. */
.revenue-update-form{display:grid;gap:18px;margin:20px 0}
.revenue-update-form label{display:grid;gap:10px}
.revenue-update-form input{width:100%;min-width:0;box-sizing:border-box}
.revenue-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.revenue-preview-cell{display:grid;gap:8px;padding:18px 0;min-width:0;border-bottom:1px solid rgba(113,78,50,.19)}
.revenue-preview-cell span{color:var(--muted,#756452);overflow-wrap:anywhere}
.revenue-preview-cell strong{font-size:1.35rem;overflow-wrap:anywhere}
.revenue-timeline{list-style:none;padding:0 0 0 18px;border-left:2px solid rgba(113,78,50,.24)}
.revenue-timeline li{display:grid;gap:7px;position:relative;margin:0 0 24px;padding-left:12px;overflow-wrap:anywhere}
.revenue-timeline li:before{content:"";position:absolute;left:-24px;top:6px;width:10px;height:10px;border-radius:50%;background:#79543b}
.revenue-timeline time,.revenue-timeline li>span{font-size:.88rem;color:var(--muted,#756452)}
@media(max-width:380px){.revenue-preview-grid{grid-template-columns:1fr}}

/* Four-column click statistics; preserve existing glass surfaces and mobile cards. */
.click-statistics table{min-width:480px}
.click-statistics td[data-label="Clicks"] strong{color:var(--coffee,#795335);font-weight:650}
@media(max-width:600px){.click-statistics table{min-width:0}}

/* One-line statistics footer; native date selection, plain text presentation. */
.statistics-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;margin-top:10px}
.statistics-footer .data-note{flex:1 1 auto;min-width:0;margin:0;white-space:nowrap;font-size:clamp(8px,2.25vw,11px)}
.statistics-date-controls{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;margin:0}
.statistics-date-controls::after{content:"";position:absolute;right:2px;top:50%;width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-65%) rotate(45deg);pointer-events:none;color:var(--coffee-dark)}
.statistics-footer .statistics-date-controls input[type=date]{appearance:none;-webkit-appearance:none;font:inherit;font-size:11px;line-height:1.5;color:var(--coffee-dark);width:100px;min-width:0;max-width:100%;min-height:32px;padding:0 12px 0 0;border:0;border-radius:0;background:none;box-shadow:none;cursor:pointer}
.statistics-footer .statistics-date-controls input[type=date]::-webkit-datetime-edit{padding:0}
.statistics-footer .statistics-date-controls input[type=date]::-webkit-calendar-picker-indicator{display:block;opacity:0;position:absolute;right:0;top:0;width:16px;height:100%;margin:0;padding:0;cursor:pointer}
.statistics-footer .statistics-date-controls input[type=date]:focus-visible{outline:0;box-shadow:none;text-decoration:underline;text-underline-offset:3px}
@media(max-width:360px){.statistics-footer .statistics-date-controls input[type=date]{font-size:10px;width:91px}}

/* Payment edit control only; retain the existing glass fields and save button. */
.payment-wallet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.payment-wallet-heading button.payment-edit-text{appearance:none;display:inline;padding:0;margin:0;min-width:0;min-height:0;width:auto;height:auto;flex:none;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;filter:none;transform:none;color:var(--coffee-dark);font:inherit;font-weight:500;line-height:inherit;cursor:pointer;text-decoration:none}
.payment-wallet-heading button.payment-edit-text::before,.payment-wallet-heading button.payment-edit-text::after{content:none}
.payment-wallet-heading button.payment-edit-text:focus-visible{outline:2px solid var(--coffee-dark);outline-offset:3px}
.payment-wallet-heading button.payment-edit-text:disabled{cursor:default}

/* Keep wallet and its compact Save action on one row at all viewport widths. */
.payment-wallet-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.payment-wallet-save-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;min-width:0}
.payment-wallet-save-row input{min-width:0;width:100%}
.payment-wallet-save-row .payment-save-compact{box-sizing:border-box;width:80px;min-width:80px;max-width:80px;height:48px;min-height:48px;max-height:48px;padding:10px 12px;font-size:14px;line-height:1.5;white-space:nowrap;border-radius:14px}
.payment-wallet-field .payment-wallet-heading{font-size:var(--text-small);line-height:1.5;font-weight:600;color:var(--coffee-dark)}
.payment-wallet-save-row .payment-save-compact,.payment-wallet-save-row .payment-save-compact:is(:hover,:active,:disabled){transform:none;transition:background .18s ease,box-shadow .18s ease,opacity .18s ease}

/* Email authentication only: existing Coffee & White surfaces remain unchanged. */
.email-auth-form{display:grid;gap:14px;width:100%;min-width:0;text-align:left}
.email-auth-form h3{margin:0;font-size:1.15rem;color:var(--coffee,#795337)}
.email-auth-form label{display:grid;gap:6px;font-size:.9rem;font-weight:600;min-width:0}
.email-auth-form input,.email-auth-form select{width:100%;min-width:0;box-sizing:border-box;font-size:16px}
.email-auth-form p{margin:0;font-size:.88rem;line-height:1.55;overflow-wrap:anywhere}
.email-auth-form>.copy-button{width:100%;min-height:44px}
.email-auth-navigation{display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:space-between}
.email-auth-navigation button,.email-auth-form .auth-text-button{padding:3px 0;background:none;border:0;box-shadow:none;color:var(--coffee,#795337);font:inherit;font-size:.85rem;text-decoration:underline;text-underline-offset:3px;min-height:36px}
@media(max-width:380px){.email-auth-form{gap:12px}.email-auth-navigation{gap:6px 12px}}

/* Reference form controls: single Coffee & White theme, flat surfaces only. */
:root{color-scheme:light;--field-bg:#fffdfa;--field-text:#35271d;--field-border:#b89c82;--field-muted:#817266;--field-disabled:#f1ece6;--field-error:#b23b35}
:root{--field-icon-text:url("/icons/forms/text.svg")}
:root{--field-icon-email:url("/icons/forms/email.svg")}
:root{--field-icon-password:url("/icons/forms/password.svg")}
:root{--field-icon-url:url("/icons/forms/url.svg")}
:root{--field-icon-number:url("/icons/forms/number.svg")}
:root{--field-icon-wallet:url("/icons/forms/wallet.svg")}
:root{--field-icon-code:url("/icons/forms/code.svg")}
body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=reset]),select,textarea,.readonly-value):not(.statistics-footer input){
 background-color:var(--field-bg);background-image:var(--field-icon,none);background-repeat:no-repeat;background-size:19px 19px;background-position:13px var(--field-icon-y,center);color:var(--field-text);border:1px solid var(--field-border);border-radius:10px;
 box-shadow:none;text-shadow:none;filter:none;backdrop-filter:none;-webkit-backdrop-filter:none;transform:none;outline:none;
 width:100%;max-width:100%;min-width:0;box-sizing:border-box;font-size:16px;line-height:1.4;min-height:var(--field-min-height,44px);height:var(--field-height,44px);padding:10px 12px 10px var(--field-padding,12px);transition:none;
}
body :is(input:not([type]),input[type=text],input[type=email],input[type=password],input[type=url],input[type=number],input[type=search],input[type=tel],textarea){--field-icon:var(--field-icon-text);--field-padding:42px}
body input[type=email]{--field-icon:var(--field-icon-email)}
body input[type=password]{--field-icon:var(--field-icon-password)}
body input[type=url]{--field-icon:var(--field-icon-url)}
body input[type=number]{--field-icon:var(--field-icon-number)}
body input[name=wallet]{--field-icon:var(--field-icon-wallet)}
body input[autocomplete=one-time-code]{--field-icon:var(--field-icon-code)}
body textarea{--field-height:auto;--field-min-height:96px;--field-icon-y:12px;resize:vertical}
body select{padding-right:30px}
body :is(input,textarea)::placeholder{color:var(--field-muted);opacity:1;font-size:inherit;font-weight:400}
body :is(input,select,textarea):not(.statistics-footer input):is(:hover,:active,:focus,:focus-visible){outline:none;border-color:var(--field-border);box-shadow:none;filter:none;transform:none}
body :is(input,select,textarea):not(.statistics-footer input):is(:disabled,[aria-disabled=true]){background-color:var(--field-disabled);color:var(--field-muted);border-color:#cbb9a8;box-shadow:none;cursor:not-allowed;opacity:1}
body :is(input,select,textarea):not(.statistics-footer input):is([aria-invalid=true],:user-invalid){border-color:var(--field-error);box-shadow:none;outline:none}
@media(forced-colors:active){body :is(input,select,textarea,.readonly-value):not(.statistics-footer input){background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}body :is(input,select,textarea):focus-visible{outline:1px solid Highlight;outline-offset:1px}}

.reauth-overlay{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:#35271d66;overflow:auto}.reauth-card{width:min(100%,440px);box-sizing:border-box;background:#fffaf3;padding:28px}

.email-action{width:calc(100% - 32px);max-width:480px;margin:8vh auto;background:#fffaf2;border:1px solid #e8d9c5;border-radius:20px;overflow:hidden;position:relative;box-shadow:0 18px 44px #42291020}
.email-action-brand{display:flex;align-items:center;gap:12px;background:#3c2515;color:#fffaf2;padding:22px 26px;border-bottom:4px solid #d6a45b}
.email-action-brand strong,.email-action-brand small{display:block}
.email-action-brand strong{font-size:25px}
.email-action-content{padding:24px 26px 30px;overflow-wrap:anywhere}
.email-action-content h1{font-size:clamp(24px,6vw,32px);margin:0 0 16px;color:#422913}
.email-action-content form{display:grid;gap:14px;margin:16px 0}
.email-action-content label{display:grid;gap:7px;font-weight:600}
.email-action-content input,.email-action-content button{min-height:46px;font:inherit;border-radius:10px;padding:8px 12px}
.email-action-content input{width:100%;min-width:0;border:1px solid #cbb79e;background:#fff;color:#342011}
.email-action-content button{background:#794411;color:#fff;border:1px solid #a36a25;font-weight:700;cursor:pointer}
.email-action-content button:disabled{opacity:.6;cursor:wait}
.email-action-content a{color:#794411;text-decoration:underline}
