/* Puente desktop. UI type, weights, strokes and artwork follow the mobile base. */
@import url("../../nimbo/brand/nimbo.css");
:root {
  --desktop-sidebar: 216px;
  --blue: #4564DE;
  --ink: #20283E;
  --bg: #F7F8FC;
  --muted: #828696;
  --line: #E8ECF4;
  --desktop-content: 1240px;
}
html { scrollbar-width: thin; }
body.desktop-page {
  margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased;
}
.desktop-page a { text-decoration:none; }
.desktop-page :is(.sidebar-profile,.desktop-event,.desktop-action,.profile-button),.desktop-footer > a { color:inherit; }
.desktop-page :is(button,input,select) { font-family: inherit; }
.desktop-page :is(button,a):focus-visible { outline: 3px solid #A2B3FA; outline-offset: 4px; }
.desktop-page .icon { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.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; }
.skip-link { position:fixed;z-index:20;left:240px;top:-60px;background:#fff;padding:12px 18px;border-radius:12px; }
.skip-link:focus { top:12px; }
.approved-mobile { display:none; }
.desktop-shell { min-height:100svh; }

/* The work area is centered within the space beside navigation, at every width. */
.desktop-workspace {
  margin-left:var(--desktop-sidebar);padding:30px clamp(24px,2.6vw,48px) 0;
  min-height:100svh;position:relative;isolation:isolate;overflow:clip;
}
.desktop-workspace::before,.desktop-workspace::after {
  content:"";position:absolute;pointer-events:none;z-index:-1;
  background:center / contain no-repeat;opacity:.045;
}
.desktop-workspace::before {
  background-image:url('../system/backgrounds/wallet.svg');
  width:390px;height:390px;right:0;top:-100px;transform:rotate(18deg);
}
.desktop-workspace::after {
  background-image:url('../system/backgrounds/cycle.svg');
  width:390px;height:390px;left:-110px;top:480px;transform:rotate(-20deg);
}
.desktop-workspace > :is(header,main,footer) { width:100%;max-width:var(--desktop-content);margin-inline:auto; }
.desktop-topbar { display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px;min-height:56px; }
.desktop-topbar h1 { font-size:28px;line-height:34px;font-weight:600;letter-spacing:-.65px;margin:0; }
.desktop-topbar p { margin:5px 0 0;color:#828696;font-size:14px;line-height:20px; }
.desktop-topbar .profile-button { flex:none;gap:11px; }
.desktop-topbar .profile-name { font-size:18px;line-height:24px;font-weight:600; }
.desktop-topbar .telegram-tag { font-size:12px;line-height:17px; }
.desktop-topbar .avatar { width:44px;height:44px; }

.desktop-sidebar {
  position:fixed;inset:0 auto 0 0;width:var(--desktop-sidebar);z-index:5;
  padding:33px 18px 24px;display:flex;flex-direction:column;
  background:#fff;border-right:1px solid #EBEEF6;
}
.desktop-brand { display:block;padding-left:15px;font-family:Arial,sans-serif;font-size:37px;line-height:44px;font-weight:700;letter-spacing:-1.9px;color:#20334F; }
.desktop-brand > span { color:var(--blue); }
.sidebar-caption { margin:40px 0 14px 15px;color:#9299A9;font-size:11px;font-weight:550;letter-spacing:1.2px; }
.desktop-nav { display:flex;flex-direction:column;gap:8px; }
.desktop-nav-item { display:flex;align-items:center;gap:13px;padding:15px;border-radius:13px;min-height:56px;font-size:15px;line-height:22px;font-weight:550;color:#828696!important; }
.desktop-nav-item .icon { width:25px;height:25px;flex-shrink:0;stroke-width:2.5; }
.desktop-nav-item:hover { background:#F2F5FC;color:var(--blue)!important; }
.desktop-nav-item.is-active { background:#E8EDFB;color:var(--blue)!important;font-weight:600; }
.desktop-nav-item.is-active[href*="desktop.html"] .icon { fill:var(--blue); }
.desktop-nav-item.is-active .home-slot { stroke:white;stroke-width:2.3; }
.sidebar-bottom { margin-top:auto;padding-top:32px; }
.sidebar-note { padding:18px 15px 27px; }
.sidebar-note img { width:42px;height:42px;object-fit:contain;margin-bottom:14px; }
.sidebar-note p { margin:0;color:#20334F;font-size:20px;line-height:26px;letter-spacing:-.45px;font-weight:400; }
.sidebar-note strong { font-weight:600; }
.sidebar-profile { display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding-top:20px; }
.sidebar-profile .avatar { width:36px;height:36px;flex-shrink:0; }
.sidebar-profile > span:nth-child(2) { flex:1;min-width:0; }
.sidebar-profile strong { display:block;font-size:13px;font-weight:600;letter-spacing:-.25px; }
.sidebar-profile small { display:block;font-size:11px;color:#8A91A2;margin-top:3px; }
.sidebar-profile > .icon { width:14px;height:14px;color:#9299A9; }

/* Home: money and card; holdings and activity; four approved story cards. */
.desktop-main {
  display:grid;grid-template-columns:minmax(0,1.5fr) minmax(345px,1fr);
  grid-template-areas:"balance card" "assets activity" "discover discover";
  gap:22px 24px;padding:0;
}
.desktop-balance { grid-area:balance;min-width:0;display:flex;flex-direction:column;gap:16px; }
.desktop-balance-surface { background:white;border-radius:19px;padding:22px 26px;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:168px;flex:1; }
.desktop-balance-copy { min-width:0; }
.balance-label { display:flex;align-items:center;gap:10px;color:#7C8192; }
.balance-label h2 { margin:0;font-size:14px;line-height:20px;font-weight:500;letter-spacing:0; }
.balance-label > span { font-size:11px;color:#969EAE; }
.balance-label > button { display:grid;place-items:center;width:28px;height:28px;margin-left:3px;border-radius:8px;color:#9199A9; }
.balance-label > button:hover { background:#F0F3FC;color:var(--blue); }
.balance-label .icon { width:18px;height:18px;stroke-width:2; }
.desktop-balance-number { display:block;margin-top:5px;font-size:42px;line-height:54px;font-weight:550;letter-spacing:-1.5px;font-variant-numeric:tabular-nums;text-align:left;white-space:nowrap; }
.desktop-balance-equivalent { font-size:13px;line-height:20px;color:#8A91A2;margin:5px 0 0; }
.desktop-wallet { display:block;width:118px;height:118px;flex-shrink:0;margin-right:4px; }
.desktop-actions { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px; }
.desktop-action { display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0; }
.desktop-action-icon { display:grid;place-items:center;width:100%;height:50px;border-radius:13px;background:#E8EDFB;color:var(--blue); }
.desktop-action .icon { width:30px;height:30px;stroke-width:3.2; }
.desktop-action:first-child .icon { stroke-width:3.7; }
.desktop-action > span:last-child { font-size:13px;line-height:18px;font-weight:550;letter-spacing:-.15px;text-align:center; }
.desktop-action:hover .desktop-action-icon { background:#DFE6FD; }
.desktop-action:active .desktop-action-icon { transform:scale(.98); }
.desktop-card-panel { grid-area:card;min-width:0;background:#fff;border-radius:19px;padding:20px 24px 16px;display:flex;flex-direction:column;justify-content:space-between;gap:12px; }
.desktop-section-heading { display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:38px;margin-bottom:14px; }
.desktop-section-heading h2 { margin:0;font-size:22px;line-height:28px;font-weight:600;letter-spacing:-.55px; }
.desktop-card-panel .desktop-section-heading { margin:0;min-height:26px; }
.desktop-card-panel h2 { font-size:18px;line-height:24px;letter-spacing:-.4px; }
.active-badge { display:flex;align-items:center;gap:6px;font-size:12px;line-height:18px;color:#2B735D; }
.active-badge i { width:6px;height:6px;background:#59A78B;border-radius:50%; }
.desktop-card-image { width:220px;max-width:82%;margin:auto;display:block;transition:transform .2s ease; }
.desktop-card-image img { display:block;width:100%;height:auto; }
.desktop-card-image:hover { transform:translateY(-2px) rotate(-2deg); }
.desktop-card-bottom { display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:35px; }
.desktop-card-bottom > span { font-size:12px;line-height:18px;color:#8A91A2; }
.card-details-button { display:flex;align-items:center;gap:6px;font-size:13px;line-height:20px;font-weight:550;color:var(--blue);min-height:35px; }
.card-details-button .icon { width:14px;height:14px;stroke-width:2; }
.desktop-assets { grid-area:assets;min-width:0; }
.desktop-activity { grid-area:activity;min-width:0; }
.asset-filters { display:flex;gap:2px;padding:3px;border-radius:11px;background:#E8EDFB; }
.asset-filters button { padding:6px 11px;border-radius:8px;font-size:12px;line-height:20px;font-weight:550;color:#7C8599;min-height:32px; }
.asset-filters button[aria-pressed=true] { background:#fff;color:var(--blue); }
.asset-table { background:white;border-radius:19px;padding:2px 20px;min-height:356px; }
.desktop-asset { display:flex;align-items:center;gap:12px;width:100%;min-height:88px;text-align:left;padding:12px 0;border-bottom:1px solid #F0F2F7;font-variant-numeric:tabular-nums; }
.desktop-asset:last-child { border-bottom:0; }
.desktop-asset:hover { background:#FAFBFF; }
.desktop-asset-name { display:flex;align-items:center;gap:12px;flex:1;min-width:0; }
.desktop-asset-name img,.peso-art { width:48px;height:48px;flex-shrink:0; }
.peso-art { display:grid;place-items:center;border-radius:50%;background:#E8EDFB;color:var(--blue);font-size:29px;line-height:36px;font-weight:550; }
.desktop-asset-name strong { display:block;font-size:17px;line-height:22px;font-weight:600;letter-spacing:-.4px; }
.desktop-asset-name small { display:block;font-size:12px;line-height:17px;color:#8A91A2;margin-top:4px; }
.desktop-asset-value { text-align:right;white-space:nowrap; }
.desktop-asset-value strong { display:block;font-size:18px;line-height:23px;font-weight:550;letter-spacing:-.5px; }
.desktop-asset-value small { display:block;font-size:12px;line-height:18px;color:#8A91A2;margin-top:4px; }
.desktop-asset > .icon { width:13px;height:13px;stroke-width:2;color:#A0A8B7;flex-shrink:0; }
.text-link { display:flex;align-items:center;gap:4px;color:var(--blue)!important;font-size:12px;line-height:20px;font-weight:550;white-space:nowrap;min-height:32px; }
.text-link .icon { width:13px;height:13px;stroke-width:2; }
.activity-list { background:#fff;border-radius:19px;padding:2px 17px; }
.desktop-event { display:flex;align-items:center;gap:10px;min-height:88px;padding:12px 0;border-bottom:1px solid #F0F2F7; }
.desktop-event:last-child { border:0; }
.desktop-event:hover .event-name strong { color:var(--blue); }
.desktop-event > img { display:block;width:40px;height:40px;flex-shrink:0; }
.event-name { flex:1;min-width:0; }
.event-name strong { display:block;font-size:16px;line-height:22px;font-weight:600;letter-spacing:-.3px; }
.event-name small { display:block;font-size:12px;line-height:18px;color:#8A91A2;margin-top:4px; }
.event-amount { text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums; }
.event-amount strong { display:block;font-size:16px;line-height:22px;font-weight:550;letter-spacing:-.3px; }
.event-amount small { display:block;font-size:12px;line-height:18px;color:#8A91A2;margin-top:4px; }
.event-amount.income strong { color:#2B735D; }
.event-amount.pending strong,.event-amount.pending small { color:#825D21; }
.desktop-discover { grid-area:discover;min-width:0; }
.discover-caption { font-size:13px;line-height:20px;color:#8A91A2; }
.desktop-stories { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px; }
.desktop-stories .story { display:block;position:relative;width:100%;height:120px;border-radius:17px;border:2px solid #4564DE;box-shadow:inset 0 0 0 2px #F7F8FC;isolation:isolate;text-align:left;overflow:hidden; }
.desktop-stories .story-label { top:17px;left:17px;font-size:17px;line-height:21px;letter-spacing:-.35px;font-weight:600; }
.desktop-stories .story-art { width:135px;height:95px;left:auto;right:-6px;bottom:-20px; }
.desktop-stories .money-art { right:-8px;bottom:-12px; }
.desktop-stories .story-payment-card { width:135px;top:53px;left:auto;right:-10px;transform:rotate(-12deg); }
.desktop-stories .gift-art { right:-5px;bottom:-17px;width:116px;height:86px; }
.desktop-stories .story-house { width:90px;height:94px;right:2px;bottom:-16px; }
.desktop-stories .story:hover { filter:brightness(.98); }
.desktop-footer { display:flex;align-items:center;gap:12px;min-height:50px;color:#969EAE; }
.desktop-footer > span { font-family:Arial,sans-serif;font-size:20px;line-height:26px;font-weight:700;letter-spacing:-.8px; }
.brand-dot { color:var(--blue); }
.desktop-footer p { margin:0;font-size:12px;line-height:18px; }
.desktop-footer > a { margin-left:auto;display:flex;align-items:center;gap:6px;font-size:12px;line-height:18px; }
.desktop-footer .icon { width:13px;height:13px;stroke-width:2; }

@media(min-width:701px) {
  .desktop-page dialog#sheet { inset:0;width:460px;max-height:min(84svh,760px);height:max-content;margin:auto;padding:26px;border-radius:25px;box-shadow:0 22px 80px #20334F20; }
  .desktop-page .sheet-handle { display:none; }
  .desktop-page .sheet-heading h2 { font-size:24px;font-weight:600; }
  .desktop-page .sheet-intro { font-size:14px;line-height:22px; }
  .desktop-page .primary-button { font-size:14px;font-weight:600;min-height:48px; }
}
@media(min-width:1600px) {
  .desktop-workspace { padding-top:38px; }
  .desktop-topbar { margin-bottom:30px; }
  .desktop-main { gap:30px 28px; }
  .desktop-balance-surface { min-height:188px; }
  .desktop-asset,.desktop-event { min-height:88px; }
  .asset-table { min-height:356px; }
  .desktop-stories .story { height:132px; }
}
@media(min-width:701px) and (max-width:1279px) {
  :root { --desktop-sidebar:80px; }
  .desktop-sidebar { padding:29px 12px 20px;align-items:center; }
  .desktop-brand { padding:0;font-size:0;line-height:44px;letter-spacing:0; }
  .desktop-brand::before { content:'p';font-size:40px;font-weight:700;letter-spacing:-3px; }
  .desktop-brand > span { font-size:36px; }
  .sidebar-caption,.desktop-nav-item > span,.sidebar-note,.sidebar-profile > span:nth-child(2),.sidebar-profile > .icon { display:none; }
  .desktop-nav { margin-top:35px;width:100%;gap:10px; }
  .desktop-nav-item { padding:14px;justify-content:center; }
  .sidebar-bottom { width:100%; }
  .sidebar-profile { justify-content:center; }
  .desktop-workspace { padding-inline:28px; }
  .desktop-main { grid-template-columns:minmax(0,1.4fr) minmax(340px,1fr);gap:24px 20px; }
  .desktop-balance-number { font-size:38px;line-height:49px; }
  .desktop-wallet { width:100px;height:100px;margin:0; }
  .desktop-balance-surface { padding-inline:23px; }
  .desktop-action > span:last-child { font-size:12px; }
  .desktop-section-heading h2 { font-size:21px; }
  .desktop-asset-name img,.peso-art { width:44px;height:44px; }
  .desktop-asset-name strong { font-size:16px; }
  .desktop-asset-value strong { font-size:17px; }
  .desktop-event { gap:8px; }
  .desktop-event > img { width:36px;height:36px; }
  .event-name strong,.event-amount strong { font-size:15px; }
}
@media(min-width:701px) and (max-width:1000px) {
  .desktop-main { grid-template-columns:minmax(0,1fr) minmax(280px,.8fr); }
  .desktop-balance-surface { min-height:180px;padding:20px; }
  .desktop-balance-number { font-size:33px;line-height:46px; }
  .desktop-wallet { width:72px;height:72px; }
  .desktop-actions { gap:8px; }
  .desktop-action > span:last-child { max-width:88px; }
  .desktop-card-panel { padding-inline:18px; }
  .desktop-card-panel h2 { font-size:16px; }
  .desktop-card-image { width:210px; }
  .desktop-assets { grid-column:1/-1; }
  .desktop-activity { grid-column:1/-1; }
  .desktop-main { grid-template-areas:"balance card" "assets assets" "activity activity" "discover discover"; }
  .activity-list { display:grid;grid-template-columns:1fr 1fr;column-gap:24px; }
  .desktop-event:nth-last-child(-n+2) { border:0; }
  .event-name strong,.event-amount strong { font-size:15px; }
  .desktop-stories { grid-template-columns:1fr 1fr; }
  .desktop-stories .story { height:120px; }
}
@media(max-width:700px) {
  body.desktop-page { background:#E9EDF4;line-height:normal; }
  .desktop-shell,.skip-link { display:none; }
  .approved-mobile { display:block; }
  .approved-mobile .app { border:0;border-radius:0; }
  .desktop-page .icon { stroke-width:2.5; }
}
@media(prefers-contrast:more),print { .desktop-workspace::before,.desktop-workspace::after { display:none; } }
@media(prefers-reduced-motion:reduce) { .desktop-page * { scroll-behavior:auto!important;transition:none!important; } }

@media(min-width:701px) and (max-width:850px) {
  .desktop-main { grid-template-columns:minmax(0,1fr);grid-template-areas:"balance" "card" "assets" "activity" "discover"; }
  .desktop-balance-number { font-size:38px;line-height:49px; }
  .desktop-wallet { width:110px;height:110px; }
  .desktop-card-panel { display:grid;grid-template-columns:minmax(0,1fr) 220px;grid-template-areas:"title image" "bottom image";align-items:center;min-height:190px;gap:12px 20px;padding:22px; }
  .desktop-card-panel > .desktop-section-heading { grid-area:title; }
  .desktop-card-image { grid-area:image;width:220px;max-width:100%; }
  .desktop-card-bottom { grid-area:bottom;flex-direction:column;align-items:flex-start;gap:3px; }
}
