.secret-copy-row{display:flex;align-items:center;gap:12px;margin:10px 0}.secret-copy-row code{flex:1;margin:0;min-width:0}.copy-secret-button{flex:0 0 auto;min-width:86px}.copy-secret-button-success{border-color:rgba(57,217,138,.6);background:rgba(57,217,138,.14);color:#b7f4d4}.page-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.counter-page-heading{align-items:center}.counter-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.counter-summary-card{min-height:118px;display:flex;align-items:center;gap:15px;padding:18px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(180deg,rgba(17,32,53,.96),rgba(13,25,42,.96));overflow:hidden;position:relative}.counter-summary-card::after{content:"";position:absolute;inset:auto -22px -35px auto;width:110px;height:110px;border-radius:50%;opacity:.1;background:currentColor}.summary-icon{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;border-radius:13px;font-size:20px;font-weight:800;background:rgba(255,255,255,.07)}.counter-summary-card div{min-width:0}.counter-summary-card strong,.counter-summary-card span,.counter-summary-card small{display:block}.counter-summary-card strong{font-size:27px;line-height:1;margin-bottom:6px}.counter-summary-card div>span{font-weight:750;color:var(--text)}.counter-summary-card small{color:var(--muted);margin-top:3px}.summary-blue{color:#69b6ff;border-color:rgba(74,163,255,.26);background:linear-gradient(135deg,rgba(34,103,174,.19),rgba(13,25,42,.96))}.summary-green{color:#56df9d;border-color:rgba(57,217,138,.24);background:linear-gradient(135deg,rgba(29,132,86,.18),rgba(13,25,42,.96))}.summary-purple{color:#b797ff;border-color:rgba(158,122,255,.25);background:linear-gradient(135deg,rgba(104,75,170,.18),rgba(13,25,42,.96))}.summary-orange{color:#ffb96b;border-color:rgba(245,174,81,.25);background:linear-gradient(135deg,rgba(166,98,33,.18),rgba(13,25,42,.96))}.counter-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) 220px 190px;gap:10px;margin-bottom:18px}.counter-toolbar input,.counter-toolbar select{height:44px;background:rgba(8,18,32,.92)}.branch-workspace{display:grid;gap:14px}.branch-card{border:1px solid var(--border);border-radius:17px;overflow:hidden;background:linear-gradient(180deg,rgba(17,32,53,.97),rgba(11,23,39,.97));box-shadow:0 12px 38px rgba(0,0,0,.1)}.branch-card[hidden],.cash-counter-card[hidden]{display:none!important}.branch-card-header{display:flex;align-items:stretch;gap:10px;padding:12px 14px;border-bottom:1px solid rgba(35,55,84,.7)}.branch-card.is-collapsed .branch-card-header{border-bottom-color:transparent}.branch-toggle{border:0;background:transparent;color:var(--text);cursor:pointer;display:grid;grid-template-columns:42px minmax(0,1fr) auto 24px;align-items:center;gap:12px;flex:1;min-width:0;text-align:left;padding:3px 0}.branch-symbol,.counter-symbol,.modal-icon{display:grid;place-items:center;border-radius:11px;background:rgba(74,163,255,.12);color:#8fc9ff;border:1px solid rgba(74,163,255,.18)}.branch-symbol{width:42px;height:42px;font-size:20px}.branch-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.branch-title-line strong{font-size:16px}.branch-code{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:800;color:#94dfb8;background:rgba(57,217,138,.1);border:1px solid rgba(57,217,138,.17)}.branch-subtitle{display:block;margin-top:5px;color:var(--muted);font-size:12px}.branch-counter-count{display:flex;align-items:baseline;gap:6px;color:var(--muted);white-space:nowrap}.branch-counter-count strong{font-size:18px;color:#8fd0ff}.branch-counter-count span{font-size:12px}.branch-chevron{font-size:21px;color:var(--muted);transition:transform .18s}.branch-card.is-collapsed .branch-chevron{transform:rotate(-90deg)}.branch-card-body{padding:14px}.branch-card.is-collapsed .branch-card-body{display:none}.counter-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:12px}.cash-counter-card{border:1px solid rgba(45,66,97,.9);border-radius:14px;padding:14px;background:linear-gradient(180deg,rgba(11,24,42,.95),rgba(8,18,32,.95));min-width:0;transition:.15s}.cash-counter-card:hover{transform:translateY(-1px);border-color:rgba(74,163,255,.38);box-shadow:0 12px 30px rgba(0,0,0,.17)}.counter-card-head{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start;gap:10px}.counter-symbol{width:34px;height:34px;font-size:16px}.counter-card-head strong,.counter-card-head span{display:block}.counter-card-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.counter-card-head div>span{color:var(--muted);font-size:12px;margin-top:4px}.status-dot{font-size:11px;font-weight:750;white-space:nowrap}.status-dot::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;vertical-align:1px;background:currentColor}.status-dot-active{color:#67dea0}.status-dot-inactive{color:#9aa9bc}.counter-readiness{display:flex;gap:6px;flex-wrap:wrap;margin:13px 0 15px}.readiness-pill{display:inline-flex;border-radius:7px;padding:5px 7px;font-size:10px;font-weight:800;border:1px solid transparent}.readiness-good{color:#8ce9b8;background:rgba(57,217,138,.1);border-color:rgba(57,217,138,.2)}.readiness-warning{color:#ffd08b;background:rgba(245,196,81,.09);border-color:rgba(245,196,81,.18)}.readiness-bad{color:#ff9aa5;background:rgba(255,107,122,.09);border-color:rgba(255,107,122,.18)}.counter-details{margin:0;display:grid;gap:10px}.counter-details div{display:grid;gap:2px}.counter-details dt{color:var(--muted);font-size:11px}.counter-details dd{margin:0;font-size:13px;font-weight:700}.counter-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:15px}.counter-card-actions form,.counter-card-actions button{width:100%}.live-key-button{color:#8ce9b8;border-color:rgba(57,217,138,.28)}.counter-disable-form{text-align:right;margin-top:9px}.counter-link-danger{border:0;background:transparent;color:#ff8e9a;padding:4px 0;font-size:11px;cursor:pointer}.branch-empty{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px;border:1px dashed rgba(45,66,97,.9);border-radius:12px;color:var(--muted)}.counter-empty-state,.no-filter-results{text-align:center;border:1px dashed var(--border);border-radius:18px;padding:42px 24px;background:rgba(11,24,42,.54);color:var(--muted)}.counter-empty-state h2,.no-filter-results h2{color:var(--text);margin:10px 0 6px}.counter-empty-state p,.no-filter-results p{margin:0 auto 18px;max-width:540px}.empty-state-icon{margin:auto;width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:rgba(74,163,255,.12);color:#8fc9ff;font-size:22px}.portal-modal[hidden]{display:none}.portal-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}.portal-modal-backdrop{position:absolute;inset:0;background:rgba(2,8,16,.72);backdrop-filter:blur(5px)}.portal-modal-card{position:relative;width:min(880px,100%);max-height:min(90vh,760px);overflow-y:auto;border-radius:19px;border:1px solid #304969;background:#0e1b2e;box-shadow:0 28px 90px rgba(0,0,0,.45);padding:22px}.portal-modal-small{width:min(530px,100%)}.portal-modal-wide{width:min(910px,100%)}.modal-heading{display:flex;justify-content:space-between;gap:15px;padding-bottom:18px;border-bottom:1px solid var(--border)}.modal-heading>div{display:flex;gap:12px}.modal-heading h2{margin:0;font-size:20px}.modal-heading p{margin:4px 0 0;color:var(--muted);font-size:13px}.modal-icon{width:38px;height:38px;flex:0 0 38px}.modal-close{border:0;background:transparent;color:var(--muted);font-size:28px;cursor:pointer}.modal-form{display:grid;gap:15px;margin-top:18px}.modal-form label{display:grid;gap:6px}.modal-form label>span b{color:#ff8e9a}.modal-form label small{color:var(--muted);font-weight:400;font-size:11px}.counter-modal-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:18px}.counter-modal-main,.counter-modal-settings{display:grid;align-content:start;gap:13px}.configuration-box{border:1px solid var(--border);border-radius:13px;padding:14px}.configuration-sandbox{background:rgba(74,163,255,.07);border-color:rgba(74,163,255,.23)}.configuration-production{background:rgba(18,35,57,.72)}.configuration-title,.configuration-production summary{display:flex;align-items:center;gap:8px;color:#9ccfff;cursor:pointer}.configuration-production summary{list-style:none}.configuration-production summary::-webkit-details-marker{display:none}.configuration-production summary em{margin-left:auto;color:var(--muted);font-size:11px;font-style:normal}.configuration-box label{margin-top:12px}.production-fields{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:12px;margin-top:12px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:17px;border-top:1px solid var(--border)}body.modal-open{overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1180px){.counter-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.counter-toolbar{grid-template-columns:1fr 190px 180px}}@media(max-width:820px){.counter-page-heading{display:grid}.page-actions{justify-content:flex-start}.counter-toolbar{grid-template-columns:1fr}.branch-toggle{grid-template-columns:38px minmax(0,1fr) 22px}.branch-counter-count{display:none}.counter-modal-grid,.production-fields{grid-template-columns:1fr}}@media(max-width:760px){.secret-copy-row{align-items:stretch;flex-direction:column}.copy-secret-button{width:100%}}@media(max-width:560px){.counter-summary-grid{grid-template-columns:1fr}.branch-card-header{display:grid}.branch-card-header>.button{width:100%}.counter-card-grid{grid-template-columns:1fr}.portal-modal{padding:8px;align-items:end}.portal-modal-card{border-radius:18px 18px 0 0;max-height:92vh}.modal-actions{position:sticky;bottom:-22px;margin:0 -22px -22px;padding:14px 22px;background:#0e1b2e}}