/* VeresiGo v0.36 — mobile-first application shell. Desktop remains unchanged. */
.vg-mobile-profile{display:none}
.vg-app-tabs{display:none}
.vg-sheet,.vg-sheet-backdrop{display:none}
@media (max-width:800px){
  :root{--vg-accent:#2058cd;--vg-ink:#142746;--vg-line:#e9edf5}
  html{scroll-padding-top:85px;scroll-behavior:smooth}
  body.app-body{background:#f5f7fc;min-height:100dvh;color:var(--vg-ink);-webkit-tap-highlight-color:transparent}
  .app-layout{display:block!important;min-height:calc(100dvh - 64px)}
  .side-nav{display:none!important}
  .topbar{background:rgba(255,255,255,.97);border-bottom:1px solid #e9edf6;box-shadow:0 2px 18px rgba(19,42,74,.035);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);z-index:35}
  .topbar-content{height:66px;min-height:66px;gap:10px;padding:0 16px}
  .topbar .brand{font-size:20px;letter-spacing:-.055em;font-weight:850;flex:0 0 auto}
  .topbar .brand-icon{height:37px;width:37px;border-radius:13px;background:linear-gradient(150deg,#306ce7,#1245a8);box-shadow:0 6px 14px rgba(44,97,205,.19);font-size:20px}
  .topbar-right{display:none!important}
  .vg-mobile-profile{display:inline-flex;justify-content:center;align-items:center;margin-left:auto;text-decoration:none;min-width:44px;min-height:44px}
  .vg-mobile-avatar{display:grid;place-items:center;width:39px;height:39px;border-radius:15px;background:#eaf1ff;border:1px solid #dbe8ff;color:#1c4eaa;font-weight:850;font-size:15px}
  .main-content{padding:18px 14px calc(116px + env(safe-area-inset-bottom,0px))!important;max-width:740px;margin:0 auto;min-width:0}
  .heading-area{margin-bottom:16px;gap:13px;align-items:flex-start;flex-wrap:wrap}
  .heading-area h1{font-size:clamp(23px,5.8vw,29px);font-weight:850;letter-spacing:-.055em;line-height:1.18;margin-bottom:5px}
  .heading-area .eyebrow{font-size:10px;letter-spacing:.12em;margin-bottom:7px}
  .heading-area p{font-size:12.5px;line-height:1.5}
  .date-chip{display:none!important}
  .vb-dashboard-tools{gap:7px!important;flex-wrap:wrap!important;width:100%}
  .vb-dashboard-tools .btn{min-height:40px!important;border-radius:12px!important;font-size:12px!important;white-space:normal;text-align:center}
  .content-card,.metric-card,.form-card,.vb-module-panel{border-radius:19px!important;border-color:#e9edf5!important;box-shadow:0 4px 20px rgba(18,40,78,.035)!important}
  .content-card{padding:18px 16px!important}
  .metric-card{padding:18px 16px!important}
  .metric-label{font-size:12px}
  .metric-value{letter-spacing:-.045em}
  .content-card h2,.card-title-row h2{font-size:17px;letter-spacing:-.025em}
  .quick-actions .btn,.form-actions .btn,.form-card .btn{min-height:46px;border-radius:12px}
  input,select,textarea{font-size:16px!important;max-width:100%}
  textarea{resize:vertical}
  button,a,summary{touch-action:manipulation}
  :focus-visible{outline:3px solid #5d8be6!important;outline-offset:3px}
  .footer{padding:12px 8px;text-align:center;font-size:11px;color:#91a0b5}
  .saas-trial-banner{border-radius:13px;padding:12px}
  .vg-app-tabs.mobile-nav{position:fixed!important;inset:auto 0 0 0!important;z-index:60!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:stretch;gap:0!important;width:100%;height:calc(70px + env(safe-area-inset-bottom,0px));min-height:0;margin:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));border:0!important;border-top:1px solid rgba(220,227,239,.96)!important;border-radius:20px 20px 0 0;background:rgba(255,255,255,.98);box-shadow:0 -6px 32px rgba(20,42,77,.085);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);overflow:visible;white-space:normal}
  .vg-tab{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:54px;text-decoration:none;border:0;background:transparent;color:#8190a6;padding:4px 1px;font-size:10px;font-weight:750;letter-spacing:-.01em;border-radius:12px;cursor:pointer;line-height:1.1}
  .vg-tab-symbol{height:25px;min-width:34px;display:grid;place-items:center;color:inherit}
  .vg-tab-symbol svg{width:22px;height:22px}
  .vg-tab-label{text-align:center;white-space:nowrap}
  .vg-tab-current{color:#215bd0}
  .vg-tab-current .vg-tab-symbol{background:#edf3ff;border-radius:11px}
  .vg-tab-quick{color:#123f9c}
  .vg-tab-quick .vg-tab-symbol{background:linear-gradient(145deg,#316cf0,#164bba);color:white;width:46px;height:46px;border-radius:16px;box-shadow:0 6px 15px rgba(25,84,193,.24);margin-top:-24px;min-width:46px}
  .vg-tab-quick .vg-tab-symbol svg{width:26px;height:26px;stroke-width:2.5}
  .vg-tab-quick .vg-tab-label{margin-top:2px}
  .vg-tab[aria-expanded="true"]:not(.vg-tab-quick){color:#215bd0;background:#eef4ff}
  .vg-tab-quick[aria-expanded="true"] .vg-tab-symbol{background:#153e94}
  .vg-sheet-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:70;background:rgba(9,22,43,.45);animation:vg-fade .17s ease}
  .vg-sheet:not([hidden]){display:block;position:fixed;bottom:0;left:0;right:0;z-index:75;max-height:min(87dvh,800px);overflow:auto;overscroll-behavior:contain;background:#fff;border-radius:27px 27px 0 0;padding:10px 18px calc(22px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 60px rgba(10,25,56,.22);animation:vg-appear .23s cubic-bezier(.16,1,.3,1)}
  .vg-sheet-handle{width:44px;height:5px;border-radius:99px;background:#d9e1ed;margin:0 auto 20px}
  .vg-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}
  .vg-sheet-eyebrow{display:block;color:#6982a8;font-size:10px;font-weight:850;letter-spacing:.15em;margin-bottom:5px}
  .vg-sheet-head h2{margin:0;font-size:23px;font-weight:850;letter-spacing:-.045em;color:#182c4d;line-height:1.2}
  .vg-sheet-close{display:grid;place-items:center;flex:0 0 42px;height:42px;border:1px solid #e6ecf5;background:#f7f9fc;border-radius:14px;color:#61728c}
  .vg-sheet-close svg{width:20px;height:20px}
  .vg-sheet-list{display:grid;gap:10px;padding:5px 0 7px}
  .vg-sheet-action{display:flex;align-items:center;gap:13px;padding:13px 12px;min-height:72px;border:1px solid #e9edf5;border-radius:16px;text-decoration:none;color:#193352;background:#fff}
  .vg-sheet-action>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
  .vg-sheet-action strong{font-size:15px;color:#1b2f4d}
  .vg-sheet-action small{font-size:12px;color:#7b8aa1}
  .vg-sheet-action>svg:last-child{color:#b1bed0;width:18px;height:18px}
  .vg-action-icon{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:14px}
  .vg-action-blue{background:#e9f1ff;color:#1b58c4}
  .vg-action-green{background:#e6f8ef;color:#087e51}
  .vg-action-soft{background:#f2efff;color:#6543b7}
  .vg-menu-links{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:4px 0 18px}
  .vg-menu-link{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:13px 10px 13px 13px;min-height:55px;border:1px solid #e6edf6;border-radius:14px;background:#f9fbff;color:#344964;text-decoration:none;font-size:12px;font-weight:700;overflow-wrap:anywhere}
  .vg-menu-link>svg{flex:0 0 15px;height:17px;width:17px;color:#8497b1}
  .vg-menu-current{color:#1e56bf;background:#eef4ff;border-color:#cfddf7}
  .vg-menu-foot{border-top:1px solid #e9edf5;padding:16px 1px 2px;display:flex;align-items:center;justify-content:space-between;gap:10px}
  .vg-menu-foot>span{font-size:12px;color:#8393a9;overflow-wrap:anywhere}
  .vg-logout-button{display:flex;align-items:center;gap:6px;color:#b83d43;background:#fff1f2;border:0;border-radius:12px;font-size:12px;font-weight:800;padding:11px 12px}
  .vg-logout-button svg{width:17px;height:17px}
  .vg-modal-open{overflow:hidden!important}
  @keyframes vg-fade{from{opacity:0}to{opacity:1}}
  @keyframes vg-appear{from{transform:translateY(35px);opacity:.5}to{transform:translateY(0);opacity:1}}
  /* Turn sign-in screens into compact app cards without changing the auth backend. */
  .auth-body{background:linear-gradient(165deg,#123e8c 0,#1c57b2 27%,#f4f7fc 27.1%,#f4f7fc 100%)!important}
  .auth-wrap{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:16px!important;max-width:530px!important;padding:calc(32px + env(safe-area-inset-top,0px)) 16px 40px!important;min-height:100dvh!important}
  .auth-intro{width:100%;text-align:center;color:#fff!important;padding-bottom:3px}
  .auth-intro .brand{color:#fff!important;font-size:22px;justify-content:center}
  .auth-intro .brand-icon{background:#fff;color:#1d57ae!important;box-shadow:none;width:39px;height:39px}
  .auth-intro h1{font-size:22px!important;color:#fff!important;margin:18px 0 8px!important;line-height:1.18}
  .auth-intro p{color:#e4ecff!important;font-size:12px!important;margin:0 auto;max-width:375px}
  .auth-card{border:1px solid #ebeff7;box-shadow:0 12px 42px rgba(13,42,90,.13)!important;border-radius:23px!important;padding:25px 20px!important}
  .auth-card h2{font-size:22px!important;letter-spacing:-.035em}
  .auth-card input,.auth-card select{height:52px!important;border-radius:13px!important}
  .auth-card .btn-block{min-height:51px;border-radius:13px}
}
@media(max-width:360px){
  .vg-tab{font-size:9px}
  .vg-menu-links{grid-template-columns:minmax(0,1fr)}
  .main-content{padding-left:11px!important;padding-right:11px!important}
  .vg-sheet:not([hidden]){padding-left:13px;padding-right:13px}
}
@media(min-width:801px){
  .vg-app-tabs,.vg-mobile-profile,.vg-sheet,.vg-sheet-backdrop{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .vg-sheet:not([hidden]),.vg-sheet-backdrop:not([hidden]){animation:none}
}
@media print{
  .vg-app-tabs,.vg-sheet,.vg-sheet-backdrop,.vg-mobile-profile{display:none!important}
  .main-content{padding-bottom:0!important}
}

/* VeresiGo v0.37 — native-feeling PWA install entry points */
.vg-install-banner,.vg-install-menu-entry{display:none}
@media(max-width:800px){
  .vg-install-banner:not([hidden]){display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:12px;position:relative;padding:19px 15px 15px;margin-bottom:16px;background:linear-gradient(135deg,#eff5ff,#fff);border:1px solid #d9e6fb;border-radius:20px;box-shadow:0 4px 20px rgba(21,75,153,.055);overflow:hidden}
  .vg-install-banner-icon{display:grid;place-items:center;width:49px;height:49px;border-radius:15px;background:#205ad0;color:#fff;box-shadow:0 6px 18px rgba(32,90,208,.2)}
  .vg-install-banner-icon svg{width:25px;height:25px}
  .vg-install-banner-info{padding-right:28px;min-width:0}
  .vg-install-banner-info strong{font-size:14px;color:#143666;line-height:1.35;display:block}
  .vg-install-banner-info p{margin:5px 0 0;color:#536d94;font-size:12px;line-height:1.48}
  .vg-install-dismiss{position:absolute;top:5px;right:5px;border:0;background:transparent;display:grid;place-items:center;width:34px;height:34px;color:#667f9e;border-radius:11px}
  .vg-install-dismiss svg{width:18px;height:18px}
  .vg-install-cta{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:45px;background:#205bd0;color:white;border:0;border-radius:13px;font-size:13px;font-weight:800;padding:11px;box-shadow:0 5px 12px rgba(32,91,208,.12)}
  .vg-install-cta svg{width:19px;height:19px}
  .vg-install-menu-entry:not([hidden]){width:100%;display:flex;align-items:center;gap:11px;margin:2px 0 17px;text-align:left;padding:13px;border:1px solid #d8e5fb;background:#f1f6ff;border-radius:16px;color:#1a4b9e;min-height:71px;cursor:pointer}
  .vg-install-menu-icon{display:grid;place-items:center;flex:0 0 43px;height:43px;border-radius:13px;background:#dceaff}
  .vg-install-menu-icon svg{width:21px;height:21px}
  .vg-install-menu-entry>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
  .vg-install-menu-entry strong{font-size:13px;font-weight:800;line-height:1.3}
  .vg-install-menu-entry small{font-size:11px;color:#6886b1}
  .vg-install-menu-entry>svg:last-child{flex:0 0 17px;height:17px;width:17px}
  .vg-install-instructions{border:1px solid #e5ebf5;background:#f7faff;border-radius:17px;padding:17px 16px;color:#234266;line-height:1.6;font-size:14px}
  .vg-install-instructions strong{color:#143663}
  .vg-install-instructions ol{padding-left:22px;margin:10px 0 0}
  .vg-install-instructions li{padding:3px 0}
  .vg-install-instructions p{margin:0 0 11px}
}
@media(min-width:801px){.vg-install-banner,.vg-install-menu-entry{display:none!important}}
@media print{.vg-install-banner,.vg-install-menu-entry{display:none!important}}
