/* Center Index on devices: the existing care-network palette, with room to touch. */
.app-device-button{height:40px;width:40px;flex:0 0 40px;border:1px solid #d6e7df;background:#f0f7f4;color:#176b55;border-radius:12px;display:grid;place-items:center;position:relative;cursor:pointer}
.app-device-button .icon{width:21px;height:21px}.app-device-button:hover{background:#e0f0e9}
.app-has-update:after{content:"";position:absolute;right:5px;top:5px;height:8px;width:8px;border:2px solid white;background:#315ee8;border-radius:50%}
.app-mobile-dock{display:none}
.app-auth-install{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;margin-top:26px;padding:17px 0 0;border:0;border-top:1px solid #e1eae7;background:none;color:#216e59;font:600 14px var(--font, sans-serif);cursor:pointer}.app-auth-install .icon{width:18px;height:18px}
#app-device-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 40px));max-width:900px;max-height:calc(100dvh - 40px);padding:0;border:1px solid #dce9e3;border-radius:26px;color:#173c3e;box-shadow:0 32px 100px #13392d35;overflow:auto;background:#fff}
#app-device-dialog[open]{display:grid;grid-template-columns:.85fr 1.15fr}
#app-device-dialog::backdrop,#app-mobile-menu::backdrop{background:#12383070;backdrop-filter:blur(8px)}
#app-device-dialog button,#app-mobile-menu button,.app-update-notice button{font-family:inherit;cursor:pointer}
.app-device-close{position:absolute;right:18px;top:18px;height:44px;width:44px;display:grid;place-items:center;border:1px solid #dde9e4;background:#ffffffde;color:#306c5b;border-radius:50%;z-index:1;padding:0}
.app-device-close .icon{width:20px;height:20px}
.app-device-hero{padding:48px 32px;background:radial-gradient(ellipse at 0 15%,#bde8d05c,transparent 70%),#f0f7f3;display:flex;flex-direction:column;justify-content:center;min-width:0}
.app-device-hero>img{border-radius:21px;box-shadow:0 12px 26px #14624720;margin-bottom:38px}
.app-kicker{font-size:10px;font-weight:750;letter-spacing:1.6px;color:#4e7c68;line-height:1.7}
#app-device-dialog .app-device-hero h2{font-family:var(--display, sans-serif);font-size:43px;letter-spacing:-1.9px;font-weight:750;line-height:1.17;margin:16px 0 20px;color:#153b3b}
.app-device-hero h2>span{color:#1e8464}.app-device-hero>p{font-size:16px;line-height:1.8;color:#56766b;margin:0}
.app-device-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:30px}.app-device-tags>span{font-size:11px;padding:5px 9px;border:1px solid #cfdfd5;border-radius:20px;color:#456e5d;background:#ffffff80}
.app-device-content{min-width:0;padding:52px 32px 26px}.app-device-content>h3{font-size:19px;margin:0 0 20px;letter-spacing:-.4px;color:#173c3e}
.app-device-platforms{display:flex;padding:4px;background:#f0f5f4;border-radius:11px;gap:4px;margin-bottom:24px}
.app-device-platforms button{flex:1;min-height:42px;border:0;border-radius:8px;color:#527468;background:transparent;font-size:14px;font-weight:600}
.app-device-platforms button[aria-pressed=true]{background:white;color:#13745f;box-shadow:0 2px 8px #1d4b3420}
.app-install-steps{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:19px}.app-install-steps li{display:flex;gap:13px;align-items:flex-start}
.app-install-steps li>span{flex:0 0 27px;height:27px;background:#e8f3ee;border:1px solid #d5e8dd;color:#32765d;display:grid;place-items:center;border-radius:9px;font-size:12px;font-weight:700}
.app-install-steps strong{font-size:14px;color:#284b42;font-weight:650;line-height:1.6}.app-install-steps p{font-size:13px;line-height:1.65;color:#648174;margin:3px 0 0}
.app-primary,.app-secondary{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:10px;border:1px solid transparent;padding:11px 15px;font-size:13px;line-height:1.4;font-weight:650;text-decoration:none;transition:background .15s,box-shadow .15s}
.app-primary{color:white;background:#14765c;box-shadow:0 4px 10px #13765f18}.app-primary:hover{background:#0b624b}.app-secondary{color:#315e7f;border-color:#d6e2ed;background:#f0f5fb}.app-secondary:hover{background:#e4eef8}.app-primary .icon,.app-secondary .icon{width:17px;height:17px;flex-shrink:0}
#app-install-content>.app-primary{margin-top:22px;width:100%}.app-install-note{font-size:12px;line-height:1.65;color:#71867d;margin:19px 0 0}
.app-installed-state{display:flex;gap:12px;align-items:center;padding:20px;border:1px solid #d9e9df;border-radius:14px;background:#f0f8f2}.app-installed-state>.icon{width:24px;height:24px;color:#16805c}.app-installed-state strong,.app-installed-state span{display:block}.app-installed-state strong{font-size:16px}.app-installed-state span{font-size:13px;color:#5f7f6e;margin-top:6px;line-height:1.6}
.app-update-section{border-top:1px solid #e2eae5;margin-top:25px;padding-top:22px}.app-update-heading{display:flex;gap:12px;align-items:flex-start}.app-update-heading>.icon{color:#53876d;width:20px;height:20px;flex-shrink:0;margin-top:2px}.app-update-heading h3{font-size:14px;margin:0;font-weight:650;line-height:1.5}.app-update-heading p{font-size:12px;line-height:1.6;margin:4px 0;color:#71867c}.app-update-indicator{width:7px;height:7px;background:#24815e;border-radius:50%;margin:7px 0 0 auto;flex-shrink:0}
.app-update-section[data-state=ready] .app-update-indicator{background:#315ee8}.app-update-section[data-state=attention] .app-update-indicator{background:#b37526}
#app-release{display:block;font-size:10px;letter-spacing:.3px;color:#84958c;margin:8px 0 0 32px;font-variant-numeric:tabular-nums}.app-update-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.app-device-feedback{font-size:13px;line-height:1.7;color:#8a561d;margin:14px 0 0}.app-device-feedback:empty{display:none}
.app-update-notice{position:fixed;right:24px;bottom:24px;z-index:90;display:flex;align-items:center;gap:14px;padding:14px 16px;background:#173d35;color:white;border:1px solid #42665a;border-radius:16px;box-shadow:0 12px 36px #143e3430;font-family:inherit;max-width:calc(100vw - 32px);box-sizing:border-box}
.app-update-notice[hidden],#app-device-dialog [hidden]{display:none!important}.app-update-dot{height:8px;width:8px;background:#9bddb8;border-radius:50%;flex-shrink:0}.app-update-notice strong{display:block;font-size:13px;line-height:1.6}.app-update-notice small{font-size:11px;color:#b8d3c5;line-height:1.5}.app-update-notice button{display:flex;align-items:center;gap:6px;min-height:40px;padding:7px 10px;background:#ffffff14;color:#fff;border:1px solid #ffffff30;border-radius:9px;font-size:12px;white-space:nowrap}.app-update-notice .icon{width:14px;height:14px}
#app-mobile-menu{box-sizing:border-box;width:min(380px,calc(100vw - 20px));max-width:none;max-height:calc(100dvh - 20px);margin:10px 10px 10px auto;padding:23px;border:1px solid #dce8e2;border-radius:22px;overflow:auto;background:#fbfdfc;color:#183c34}
#app-mobile-menu header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}#app-mobile-menu h2{font-family:var(--display,sans-serif);font-size:25px;line-height:1.3;letter-spacing:-.8px;margin:5px 0 0}#app-mobile-menu .app-device-close{position:static;flex-shrink:0}
#app-mobile-menu nav{display:flex;flex-direction:column;gap:5px}#app-mobile-menu .nav-item,#app-mobile-menu .app-menu-extra{display:flex!important;align-items:center;gap:13px;box-sizing:border-box;width:100%;min-height:48px;height:auto;margin:0;padding:12px;border:0;border-radius:10px;text-decoration:none;font-size:14px;color:#496d60;font-weight:550;background:none}
#app-mobile-menu .nav-item.active{color:#136b50;background:#e7f3eb;font-weight:650}#app-mobile-menu .nav-item>span,#app-mobile-menu .app-menu-extra>span{display:block!important}#app-mobile-menu .nav-item .icon,#app-mobile-menu .app-menu-extra .icon{width:21px;height:21px;flex-shrink:0}#app-mobile-menu .nav-chevron{display:none}#app-mobile-menu footer{border-top:1px solid #dfe9e3;margin-top:20px;padding-top:12px}#app-mobile-menu .account-avatar{height:28px;width:28px;font-size:10px;display:grid;place-items:center;border-radius:50%;background:#e5f1e9;color:#2b775b}
#app-mobile-menu .nav-item{justify-content:flex-start!important}
.app-offline-page{margin:0;min-height:100dvh;box-sizing:border-box;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at 50% 30%,#e2f3ea,transparent 70%),#f4f8f7;color:#193f38;font-family:system-ui,sans-serif}.app-offline-card{max-width:420px;text-align:center}.app-offline-card img{border-radius:22px;box-shadow:0 15px 34px #1a6d4f25;margin-bottom:25px}.app-offline-card h1{font-size:38px;letter-spacing:-1.5px;line-height:1.2;margin:17px 0}.app-offline-card>p:not(.app-kicker){font-size:16px;line-height:1.8;color:#678076}.app-offline-card button{font-family:inherit;cursor:pointer;margin-top:15px;min-width:150px}.app-offline-card #offline-status{display:block;margin-top:22px;font-size:12px;color:#748b80}
#app-device-dialog button:focus-visible,#app-mobile-menu button:focus-visible,.app-device-button:focus-visible,.app-mobile-dock button:focus-visible,.app-auth-install:focus-visible,.app-update-notice button:focus-visible{outline:2px solid #315ee8;outline-offset:3px}
@media(min-width:761px) and (max-width:1100px){.app-device-button{height:36px;width:36px;flex-basis:36px}.topbar .sheets-renewal-full{display:none}.topbar .sheets-renewal-short{display:inline}.topbar .sheets-renewal-reminder{font-size:12px;padding:8px;gap:5px}#graphs-heading-slot h1{flex-shrink:1;min-width:0}}
@media(max-width:760px),(max-width:1024px) and (max-height:600px){
  body{--app-dock-height:68px;--app-safe-bottom:env(safe-area-inset-bottom,0px);-webkit-tap-highlight-color:transparent}
  body:not(.auth-page) .sidebar{display:none!important}.main-shell{margin-left:0!important;padding-bottom:calc(var(--app-dock-height) + var(--app-safe-bottom))}
  .topbar,.graphs-view .topbar{display:flex!important;position:sticky;top:0;z-index:30;box-sizing:border-box;height:calc(64px + env(safe-area-inset-top,0px))!important;padding:env(safe-area-inset-top,0px) max(10px,env(safe-area-inset-right,0px)) 0 max(10px,env(safe-area-inset-left,0px))!important;gap:7px;background:#ffffffed;backdrop-filter:blur(16px)}
  .topbar .topbar-left,.graphs-view .topbar-left{display:flex!important;flex:0 0 auto}.topbar .topbar-right{gap:5px;flex:0 0 auto;margin-left:0}.topbar .sidebar-toggle{height:40px;width:36px;min-width:36px;padding:7px}.topbar .sidebar-toggle .icon{width:20px;height:20px}
  .app-device-button{height:36px;width:32px;flex:0 0 32px;border:0;background:transparent}.app-device-button .icon{width:20px;height:20px}
  .topbar .account-button,.graphs-view .topbar .account-button{display:flex!important;padding:0}.topbar .account-avatar,.graphs-view .topbar .account-avatar{height:32px;width:32px;font-size:11px}
  .topbar #sheets-renewal-reminder{display:none!important}#page-heading-slot,#graphs-heading-slot{min-width:0;flex:1}#page-heading-slot .page-heading,#graphs-heading-slot .graphs-heading{min-width:0;gap:5px}#page-heading-slot h1,#graphs-heading-slot h1{font-size:19px!important;letter-spacing:-.65px;min-width:0;line-height:1.3}#graphs-heading-slot .graphs-heading>div:first-child{min-width:0}
  #page-heading-slot .heading-actions{gap:3px}#page-heading-slot .heading-actions .button,#graphs-heading-slot .graphs-heading-tools .button{min-width:32px;width:32px;min-height:40px;height:40px;padding:6px;flex-shrink:0}#graphs-heading-slot .graphs-heading-tools{gap:1px}#graphs-heading-slot .graphs-period-tag{display:none!important}
  .app-mobile-dock{display:flex;position:fixed;z-index:50;bottom:0;left:0;right:0;height:calc(var(--app-dock-height) + var(--app-safe-bottom));padding:7px max(12px,env(safe-area-inset-right,0px)) calc(7px + var(--app-safe-bottom)) max(12px,env(safe-area-inset-left,0px));box-sizing:border-box;border-top:1px solid #dce8e2;box-shadow:0 -5px 25px #1b4d3510;background:#ffffffed;backdrop-filter:blur(18px);gap:5px}
  .app-mobile-dock button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;border-radius:13px;font:550 10px var(--font,sans-serif);color:#75887f;background:transparent;min-height:48px}.app-mobile-dock .icon{width:21px;height:21px}.app-mobile-dock button[aria-current=page]{background:#e5f3eb;color:#116d50;font-weight:750}.app-mobile-dock button:active{background:#edf5f0}
  main#main{padding-top:16px!important;padding-left:max(14px,env(safe-area-inset-left,0px))!important;padding-right:max(14px,env(safe-area-inset-right,0px))!important}
  .graphs-view main#main{padding:0!important}.graphs-page:not(.graphs-presenting){height:calc(100dvh - 64px - env(safe-area-inset-top,0px) - var(--app-dock-height) - var(--app-safe-bottom));min-height:390px;padding:8px 12px!important}
  .graphs-plot{min-height:180px}.graphs-plot-heading{padding-left:42px;font-size:12px}.graphs-comparison-note{font-size:10px}.graphs-toolbar .graphs-search input{font-size:16px}.graphs-toolbar .graphs-chip>button:first-child{font-size:12px}
  .period-row{row-gap:10px}.period-control .icon-button{min-width:38px;min-height:42px}.report-period-tabs{overflow-x:auto}
  input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:max(16px,1em)}
  dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - var(--app-safe-bottom));overscroll-behavior:contain}
  #app-device-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px - env(safe-area-inset-top,0px) - var(--app-safe-bottom));border-radius:22px}
  #app-device-dialog[open]{display:block}.app-device-hero{padding:27px 24px 23px;display:block}.app-device-hero>img{width:52px;height:52px;border-radius:15px;margin:0 0 13px}.app-device-hero>.app-kicker{display:block;font-size:9px}#app-device-dialog .app-device-hero h2{font-size:30px;letter-spacing:-1.2px;line-height:1.2;margin:10px 0 7px}.app-device-hero h2 br{display:none}.app-device-hero>p{font-size:13px;line-height:1.65}.app-device-hero>p br{display:none}.app-device-tags{margin-top:14px}.app-device-tags>span{font-size:10px}
  .app-device-close{right:14px;top:14px}.app-device-content{padding:24px}.app-device-content>h3{font-size:18px}.app-install-steps{gap:16px}.app-install-steps strong{font-size:14px}.app-install-steps p{font-size:13px}.app-update-actions .app-primary,.app-update-actions .app-secondary{flex:1;font-size:12px;white-space:nowrap}
  .app-update-notice{left:10px;right:10px;bottom:calc(78px + var(--app-safe-bottom));max-width:none;padding:12px;gap:10px}.app-update-notice small{font-size:10px}.app-update-notice button{margin-left:auto}
  .toast{bottom:calc(82px + var(--app-safe-bottom))!important;max-width:calc(100vw - 30px)}
  body.table-fullscreen .app-mobile-dock,body:has(.graphs-presenting) .app-mobile-dock,body:has(:fullscreen) .app-mobile-dock{display:none}.table-fullscreen .main-shell{padding-bottom:0}.graphs-presenting{padding-bottom:max(12px,var(--app-safe-bottom))!important}
}
@media(prefers-reduced-motion:reduce){.app-primary,.app-secondary{transition:none}}
@media(max-width:420px){#graphs-heading-slot .graphs-reset{display:none}}
@media print{.app-device-button,.app-mobile-dock,.app-update-notice,.app-auth-install,#app-device-dialog,#app-mobile-menu{display:none!important}.main-shell{padding-bottom:0!important}}
