/* AwwHeart app look (2026-11-24; js/app-mode.js adds html.in-app only inside the Android app or with ?app=1).
   Reference: TapGrow (header card + 8 round shortcuts + floating dock), in AwwHeart's own colours. Nothing here applies
   to the website admin in a browser. */
html.in-app{--sat:var(--aw-sat,env(safe-area-inset-top,0px));--sab:var(--aw-sab,env(safe-area-inset-bottom,0px));--aw-bar:56px;--aw-dock:60px;--aw-rose:#D23367;--aw-rose2:#FF5C8A;-webkit-tap-highlight-color:transparent}
html.in-app body{background:var(--paper,#FFF6F0);overscroll-behavior-y:none}
html.in-app a,html.in-app button{-webkit-touch-callout:none}

/* the website frame is hidden: the app bar + dock replace it */
html.in-app .sa-top{display:none!important}
html.in-app .sa-content{padding:calc(var(--aw-bar) + var(--sat) + 14px) 14px calc(var(--aw-dock) + 40px + var(--sab));max-width:720px}
html.in-app .sa-main,html.in-app .sa-wrap{margin-left:0!important}
html.in-app .sa-head > div:first-child{display:none}
html.in-app .sa-head{margin-bottom:12px}
html.in-app .sa-head:not(:has(.sa-head-acts)){display:none}

/* app bar */
.aw-bar{display:none}
html.in-app .aw-bar{display:flex;align-items:center;gap:6px;position:fixed;top:0;left:0;right:0;z-index:70;height:calc(var(--aw-bar) + var(--sat));padding:var(--sat) 8px 0 12px;box-sizing:border-box;background:color-mix(in srgb,var(--paper,#FFF6F0) 92%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid color-mix(in srgb,var(--line,#F2DDD5) 70%,transparent)}
html.in-app .aw-title{flex:1;margin:0;font:700 19px/1.2 var(--sa-font,inherit);color:var(--ink,#3B2420);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.in-app .aw-back,html.in-app .aw-store{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:14px;background:transparent;color:var(--ink,#3B2420);flex:none}
html.in-app .aw-back[hidden],html.in-app .aw-store[hidden]{display:none}
html.in-app .aw-back svg,html.in-app .aw-store svg{width:24px;height:24px}
html.in-app .aw-back:active,html.in-app .aw-store:active{background:color-mix(in srgb,var(--aw-rose) 12%,transparent)}

/* floating dock = TapGrow's (reference_floating_dock_navbar), in AwwHeart rose: open tab = capsule icon + name, others icon only */
.aw-dock{display:none}
html.in-app .aw-dock{display:flex;align-items:center;justify-content:space-between;gap:2px;position:fixed;left:10px;right:10px;bottom:calc(10px + var(--sab));z-index:70;padding:6px;box-sizing:border-box;background:#fff;border-radius:30px;box-shadow:0 10px 30px rgba(14,21,48,.18),0 0 0 1px rgba(0,0,0,.05)}
html.in-app .aw-dock a{display:flex;align-items:center;justify-content:center;gap:8px;min-width:44px;height:48px;padding:0;border-radius:999px;color:#9aa1b8;text-decoration:none;transition:transform .12s}
html.in-app .aw-dock a:active{transform:scale(.95)}
html.in-app .aw-dock .aw-ic{display:grid;place-items:center;width:24px;height:24px}
html.in-app .aw-dock .aw-ic svg{width:24px;height:24px;stroke-width:2.1}
html.in-app .aw-dock .aw-lb{display:none;font:800 13px/1 var(--sa-font,inherit);white-space:nowrap}
html.in-app .aw-dock a.on{padding:0 14px;background:var(--aw-rose);color:#fff;box-shadow:0 6px 14px rgba(210,51,103,.35);animation:aw-pop .22s ease}
html.in-app .aw-dock a.on .aw-lb{display:inline}
@keyframes aw-pop{0%{transform:scale(.9)}70%{transform:scale(1.04)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){html.in-app .aw-dock a.on{animation:none}}
@media (prefers-color-scheme: dark){html.in-app:not([data-theme="light"]) .aw-dock{background:#2A1E21}}
html.in-app[data-theme="dark"] .aw-dock{background:#2A1E21}

/* every page: app-style cards and touch-size controls */
html.in-app .sa-page .panel,html.in-app .sa-page .card,html.in-app .sa-page .sa-card{border-radius:20px}
html.in-app .sa-page .btn{min-height:44px}
html.in-app .sa-page input,html.in-app .sa-page select,html.in-app .sa-page textarea{font-size:16px}

/* "More" = every page in a bottom sheet (the website's side menu, restyled) */
@media (max-width:1023px){
  html.in-app .sa-side{top:auto;bottom:0;left:0;right:0;width:100%!important;max-height:86vh;border-right:0;border-radius:26px 26px 0 0;transform:translateY(104%);padding-bottom:var(--sab);z-index:80}
  html.in-app body.sa-open .sa-side{transform:none}
  html.in-app .sa-scrim{z-index:75}
}
html.in-app .sa-pin,html.in-app #sa-pin{display:none!important}

/* log in / sign up inside the app = design A of the welcome (2026-11-25): pink wash at the top, a Back arrow when it was
   reached from the welcome (app-mode.js adds body.aw-hasback), flat page (no card), Google first, big fields + buttons.
   Opened on its own (after a log-out) it keeps the centred logo. */
html.in-app body[data-page="auth"] header.nav .nav-links,html.in-app body[data-page="auth"] header.nav .nav-acts,html.in-app body[data-page="auth"] footer,html.in-app body[data-page="auth"] p.fine{display:none!important}
html.in-app body[data-page="auth"]{background:linear-gradient(175deg,var(--rani-wash,#FFE3EC) 0,var(--paper,#FFF6F0) calc(var(--sat) + 200px)) no-repeat,var(--paper,#FFF6F0)}
html.in-app body[data-page="auth"] header.nav{position:static;background:transparent;border:0;box-shadow:none;padding-top:calc(var(--sat) + 28px)}
html.in-app body[data-page="auth"].aw-hasback header.nav{display:none}
html.in-app body[data-page="auth"] header.nav .wrap{justify-content:center}
html.in-app body[data-page="auth"] header.nav .logo{transform:scale(1.35);transform-origin:center}
html.in-app body[data-page="auth"] main.app{padding:8px 0 calc(var(--sab) + 28px)}
html.in-app body[data-page="auth"].aw-hasback main.app{padding-top:calc(var(--sat) + 64px)}
html.in-app body[data-page="auth"] main.app > .wrap{padding:0 20px}
html.in-app body[data-page="auth"] #auth-root{background:transparent;border:0;box-shadow:none;border-radius:0;padding:6px 0 0}
html.in-app body[data-page="auth"] #auth-root h1{font-size:30px!important;line-height:1.1;margin:0}
html.in-app body[data-page="auth"] #auth-root > p.muted{margin:8px 0 0;font-weight:600}
html.in-app body[data-page="auth"] .g-wrap{margin:22px 0 4px!important}
html.in-app body[data-page="auth"] #g-btn{min-height:56px;border-radius:18px;font-size:16.5px}
html.in-app body[data-page="auth"] .ff input{height:58px;border-radius:16px;padding:0 16px}
html.in-app body[data-page="auth"] .ff label{left:12px}
html.in-app body[data-page="auth"] .form .btn-primary{min-height:56px;border-radius:18px}
html.in-app body[data-page="auth"] #auth-root > p.small{text-align:center;font-size:14.5px;margin-top:18px}
html.in-app .aw-authback{position:fixed;z-index:20;top:calc(var(--sat) + 8px);left:10px;width:44px;height:44px;border:0;border-radius:14px;background:transparent;color:var(--ink);display:grid;place-items:center;padding:0}
html.in-app .aw-authback:active{background:var(--rani-wash,#FFE3EC)}

/* system bars (app 1.2.1 draws edge to edge; MainActivity sends --aw-sat/--aw-sab): solid page colour behind the status
   bar and the navigation bar, so they look part of the app (owner 2026-11-24: "not white, fitted like other apps") */
html.in-app body::before,html.in-app body::after{content:"";position:fixed;left:0;right:0;z-index:69;pointer-events:none;background:var(--sa-bg,var(--paper,#FBF3EF))}
html.in-app body::before{top:0;height:var(--sat)}
html.in-app body::after{bottom:0;height:var(--sab)}
html.in-app .aw-bar{background:var(--sa-bg,var(--paper,#FBF3EF));-webkit-backdrop-filter:none;backdrop-filter:none}
/* toasts are centred with left:50%, so without this their text wraps at half the screen ("Press back again to / exit") */
html.in-app .toast{width:max-content;bottom:calc(20px + var(--sab))}
/* log-in / sign-up in the app: the status strip takes the page's own top colour (it was a cream band over the pink page),
   and the big logo is not a link there (it opened the marketing website inside the app) */
html.in-app body[data-page="auth"]::before{background:var(--rani-wash,#FFE3EC)}
html.in-app body[data-page="auth"]{background:linear-gradient(175deg,var(--rani-wash,#FFE3EC) 0,var(--rani-wash,#FFE3EC) var(--sat),var(--paper,#FFF6F0) calc(var(--sat) + 200px)) no-repeat,var(--paper,#FFF6F0)}
html.in-app body[data-page="auth"] header.nav .logo{pointer-events:none}
/* the set-up steps inside the phone app: the old app bar and dock are gone, so no empty band above and below them */
html.hub.in-app .sa-content{padding:calc(var(--sat) + 16px) 14px calc(var(--sab) + 24px)}
