:root{--app-deep:#071f19;--app-green:#0d3028;--app-cream:#f8f7f3;--app-rose:#e8b293;--app-line:#dcded5}
html{background:var(--app-deep)}
body.app-shell{min-height:100vh;background:var(--app-cream);padding-bottom:92px}
.app-safe-top{height:env(safe-area-inset-top);background:var(--app-deep)}
.app-header{position:sticky;top:0;z-index:40;display:flex;justify-content:space-between;align-items:center;padding:14px clamp(18px,4vw,54px);background:#f8f7f3ee;backdrop-filter:blur(18px);border-bottom:1px solid var(--app-line)}
.app-brand{display:flex;align-items:center;gap:12px}.app-brand img{width:42px;height:42px;border-radius:11px}.app-brand span{display:grid;line-height:1}.app-brand b{font:17px Georgia,serif;letter-spacing:2px;font-weight:400}.app-brand small{font:9px 'DM Sans',sans-serif;letter-spacing:3px;color:var(--muted);margin-top:6px}
.app-header-actions{display:flex;align-items:center;gap:18px}.app-header-actions .language-toggle{background:none;color:var(--muted);font-size:11px;letter-spacing:1px;padding:8px 0}.app-profile-link{font-size:13px;border-bottom:1px solid var(--app-green)}
.app-main{max-width:1460px;margin:auto}
.app-hero{margin:20px;min-height:530px;background:var(--app-green);color:#f4d0b7;display:grid;grid-template-columns:minmax(0,1fr) 36%;overflow:hidden}
.app-hero-copy{padding:clamp(42px,7vw,88px);display:flex;flex-direction:column;align-items:flex-start}.app-hero .eyebrow{color:#a9bcb2}.app-hero h1{font-size:clamp(52px,7vw,96px);letter-spacing:-2px;margin:24px 0 20px;max-width:760px}.app-hero h1 em{color:#f4d0b7}.app-hero-copy>p:not(.eyebrow){max-width:640px;color:#c4d0ca;font-size:17px;line-height:1.75}
.app-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.app-outline-light{background:transparent;border:1px solid #b9c8c0;color:#f6f5f1}.app-outline-light:hover{background:#f6f5f1;color:var(--app-green)}
.app-offer{margin-top:auto;padding-top:44px;display:flex;align-items:center;gap:18px}.app-offer strong{font:38px Georgia,serif;color:#f4d0b7}.app-offer span{max-width:380px;font-size:12px;letter-spacing:.5px;color:#acbfb5}
.app-hero-mark{position:relative;display:grid;place-items:center;background:radial-gradient(circle at center,#173f34 0,#071f19 72%);overflow:hidden}.app-hero-mark:before,.app-hero-mark:after{content:'';position:absolute;border:1px solid #d9a68766;border-radius:50%}.app-hero-mark:before{width:72%;aspect-ratio:1}.app-hero-mark:after{width:54%;aspect-ratio:1}.app-hero-mark span{position:relative;z-index:2;font:clamp(180px,23vw,340px)/1 Georgia,serif;color:#ecc6a9}
.app-install-card{margin:0 20px;padding:34px clamp(26px,5vw,62px);border:1px solid var(--app-line);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:35px;align-items:center;background:#eef0e9}.app-install-card h2{font-size:clamp(30px,4vw,48px);margin:8px 0 10px}.app-install-card p{max-width:720px;color:var(--muted)}.install-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.install-help{grid-column:1/-1;padding-top:18px;border-top:1px solid var(--app-line)}.install-help p{margin:4px 0}
.app-dashboard,.app-account-summary{padding:72px 5%}.app-section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:30px}.app-section-heading h2{font-size:clamp(38px,5vw,62px);margin-top:10px}.app-section-heading>p{max-width:430px;color:var(--muted);font-size:14px}
.app-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--app-line);background:#fff}.app-action-card{min-height:260px;padding:28px;display:flex;flex-direction:column;justify-content:space-between;border-right:1px solid var(--app-line);transition:.2s}.app-action-card:last-child{border-right:0}.app-action-card:hover{background:#eef1eb;transform:translateY(-2px)}.app-action-card.featured{background:var(--app-deep);color:#f4d0b7}.app-action-card.featured:hover{background:#143a30}.app-card-number{font-size:10px;letter-spacing:2px;opacity:.65}.app-action-card small{font-size:10px;letter-spacing:1.8px}.app-action-card h3{font-size:31px;margin:8px 0}.app-action-card p{font-size:13px;line-height:1.6;color:var(--muted)}.app-action-card.featured p{color:#b7c5bd}.app-action-card>b{font-size:24px;align-self:flex-end;font-weight:400}
.app-account-summary{padding-top:10px}.compact-heading{margin-bottom:22px}.app-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);background:var(--app-green);color:#f5dfce}.app-stat-grid a{padding:30px 34px;border-right:1px solid #ffffff22}.app-stat-grid a:last-child{border:0}.app-stat-grid strong{display:block;font:48px Georgia,serif}.app-stat-grid span{font-size:12px;letter-spacing:1px;color:#bdcdc3}
.app-status-strip{margin:20px 5% 30px;padding:15px 0;border-top:1px solid var(--app-line);display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.app-status-strip>div{display:flex;align-items:center;gap:8px}.status-dot{width:8px;height:8px;border-radius:50%;background:#3b8659;box-shadow:0 0 0 4px #3b86591b}.offline .status-dot{background:#a65f50}.offline #connection-label{color:#a65f50}
.app-dock{display:none}
@media(max-width:1000px){.app-hero{grid-template-columns:1fr}.app-hero-mark{display:none}.app-action-grid{grid-template-columns:repeat(2,1fr)}.app-action-card:nth-child(2){border-right:0}.app-action-card:nth-child(-n+2){border-bottom:1px solid var(--app-line)}.app-install-card{grid-template-columns:1fr}.install-actions{justify-content:flex-start}}
@media(max-width:700px){body.app-shell{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.app-header{padding:10px 16px}.app-brand img{width:36px;height:36px}.app-brand b{font-size:14px;letter-spacing:1.7px}.app-brand small{font-size:8px}.app-profile-link{display:none}.app-header-actions .language-toggle{font-size:10px}.app-hero{margin:0;min-height:auto}.app-hero-copy{padding:42px 22px 32px}.app-hero h1{font-size:52px;letter-spacing:-1px}.app-hero-copy>p:not(.eyebrow){font-size:15px}.app-offer{padding-top:34px}.app-offer strong{font-size:32px}.app-install-card{margin:0;padding:28px 22px;border-left:0;border-right:0}.app-install-card h2{font-size:34px}.install-actions{display:grid;width:100%}.install-actions .button{width:100%;justify-content:center}.app-dashboard,.app-account-summary{padding:48px 18px}.app-section-heading{display:block}.app-section-heading>p{margin-top:15px}.app-section-heading h2{font-size:42px}.app-action-grid{grid-template-columns:1fr}.app-action-card{min-height:175px;border-right:0!important;border-bottom:1px solid var(--app-line)!important}.app-action-card:last-child{border-bottom:0!important}.app-action-card h3{font-size:30px}.app-stat-grid{grid-template-columns:repeat(3,1fr)}.app-stat-grid a{padding:22px 10px;text-align:center}.app-stat-grid strong{font-size:35px}.app-stat-grid span{font-size:10px}.app-status-strip{margin:10px 18px 20px}.app-status-strip>span:last-child{display:none}.app-dock{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:repeat(5,1fr);gap:0;background:#071f19;color:#d7e0da;padding:7px 4px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px #0001}.app-dock a{display:grid;place-items:center;gap:2px;min-height:53px;font-size:22px;opacity:.75}.app-dock a.active{color:#edbb9b;opacity:1}.app-dock small{font-size:9px;letter-spacing:.2px}}
@media(display-mode:standalone){.app-install-card{display:none}.app-header{top:env(safe-area-inset-top)}}

.app-dock a{position:relative}.dock-count{position:absolute;top:2px;right:16%;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#b87869;color:#fff;font:700 10px/18px Arial,sans-serif;text-align:center}

/* Readable controls and resilient layouts on narrow and enlarged screens. */
.app-shell [hidden]{display:none!important}
.app-header,.app-header-actions,.app-brand,.app-action-card,.app-stat-grid a{min-width:0}
.app-header{color:var(--app-green)}
.app-header .language-toggle{color:var(--app-green)!important}
.app-profile-link,.app-header-actions .language-toggle{min-height:44px;display:inline-flex;align-items:center;font-size:14px}
.app-shell :is(button,a):focus-visible{outline:3px solid #9a613d;outline-offset:4px}
.app-action-card p,.app-install-card p{font-size:16px}
.app-action-card small,.app-stat-grid span{font-size:14px;letter-spacing:.3px}
.app-dock a{min-width:0}
.app-dock small{font-size:12px;letter-spacing:0}
@media(max-width:700px){
 .app-header{flex-wrap:wrap;gap:8px}
 .app-hero h1{font-size:clamp(38px,10vw,52px);overflow-wrap:break-word}
 .app-offer{align-items:flex-start}.app-offer strong{flex-shrink:0}
 .app-offer span{font-size:14px}
 .app-stat-grid{grid-template-columns:1fr}
 .app-stat-grid a{display:flex;align-items:center;gap:18px;text-align:left;padding:18px;border-right:0;border-bottom:1px solid #ffffff22}
 .app-dock small{font-size:clamp(10px,2.7vw,12px)}
}
@media(prefers-reduced-motion:reduce){.app-action-card:hover{transform:none}}

/* App surface refinements for installed and browser use */
.app-main{width:min(100%,1560px);margin:0 auto}
.app-header{min-height:68px}
.app-install-card,.app-action-card{border-radius:8px}
.app-header-actions :is(a,button){min-height:44px}
.app-install-card .button,.app-primary-actions a{min-height:48px}
@media(max-width:700px){
 body.app-shell{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
 .app-main{padding-bottom:12px}
 .app-header{min-height:58px}
 .app-action-card{min-height:120px}
 .app-dock a{min-height:44px}
}
