/* Desktop refinement layer. Mobile keeps the existing dark-shell experience. */
@media (min-width:851px){
  html{height:100%;min-height:100%}
  /* Grid is deliberate: flex auto-margins can be defeated by a minimum-height
     contribution from routed content.  The middle track always absorbs the
     unused desktop viewport, placing the footer at the physical bottom. */
  body{min-height:100dvh;display:grid;grid-template-rows:auto minmax(min-content,1fr) auto;font-size:16px}
  main{min-height:auto;width:100%}footer{margin:0;align-self:end}
  /* Match the content axis used by the hero.  A short route still keeps the
     footer at the bottom instead of leaving it stranded in the viewport. */
  /* The overview is the continuation of the dashboard metrics above it, not
     a narrow article column.  Keep both on the same 32px desktop gutters. */
  .app-overview{width:auto;max-width:none;margin-inline:clamp(25px,7vw,110px);padding:54px 0 92px}
  .metrics article:nth-child(1){background:linear-gradient(112deg,#e9f8f0 0%,#fff 72%);border-color:#d6ebdf}.metrics article:nth-child(2){background:linear-gradient(112deg,#edf6ff 0%,#fff 72%);border-color:#d7e7f5}.metrics article:nth-child(3){background:linear-gradient(112deg,#f3efff 0%,#fff 72%);border-color:#e3dcf6}.metrics article:nth-child(4){background:linear-gradient(112deg,#fff5e8 0%,#fff 72%);border-color:#f2dfc5}
  .workspace{padding-left:max(48px,calc((100% - 1440px)/2));padding-right:max(48px,calc((100% - 1440px)/2))}
  .title{margin-bottom:42px}.title h2{font-size:clamp(42px,3.2vw,56px)}.title p{font-size:16px;max-width:470px}
  .app-overview>header{margin-bottom:30px}.app-overview h2{font-size:clamp(44px,3.6vw,60px)}.overview-accounts{margin:0 0 22px}
  .overview-accounts>p{margin:0;padding:20px 22px;border:1px solid var(--line);border-radius:18px;background:#fff;color:#60766e}.overview-accounts h3{margin:0 0 12px;font-size:21px}
  .overview-accounts>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.overview-accounts a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);text-decoration:none;transition:border-color .2s,transform .2s,box-shadow .2s}.overview-accounts a:hover{border-color:var(--green);transform:translateY(-2px);box-shadow:0 14px 32px #073b3010}.overview-accounts a span{display:grid;gap:4px;min-width:0}.overview-accounts a small{color:#71817c}.overview-accounts a strong{color:var(--deep);text-align:right;white-space:nowrap}
  /* A restrained tint distinguishes currencies while preserving the shared card system. */
  .overview-accounts .overview-account-usd{background:linear-gradient(105deg,#ebf8f1 0%,#fff 58%);border-color:#d9eee2}.overview-accounts .overview-account-saving-usd{background:linear-gradient(105deg,#fff8dc 0%,#fff 58%);border-color:#f2e8bd}.overview-accounts .overview-account-eur{background:linear-gradient(105deg,#edf6ff 0%,#fff 58%);border-color:#d8e8f7}.overview-accounts .overview-account-czk{background:linear-gradient(105deg,#fff0f0 0%,#fff 58%);border-color:#f2dbdb}.overview-accounts .overview-btc-account{background:linear-gradient(105deg,#fff4e8 0%,#fff 58%);border-color:#f3dfcb}
  .overview-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.overview-actions a,.overview-actions button{min-height:188px;padding:26px;border-radius:20px}.overview-actions b,.overview-actions button b{font-size:20px}.overview-actions small,.overview-actions button small{font-size:14px;line-height:1.45}.overview-actions button{border-color:var(--line);background:#fff;color:var(--ink)}.overview-actions button:hover{border-color:var(--green)}
  /* System state uses the same icon treatment as every overview action; status
     is conveyed by the copy, not by a visually unrelated traffic-light icon. */
  .overview-actions button .mainframe-status-icon,#overviewMainframeStatus[data-status] .mainframe-status-icon{width:48px;height:48px;background:var(--deep)!important;color:var(--lime)!important;box-shadow:none!important;font-size:17px}.overview-menu{margin-top:24px}.overview-menu a{padding:22px 26px}.overview-menu small{font-size:14px}
#overviewMainframeStatus b{font-size:20px}#overviewMainframeLatency{font-size:14px!important;font-weight:400;color:var(--deep)!important;line-height:1.45}
  #overviewMainframeStatus[data-status="ok"] .mainframe-status-icon{background:var(--deep);color:var(--lime)}#overviewMainframeStatus[data-status="checking"] .mainframe-status-icon{animation:mainframe-status-spin 1s linear infinite}@keyframes mainframe-status-spin{to{transform:rotate(360deg)}}
  .payment-workspace{gap:24px}.payment-action{min-height:340px;padding:32px;gap:26px}.payment-control{grid-template-columns:minmax(0,1fr) auto;max-width:760px}.payment-control .btn{width:auto;min-width:210px;padding:13px 18px}.payment-action .active-customer-note{font-size:13px}.merchant-payment-method .btn,.btc-context-help .btn{width:auto;min-width:0}
  .standing-layout{grid-template-columns:minmax(0,1.55fr) minmax(330px,.8fr);gap:26px;align-items:start}.standing-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.standing-card{padding:22px;gap:15px;border-radius:20px}.standing-card>strong{font-size:2rem}.standing-card dt{font-size:11px}.standing-card dd{font-size:15px}.standing-card dd small{font-size:12px}.standing-card footer{justify-content:flex-start;border-top:1px solid #e5eee9;padding-top:14px}.standing-card footer button{padding:9px 13px;font-size:13px}.standing-timeline{position:sticky;top:96px;padding:22px;border-radius:20px}.standing-instance{padding:15px 0;gap:8px 12px}.standing-instance small{font-size:12px}.standing-instance mark{font-size:10px}
  /* The processing history is a panel, not page chrome: reset the generic
     header and make each result independently scannable on large screens. */
  #standing .standing-timeline{position:static;padding:26px;background:#073b30;border:1px solid #0b5946;border-radius:22px;color:#fff;box-shadow:0 18px 40px #073b3018}
  #standing .standing-timeline-heading{position:static;display:block;width:auto;height:auto;margin:0 0 18px;padding:0 0 18px;background:transparent;border:0;border-bottom:1px solid #ffffff24;backdrop-filter:none;color:#fff}
  #standing .standing-timeline-heading h3{margin:0 0 7px;color:#fff;font-size:24px;line-height:1.2}#standing .standing-timeline-heading p{margin:0;color:#c3d8d1;font-size:15px;line-height:1.5}
  #standing .standing-instance{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px 16px;margin:10px 0;padding:17px 18px;border:1px solid #ffffff22;border-radius:16px;background:#0d493d}
  #standing .standing-instance-main{display:flex;align-items:flex-start;gap:13px;min-width:0}#standing .standing-instance-main>div{display:grid;gap:4px;min-width:0}#standing .standing-instance-main b{color:#fff;font-size:16px;line-height:1.25}#standing .standing-instance-main small{color:#c5ddd5;font-size:13px;line-height:1.4}#standing .standing-instance-main p{margin:2px 0 0;color:#fff;font-size:14px;line-height:1.45}
  #standing .standing-instance-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#ffffff18;color:#fff;font-size:18px;font-weight:900;line-height:1}#standing .standing-instance-icon.ok{background:#00a878;color:#fff}#standing .standing-instance-icon.bad{background:#c93648;color:#fff}#standing .standing-instance-icon.pending{background:#e6a52e;color:#2f2100}
  #standing .standing-instance>mark{align-self:start;padding:6px 9px;border-radius:8px;background:#ffffff18;color:#fff;font:800 11px Arial,sans-serif}#standing .standing-instance>mark.ok{background:#00a878}#standing .standing-instance>mark.bad{background:#c93648}#standing .standing-instance>details{grid-column:1/-1;color:#c3d8d1;font-size:12px}#standing .standing-instance>details summary{cursor:pointer;color:#c7f25b}#standing .standing-instance>details code{display:block;margin-top:7px;color:#b6cec6}
  .history-head{font-size:12px}.history-item small,.transaction-reference{font-size:12px}.history-item code{font-size:13px}.customer-payment-alert small{font-size:13px}.customer-payment-alert{padding:17px 19px}
  /* Account metadata and transaction history are read repeatedly on large
     displays, so they need a readable floor instead of the former 10–11px
     utility sizing.  Titles remain visually stronger than supporting text. */
  .account-row header span{font-size:13px}.available,.interest-rate,.cache-stamp{font-size:13px}.interest-rate{padding:6px 10px}.account-history>b{font-size:13px}.transaction-row{padding:11px 0}.transaction-row span>b{font-size:14px}.transaction-row small{font-size:13px;line-height:1.35}.transaction-row small.transaction-reference{font:12px/1.35 monospace}.transaction-row strong{font-size:15px}.account-history-pager span{font-size:12px}
  .account-row.account-tone-usd{background:linear-gradient(112deg,#ebf8f1 0%,#fff 42%);border-color:#d9eee2}.account-row.account-tone-saving-usd{background:linear-gradient(112deg,#fff8dc 0%,#fff 42%);border-color:#f2e8bd}.account-row.account-tone-eur{background:linear-gradient(112deg,#edf6ff 0%,#fff 42%);border-color:#d8e8f7}.account-row.account-tone-czk{background:linear-gradient(112deg,#fff0f0 0%,#fff 42%);border-color:#f2dbdb}.account-row.btc-overview{background:linear-gradient(112deg,#fff4e8 0%,#fff 42%);border-color:#f3dfcb}
  /* The loading flower used to inherit only an animation declaration here.
     Give it a stable, proportionate inline box so it visibly rotates in Chrome. */
  .is-loading::before{content:'✿';display:inline-flex;align-items:center;justify-content:center;width:1.3em;height:1.3em;margin-right:.55em;vertical-align:-.18em;transform-origin:50% 50%;will-change:transform;animation:mfbank-flower-spin .82s linear infinite}
  /* Keep short system confirmations readable at a glance on wide screens. */
  #toast{z-index:1001;bottom:32px;max-width:min(680px,calc(100vw - 48px));padding:17px 24px;border:1px solid #dfcaff;border-radius:14px;background:linear-gradient(135deg,#57318e,#7b42b6);font-size:17px;font-weight:800;line-height:1.45;box-shadow:0 18px 48px #31125770}
}
@media (min-width:851px) and (max-width:1180px){.overview-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.standing-layout{grid-template-columns:1fr}.standing-timeline{position:static}.standing-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
