/* Shared responsive rules, loaded last so mobile navigation stays in document flow. */
.ref-nav{z-index:30}
.ref-scene-content{z-index:1}
.ref-main,.ref-main>*,.ref-theme form,.ref-theme label{min-width:0}
.ref-theme img{max-width:100%}
.ref-theme .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.ref-theme .wallet-address,.article-breadcrumb,.article-toc a{overflow-wrap:anywhere}
.ref-theme textarea{max-width:100%;box-sizing:border-box;resize:vertical}
.ref-theme input:not([type=checkbox]):not([type=radio]),.ref-theme select{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:1024px){
 .ref-header{height:auto!important;min-height:235px;overflow:visible;isolation:isolate}
 .ref-nav{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:'toggle brand logout' 'links links links';max-width:none!important;width:calc(100% - 24px);margin:0 12px;padding:10px 12px;gap:0 10px;min-height:64px;box-sizing:border-box}
 .ref-menu-toggle{grid-area:toggle;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:90px;min-height:44px;padding:9px 12px;font-size:15px}
 .ref-brand{grid-area:brand;justify-self:end;margin:0;padding:0;letter-spacing:1px;font-size:15px}
 .ref-nav>.action-form{grid-area:logout;position:static;inset:auto;justify-self:end;margin:0}
 .ref-logout{height:44px;width:36px;border-radius:10px;font-size:23px}
 .ref-menu-links{grid-area:links;display:none;position:static!important;inset:auto!important;z-index:auto;width:100%;max-width:none;margin:0;padding:12px 0 0;box-shadow:none;border:0;border-radius:0;background:transparent;gap:8px}
 .ref-menu-links.open{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 .ref-menu-links>a{width:100%;min-width:0;min-height:44px;padding:10px 8px;font-size:15px;line-height:1.35;white-space:normal;text-align:center;box-sizing:border-box}
 .ref-scene-content,.ref-page-dashboard .ref-scene-content{max-width:none;width:calc(100% - 32px);height:auto;min-height:165px;margin:0 16px;padding:10px 0 16px;box-sizing:border-box}
 .ref-speech,.ref-page-dashboard .ref-speech{position:relative;inset:auto!important;width:100%;min-height:0;display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 16px;padding:12px 14px;font-size:15px;line-height:1.5;box-sizing:border-box}
 .ref-speech>span{min-width:0;flex:1 1 320px;overflow-wrap:anywhere}
 .public-scene .ref-speech>a,.ref-scene-wallet{white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
 .ref-theme .ref-scene-button{position:relative;inset:auto;display:inline-flex;max-width:100%;margin:14px 0 0;font-size:14px;min-height:44px}
 .ref-news{position:relative;inset:auto;width:100%;max-height:150px;margin:12px 0 0;box-sizing:border-box;border-radius:12px}
 .crypto-header-art{inset:64px 0 0;background-position:100% 95%;background-size:350px auto}
 .crypto-header-art span{margin-top:88px;margin-left:5%;font-size:clamp(24px,4vw,42px)}
 .crypto-header-art b{margin-left:5%;font-size:11px}
 .ref-auth .ref-header{min-height:0}
 .ref-auth .crypto-header-art{display:none}
 .ref-main{width:calc(100% - 32px);max-width:calc(100% - 32px);margin:22px 16px 32px}
 .ref-theme .ref-account{grid-template-columns:1fr;gap:24px}
 .ref-account-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:0;padding:0;gap:16px}
 .ref-account-resources .ref-resource-columns{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-flow:row;gap:16px}
 .ref-theme .admin-columns,.ref-theme .admin-form-grid{grid-template-columns:1fr}
 .ref-miner-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ref-theme .table-wrap table{min-width:580px}
 .ref-theme button,.ref-theme input,.ref-theme select{touch-action:manipulation}
 .ref-theme input:not([type=checkbox]):not([type=radio]),.ref-theme select,.ref-theme textarea{font-size:16px}
 .article-breadcrumb{flex-wrap:wrap;line-height:1.7;gap:5px 10px}
 .ref-footer{gap:20px;padding:24px 16px;flex-wrap:wrap}
 .ref-footer>div{white-space:normal;min-width:0;overflow-wrap:anywhere}
}
@media(max-width:640px){
 .ref-nav{border-radius:0 0 18px 18px}
 .ref-menu-links.open{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ref-menu-links>a:last-child:nth-child(odd){grid-column:1/-1}
 .ref-brand{font-size:14px}
 .ref-scene-content{width:calc(100% - 24px);margin:0 12px;min-height:175px}
 .ref-speech,.ref-page-dashboard .ref-speech{flex-direction:column;gap:6px}
 .ref-speech>span{flex:0 1 auto}
 .crypto-header-art span{font-size:27px;margin-top:110px}
 .crypto-header-art b{font-size:10px}
 .ref-main{width:calc(100% - 24px);max-width:calc(100% - 24px);margin:20px 12px 30px}
 .ref-theme .panel{padding:18px;border-radius:16px}
 .ref-theme .welcome-panel{padding:24px 20px!important;gap:10px}
 .ref-theme h1{font-size:clamp(24px,6.3vw,30px);line-height:1.35;overflow-wrap:anywhere}
 .ref-theme .ref-ribbon{height:auto;min-height:48px;max-width:calc(100% + 36px);line-height:1.35;padding-top:12px;padding-bottom:12px}
 .ref-theme .public-two-column,.ref-theme .guide-library,.ref-theme .start-steps,.ref-theme .featured-guides{grid-template-columns:1fr}
 .catalog-filter,.planner-form{grid-template-columns:1fr!important}
 .catalog-filter>*,.planner-form>*{min-width:0;width:100%}
 .ref-theme .public-search>div{display:flex;flex-wrap:wrap;gap:10px}
 .public-search input{flex:1 1 180px;width:100%}
 .ref-theme .public-search .btn{min-height:44px}
 .ref-theme .filter-tabs{gap:8px;flex-wrap:wrap}
 .ref-theme .filter-tabs button{min-height:40px;padding:8px 12px;font-size:14px}
 .ref-auth .auth-panel{width:100%;max-width:none;padding:0 18px 22px}
 .ref-auth .auth-panel .stack-form>label:not(.checkbox){display:block;max-width:none;font-size:15px}
 .ref-auth .auth-panel .stack-form>label>input{display:block;width:100%;margin-top:8px;min-height:44px}
 .ref-auth .password-field{margin-top:8px;width:100%;min-width:0}
 .ref-auth .password-field input{min-width:0;flex:1 1 auto;width:100%;min-height:44px}
 .ref-auth .password-field button{min-height:44px;flex-shrink:0}
 .ref-auth .auth-panel .stack-form .btn,.ref-auth .forgot{margin-left:0!important;max-width:100%;min-height:44px}
 .ref-auth .auth-panel .stack-form .btn{width:100%}
 .ref-auth .auth-panel:after{display:none}
 .ref-auth .checkbox{max-width:100%;font-size:14px;line-height:1.6}
 .ref-theme .cowlook-payment-form{margin:16px 0}
 .ref-theme .cowlook-plan-grid{padding:14px 0;gap:16px}
 .ref-theme .cowlook-plan{min-width:0}
 .ref-theme .btn,.ref-gray-button,.ref-purchase-button{min-height:44px}
 .ref-account-summary,.ref-account-resources .ref-resource-columns{grid-template-columns:1fr;max-width:360px;width:100%;margin:0 auto}
 .ref-theme .ref-extras{gap:12px;line-height:1.8}
 .ref-theme .world-numbers{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .ref-theme .world-numbers>div{min-width:0}
 .ref-footer>div{flex:1 0 100%}
}
@media(max-width:540px){
 .ref-miner-cards{grid-template-columns:1fr!important;gap:18px!important}
 .ref-shop{padding:20px 16px!important}
 .rich-miner-card h3{font-size:20px;min-height:0}
 .ref-miner-card dl>div{flex-wrap:nowrap;gap:8px}
 .ref-miner-card dt,.ref-miner-card dd{font-size:14px}
 .ref-miner-card .ref-shop-miner{min-height:170px!important}
 .ref-miner-card .ref-card-purchase{display:flex;flex-direction:column;align-items:stretch}
 .ref-card-purchase>span,.ref-purchase-button{width:100%;box-sizing:border-box}
 .planner-values{grid-template-columns:1fr!important}
 .discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gpu-rig-heading{flex-wrap:wrap}
}
@media(max-width:359px){
 .ref-nav{margin:0 8px;width:calc(100% - 16px);padding:8px;gap:0 6px}
 .ref-menu-toggle{min-width:78px;padding:8px;font-size:14px}
 .ref-brand{font-size:12px;letter-spacing:.5px}
 .ref-theme .world-numbers{grid-template-columns:1fr}
 .ref-theme .welcome-actions>a{width:100%;justify-content:center}
}
@media(max-width:1024px){
 .ref-theme .resource-balance{display:grid;grid-template-columns:60px minmax(0,1fr) auto;grid-template-areas:'icon copy action' 'icon weight action';align-items:center;gap:3px 10px;height:auto!important;min-height:90px;padding:10px 12px!important;background:#66534f;border:1px solid #9d877a;border-radius:16px;box-sizing:border-box}
 .ref-theme .resource-balance>.ref-round-icon{grid-area:icon;position:static;width:60px;height:60px;margin:0;align-self:center}
 .ref-theme .resource-balance .ref-balance-copy{grid-area:copy;position:static;width:auto;height:auto;min-width:0;padding:0!important;margin:0!important;background:none;border:0;box-shadow:none;border-radius:0}
 .ref-theme .resource-balance .ref-balance-copy>span{font-size:12px;line-height:1.4;white-space:normal}
 .ref-theme .resource-balance .ref-balance-copy>strong{font-size:16px;line-height:1.5}
 .ref-theme .resource-balance .ref-weight{grid-area:weight;position:static;display:block;width:auto;height:auto;padding:0;margin:0;background:none;border:0;border-radius:0;box-shadow:none;font-size:14px;line-height:1.5;white-space:normal;text-align:left;overflow-wrap:anywhere}
 .ref-theme .resource-balance>.action-form{grid-area:action;position:static;margin:0;align-self:center}
 .ref-theme .resource-balance .ref-gray-button{min-width:78px;max-width:95px;min-height:44px;padding:8px;font-size:14px;line-height:1.35;white-space:normal;text-align:center}
}
@media(max-width:540px){
 .ref-theme .rich-miner-card{height:auto!important;min-height:0!important;display:flex;flex-direction:column}
 .ref-theme .rich-miner-card h3{font-size:20px!important;line-height:1.35;min-height:0}
 .ref-theme .rich-miner-card .ref-shop-miner{height:auto!important;min-height:0!important;flex:0 0 auto;margin:10px 0}
 .ref-theme .rich-miner-card .miner-description{min-height:0!important;margin:12px 0;font-size:15px}
 .ref-theme .rich-miner-card dl{margin:10px 0}
 .ref-theme .rich-miner-card .ref-card-purchase{position:static!important;margin-top:14px!important}
}
@media(min-width:1025px){.ref-nav{max-width:min(1020px,calc(100% - 80px))}}
