/* Shared header for the authenticated web platform. */
.app-frame:not(.is-auth){display:block}
.app-frame:not(.is-auth) .stage{min-width:0}
.app-frame:not(.is-auth) .topbar{
  position:sticky;top:0;z-index:45;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  gap:14px;padding:0 max(var(--pad),env(safe-area-inset-right)) 0 max(var(--pad),env(safe-area-inset-left));
  min-height:64px;
  background:rgba(249,247,241,.94);border-width:0 0 1px;
  box-shadow:0 4px 18px rgba(36,49,58,.07);overflow:visible;
}
.topbar-brand{display:flex;align-items:center;gap:9px;border:0;background:none;text-align:left;color:var(--ink);padding:0;min-height:44px}
.topbar .topbar-brand .mark{display:block;width:29px;height:34px}
.topbar .topbar-brand .brand-text{display:flex}
.app-navigation{display:flex;align-items:center;justify-content:center;gap:2px;min-width:0}
.app-navigation button{
  min-height:44px;white-space:nowrap;padding:8px clamp(7px,.9vw,14px);
  border:1px solid transparent;border-radius:12px;background:none;color:#43575c;font-size:14px;
}
.app-navigation button:hover{background:rgba(52,70,75,.06)}
.app-navigation button[aria-current="page"]{background:#e8ede7;color:#233a36;border-color:#dce4db;font-weight:600}
.app-frame:not(.is-auth) .topbar-actions{align-self:center}
.app-frame:not(.is-auth) .avatar{width:40px;height:40px;border-radius:50%;color:var(--ink)}
.app-frame:not(.is-auth) .main{overflow:visible;padding-top:clamp(16px,2.5vw,34px);padding-bottom:clamp(30px,6vw,80px)}
.app-frame:not(.is-auth) .view{max-width:1320px}
.app-frame:not(.is-auth) .btn:focus-visible,.dashboard-view button:focus-visible,.topbar button:focus-visible{
  outline:2px solid #376559;outline-offset:2px
}
.dashboard-greeting{font:400 clamp(25px,3vw,40px)/1.09 var(--serif);margin:0 0 clamp(15px,2vw,23px)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.dashboard-side{min-width:0;display:grid;gap:16px}
.dashboard-index{
  position:relative;isolation:isolate;overflow:hidden;border-radius:26px;
  min-width:0;padding:clamp(18px,3.25vw,40px);display:flex;flex-direction:column;gap:15px;
  background:#ede9df url("/app/assets/hsi-v5/card-base.webp") center/100% 100% no-repeat;
  border:1px solid rgba(255,255,255,.82);box-shadow:0 8px 24px rgba(43,49,43,.08)
}
.dashboard-index-art{position:absolute;z-index:-1;right:2%;top:6%;width:43%;height:45%;object-fit:contain}
.dashboard-index-link{
  min-height:44px;align-self:flex-start;display:inline-flex;align-items:center;gap:8px;
  border:0;padding:0 10px 0 0;background:none;color:var(--ink);font-size:clamp(15px,1.7vw,20px);font-weight:600;text-align:left;
}
.dashboard-index-link:hover span:first-child{text-decoration:underline;text-underline-offset:4px}
.dashboard-index-score{display:flex;align-items:baseline;gap:7px;margin:0 0 5px;color:#293b3e}
.dashboard-index-score strong{font-size:clamp(50px,6vw,94px);font-weight:500;line-height:.94;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.dashboard-index-score span{color:#4a5858;font-size:clamp(14px,2.1vw,25px)}
.dashboard-index-history h2{margin:0;font-size:13px;letter-spacing:.065em;text-transform:uppercase;font-weight:600}
.dashboard-index-chart{display:block;width:100%;height:auto;overflow:visible;color:#314149}
.dashboard-index-chart polyline{stroke:currentColor;stroke-width:2;fill:none}
.dashboard-index-chart circle{fill:currentColor}
.dashboard-index-chart text{fill:currentColor;text-anchor:middle;font-size:25px}
.dashboard-index-chart .axis-label{font-size:22px}
.dashboard-index-empty{margin:12px 0 10px;color:#52605e;font-size:14px}
.dashboard-index-action{
  min-height:48px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 16px;border:1px solid rgba(255,255,255,.9);border-radius:22px;color:#29383b;
  background:rgba(250,249,243,.86);text-align:left;font-weight:500
}
.dashboard-index-action:hover{background:#fffdf6}
.dashboard-triad,.dashboard-quote{
  padding:clamp(16px,2.4vw,28px);border:1px solid rgba(255,255,255,.82);border-radius:24px;
  background:rgba(255,254,250,.57)
}
.dashboard-triad h2{font:400 clamp(20px,2vw,27px)/1.16 var(--serif);margin:0 0 13px}
.dashboard-quote{position:relative;isolation:isolate;margin:0;background:linear-gradient(145deg,#e4e6df,#f8f5ec)}
.dashboard-quote-mark{position:absolute;top:0;right:18px;z-index:-1;color:#879b8a;font:italic 88px/.95 var(--serif);opacity:.17}
.dashboard-quote blockquote{margin:0;font:italic clamp(18px,2vw,26px)/1.38 var(--serif);overflow-wrap:anywhere}
.dashboard-quote figcaption{margin-top:14px;font-size:14px;color:#3d544f}
.dashboard-quote small{display:block;margin-top:5px;line-height:1.4}
.dashboard-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.dashboard-gallery button{
  overflow:hidden;position:relative;min-height:100px;padding:12px;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;
  text-align:left;background:#25353a;border:1px solid #354449;border-radius:17px;color:#fffdf6;isolation:isolate;font-weight:600
}
.dashboard-gallery img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;opacity:.62;z-index:-2}
.dashboard-gallery button::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#162725df);z-index:-1}
.dashboard-gallery button:hover img{opacity:.86}
.dashboard-gallery small{display:block;margin-top:3px;color:#e6eae4;font-size:12px}
.dashboard-dialog{
  background:#f7f4ed;color:var(--ink);width:min(calc(100% - 26px),760px);max-height:calc(100dvh - 32px);
  border:0;border-radius:26px;padding:0;box-shadow:0 16px 52px #24313a4b
}
.dashboard-dialog::backdrop{background:#19282d7b;backdrop-filter:blur(4px)}
.dashboard-dialog-inner{position:relative;isolation:isolate}
.dashboard-dialog-inner img{position:absolute;right:0;top:0;width:min(44%,300px);height:100%;object-fit:contain;opacity:.32;z-index:-2}
.dashboard-dialog-copy{padding:clamp(22px,4vw,38px);background:linear-gradient(90deg,#f7f4ed 68%,#f7f4ed33)}
.dashboard-dialog-copy h2{margin:0 56px 14px 0;font:400 clamp(25px,4vw,37px)/1.1 var(--serif)}
.dashboard-dialog-copy h3{font-size:16px}
.dashboard-dialog-copy p{max-width:68ch;font-size:15px;line-height:1.62}
.dashboard-dialog-close{position:absolute;right:12px;top:12px;width:44px;height:44px;border:0;border-radius:50%;background:#ece9de;color:var(--ink);font-size:25px}
.dashboard-dialog-action{margin-top:8px}
.web-locked{
  display:grid;position:relative;isolation:isolate;overflow:hidden;min-height:500px;
  border-radius:26px;background:#111c20;color:#f8f5ec;border:1px solid #fff5;
  box-shadow:0 8px 26px #24313a27;
}
.web-locked-copy{position:relative;z-index:1;padding:clamp(25px,5vw,72px);align-self:center}
.web-locked h1{font:400 clamp(42px,6vw,83px)/1.04 var(--serif);margin:0 0 20px}
.web-locked p{max-width:40ch;line-height:1.62;font-size:clamp(15px,1.6vw,19px);color:#f7f5eee8;margin:0 0 16px}
.web-locked-art{position:absolute;inset:0 0 0 42%;display:flex;align-items:center;justify-content:center;z-index:-2}
.web-locked-art img{width:100%;height:100%;object-fit:cover;object-position:center;filter:blur(2px) brightness(.79)}
.web-locked::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#111c20 30%,#111c20eb 44%,#111c2000 77%)}
.web-locked-availability{
  display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;padding:12px 15px;margin-top:26px;
  font-size:14px;line-height:1.4;border-radius:15px;border:1px solid #f7f4ed57;
  background:#263334;box-shadow:0 5px 18px #10191b35
}
.web-locked-availability svg{flex:none}
.profile-energy-card{display:grid;gap:5px;text-align:left;background:#304349;color:#faf8ef;border:0;border-radius:19px;padding:15px 17px}
.profile-energy-card strong{font-size:24px}
.profile-energy-card small{font-size:12px}
@media (min-width:850px){
  .dashboard-grid{grid-template-columns:minmax(0,1.07fr) minmax(0,1fr)}
  .dashboard-gallery{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (max-width:1090px){.topbar .topbar-brand .brand-text{display:none}}
@media (max-width:740px){
  .app-frame:not(.is-auth) .topbar{grid-template-columns:1fr auto;column-gap:8px;row-gap:0;padding:3px 12px 4px}
  .topbar .topbar-brand .brand-text{display:flex}
  .app-navigation{
    grid-row:2;grid-column:1/-1;justify-content:flex-start;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#b5c0b6 transparent;
    padding:1px 2px 4px
  }
  .app-navigation button{font-size:13px;padding-inline:9px;flex:none}
  .topbar-actions .btn{display:none}
  .web-locked{min-height:560px}
  .web-locked-copy{align-self:end}
  .web-locked-art{inset:0 0 27%}
  .web-locked::after{background:linear-gradient(0deg,#111c20 28%,#111c20e6 45%,#111c2000 88%)}
}

.profile-happiness{text-align:left;width:100%;color:var(--ink)}
.profile-happiness span:only-child{grid-column:1/-1}
