.mobile-bottom-nav,.mobile-install-card,.install-site-app{display:none}
.mobile-install-card[hidden],.install-site-app[hidden]{display:none!important}
.internal-only[hidden]{display:none!important}
.site-auth-control{margin-left:10px;display:flex;align-items:center;gap:8px}.site-auth-control span{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#666;font-size:12px}.site-auth-control button{min-height:34px;padding:6px 13px;border:0;border-radius:999px;background:#1d1d1f;color:#fff;font-size:12px;font-weight:650;cursor:pointer}.site-auth-control .site-logout{padding:6px 3px;background:transparent;color:#0071e3}
.site-login-dialog{width:min(420px,calc(100% - 28px));padding:0;border:0;border-radius:28px;background:#fff;box-shadow:0 30px 100px rgba(0,0,0,.25)}.site-login-dialog::backdrop{background:rgba(0,0,0,.38);backdrop-filter:blur(8px)}.site-login-card{position:relative;padding:34px}.site-login-close{position:absolute;right:18px;top:18px;width:36px;height:36px;border:0;border-radius:50%;background:#eee;font-size:22px;cursor:pointer}.site-login-mark{width:52px;height:52px;margin-bottom:20px;display:grid;place-items:center;border-radius:15px;background:#1d1d1f;color:#fff;font-size:20px;font-weight:750}.site-login-card>p{margin:0 0 8px;color:#888;font-size:10px;font-weight:700;letter-spacing:.15em}.site-login-card h2{margin:0;font-size:32px}.site-login-card>small{display:block;margin-top:10px;color:#777;line-height:1.6}.site-login-card form{display:grid;gap:13px;margin-top:24px}.site-login-card label{display:grid;gap:7px;font-size:13px;font-weight:600}.site-login-card input{min-height:48px;padding:0 13px;border:1px solid #d2d2d7;border-radius:12px}.site-login-card form>button{min-height:48px;border:0;border-radius:14px;background:#0071e3;color:#fff;font-weight:700;cursor:pointer}.site-login-card output{min-height:18px;color:#c9342f;font-size:12px}

@media(max-width:620px){
  :root{--mobile-safe-bottom:env(safe-area-inset-bottom,0px)}
  html{scroll-padding-bottom:88px}
  body{padding-bottom:0;-webkit-tap-highlight-color:transparent}
  button,a,input,select,textarea{touch-action:manipulation}
  input,select,textarea,button{font-size:16px}

  .mobile-bottom-nav{position:fixed;z-index:90;left:10px;right:10px;bottom:calc(8px + var(--mobile-safe-bottom));height:64px;padding:5px;display:grid;grid-template-columns:repeat(var(--mobile-nav-count,3),1fr);border:1px solid rgba(0,0,0,.08);border-radius:22px;background:rgba(250,250,252,.94);box-shadow:0 12px 38px rgba(0,0,0,.17);backdrop-filter:saturate(180%) blur(24px)}
  .mobile-bottom-nav a{min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;border-radius:17px;color:#77777d;text-decoration:none;font-size:10px;font-weight:650;letter-spacing:0}
  .mobile-bottom-nav a i{height:26px;display:grid;place-items:center;font:700 20px/1 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-style:normal}
  .mobile-bottom-nav a.active{background:#1d1d1f;color:#fff}

  body>.site-header{height:calc(58px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 16px 0!important;background:rgba(250,250,252,.94)}
  body>.site-header nav{display:none!important}
  body>.site-header .brand strong{display:block;font-size:15px}
  .site-auth-control{margin-left:auto}.site-auth-control span{max-width:68px}.site-auth-control button{min-height:38px}.site-auth-control+.install-site-app{margin-left:6px}
  .install-site-app{margin-left:auto;padding:8px 12px;border:0;border-radius:999px;background:#1d1d1f;color:#fff;font-size:12px;font-weight:650}

  body>main>.hero{min-height:auto;padding:calc(92px + env(safe-area-inset-top,0px)) 18px 30px;gap:18px;background:radial-gradient(circle at 78% 28%,#fff 0,#f3f6fa 38%,transparent 65%),linear-gradient(180deg,#fbfbfd,#eef1f5)}
  body>main>.hero .eyebrow{margin-bottom:12px;font-size:10px}
  body>main>.hero h1{font-size:clamp(42px,13vw,54px);line-height:1.02}
  body>main>.hero .lead{margin-top:20px;font-size:17px;line-height:1.55}
  body>main>.hero .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:28px;width:100%}
  body>main>.hero .hero-actions a{min-height:50px;padding:11px 14px;justify-content:center;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(0,0,0,.06);font-size:13px;text-align:center}
  body>main>.hero .hero-actions .primary{grid-column:1/-1;background:#0071e3;color:#fff;font-size:15px}
  body>main>.hero .hero-art{height:255px;margin-top:3px}
  body>main>.hero .orb-back{width:220px;height:220px;right:-12px;top:18px}
  body>main>.hero .orb-front{width:145px;height:145px;left:5px;bottom:4px}
  body>main>.hero .orb-front span{font-size:48px}
  body>main>.hero .glass-card{width:135px;padding:13px;border-radius:18px}
  body>main>.hero .glass-card strong{font-size:15px}.card-two{top:2px!important}.card-one{bottom:2px!important}
  .mobile-install-card{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:13px;border:1px solid rgba(0,0,0,.07);border-radius:20px;background:rgba(255,255,255,.92);box-shadow:0 12px 32px rgba(0,0,0,.07)}
  .install-app-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:#1d1d1f;color:#fff;font-size:17px;font-weight:750}.mobile-install-card strong,.mobile-install-card small{display:block}.mobile-install-card strong{font-size:14px}.mobile-install-card small{margin-top:3px;color:#777;font-size:10px}.mobile-install-card button{min-height:38px;padding:0 13px;border:0;border-radius:999px;background:#0071e3;color:#fff;font-size:12px;font-weight:650}

  .workspace{padding:64px 12px!important}.workspace .section-heading{padding:0 10px;text-align:left}.workspace .section-heading h2{font-size:36px}.workspace .section-heading>p:last-child{font-size:16px}
  .project-card{border-radius:26px!important;box-shadow:0 12px 38px rgba(0,0,0,.075)!important}.project-card+.project-card{margin-top:14px!important}.project-card:hover{transform:none!important}
  .project-card .project-visual{min-height:190px!important}.project-card .project-visual:before{width:250px;height:250px}.project-card .folder-mark,.project-card .play-mark,.project-card .register-mark,.project-card .finance-mark{transform:scale(.62)}
  .project-card .sync-pill{left:14px;bottom:12px;padding:7px 10px;font-size:9px}.project-card .project-copy{padding:24px 20px 26px!important}.project-card .project-meta{font-size:10px}.project-card .project-copy h3{margin:20px 0 10px;font-size:30px!important}.project-card .project-copy p{font-size:14px;line-height:1.65}.project-card .enter{margin-top:20px;font-size:14px}
  .principles{padding:0 12px 58px!important;gap:10px!important}.principles article{padding:24px;border-radius:22px}.principles h3{margin:18px 0 7px;font-size:20px}.principles p{font-size:14px}footer{padding:22px 18px 30px}

  .sidebar{height:58px!important;padding:0 14px!important}.sidebar .logo{margin-right:auto!important}.sidebar .logo strong{display:block!important}.sidebar .site-nav{display:none!important}.sidebar-foot{margin-left:8px!important}.sidebar-foot .text-btn{min-height:42px;padding:8px!important}
  .topbar{height:112px!important;margin-top:58px!important;padding:28px 16px 16px!important}.topbar h2{font-size:31px!important}.library-tabs{position:sticky;z-index:18;top:58px;padding:9px 12px!important;background:rgba(245,245,247,.94);backdrop-filter:blur(18px)}.library-tabs .nav{min-height:40px;padding:8px 14px!important;font-size:12px!important}.library-tabs+.view{padding-top:14px!important}.view{padding-left:12px!important;padding-right:12px!important}.product-grid{grid-template-columns:1fr!important}.product-card{border-radius:22px}.product-visual{height:190px}.toolbar{gap:8px!important}.toolbar .search,.toolbar select{min-height:48px}

  .login-shell{align-items:start!important;padding:calc(46px + env(safe-area-inset-top,0px)) 14px 100px!important}.login-card{width:100%!important;padding:44px 22px 28px!important;border-radius:28px!important}.login-card input,.login-card button{min-height:50px}
  dialog{width:100%!important;max-width:none!important;max-height:92svh!important;margin:auto 0 0!important;border-radius:26px 26px 0 0!important}.drawer{height:92svh!important}.editor{padding:28px 17px calc(30px + var(--mobile-safe-bottom))!important}.site-login-card{padding:30px 22px calc(24px + var(--mobile-safe-bottom))}.site-login-card h2{font-size:30px}
}

@media(display-mode:standalone) and (max-width:620px){body>.site-header{padding-top:env(safe-area-inset-top,0px)!important}.mobile-bottom-nav{bottom:var(--mobile-safe-bottom)}}
