a.navlink, a.sideline, a.btn, a.iconbtn, a.bankpick, a.nonebtn, a.chip, .seg a, .poplist a { text-decoration: none; }
.branch-pick, .branch-connection, .branch-last { padding: 1rem 1.25rem; }
.branch-pick { display: grid; grid-template-columns: minmax(7rem,1fr) minmax(8rem,1fr) minmax(10rem,1.4fr) auto; gap: .85rem; align-items: end; }
.branch-pick label { display: grid; gap: .35rem; min-width: 0; color: var(--muted); font-size: .86rem; }
.branch-pick select { width: 100%; min-height: 44px; color: var(--text); background: var(--surface); border: 1px solid var(--line2); border-radius: 6px; padding: .5rem; }
.branch-pick .btn, .branch-connection .btn { min-height: 44px; }
.branch-connection p { margin-bottom: .75rem; }
.branch-last summary { cursor: pointer; }
.branch-last pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 900px) { .branch-pick { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 480px) { .branch-pick { grid-template-columns: 1fr; } }
.seg a { flex:1; padding:5px 2px; text-align:center; color:var(--dim); border-radius:5px; font-size:.8125rem; font-weight:560; white-space:nowrap; }
.seg a.on { background:#302b42; color:#dfd6ff; }
.seg a:hover { color:var(--white); }
.rail-empty { padding:8px; }
.profile summary { list-style:none; cursor:pointer; }
.profile summary::-webkit-details-marker { display:none; }
.profile form { margin:0; }
.profile .navlink { margin-top:4px; }
.account strong { overflow-wrap:anywhere; }
.field .search-submit { display:inline-grid; place-items:center; color:var(--dim); }
.alert { padding:10px 13px; border:1px solid var(--line2); border-radius:8px; margin:12px 0; }
.alert-error { color:#f2a4b0; background:#2d2126; }
.alert-success { color:var(--green); }
.sheetdialog { margin:0 0 0 auto; max-height:none; max-width:100%; border:0; border-left:1px solid var(--line2); color:var(--text); }
.sheetdialog::backdrop { background:#06070b98; }
body:has(.sheetdialog:modal) { overflow:hidden; }
.poplist a { display:flex; align-items:center; color:var(--text); gap:10px; border-radius:7px; padding:10px; background:var(--raised); }
.poplist a.on { color:var(--purple); background:#322b44; }
.sheetdialog .kv dd { overflow-wrap:anywhere; }
.form input:not([type=hidden]),.access-box label>input { width:100%; min-width:0; background:#14151b; border:1px solid var(--line2); color:var(--white); padding:9px 10px; border-radius:7px; min-height:38px; }
.access-box .form { margin-top:18px; }
.access-box label>input { display:block; margin-top:4px; }
.otp-setup { display:grid; justify-items:center; gap:8px; margin:13px 0; }
.otp-setup img { border:4px solid white; border-radius:8px; }
.otp-setup details { max-width:100%; }
.otp-setup code { display:block; overflow-wrap:anywhere; }
.brandrow .subtle { font-size:.78rem; }
[hidden] { display:none!important; }
a.stat, a.lineitem, a.visual-link, .table a { text-decoration:none; }
a.stat, a.lineitem { color:inherit; }
a.stat { text-align:left; }
.table a.mono { color:inherit; }
.webhook { border-top:1px solid var(--line); padding-top:12px; }
.webhook summary { cursor:pointer; }
.webhook .form { padding-top:12px; }
.access-result, .conn-form { max-width:680px; }
.access-result .kv dd, .conn-form .kv dd, .token-box { overflow-wrap:anywhere; }
.token-box, .conn-form form { margin:12px 0; }
.sheetdialog .form input { margin:0; }

.logo-banco { display:inline-block; flex:none; width:26px; height:26px; object-fit:contain; border-radius:6px; border:1px solid var(--line2); background:white; }
.logo-label { display:inline-flex; align-items:center; gap:8px; vertical-align:middle; max-width:100%; }
.logo-bandeira { display:inline-block; flex:none; width:38px; height:24px; object-fit:contain; border-radius:4px; border:1px solid var(--line2); background:white; }
