/* Shared application surfaces. Public landing and checkout retain their own layout. */
:root{--app-ink:#174332;--app-muted:#537c6c;--app-line:#dfefe9;--app-blue:#008253;--app-radius:18px}
body.app-shell{background:#f4faf8;color:var(--app-ink);font-size:16px;line-height:1.55}
body.app-shell .sandbox-strip{font-size:11px;letter-spacing:1px;padding:7px 16px}
body.app-shell :is(.merchant-header,.wallet-header,.account-header,.orders-header){display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:78px;padding:14px max(24px,calc((100vw - 1320px)/2));background:#fff;border-bottom:1px solid var(--app-line)}
body.app-shell .brand{font-size:27px;white-space:nowrap;flex-shrink:0}
body.app-shell .app-navigation{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:14px;flex-wrap:wrap;min-width:0}
body.app-shell .app-navigation>a,body.app-shell .app-navigation summary{display:inline-flex;align-items:center;min-height:42px;padding:10px 14px;border-radius:10px;line-height:1.3;font-size:14px;font-weight:600;cursor:pointer;color:#507a6a}
body.app-shell .app-navigation>a:hover,body.app-shell .app-navigation summary:hover{background:#f3f9f7;color:#008253}
body.app-shell .app-navigation [aria-current=page]{background:#f3f9f7;color:#008253}
.app-services{position:relative}.app-services summary{list-style:none;gap:10px;border:1px solid var(--app-line);background:#fff}.app-services summary::-webkit-details-marker{display:none}.app-services summary::after{content:'⌄';font-size:18px}.app-services[open] summary{background:#f3f9f7;color:#008253}
.app-service-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:50;width:560px;max-width:calc(100vw - 32px);max-height:70vh;overflow:auto;padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:20px;background:#fff;border:1px solid var(--app-line);border-radius:16px;box-shadow:0 20px 60px #1b4c3924}
.app-service-menu strong{display:block;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:#719788;margin:0 8px 8px}.app-service-menu a{display:block;font-size:14px;line-height:1.4;padding:9px 10px;border-radius:8px;color:#295946}.app-service-menu a:hover{background:#f3f9f7;color:#008253}
body.app-shell :is(.merchant-main,.wallet-main,.account-main,.orders-main){width:100%;max-width:1368px;margin:26px auto 0;padding:0 24px 48px;min-width:0}
body.app-shell main h1{font-size:clamp(30px,3vw,40px);line-height:1.16;letter-spacing:-1.3px;margin:8px 0 12px;font-weight:700}
body.app-shell main h2{font-size:23px;line-height:1.25;letter-spacing:-.5px;font-weight:650;margin:0 0 14px}
body.app-shell main h3{font-size:18px;line-height:1.35;letter-spacing:-.25px}
body.app-shell main :is(p,.merchant-intro,.wallet-intro,.quiet,.field-help,.notice,.device-row,.merchant-event){font-size:15px;line-height:1.65;color:var(--app-muted)}
body.app-shell main :is(small,.merchant-payment small,.device-row small){font-size:13px;line-height:1.5}
body.app-shell main :is(label,legend){font-size:14px;line-height:1.5;font-weight:600;color:#305e4c}
body.app-shell main .eyebrow{font-size:11px;letter-spacing:1.2px;margin-bottom:8px;color:#5c8b79}
body.app-shell main :is(.notice,.merchant-warning){border-radius:12px;padding:12px 16px;margin:14px 0;background:#f1f8f5;border:1px solid #e1efea}
body.app-shell :is(.merchant-card,.wallet-card,.account-card){padding:22px 24px;border:1px solid var(--app-line);border-radius:var(--app-radius);box-shadow:0 3px 12px #1c4e3b04;margin-top:16px;margin-bottom:16px;min-width:0}
body.app-shell .account-grid .account-card,body.app-shell .wallet-grid .wallet-card{margin:0}
body.app-shell :is(.account-grid,.wallet-grid){gap:18px;align-items:start}
body.app-shell .button{font-size:14px;min-height:44px;padding:12px 18px;border-radius:10px;gap:12px;font-weight:650;box-shadow:none}
body.app-shell .blue-bg{background:#008253;color:#fff;box-shadow:0 4px 10px #0082531a}
body.app-shell :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;line-height:1.4;min-height:46px;border:1px solid #bbdace;border-radius:10px;background:#fcfdfd;color:#174332;padding:11px 13px;max-width:100%;font-family:inherit}
body.app-shell :is(input,select,textarea):focus{border-color:#008253;outline:3px solid #00825319;outline-offset:1px}
body.app-shell input:is([type=checkbox],[type=radio]){width:19px;height:19px;min-height:19px;flex:0 0 19px;accent-color:#008253}
body.app-shell .merchant-metrics{gap:14px;margin-top:18px}.app-shell .merchant-metrics>div{padding:18px 20px;border-radius:14px}.app-shell .merchant-metrics span{font-size:14px}.app-shell .merchant-metrics strong{font-size:30px;margin-top:6px;font-variant-numeric:tabular-nums}
body.app-shell :is(th,td){font-size:14px;line-height:1.5;padding:13px 16px}body.app-shell th{font-size:13px;color:#527f6d;font-weight:650;background:#f8fbfa}
body.app-shell :is(code,.merchant-reference){overflow-wrap:anywhere;font-size:13px}body.app-shell :is(.merchant-feedback,.wallet-feedback,.error){font-size:15px;line-height:1.55}
body.app-shell main>p:empty{display:none}body.app-shell .account-intro{margin-bottom:20px}.app-shell .account-identity{margin-bottom:18px}.app-shell .account-identity .button{margin-top:10px;margin-bottom:0}
body.app-shell .wallet-balance{padding:24px;margin:20px 0;border-radius:20px}.app-shell .wallet-balance :is(p,small){color:#d7ebe3}.app-shell .wallet-balance code{font-size:14px}.app-shell .wallet-balance .button{color:#174332}
body.app-shell .merchant-payment{padding:16px 0}.app-shell .filter-grid{gap:14px}.app-shell .merchant-card article{overflow-wrap:anywhere}
/* Workspace: consistent type and tighter, useful spacing. */
body #workspace .workspace-shell{grid-template-columns:224px minmax(0,1fr);min-height:calc(100dvh - 116px)}
body #workspace .workspace-content{padding:24px 28px 36px;max-width:1500px;width:100%;margin:0 auto}
body #workspace .workspace-top{margin-bottom:20px}body #workspace .page-heading{margin-bottom:20px}body #workspace .page-heading h1{font-size:32px;line-height:1.2}
body #workspace .page-heading p{font-size:15px;color:#537c6c}body #workspace .eyebrow{font-size:11px;letter-spacing:1px}
body #workspace .side-link{font-size:14px;min-height:44px;padding:10px 12px}body #workspace .sidebar-note{font-size:12px;line-height:1.6}
body #workspace :is(.quiet,.home-tools small,.profile-information dt,.profile-shortcuts button,.profile-status>p:not(.status),.profile-identity p:last-child,.bill-reference,.service-card p){font-size:14px;line-height:1.55;color:#537c6c}
body #workspace :is(.home-tools strong,.quick-actions strong,.profile-information dd,.notice-item p,.page-heading p){font-size:15px}
body #workspace :is(.quick-actions small,.notice-item small,.request-summary span,.bill-card>.quiet){font-size:13px}
body #workspace .quick-actions{gap:12px;margin:16px 0 20px}body #workspace .quick-actions button{min-height:80px;padding:14px}.workspace .button{font-size:14px;min-height:44px}
body #workspace :is(.panel-heading h2,.profile-status h2){font-size:21px}body #workspace :is(th,td){font-size:14px}body #workspace .panel-heading{padding:18px 20px}
body #workspace :is(.metric>span,.metric>small,.request-summary strong small){font-size:13px}body #workspace .metric{padding:20px}body #workspace .metrics{gap:14px;margin-bottom:20px}
@media(min-width:1100px){body.app-shell .account-identity{padding:22px 24px}.app-shell .account-identity .button{font-size:13px;padding:10px 13px;min-height:40px}.app-shell .wallet-grid{grid-template-columns:1fr 1fr}}
@media(max-width:900px){body.app-shell :is(.merchant-header,.wallet-header,.account-header,.orders-header){gap:14px;padding:14px 20px}.app-navigation .app-nav-secondary{display:none!important}body #workspace .workspace-content{padding:22px 20px}.app-shell .filter-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){body.app-shell :is(.merchant-header,.wallet-header,.account-header,.orders-header){min-height:72px;padding:12px 16px;gap:12px;flex-wrap:wrap}.app-shell .brand{font-size:25px}body.app-shell .app-navigation{gap:3px;margin-left:auto}.app-shell .app-navigation>a{display:none!important}body.app-shell .app-navigation summary{font-size:14px;padding:10px 12px}.app-service-menu{width:calc(100vw - 32px);right:0;gap:14px;padding:16px}.app-service-menu a{font-size:14px;padding:10px 8px}
body.app-shell :is(.merchant-main,.wallet-main,.account-main,.orders-main){margin-top:20px;padding:0 16px 32px}body.app-shell main h1{font-size:30px;letter-spacing:-1px}body.app-shell main h2{font-size:22px}.app-shell .merchant-metrics{grid-template-columns:1fr 1fr}.app-shell .merchant-metrics>div{padding:16px}.app-shell .merchant-metrics strong{font-size:25px}
body.app-shell :is(.merchant-card,.wallet-card,.account-card){padding:20px;border-radius:15px;margin:14px 0}body.app-shell :is(.account-grid,.wallet-grid){grid-template-columns:1fr;gap:14px}.app-shell .filter-grid{grid-template-columns:1fr}.app-shell .wallet-balance{padding:22px;margin:16px 0}
body #workspace .workspace-shell{display:block}body #workspace .workspace-content{padding:20px 16px 30px}body #workspace .sidebar{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;padding:8px 12px;gap:6px}body #workspace .side-link{flex:0 0 auto;min-width:84px;max-width:140px;min-height:60px;font-size:13px;padding:8px 10px}body #workspace .workspace-label,body #workspace .sidebar-note{display:none}
body #workspace .page-heading h1{font-size:29px}body #workspace .quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body #workspace .quick-actions button{min-height:82px;display:grid;grid-template-columns:36px 1fr;text-align:left;justify-items:start;padding:12px;gap:4px 10px}body #workspace .quick-actions span{grid-row:span 2}body #workspace .quick-actions strong{font-size:14px;align-self:center}body #workspace .quick-actions small{display:block;font-size:12px;line-height:1.4}body #workspace .metrics{grid-template-columns:1fr}body #workspace .profile-identity{padding:20px}body #workspace .panel-heading h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.app-shell *{scroll-behavior:auto;transition:none!important}}
@media print{.app-services,.app-navigation{display:none!important}body.app-shell{background:white}body.app-shell main{max-width:none;padding:0}}
body.app-shell main .balance-card{padding:24px 28px;margin:18px 0;align-items:center;gap:20px;border-radius:20px;box-shadow:0 10px 28px #17433210}
body.app-shell main .balance-card p{color:#ddeee7;font-size:14px;line-height:1.55;margin:6px 0}
body.app-shell main .balance-card strong{font-size:44px;margin:8px 0;line-height:1.2;color:#fff}
body.app-shell main .balance-card strong small{font-size:16px;color:#ddeee7}
body.app-shell main .balance-card .badge{font-size:11px}
body.app-shell main .balance-card .button{color:#fff;border-color:#8cd1b6}
body.app-shell main .error{color:#ae2941}
body.app-shell main .merchant-warning{background:#fff5e5;color:#7f511b!important;border-color:#eed7b0}
body.app-shell main :is(.merchant-feedback,.wallet-feedback){color:#216248;background:#eaf7f0}
@media(max-width:760px){body.app-shell main .balance-card{padding:22px;align-items:stretch}body.app-shell main .balance-card strong{font-size:38px}}
.app-shell .account-shortcuts{margin:16px 0;border-top:1px solid var(--app-line);border-bottom:1px solid var(--app-line);padding:12px 0}.app-shell .account-shortcuts summary{cursor:pointer;font-size:15px;font-weight:600;color:#306d55;min-height:28px}.app-shell .account-shortcuts>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:6px 14px;margin-top:12px}.app-shell .account-shortcut{padding:9px 10px;font-size:14px;border-radius:8px;background:#f7fbf9}.app-shell .account-shortcut:hover{background:#f0f8f5;color:#008253}
@media(min-width:900px){body.app-shell .account-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;align-items:start}body.app-shell .account-identity>.badge{grid-column:1;justify-self:start}body.app-shell .account-identity>h2{grid-column:1;margin:0}body.app-shell .account-identity>p{grid-column:1;margin:0}body.app-shell .account-identity>.blue-bg{grid-column:2;grid-row:2 / span 2;align-self:center;margin:0}body.app-shell .account-identity>#logout{grid-column:2;grid-row:1;margin:0}body.app-shell .account-identity>.account-shortcuts{grid-column:1 / -1;width:100%;margin:8px 0 0;padding-bottom:0;border-bottom:0}}
body.app-shell :is(.merchant-header,.wallet-header,.account-header,.orders-header){position:relative;z-index:20}
@media(max-width:760px){.app-shell .app-services{position:static}.app-shell .app-service-menu{left:16px;right:16px;top:calc(100% + 8px);width:auto;max-width:none}}
@media(max-width:760px){body #workspace .sidebar{position:relative;top:auto;left:auto;right:auto;bottom:auto;width:auto;margin:8px 12px 0;border-radius:12px;box-shadow:none;z-index:1;scrollbar-width:thin}}
body #workspace .consumer-banner{min-height:0;padding:20px 24px;margin:14px 0 18px;gap:20px;border-radius:18px}
body #workspace .consumer-banner h2{font-size:26px;line-height:1.2;margin:9px 0;letter-spacing:-.7px}
body #workspace .consumer-banner p{font-size:14px;line-height:1.55;margin:6px 0 0;color:#d8ebe4;max-width:70ch}
body #workspace .consumer-banner .consumer-mark{width:86px;height:86px;flex:0 0 86px}
body #workspace .consumer-banner .consumer-mark span{font-size:48px}
body #workspace .page-heading .eyebrow{font-size:11px;line-height:1.5;margin:0 0 7px}
body #workspace .page-heading h1{margin:0 0 8px}body #workspace .page-heading p{margin:0}
body #workspace .button{font-size:14px;min-height:44px;padding:12px 18px}
@media(max-width:760px){body #workspace .consumer-banner{padding:20px;min-height:0}body #workspace .consumer-banner h2{font-size:24px}body #workspace .consumer-mark{display:none}}
