/* Shared install UI + scoped native-style customer presentation. No financial logic. */
:root { --hero-safe-bottom: env(safe-area-inset-bottom, 0px); }
.hero-mobile-primary { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:54px; padding:14px 20px; border-radius:16px; background:#ff783b; color:#17130f; text-decoration:none; font-weight:750; }
.hero-get-app { display:flex; align-items:center; gap:14px; margin-top:24px; padding:18px; border:1px solid #393b40; border-radius:20px; background:#1b1e24; color:#f7f7f9; text-decoration:none; }
.hero-get-app img { flex-shrink:0; border-radius:13px; }
.hero-get-app span { display:grid; gap:5px; }
.hero-get-app small { color:#b5b9c3; line-height:1.5; }
.hero-home-app { margin:0 0 22px; }
.hero-home-app b { margin-left:auto; font-size:22px; }
.hero-menu-app { display:flex; align-items:center; justify-content:space-between; min-height:48px; margin:12px 0; padding:12px 16px; border:1px solid #625044; border-radius:13px; color:#ffbd94; text-decoration:none; font-weight:700; }
.hero-install-banner { box-sizing:border-box; width:min(1256px,calc(100% - 40px)); margin:0 auto 24px; padding:20px 24px; display:flex; flex-wrap:wrap; align-items:center; gap:16px; background:linear-gradient(115deg,#282025,#141d2d); border:1px solid #ff995845; border-radius:20px; }
.hero-install-banner>img { border-radius:14px; flex-shrink:0; }
.hero-install-copy { display:grid; gap:5px; flex:1; min-width:0; }
.hero-install-copy strong { color:#fff; font-size:17px; }
.hero-install-copy>span { color:#bec6d5; font-size:13px; line-height:1.5; }
.hero-install-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.hero-install-actions a { display:flex; align-items:center; justify-content:center; gap:16px; min-height:46px; box-sizing:border-box; padding:12px 18px; border-radius:12px; font-size:13px; font-weight:800; text-decoration:none; }
.hero-install-download { background:#ff8a50; color:#191313; }
.hero-install-browser { border:1px solid #6d686b; color:#f5f7fb; }
.hero-install-status { flex-basis:100%; margin:0; color:#e7d7cc; font-size:13px; }
.hero-install-status:empty { display:none; }
.hero-access-app { width:min(1200px,calc(100% - 40px)); margin:0 auto 20px; display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.hero-access-app a { display:inline-flex; align-items:center; justify-content:space-between; gap:20px; min-height:44px; padding:10px 15px; box-sizing:border-box; background:#ff8a50; border-radius:12px; color:#191313; font-size:13px; font-weight:800; text-decoration:none; }
.hero-access-app>span { font-size:12px; color:#b5bdce; }
.hero-install-banner a:focus-visible,.hero-get-app:focus-visible,.hero-menu-app:focus-visible { outline:3px solid #ffd1ad; outline-offset:4px; }
/* Match the breakpoint that hides the desktop navigation: no tablet gap. */
.download-body .phone-mobile-nav { display:none; }
@media (max-width:1050px) {
  body.phone-public-body,body.download-body { padding-bottom:calc(92px + env(safe-area-inset-bottom,0px)); }
  .phone-public-body .phone-mobile-nav,.download-body .phone-mobile-nav { box-sizing:border-box; position:fixed; z-index:90; left:0; right:0; bottom:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; min-height:68px; padding:8px max(8px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px)); background:#101725f5; border:0; border-top:1px solid #39404e; border-radius:0; box-shadow:0 -8px 25px #0003; backdrop-filter:blur(20px); }
  .phone-public-body .phone-mobile-nav a,.download-body .phone-mobile-nav a { min-height:50px; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:4px 2px; border-radius:12px; color:#c3cddd; font-size:10px; font-weight:700; line-height:1.3; text-align:center; text-decoration:none; }
  .phone-public-body .phone-mobile-nav b,.download-body .phone-mobile-nav b { font-size:20px; line-height:1; }
  .phone-public-body .phone-mobile-nav a[aria-current="page"],.download-body .phone-mobile-nav a[aria-current="page"] { background:#ff8a5026; color:#ffb88e; box-shadow:none; }
  .phone-mobile-nav a[href="/download.html"] { color:#ffbd94; }
}
@media (max-width:600px) {
  .hero-install-banner { width:calc(100% - 24px); padding:15px; margin-bottom:8px; gap:12px; border-radius:16px; }
  .hero-install-copy strong { font-size:15px; }
  .hero-install-copy>span { font-size:12px; }
  .hero-install-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .hero-install-actions a { padding:11px 7px; gap:8px; font-size:12px; }
  .hero-get-app { padding:14px; gap:11px; }
  .hero-get-app strong { font-size:14px; }
  .hero-get-app small { font-size:11px; }
  .hero-access-app { width:calc(100% - 32px); margin-bottom:12px; gap:8px; }
}
.hero-offline { margin:0; min-height:100svh; background:#101318; color:#f8f9fc; font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; display:grid; place-items:center; padding:24px; box-sizing:border-box; }
.hero-offline main { width:min(100%,360px); padding-block:calc(24px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-bottom)); }
.hero-offline img { border-radius:22px; margin-bottom:40px; }
.hero-offline-label { display:block; color:#ff9d71; font-size:11px; font-weight:750; letter-spacing:.16em; }
.hero-offline h1 { font-size:40px; letter-spacing:-.04em; margin:15px 0; }
.hero-offline p { color:#b8bfcc; line-height:1.65; }
.hero-offline .hero-mobile-primary { margin-top:30px; }
.hero-offline .hero-offline-note { font-size:13px; margin-top:25px; }
.hero-offline a:focus-visible { outline:3px solid #fff; outline-offset:5px; }
@media (max-width:1024px) {
  body[data-role="user"] { --customer-bg:#101318; --customer-card:#1a1e25; --customer-surface:#20252e; --customer-border:#303641; --line:#303641; --ink:#f7f8fc; --muted:#abb3c2; --white:#1a1e25; --soft:#20252e; --brand:#ff8954; --brand2:#ffa87f; background:#101318; font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; overscroll-behavior-y:contain; }
  body[data-role="user"] .real-ops-shell { min-height:100svh; }
  body[data-role="user"] .real-ops-header { position:sticky; top:0; z-index:40; height:auto; min-height:65px; padding:calc(10px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left)); background:#101318f2; backdrop-filter:blur(18px); border-bottom:1px solid #282d36; }
  body[data-role="user"] .real-brand { font-size:17px; }
  body[data-role="user"] .workspace-header-greeting { display:none; }
  body[data-role="user"] .workspace-header-actions { gap:10px; }
  body[data-role="user"] #signOut { min-height:40px; padding:9px 12px; border:1px solid #343a46; background:#1a1e25; border-radius:12px; font-size:12px; color:#dce1ec; }
  body[data-role="user"] .real-ops-main { padding:20px max(16px,env(safe-area-inset-right)) calc(112px + var(--hero-safe-bottom)) max(16px,env(safe-area-inset-left)); }
  body[data-role="user"] .customer-content { min-width:0; padding:0; }
  body[data-role="user"] .customer-bottom-nav { position:fixed; inset:auto 0 0; z-index:55; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; padding:9px max(10px,env(safe-area-inset-right)) calc(9px + var(--hero-safe-bottom)) max(10px,env(safe-area-inset-left)); background:#171b23f5; backdrop-filter:blur(20px); border-top:1px solid #303641; box-shadow:0 -8px 35px #0002; border-radius:0; }
  body[data-role="user"] .customer-bottom-nav button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:53px; padding:7px 3px; border:0; background:transparent; color:#9ba6b8; border-radius:14px; font-family:inherit; font-size:10px; font-weight:600; line-height:1.3; }
  body[data-role="user"] .customer-bottom-nav button[aria-current="page"], body[data-role="user"] .customer-bottom-nav button.active { background:#ff895419; color:#ffab82; }
  body[data-role="user"]:has(input:focus,textarea:focus) .customer-bottom-nav { visibility:hidden; pointer-events:none; }
  body[data-role="user"] .customer-bottom-nav svg { width:22px; height:22px; }
  body[data-role="user"] :is(button,input,select,textarea) { min-height:44px; }
  body[data-role="user"] :is(input,select,textarea) { font-size:16px; border-radius:13px; }
  body[data-role="user"] :is(button,a) { touch-action:manipulation; }
  body[data-role="user"] :is(.workspace-card,.workspace-record-summary,.customer-home-metrics article,.customer-financial-card,.manual-balance-card,.customer-payment-card) { background:#1a1e25; border:1px solid #303641; border-radius:20px; box-shadow:0 7px 20px #00000012; }
  body[data-role="user"] .workspace-welcome { gap:15px; margin-bottom:22px; }
  body[data-role="user"] .workspace-welcome h3 { font-size:27px; letter-spacing:-.035em; }
  body[data-role="user"] .real-kicker { font-size:10px; letter-spacing:.12em; color:#a2adbf; }
  body[data-role="user"] .real-primary { background:#ff8b52; color:#17130f; border-color:#ff8b52; border-radius:13px; font-weight:750; }
  body[data-role="user"] .real-quiet-button { border-radius:13px; }
  body[data-role="user"] .referral-quick-card { border-radius:20px; background:linear-gradient(120deg,#262323,#1b2028); border:1px solid #44403d; }
  body[data-role="user"] .customer-sidebar.mobile-expanded { top:0; max-height:100dvh; padding-top:calc(18px + env(safe-area-inset-top)); padding-bottom:calc(24px + var(--hero-safe-bottom)); background:#171b23; }
  body[data-role="user"] .customer-nav button { border-radius:13px; min-height:47px; }
  body[data-role="user"] dialog { max-width:calc(100vw - 24px); max-height:calc(100dvh - 48px - var(--hero-safe-bottom)); border-radius:22px; }
  body[data-role="user"] .console-meta { overflow-wrap:anywhere; }
  body[data-portal="customer"].phone-access-body { background:#101318; }
  body[data-portal="customer"] .phone-access-header { padding-top:calc(20px + env(safe-area-inset-top)); }
  body[data-portal="customer"] .phone-access-card { border-radius:24px; padding:28px 23px; }
  body[data-portal="customer"] .phone-access-showcase { display:none; }
  body[data-portal="customer"] .phone-access-shell { min-height:0; max-width:480px; padding-top:24px; gap:0; }
  body[data-portal="customer"] .phone-access-card { background:#1a1e25; border-color:#303641; box-shadow:0 16px 35px #0002; }
  body[data-portal="customer"] .phone-access-card>.phone-brand { display:none; }
  body[data-portal="customer"] .phone-access-card h1 { font-size:35px; }
  body[data-portal="customer"] .phone-auth-form :is(input,button) { min-height:50px; font-size:16px; border-radius:13px; }
  body[data-portal="customer"] .phone-referral-form :is(input,select,button) { min-height:48px; font-size:16px; border-radius:13px; }
  body[data-portal="customer"] .phone-access-shell { padding-bottom:calc(32px + var(--hero-safe-bottom)); }
}
@media (prefers-reduced-motion:reduce) {
  .hero-offline *, body[data-role="user"] .customer-bottom-nav *, body[data-role="user"] .customer-sidebar { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}
