:root{color-scheme:light;--ink:#17324d;--muted:#4d5c62;--green:#76be43;--paper:#f5f7f4;--line:#d6e0d3;font:16px/1.48 "Helvetica Neue",system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0}
a{color:inherit;text-underline-offset:.2em}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #1464ae;outline-offset:3px}
button,select,input{font:inherit;color:inherit}
button{min-height:44px;cursor:pointer;font-weight:650;background:var(--green);border:1px solid transparent;border-radius:11px;padding:.55rem 1rem}
button.quiet{border-color:var(--line);background:#fff}
.site-bar{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:1rem clamp(1rem,4vw,3rem);gap:1rem}
.logo{width:150px;height:auto;display:block}
.site-bar nav,.app-toolbar nav{display:flex;align-items:center;gap:clamp(.5rem,2vw,1.3rem)}
.home{max-width:1200px;margin:0 auto;padding:0 clamp(1rem,4vw,3rem) 2rem}
.hero{display:grid;grid-template-columns:1.05fr 1fr;min-height:360px;background:white;border:1px solid var(--line);border-radius:24px;overflow:hidden;margin:1rem 0 2rem}
.hero>div{padding:clamp(1.4rem,4vw,3.4rem);align-self:center}
.hero>img{display:block;width:100%;height:100%;object-fit:cover;min-height:240px}
.tag{margin:0 0 .7rem;color:#335d27;font-weight:700}
h1{font-size:clamp(2rem,5vw,3.55rem);line-height:1.05;margin:0 0 1rem;letter-spacing:-.04em}
p{color:var(--muted)}
.code-form{margin-top:1.65rem}
label{display:block;font-weight:650;margin-bottom:.35rem}
.code-row{display:flex;flex-wrap:wrap;gap:.6rem}
.code-row input{border:1px solid #728783;border-radius:10px;width:7rem;min-height:44px;padding:.5rem .8rem;letter-spacing:.25em}
.error{color:#a1281f;font-weight:650}
.app-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.app-card{display:flex;align-items:center;gap:1rem;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:16px;padding:1rem;min-height:94px}
.app-card:hover{border-color:#578e3b;background:#f4faef}
.app-card img{width:52px;height:52px;border-radius:12px;object-fit:contain}
.app-card strong{font-size:1.12rem}
.app-card p{margin:.2rem 0 0;font-size:.88rem}
.app-card span{margin-left:auto}
.tip,footer{font-size:.9rem}
footer{max-width:1200px;margin:auto;padding:0 clamp(1rem,4vw,3rem) 1rem;color:var(--muted)}
.notice{padding:1rem 0;border-bottom:1px solid var(--line)}
.notice summary{cursor:pointer;font-weight:650}
.notice summary span{color:var(--muted);font-weight:500}
.notice pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.app-page{height:100dvh;display:flex;flex-direction:column}
.app-page iframe{border:0;flex:1;width:100%;min-height:0;background:#fff}
.app-toolbar{height:54px;display:flex;gap:.5rem;align-items:center;justify-content:space-between;padding:0 .8rem;background:var(--ink);color:white}
.app-toolbar small{color:#b8ed9d;font-size:.76rem;display:block}
.app-toolbar button{min-height:34px;padding:.25rem .75rem;color:var(--ink)}
#gps{width:min(96vw,560px);max-height:90dvh;border:1px solid var(--line);border-radius:15px;padding:1rem;color:var(--ink)}
#gps::backdrop{background:rgba(18,35,46,.65)}
.gps-title,.gps-settings,.gps-actions{display:flex;gap:.7rem;align-items:center;justify-content:space-between}
.gps-title h2{margin:0;font-size:1.2rem}
.gps-title button{padding:.15rem .8rem}
#gps select{display:block;background:#fff;border:1px solid #849486;border-radius:8px;min-height:40px;padding:.3rem}
#gps{max-height:min(90dvh,720px)}
.gps-help{margin:.5rem 0;font-size:.875rem}
.gps-select{margin-bottom:.6rem}
.gps-map-wrap{position:relative;margin:.45rem 0}
#gps-map{position:relative;width:100%;height:clamp(180px,39dvh,320px);overflow:hidden;background:#e9f1e2;cursor:crosshair;border:1px solid #c2d2be;border-radius:10px}
#gps-map:focus-visible{outline:3px solid #1464ae;outline-offset:2px}
#gps-tiles img{position:absolute;width:256px;height:256px;pointer-events:none}
#gps-pin{position:absolute;width:21px;height:21px;border:3px solid #fff;border-radius:50% 50% 50% 0;background:#145992;box-shadow:0 2px 5px #2349;transform:translate(-50%,-100%) rotate(-45deg);pointer-events:none}
.gps-zoom{position:absolute;top:.4rem;right:.4rem;display:grid;gap:.2rem}
.gps-zoom button{min-height:38px;width:38px;padding:0;font-size:1.2rem}
.gps-credit{position:absolute;bottom:1px;right:1px;background:#fffffff0;padding:.15rem .4rem;font-size:.67rem;border-radius:5px 0 8px 0}
#gps-point{margin:.5rem 0;font-weight:650;font-size:.9rem}
#gps-apply{width:100%}
.gps-motion{margin-top:.7rem;padding-top:.55rem;border-top:1px solid var(--line)}
.gps-motion summary{cursor:pointer;font-weight:650}
@media(max-width:710px){.app-list,.hero{grid-template-columns:1fr}.hero>img{max-height:220px}.app-card{min-height:76px}}
@media(max-width:390px){.app-toolbar a span{display:none}.site-bar{gap:.4rem}.logo{width:115px}}

.demo-notification {
  position: fixed;
  z-index: 4;
  top: 65px;
  right: 14px;
  width: min(380px, calc(100% - 28px));
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8faef;
  border: 1px solid #9bb478;
  color: #233a2d;
  border-radius: 14px;
  box-shadow: 0 8px 28px #1424192a;
}
.demo-notification[hidden] {display: none}
.demo-notification p {margin: 4px 0 0}
.demo-notification button {align-self: flex-start}

@media(max-width:710px) {
  .hero.signed-in {min-height: 0; margin-bottom: 1rem}
  .hero.signed-in>img {display: none}
  .hero.signed-in>div {padding: 1.15rem}
  .hero.signed-in p:last-child {margin-bottom: 0}
  .site-bar nav {gap: .55rem}
  .site-bar nav button {padding-inline: .7rem}
}
@media(max-width:390px) {
  .site-bar {padding-inline: .8rem}
  .site-bar .logo {width: 106px}
  .site-bar nav {font-size: .875rem}
  .site-bar nav button {padding-inline: .55rem}
  .gps-settings {flex-wrap: wrap}
  #gps select {max-width: 100%}
}
