@import url('/static/fonts.css');
:root{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#1b2926;
  background:#f6f8f7;
  font-synthesis:none;
  --green:#167b5b;
  --green-dark:#106047;
  --muted:#798680;
  --line:#e5eae7;
  --radius:18px
}
*{
  box-sizing:border-box
}
body{
  margin:0
}
button,input{
  font:inherit
}
button{
  cursor:pointer
}
button:disabled{
  cursor:wait;
  opacity:.55
}
a{
  color:inherit
}
svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
[hidden]{
  display:none!important
}
:focus-visible{
  outline:3px solid #70b69d;
  outline-offset:4px
}
h1,h2,p{
  margin:0
}
button{
  touch-action:manipulation
}
.topbar{
  height:76px;
  padding:0 max(36px,calc((100vw - 1320px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
  background:#fff
}
.brand{
  text-decoration:none;
  font-size:25px;
  letter-spacing:-1px;
  font-weight:750
}
.workspace{
  max-width:1320px;
  margin:0 auto;
  padding:38px 0 24px
}
.page-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}
.eyebrow{
  font-size:10px;
  font-weight:650;
  letter-spacing:1.8px;
  color:#88948d;
  margin-bottom:13px
}
h1{
  font-size:34px;
  line-height:1.25;
  font-weight:650;
  letter-spacing:-1.1px;
  display:flex;
  align-items:center;
  gap:13px
}
.count{
  font-size:15px;
  font-weight:600;
  letter-spacing:0;
  background:#e8eeeb;
  color:#65746d;
  min-width:30px;
  height:29px;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center
}
.muted{
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
  margin-top:10px
}
.heading-actions{
  display:flex;
  align-items:center;
  gap:10px
}
.button{
  min-height:43px;
  border:1px solid transparent;
  border-radius:10px;
  padding:10px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:13px;
  font-weight:550;
  line-height:1.4;
  transition:background .15s,box-shadow .15s
}
.primary{
  background:var(--green);
  color:white;
  box-shadow:0 2px 3px #1245320b
}
.primary:hover{
  background:var(--green-dark)
}
.secondary{
  background:white;
  border-color:#dfe6e2;
  color:#42554b
}
.secondary:hover{
  background:#f1f5f3
}
.quiet{
  background:transparent;
  color:#687970
}
.quiet:hover{
  background:#eaf0ec
}
.small{
  font-size:12px;
  min-height:34px;
  padding:7px 11px
}
.wide{
  width:100%;
  justify-content:center
}
.plus{
  font-size:23px;
  font-weight:400;
  line-height:14px
}
.profiles-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:28px
}
.profile-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:0 3px 5px #18352603;
  overflow:hidden;
  min-width:0;
  align-self:start;
  transition:box-shadow .2s
}
.profile-card:focus-within{
  box-shadow:0 0 0 3px #167b5b0d
}
.card-header{
  padding:23px 23px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.profile-identity{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0
}
.profile-avatar{
  height:39px;
  width:39px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  background:#edf4f0;
  color:#3c8065;
  border:1px solid #e3ede7;
  border-radius:12px;
  font-size:13px;
  font-weight:650
}
.profile-title{
  font-size:14px;
  line-height:1.5;
  font-weight:650
}
.badge{
  font-size:10px;
  line-height:1.4;
  padding:5px 8px;
  border-radius:6px;
  white-space:nowrap;
  background:#f2f4f3;
  color:#8b948f
}
.badge.connected{
  color:#2c8462;
  background:#edf7f0
}
.badge.waiting{
  color:#b17c34;
  background:#fff6e7
}
.badge.error{
  color:#aa6555;
  background:#fbefeb
}
.card-body{
  padding:23px
}
.connect-form label{
  font-size:12px;
  display:block;
  font-weight:500;
  color:#67776f
}
.field+.field{
  margin-top:17px
}
input{
  border:1px solid #dee5e1;
  border-radius:9px;
  background:#fff;
  min-width:0;
  height:43px;
  padding:0 12px;
  color:#253a2f;
  width:100%;
  font-size:13px;
  transition:border-color .15s
}
input:focus{
  border-color:#69a98c;
  outline:2px solid #cae2d64f
}
input::placeholder{
  color:#a3ada7
}
input:disabled{
  background:#f7f9f8;
  color:#9ba69e
}
.field input{
  margin-top:7px
}
.password-wrap{
  position:relative
}
.password-wrap input{
  padding-right:44px
}
.password-toggle{
  position:absolute;
  right:3px;
  top:10px;
  background:none;
  border:0;
  color:#95a299;
  height:36px;
  width:38px;
  display:grid;
  place-items:center;
  border-radius:6px
}
.password-toggle svg{
  width:17px;
  height:17px
}
.connect-button{
  margin-top:22px;
  justify-content:space-between
}
.form-note{
  font-size:10px;
  line-height:1.8;
  color:#919c95;
  text-align:center;
  margin-top:13px
}
.demo-card-note{
  background:#f6f8f7;
  padding:12px;
  border-radius:8px;
  color:#849087;
  font-size:11px;
  line-height:1.6;
  margin-bottom:20px
}
.balance-label{
  font-size:11px;
  color:#8a968e
}
.balance-main{
  margin-top:8px;
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
  line-height:1.25;
  font-variant-numeric:tabular-nums
}
.balance-main .amount{
  font-size:34px;
  font-weight:600;
  letter-spacing:-1.2px;
  overflow-wrap:anywhere
}
.balance-main .currency{
  font-size:14px;
  font-weight:500;
  color:#99a39c
}
.extra-balances{
  margin-top:18px;
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.balance-chip{
  font-size:11px;
  padding:6px 9px;
  background:#f5f7f6;
  border-radius:6px;
  color:#738178;
  font-variant-numeric:tabular-nums
}
.balance-chip strong{
  font-weight:550;
  color:#4f6356;
  margin-right:5px
}
.balance-time{
  font-size:10px;
  color:#9aa59e;
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:20px
}
.balance-time::before{
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#91b8a2
}
.balance-time.stale{
  color:#b18447
}
.balance-time.stale::before{
  background:#bd9553
}
.card-actions{
  display:flex;
  gap:9px;
  border-top:1px solid #edf0ee;
  padding-top:18px;
  margin-top:18px
}
.card-actions .history-button{
  flex:1;
  justify-content:space-between;
  background:#f4f7f5;
  border-color:#edf0ee
}
.card-actions .refresh-button{
  padding:10px;
  min-width:43px
}
.disconnect-button{
  display:block;
  margin:13px auto -8px;
  font-size:10px;
  color:#9aaba0;
  min-height:28px
}
.card-error{
  padding:0 23px 20px;
  margin:0!important
}
.error{
  color:#ae5d4c;
  font-size:12px;
  line-height:1.6;
  margin-top:12px
}
.connecting{
  padding:26px 0 12px;
  text-align:center
}
.code-symbol{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:#edf4f0;
  color:var(--green);
  font-size:23px;
  margin-bottom:16px;
}
.code-heading{font-size:17px;font-weight:600;margin:0 0 9px}
.code-help{font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:20px}
.code-label{display:block;font-size:12px;color:#67776f;margin-top:14px}
.code-input{margin-top:8px;height:52px;font-size:24px;letter-spacing:7px;font-variant-numeric:tabular-nums;text-align:center}
.code-submit{margin-top:18px}
.spinner{
  width:28px;
  height:28px;
  border:2px solid #e5eee8;
  border-top-color:var(--green);
  border-radius:50%;
  display:inline-block;
  animation:spin 1s linear infinite
}
.connecting h3{
  font-size:14px;
  font-weight:550;
  margin:16px 0 8px
}
.connecting p{
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
  margin-bottom:20px
}
.connecting .quiet{
  margin-top:5px
}
.empty-state{
  min-height:300px;
  border:1px dashed #d7e2db;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  background:#fcfdfc;
  margin-top:28px;
  text-align:center;
  padding:32px 16px
}
.empty-state h2{
  font-size:20px;
  font-weight:550;
  letter-spacing:-.35px
}
.empty-state p{
  font-size:13px;
  color:#8a978e;
  line-height:1.8;
  margin:12px 0 23px
}
.notice{
  font-size:12px;
  background:#edf4ef;
  color:#647d6c;
  padding:12px 15px;
  border-radius:9px;
  margin-bottom:20px;
  line-height:1.7
}
.notice span{
  margin-right:5px
}
.warning{
  color:#926f3b;
  background:#fbf1e2
}
.demo-banner{
  background:#e9f1ec;
  color:#43725a;
  text-align:center;
  padding:9px 16px;
  font-size:11px;
  font-weight:600
}
.demo-banner span{
  font-weight:400;
  margin-left:13px
}
.access{
  max-width:380px;
  margin:85px auto;
  padding:0 18px
}
.access h1{
  font-size:28px
}
.access form{
  margin-top:30px
}
.access label{
  display:block;
  font-size:12px;
  color:#687b6c;
  margin-bottom:8px
}
.access .button{
  margin-top:20px
}
.access .muted{
  font-size:13px
}
dialog{
  border:0;
  background:#fff;
  color:inherit;
  padding:0;
  box-shadow:-18px 0 70px #1a33211c
}
dialog::backdrop{
  background:#1b302745;
  backdrop-filter:blur(3px)
}
.drawer{
  position:fixed;
  inset:0 0 0 auto;
  height:100dvh;
  max-height:100dvh;
  width:530px;
  max-width:100%;
  margin:0;
  overflow-y:auto
}
.drawer-header{
  padding:30px 28px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid var(--line)
}
.drawer-header .eyebrow{
  font-size:9px;
  margin-bottom:9px
}
.drawer-header h2{
  font-size:24px;
  font-weight:550;
  letter-spacing:-.6px
}
.drawer-actions{
  display:flex;
  align-items:center;
  gap:8px
}
.icon-button{
  background:#f4f7f5;
  border:0;
  color:#859589;
  font-size:25px;
  font-weight:300;
  border-radius:10px;
  width:34px;
  height:34px;
  flex-shrink:0;
  display:grid;
  place-items:center
}
.history-content{
  padding:8px 28px 0
}
.history-row{
  display:grid;
  grid-template-columns:35px minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
  padding:18px 0;
  border-bottom:1px solid #f0f3f1
}
.history-icon{
  width:33px;
  height:33px;
  border-radius:10px;
  background:#f1f6f3;
  color:#86a290;
  display:grid;
  place-items:center;
  font-size:16px
}
.history-description{
  font-size:12px;
  font-weight:500;
  line-height:1.6;
  overflow-wrap:anywhere
}
.history-date{
  font-size:10px;
  color:#9eaaa1;
  margin-top:3px
}
.history-amount{
  font-size:13px;
  white-space:nowrap;
  font-weight:550;
  font-variant-numeric:tabular-nums
}
.history-currency{
  font-weight:400;
  color:#93a299;
  margin-left:4px;
  font-size:10px
}
.history-status{
  color:#809888;
  font-size:9px;
  text-align:right;
  margin-top:5px;
  max-width:120px;
  overflow-wrap:anywhere
}
.history-empty{
  text-align:center;
  padding:70px 15px;
  color:#8b9b90;
  font-size:13px;
  line-height:1.8
}
.history-empty strong{
  display:block;
  color:#4a6453;
  font-size:17px;
  font-weight:500;
  margin:13px
}
.history-bottom{
  padding:22px 28px;
  text-align:center
}
.history-bottom>span{
  display:block
}
.drawer>.error{
  padding:0 28px
}
.browser-dialog{
  width:1058px;
  max-width:calc(100vw - 24px);
  max-height:calc(100dvh - 32px);
  border-radius:18px;
  margin:auto;
  overflow:auto
}
.browser-help{
  font-size:12px;
  line-height:1.7;
  color:#768a7b;
  padding:16px 24px
}
.browser-viewport{
  margin:0 24px;
  border:1px solid var(--line);
  background:#f5f7f6;
  overflow:hidden;
  border-radius:8px
}
.browser-viewport img{
  display:block;
  width:100%;
  height:auto;
  cursor:crosshair
}
.browser-dialog>.error{
  margin:10px 24px
}
.browser-controls{
  padding:10px 24px
}
.browser-controls label{
  font-size:12px;
  color:#6b8171;
  display:block;
  margin-bottom:8px
}
.browser-text-row{
  display:flex;
  gap:8px
}
.browser-keys{
  padding:4px 24px 24px;
  display:flex;
  gap:6px;
  flex-wrap:wrap
}
.toast{
  position:fixed;
  bottom:26px;
  left:50%;
  transform:translateX(-50%);
  background:#244335;
  color:#fff;
  padding:13px 20px;
  border-radius:11px;
  box-shadow:0 4px 20px #234b3420;
  font-size:12px;
  z-index:100;
  max-width:calc(100% - 32px);
  text-align:center
}
.loading{
  padding:70px;
  text-align:center
}
.demo-disabled{
  pointer-events:none
}
.pending-dot{
  color:#91a699
}
.muted-small{
  font-size:11px;
  color:var(--muted)
}
@keyframes spin{
  to{
    transform:rotate(360deg)
  }
}
@media(min-width:1441px){
  .workspace{
    max-width:1320px
  }
}
@media(max-width:1439px){
  .workspace{
    margin:0 36px
  }
}
@media(max-width:1050px){
  .profiles-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .workspace{
    margin:0 28px
  }
  .topbar{
    padding:0 28px
  }
  .page-heading{
    align-items:flex-start
  }
  .heading-actions{
    flex-direction:column;
    align-items:stretch;
    padding-top:0
  }
  .heading-actions .secondary{
    order:2
  }
}
@media(max-width:650px){
  .topbar{
    height:73px;
    padding:0 20px
  }
  .brand{
    font-size:23px
  }
  .workspace{
    margin:0 20px;
    padding-top:30px
  }
  .page-heading{
    display:block
  }
  h1{
    font-size:29px
  }
  .eyebrow{
    font-size:9px;
    margin-bottom:10px
  }
  .muted{
    font-size:12px
  }
  .heading-actions{
    flex-direction:row;
    margin-top:22px;
    gap:8px
  }
  .heading-actions .primary{
    flex:1;
    order:2
  }
  .heading-actions .secondary{
    order:1;
    padding:10px
  }
  .heading-actions .button{
    font-size:12px
  }
  .heading-actions svg{
    width:17px
  }
  .profiles-grid{
    grid-template-columns:minmax(0,1fr);
    gap:16px
  }
  .profile-card{
    border-radius:16px
  }
  .empty-state{
    min-height:260px;
    padding:30px 12px
  }
  .empty-state h2{
    font-size:17px
  }
  .empty-state p{
    font-size:12px
  }
  .demo-banner{
    font-size:10px
  }
  .demo-banner span{
    display:block;
    margin:4px 0 0;
    font-size:9px
  }
  .drawer-header{
    padding:25px 20px
  }
  .history-content{
    padding:0 20px
  }
  .history-row{
    gap:9px;
    grid-template-columns:28px minmax(0,1fr) auto
  }
  .history-icon{
    width:28px;
    height:28px
  }
  .history-amount{
    font-size:12px
  }
  .history-description{
    font-size:11px
  }
  .history-status{
    max-width:95px
  }
  .history-bottom{
    padding:20px
  }
  .browser-dialog{
    max-width:calc(100vw - 16px);
    border-radius:12px
  }
  .browser-dialog .drawer-header{
    padding:20px 16px
  }
  .browser-dialog h2{
    font-size:18px
  }
  .browser-help{
    padding:14px 16px;
    font-size:11px
  }
  .browser-viewport{
    margin:0 8px
  }
  .browser-controls{
    padding:10px 16px
  }
  .browser-keys{
    padding:4px 16px 18px
  }
  .access{
    margin-top:50px
  }
}
@media(max-width:360px){
  .workspace{
    margin:0 14px
  }
  .topbar{
    padding:0 14px
  }
  .heading-actions .button{
    font-size:11px;
    padding:9px
  }
  .card-header{
    padding:20px 18px 0
  }
  .card-body{
    padding:20px 18px
  }
  .badge{
    font-size:9px;
    padding:5px
  }
  .balance-main .amount{
    font-size:30px
  }
  .history-content{
    padding:0 12px
  }
  .history-row{
    grid-template-columns:minmax(0,1fr) auto
  }
  .history-icon{
    display:none
  }
  .history-amount{
    font-size:11px
  }
  .history-currency{
    font-size:9px
  }
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
