:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#1b302a;background:#f6f7f1;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.topbar{height:76px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));border-bottom:1px solid #e3e9e1;gap:20px}.brand{font-weight:850;font-size:24px;white-space:nowrap;letter-spacing:-1px}.brand span:last-child{color:#c67a34}.brandmark{color:#34765c;font-size:32px;vertical-align:-3px}.topbar nav{display:flex;gap:30px;font-size:14px;font-weight:700;color:#53665e}.topbar nav a:hover,.topbar nav a.active{color:#1e7155}.account,.outline{border:1px solid #d3ddd5;border-radius:999px;background:white;padding:11px 16px;font-size:13px;font-weight:700}.hero{background:linear-gradient(95deg,rgba(13,49,39,.95),rgba(21,71,56,.76)),url('https://images.unsplash.com/photo-1535958636474-b021ee887b13?w=1600&q=85') center/cover;color:white;padding:75px max(24px,calc((100vw - 1180px)/2)) 80px}.eyebrow{font-size:12px;letter-spacing:2.5px;text-transform:uppercase;font-weight:800;color:#b8d9bb}.hero h1{font-size:clamp(40px,5vw,70px);letter-spacing:-2.5px;line-height:1.04;max-width:690px;margin:18px 0}.hero p{max-width:580px;color:#d7e6d8;font-size:18px;line-height:1.6}.searchbar{display:flex;background:white;border-radius:14px;padding:7px;max-width:700px;margin-top:30px;gap:7px;box-shadow:0 8px 28px #102a2533}.searchbar input{flex:1;min-width:0;border:0;outline:0;padding:14px;color:#173b2f}.primary{border:0;background:#cf863d;color:#fff;padding:13px 22px;border-radius:9px;font-weight:800}.primary:hover{background:#b56d2a}.shell{max-width:1180px;margin:0 auto;padding:40px 24px 80px}.sectiontop{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}h2{font-size:29px;letter-spacing:-.8px;margin:0 0 7px}h3{margin:0 0 10px}.muted{color:#687970;font-size:14px;line-height:1.55}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.filters select,.filters input{border:1px solid #dbe4da;border-radius:10px;padding:12px;background:white;min-width:140px;color:#28463b}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.brewcard{border-radius:17px;background:#fff;overflow:hidden;border:1px solid #e4eae2;box-shadow:0 5px 18px #183e2b0c;transition:transform .2s}.brewcard:hover{transform:translateY(-3px)}.cardimage{height:190px;background-size:cover;background-position:center;position:relative}.scorebadge{position:absolute;top:14px;right:14px;background:#fff;color:#1c6e4e;border-radius:12px;padding:9px 12px;font-size:19px;font-weight:850;box-shadow:0 2px 8px #0002}.cardbody{padding:19px}.cardbody h3{font-size:21px;letter-spacing:-.4px}.tags{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.tag{background:#ecf4ec;color:#396d54;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:750}.cardbottom{display:flex;align-items:center;justify-content:space-between;margin-top:16px;gap:10px}.smallbtn{border:1px solid #cddbd0;border-radius:9px;background:#fff;padding:9px 12px;font-size:12px;font-weight:800}.smallbtn.saved{background:#e3f1e5;color:#216246}.empty{padding:45px 25px;text-align:center;border:1px dashed #b6c7b9;border-radius:14px;background:#fff}.back{border:0;background:transparent;color:#377258;font-weight:800;margin-bottom:20px}.profilehero{min-height:300px;background-position:center;background-size:cover;border-radius:18px;position:relative;overflow:hidden}.profilehero:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#102f28a8)}.profileheading{position:absolute;z-index:1;bottom:25px;left:28px;color:#fff}.profileheading h1{font-size:clamp(30px,5vw,49px);margin:0 0 8px;letter-spacing:-1.5px}.twocol{display:grid;grid-template-columns:1.3fr .7fr;gap:24px;margin-top:24px}.panel{background:white;border:1px solid #e1e9e0;border-radius:16px;padding:24px;margin-bottom:20px}.scoreline{display:flex;gap:16px;align-items:center;margin-bottom:15px}.bigscore{font-size:48px;font-weight:900;color:#2c7556;letter-spacing:-2px}.metric{display:grid;grid-template-columns:130px 1fr 40px;gap:12px;align-items:center;margin:12px 0;font-size:13px}.track{height:9px;background:#edf0e9;border-radius:9px;overflow:hidden}.fill{height:100%;background:#70a27e;border-radius:9px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:750}.field input,.field textarea,.field select{border:1px solid #d4e0d5;border-radius:9px;padding:11px;width:100%;background:#fff;color:#173d30}.field textarea{min-height:95px;resize:vertical}.rangefield{margin:12px 0}.rangehead{display:flex;justify-content:space-between;font-size:14px;font-weight:700}.rangefield input{width:100%;accent-color:#2b7757}.review{border-top:1px solid #e4ebe3;padding:17px 0}.review:first-of-type{border:0}.pill{display:inline-block;border-radius:8px;background:#e9f3ea;padding:6px 10px;color:#286344;font-size:12px;font-weight:800}.notice{background:#fff8e8;border:1px solid #f1dfb8;color:#705524;padding:14px 17px;border-radius:12px;margin:18px 0;font-size:13px;line-height:1.6}.featuregrid{display:flex;flex-wrap:wrap;gap:8px}.feature{background:#f0f5ee;border-radius:8px;padding:9px 12px;font-size:13px}.about p,.about li{line-height:1.7}.about{max-width:820px}.accountmodal{position:fixed;inset:0;background:#0d231c99;display:grid;place-items:center;z-index:10;padding:20px}.modalbox{background:#fff;border-radius:18px;padding:28px;max-width:420px;width:100%}.modalbox h2{margin-bottom:10px}.modalbox input{width:100%;padding:12px;border:1px solid #d4e0d5;border-radius:9px;margin:14px 0}.close{float:right;border:0;background:transparent;font-size:23px}footer{background:#173c30;color:#c9ddcf;text-align:center;padding:26px 15px;font-size:12px}@media(max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.twocol{grid-template-columns:1fr}.topbar{padding:0 20px}.topbar nav{gap:12px}.account{display:none}}@media(max-width:550px){.topbar{height:auto;padding:14px 16px;flex-wrap:wrap;gap:8px}.brand{font-size:21px}.topbar nav{width:100%;justify-content:space-between}.hero{padding:55px 20px 60px}.hero h1{font-size:43px}.searchbar{flex-direction:column}.shell{padding:30px 16px 60px}.grid{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.sectiontop{align-items:start;flex-direction:column}.profilehero{min-height:250px}.profileheading{left:18px;bottom:18px}.metric{grid-template-columns:105px 1fr 30px}.panel{padding:18px}}

.foodquestions{background:#f1f6ef;border:1px solid #d7e5d6;padding:18px;border-radius:12px;margin:18px 0}.foodquestions h3{margin:0 0 6px}.foodquestion{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #dce7dc}.foodquestion strong{flex-basis:100%;font-size:14px}.foodquestion label{display:inline-flex;align-items:center;gap:5px;cursor:pointer;font-size:14px}.foodquestion input{accent-color:#2b7757}.rangefield[hidden]{display:none}

/* v1.3 richer brewery profiles */
.profileactions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0 0}.profileactions .primary{display:inline-block}.scorecompare{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:15px 0 24px}.scorecompare>div{padding:18px;background:#f2f7ef;border:1px solid #e0eade;border-radius:13px;min-width:0}.scorecompare .bigscore{margin:6px 0 0}.scorecompare small{font-size:16px;letter-spacing:0;color:#718378}.bigscore.personal{color:#bd7836}.eyebrow.dark{color:#4c745b;letter-spacing:1.4px}.reviewchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.reviewchip{font-size:11px;background:#edf4eb;color:#32614c;border-radius:999px;padding:5px 9px}.foodfacts{display:grid;gap:9px;margin:14px 0}.foodfacts>div{display:flex;justify-content:space-between;gap:10px;padding:12px;background:#f4f7f0;border-radius:9px;font-size:13px}.foodfacts span{color:#536b5b}.profileactions .muted{margin-left:auto}@media(max-width:550px){.scorecompare{grid-template-columns:1fr 1fr;gap:8px}.scorecompare>div{padding:12px}.scorecompare .bigscore{font-size:33px}.profileactions .muted{width:100%;margin-left:0}}

/* v1.5 discovery */
.discoverytools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}.viewbuttons{display:flex;gap:8px}#breweryMap{height:510px;max-height:65vh;min-height:300px;border:1px solid #d5e1d4;border-radius:15px;overflow:hidden;background:#e9f0e8}#cards[hidden],#mapArea[hidden]{display:none}.addmodal{max-width:700px;max-height:90vh;overflow:auto}.addmodal .field{margin-bottom:12px}.featurechoices{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 18px;border:1px solid #dce7dc;border-radius:12px;padding:16px}.featurechoices legend{font-size:13px;font-weight:750}.featurechoices label{font-size:13px}.addmodal textarea{min-height:75px}.addmodal .primary{width:100%}.leaflet-popup-content a{color:#21714c;text-decoration:underline;display:block;margin-top:8px}@media(max-width:550px){.discoverytools{align-items:start}.addmodal{padding:18px}}

.discoveryactions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.discoveryactions .primary{display:inline-flex;align-items:center;text-decoration:none}.filters .field{min-width:190px;flex:1}.filters .field input,.filters .field select{width:100%}@media(max-width:640px){.discoveryactions{width:100%}.discoveryactions>*{flex:1;text-align:center}}

/* Version 1.7: Modern Outdoors visual refresh, top navigation on all screen sizes */
:root{color:#253b31;background:#f7f5ef;--forest:#234735;--pine:#315d46;--amber:#c68b43;--cream:#f7f5ef;--line:#e5e7dd}
body{background:var(--cream);color:#253b31}
.topbar{position:sticky;top:0;z-index:9;min-height:78px;height:auto;background:#fffdf9ee;backdrop-filter:blur(14px);border-bottom:1px solid var(--line);box-shadow:0 2px 16px #193c2710;padding-top:12px;padding-bottom:12px}
.brand{font-size:25px;color:var(--forest);letter-spacing:-1.1px}
.brandmark{display:inline-grid;place-items:center;width:36px;height:36px;background:var(--forest);border-radius:11px;color:#f4e6c7;font-size:24px;vertical-align:-6px;margin-right:6px}
.topbar nav{gap:4px;align-items:center;flex-wrap:wrap}
.topbar nav a{color:#52665a;border-radius:10px;padding:11px 13px;white-space:nowrap;transition:background .2s,color .2s}
.topbar nav a:hover{background:#edf3ea;color:var(--forest)}
.topbar nav a.active{background:#e8f0e6;color:#24593f}
.account,.outline,.smallbtn{border-color:#cddbd0;transition:background .2s,transform .2s}
.account:hover,.outline:hover,.smallbtn:hover{background:#eaf2e8}
.hero{background:linear-gradient(100deg,rgba(16,47,36,.97) 5%,rgba(21,58,43,.86) 55%,rgba(26,60,41,.44)),url('https://images.unsplash.com/photo-1535958636474-b021ee887b13?w=1800&q=85') center/cover;padding-top:95px;padding-bottom:100px}
.hero h1{font-size:clamp(42px,5.4vw,76px);font-weight:850;max-width:740px;line-height:1.06;letter-spacing:-2.7px}
.hero p{font-size:19px;color:#e2e9dd}
.hero .eyebrow{color:#e4c28d}
.searchbar{border-radius:17px;box-shadow:0 14px 45px #10271e50;padding:8px}
.searchbar input{font-size:16px}
.primary{background:var(--amber);border-radius:11px;color:#211b12}
.primary:hover{background:#dda25a}
.shell{padding-top:48px}
.sectiontop h2{font-size:34px;color:var(--forest)}
.brewcard,.panel{border-color:var(--line);box-shadow:0 6px 22px #193d2910}
.brewcard{border-radius:19px}
.brewcard:hover{box-shadow:0 12px 30px #193d2920}
.cardimage{height:205px}
.scorebadge{color:#245e43}
.tag,.pill{background:#e9f0e7;color:#325d44}
.filters{background:#fffdf9;border:1px solid var(--line);padding:14px;border-radius:16px;box-shadow:0 4px 16px #193d2909}
.filters input{flex:2;min-width:210px}
.filters select{flex:1}
.filters input:focus,.filters select:focus,.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #7ca48b;outline-offset:1px}
.profilehero{border-radius:20px;min-height:340px}
.panel{border-radius:18px}
.notice{background:#fcf6e9;border-color:#eee0c3}
footer{background:#1d3c2f}
@media(max-width:1050px){.topbar{justify-content:center;flex-wrap:wrap;gap:8px}.topbar nav{order:3;justify-content:center;width:100%}.account{display:block}.topbar nav a{padding:9px 12px}}
@media(max-width:550px){.topbar{position:relative;padding:12px 14px}.brand{font-size:23px}.topbar nav{display:flex;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:2px;padding-bottom:3px}.topbar nav a{font-size:12px;padding:10px 11px;flex-shrink:0}.account{display:block;padding:8px 11px}.hero{padding:65px 20px 68px}.hero h1{font-size:45px;letter-spacing:-1.8px}.hero p{font-size:16px}.searchbar{gap:8px}.shell{padding-top:30px}.sectiontop h2{font-size:28px}.filters{padding:12px}.filters input,.filters select{width:100%;min-width:0}.cardimage{height:220px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* v1.9 directory filter panel */
.directory-filters{margin:20px 0;padding:18px;border:1px solid #d6e2d7;border-radius:14px;background:#f7faf6}.directory-filters h3{margin:0 0 8px}.directory-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0}.directory-filter-grid .field{min-width:0}.directory-filter-grid select{width:100%;max-width:100%}@media(max-width:600px){.directory-filters{padding:12px}.directory-filter-grid{grid-template-columns:1fr 1fr;gap:8px}}

/* v2.2: adjustable pin confirmation */
.pinconfirm{position:fixed;inset:0;z-index:3000;background:rgba(16,30,22,.75);display:flex;align-items:center;justify-content:center;padding:14px}.pinconfirm-card{background:#fff;border-radius:18px;padding:22px;width:min(620px,100%);max-height:94vh;overflow:auto;box-shadow:0 12px 60px #0004}.pinconfirm-card h2{margin:0 0 8px}.pinconfirm-card p{line-height:1.45}.pinconfirm #pinConfirmMap{height:min(50vh,420px);min-height:260px;border-radius:12px;background:#e5ede6;margin:12px 0}.pinconfirm-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.pinconfirm-actions button{width:auto!important}.pinconfirm-actions button:disabled{opacity:.45;cursor:not-allowed}

/* v2.3 map controls and consistent Leaflet tile display in Safari */
.mapstatus{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0 16px;color:#4b6356;font-size:13px}.mapstatus span{flex:1;min-width:170px}.mapstatus button{padding:7px 12px}.leaflet-container img.leaflet-tile{max-width:none!important;max-height:none!important}.leaflet-container{isolation:isolate}

/* v2.6: Leaflet's own CSS controls tile sizing and positioning. */
#breweryMap .leaflet-tile, #pinConfirmMap .leaflet-tile {
 max-width:none!important;
 max-height:none!important;
}

/* v2.7: iPhone Safari safe-area and reachable pin confirmation controls. */
.pinconfirm{
  box-sizing:border-box;
  height:100vh;
  height:100dvh;
  padding:12px;
  padding-top:max(12px,env(safe-area-inset-top,0px));
  padding-bottom:max(18px,env(safe-area-inset-bottom,0px));
  overflow:hidden;
}
.pinconfirm-card{
  display:flex;
  flex-direction:column;
  max-height:100%;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.pinconfirm-actions{
  position:sticky;
  bottom:0;
  z-index:1100;
  background:#fff;
  border-top:1px solid #e1e9e0;
  margin:14px -22px -22px;
  padding:14px 22px max(18px,env(safe-area-inset-bottom,0px));
  box-shadow:0 -5px 12px #102a2510;
}
@media(max-width:550px){
  .pinconfirm{align-items:stretch;padding:8px 8px max(12px,env(safe-area-inset-bottom,0px))}
  .pinconfirm-card{padding:16px;width:100%;max-height:100%;border-radius:14px}
  .pinconfirm-card h2{font-size:23px}
  .pinconfirm-card p{margin:8px 0}
  .pinconfirm #pinConfirmMap{height:clamp(185px,32dvh,280px);min-height:185px;flex-shrink:0}
  .pinconfirm-actions{margin:12px -16px -16px;padding:12px 16px max(18px,env(safe-area-inset-bottom,0px));flex-wrap:nowrap}
  .pinconfirm-actions button{min-height:48px;padding:10px 12px}
  .pinconfirm-actions #pinAccept{flex:1}
  .pinconfirm-actions #pinCancel{flex:0 0 auto}
}

/* v2.8: Make Add Brewery's Save action reliably tappable on iPhone Safari.
   Keep scrolling inside the form and its action button pinned inside the modal. */
.accountmodal:has(.addmodal){
  height:100vh;
  height:100dvh;
  overflow:hidden;
  overscroll-behavior:contain;
}
.addmodal{
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:min(90vh,90dvh);
  overflow:hidden;
}
.addmodal #addForm{
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding-bottom:0;
}
.addmodal #addForm > button[type="submit"]{
  position:sticky;
  bottom:0;
  z-index:20;
  flex-shrink:0;
  min-height:54px;
  margin-top:18px;
  padding:14px;
  box-shadow:0 -8px 0 8px #fff,0 -12px 14px #102a2514;
}
@media(max-width:550px){
  .accountmodal:has(.addmodal){
    display:flex;
    align-items:stretch;
    justify-content:stretch;
    padding:8px 8px max(12px,env(safe-area-inset-bottom,0px));
  }
  .addmodal{
    width:100%;
    max-width:none;
    max-height:100%;
    height:100%;
    border-radius:14px;
    padding:16px;
  }
  .addmodal #addForm{flex:1;}
  .addmodal #addForm > button[type="submit"]{
    margin-bottom:0;
    padding-bottom:max(14px,env(safe-area-inset-bottom,0px));
  }
}

/* v2.9: iPhone form width and fixed-in-modal actions. */
html,body{max-width:100%;overflow-x:clip}
#app,.shell,.panel,.formgrid,.field,.addmodal,.addmodal #addForm{min-width:0;max-width:100%}
.brewery-modal-open{overflow:hidden}
.accountmodal:has(.addmodal){position:fixed;inset:0;width:100%;max-width:100vw;height:100dvh;overflow:hidden;padding:12px;display:flex;align-items:center;justify-content:center}
.addmodal{display:flex;flex-direction:column;min-width:0;width:min(700px,100%);height:min(90dvh,900px);max-height:calc(100dvh - 24px);padding:20px;overflow:hidden}
.addmodal #addForm{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:0 2px 24px}
.addmodal-actions{flex:0 0 auto;background:#fff;border-top:1px solid #e0e8df;padding:12px 0 max(8px,env(safe-area-inset-bottom,0px));position:relative;z-index:2}
.addmodal-actions .primary{display:block;width:100%;min-height:52px;touch-action:manipulation}
.addmodal .formgrid,.addmodal .featurechoices,.addmodal .field,.addmodal input,.addmodal select,.addmodal textarea{max-width:100%;min-width:0}
.addmodal .featurechoices label{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0;overflow-wrap:anywhere}
.addmodal .featurechoices input[type=checkbox]{width:auto;flex:none}
@media(max-width:600px){
 .accountmodal:has(.addmodal){padding:0;align-items:stretch;justify-content:stretch}
 .addmodal{width:100%;height:100%;height:100dvh;max-height:100dvh;max-width:100%;border-radius:0;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 0}
 .addmodal #addForm{flex:1 1 0;padding-bottom:28px}
 .addmodal-actions{margin:0 -16px;padding:12px 16px calc(18px + env(safe-area-inset-bottom,0px))}
 .addmodal input,.addmodal select,.addmodal textarea{font-size:16px}
 .addmodal .formgrid{grid-template-columns:minmax(0,1fr)}
 .directory-filter-grid{grid-template-columns:minmax(0,1fr)}
 .topbar,.topbar nav,.filters,.searchbar{max-width:100%;min-width:0}
 .hero h1{overflow-wrap:anywhere;font-size:clamp(32px,10vw,45px)}
}

/* v3.1: persistent, visible validation feedback for iPhone form actions */
.addmodal-actions .save-feedback{margin:0 0 8px;font-size:13px;line-height:1.4;color:#35604c;min-height:0}
.addmodal-actions .save-feedback:empty{display:none}
.addmodal-actions .save-feedback.error{color:#a12e25;font-weight:700}
.addmodal-actions .primary:disabled{opacity:.65}

/* v3.2 Discover search and nearby search */
.nearby-hero{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:14px}
.nearby-hero #nearbyHint{font-size:.86rem;color:#f0eee2}
.nearby-button{min-height:46px;background:#fff!important;color:#183f35!important;border:2px solid #d9ae55!important}
.directory-quick{margin:0 0 16px;padding:18px}
.directory-quick-actions{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.directory-quick-actions button{min-height:46px}
.directory-quick-actions .field{min-width:130px;max-width:180px}
@media(max-width:600px){.nearby-hero{align-items:stretch;flex-direction:column}.nearby-hero button{width:100%}.directory-quick-actions{flex-direction:column;align-items:stretch}.directory-quick-actions .field{max-width:none;width:100%}}

/* v3.4: mobile-first nearby map */
.maptoolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px}.maptoolbar label{font-size:13px;font-weight:750;display:flex;align-items:center;gap:6px}.maptoolbar select{padding:9px;border:1px solid #cbdacb;border-radius:9px;background:white}.maptoolbar [role=status]{flex:1;min-width:180px;font-size:13px;color:#456154}.maptoolbar button:disabled{opacity:.6}#demoNotice[hidden]{display:none}.brewery-pin-wrapper{background:transparent;border:0}.brewery-pin{display:grid;place-items:center;width:34px;height:34px;background:#f8f0d7;border:2px solid #25543f;border-radius:50%;box-shadow:0 2px 7px #0004;font-size:19px}.location-pin{display:grid;place-items:center;width:24px;height:24px;border:3px solid white;background:#1d80dc;color:#1d80dc;border-radius:50%;box-shadow:0 0 0 2px #1d80dc,0 2px 8px #0004;font-size:0}@media(max-width:550px){#breweryMap{height:calc(100dvh - 245px);min-height:370px;max-height:680px}.maptoolbar{gap:8px}.maptoolbar [role=status]{flex-basis:100%}.mapstatus button{font-size:11px}}

/* v3.5: prioritize the real map on the dedicated Map tab. */
#app.map-page .hero,#app.map-page .filters,#app.map-page .discoveryactions,#app.map-page .sectiontop .muted{display:none!important}
#app.map-page .shell{padding-top:16px}
#app.map-page .sectiontop{margin-bottom:10px}
#app.map-page #breweryMap{height:min(70dvh,700px);max-height:none;min-height:390px}
.brewery-pin-wrapper{background:transparent!important;border:0!important}
.brewery-pin{display:grid;place-items:center;width:36px;height:36px;background:#f6e6b9;border:2px solid #25543f;border-radius:50%;box-shadow:0 2px 7px #0004}
.brewery-pin svg{display:block}
@media(max-width:550px){#app.map-page .shell{padding:12px 12px 50px}#app.map-page #breweryMap{height:calc(100dvh - 265px);min-height:380px;max-height:none}#app.map-page .sectiontop h2{font-size:23px}#app.map-page .maptoolbar{margin-bottom:8px}}

/* Version 3.6: enforce inline SVG marker display, including Safari. */
.leaflet-marker-icon.brewery-pin-wrapper{background:none!important;border:0!important;overflow:visible!important}
.leaflet-marker-icon.brewery-pin-wrapper .brewery-pin{display:flex!important;align-items:center;justify-content:center;width:36px;height:36px;box-sizing:border-box}
.leaflet-marker-icon.brewery-pin-wrapper .brewery-pin svg{width:22px!important;height:22px!important;display:block!important}

/* v3.7: clear, touch-friendly brewery map popups */
.brewery-map-popup{min-width:210px;line-height:1.4;color:#244137}
.map-popup-name{display:block;font-size:16px;line-height:1.3;margin-bottom:6px}
.map-popup-address,.map-popup-distance{margin-top:5px;font-size:13px}
.map-popup-rating{font-weight:700;margin-top:9px;color:#245b40;font-size:13px}
.map-popup-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.map-popup-actions .map-popup-button{display:inline-flex;align-items:center;justify-content:center;flex:1 1 95px;min-height:40px;padding:8px 10px;border:1px solid #275640;border-radius:8px;background:#fff;color:#24563e;font:inherit;font-size:12px;font-weight:750;text-align:center;cursor:pointer;text-decoration:none;margin:0}
.map-popup-actions .map-popup-directions{background:#24563e;color:white;border-color:#24563e;text-decoration:none}

/* v3.8 journal passport */
.journal-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.journal-stats .panel{margin:0;padding:16px}.journal-stats strong{display:block;font-size:clamp(22px,3vw,34px);color:#24563e;margin-top:7px}.journal-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.journal-page .field{display:flex;flex-direction:column;gap:6px}.journal-page textarea,.journal-page input,.journal-page select{max-width:100%;box-sizing:border-box}.journal-visit{padding:16px 0;border-bottom:1px solid #d8e0d9}.journal-visit:last-child{border-bottom:0}.journal-visit-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.journal-notes{white-space:pre-wrap;overflow-wrap:anywhere}.journal-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.journal-page #journalVisitList{margin-top:12px}@media(max-width:650px){.journal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-form-grid{grid-template-columns:1fr}.journal-visit-head{flex-wrap:wrap}}

/* v4.0 national directory browsing */
.directory-browse{margin-bottom:1rem}
.directory-pager{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap;margin:1.5rem 0}
.directory-pager button[hidden]{display:none}
.directory-browse .directory-quick-actions{align-items:end;flex-wrap:wrap}
.directory-browse .field{min-width:170px;flex:1}

/* v5.0: make selected filter evidence immediately visible without treating unknown as no */
.directory-match-card{overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}
.directory-match-card.directory-confirmed{border:2px solid #288354;box-shadow:0 3px 14px rgba(26,112,65,.13)}
.directory-match-card.directory-unverified{border:2px solid #b9c2bf}
.match-heading{display:flex;align-items:center;gap:9px;padding:10px 12px;margin:-2px -2px 14px;border-radius:8px;font-size:.88rem;line-height:1.35}
.match-heading-confirmed{background:#e3f5e9;color:#185c35}
.match-heading-unknown{background:#f0f2f1;color:#52615c}
.match-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:50%;font-weight:800;font-size:16px;background:#288354;color:#fff}
.match-heading-unknown .match-icon{background:#74827c}
.match-evidence{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 13px}
.match-evidence-item{display:inline-flex;align-items:center;gap:4px;padding:6px 9px;border-radius:8px;font-size:.78rem;font-weight:650;line-height:1.3}
.evidence-yes{background:#e3f5e9;color:#185c35}
.evidence-unknown{background:#f0f2f1;color:#52615c}
@media(max-width:600px){.match-heading{font-size:.82rem}.match-evidence-item{font-size:.76rem}}

/* v5.1: directions button in About this brewery */
.brewery-directions{display:inline-flex;align-items:center;justify-content:center;text-align:center;max-width:100%;line-height:1.4;text-decoration:none}
@media(max-width:550px){.brewery-directions{display:flex;width:100%}}

/* v5.2: filter actions together, including on small screens */
.directory-filter-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.directory-filter-actions button{min-height:44px}
@media(max-width:600px){.directory-filter-actions button{flex:1 1 145px}}

/* v5.3: Directory search and experience filters in one compact panel */
#directoryForm{background:#f7faf6;border:1px solid #d6e2d7;border-radius:18px;padding:18px;box-shadow:0 4px 16px #193d2909}
#directoryForm>.filters{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0 0 12px;margin:0;gap:10px}
#directoryForm>.directory-filters{background:transparent;border:0;border-top:1px solid #d6e2d7;border-radius:0;margin:0;padding:12px 0 0}
#directoryForm .directory-filters h3{margin:0 0 4px}
#directoryForm .directory-filters .muted{margin:4px 0 8px}
#directoryForm .directory-filter-grid{margin:10px 0;gap:10px}
#directoryForm>.muted{margin:12px 0 0;font-size:.85rem}
@media(max-width:600px){#directoryForm{padding:12px}#directoryForm>.filters{padding-bottom:10px}#directoryForm>.directory-filters{padding-top:10px}}

/* v5.6: map viewport search */
.map-auto-toggle{display:flex;align-items:center;gap:9px;margin:9px 0 12px;font-size:14px;font-weight:700;color:#214a38}.map-auto-toggle input{width:18px;height:18px;accent-color:#28734c}

/* v5.8: Brewery Information summary */
.brewery-info{margin:0 0 22px}.brewery-info-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.brewery-info-head h2{margin:0 0 8px}.info-key{font-size:12px;color:#527364;background:#eef4ed;padding:8px 12px;border-radius:18px}.brewery-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:12px;margin-top:16px}.brewery-info-item{background:#f3f6f0;border:1px solid #e0e8dd;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:7px}.brewery-info-item strong{font-size:14px}.brewery-info-item span{font-size:14px}.brewery-info-item small{font-size:11px;color:#64776c}.brewery-info-links{display:flex;gap:20px;flex-wrap:wrap;margin-top:17px}.brewery-info-links a{font-weight:700;color:#286448}

/* v5.8.1: recently viewed on Discover, without affecting the Map view */
.recent-discover > :not(.recent-panel){display:none!important}
.shell:not(.recent-discover) > .recent-panel{display:none!important}
.recent-panel{padding:8px 0 26px}
.recent-panel .sectiontop{margin-bottom:18px}
.recent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.recent-item{display:flex;align-items:center;gap:12px;padding:16px;background:#fff;border:1px solid #dce6df;border-radius:14px;color:#183f35;text-decoration:none;min-width:0}
.recent-item:hover,.recent-item:focus-visible{border-color:#438164;box-shadow:0 4px 14px #183f3514}
.recent-item span:nth-child(2){flex:1;min-width:0}
.recent-item strong{display:block;overflow-wrap:anywhere}
.recent-item small{display:block;color:#627369;margin-top:4px}
.recent-beer{font-size:22px}
#clearRecent:disabled{opacity:.5;cursor:not-allowed}

/* v5.8.2: invite missing brewery submissions inside an empty search result */
.directory-empty{grid-column:1/-1;text-align:center;padding:28px 20px}.directory-empty .primary{margin:8px auto 4px}.directory-empty .muted{font-size:12px;margin-top:9px}

/* v5.8.4: compact, two-column brewery information */
.brewery-info{padding:22px 24px;margin-bottom:22px}
.brewery-info h2{margin:0;font-size:clamp(1.3rem,2.5vw,1.75rem)}
.brewery-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;row-gap:0;margin-top:16px}
.brewery-info-item{display:flex;flex-direction:column;gap:3px;padding:11px 0;background:none;border:0;border-bottom:1px solid #e8eee8;border-radius:0;min-width:0}
.brewery-info-item .brewery-info-label{color:#66776d;font-size:13px}
.brewery-info-item strong{font-size:15px;font-weight:650;color:#203b31;overflow-wrap:anywhere}
.brewery-info-links{margin-top:17px;gap:22px}
.brewery-info-note{font-size:12px;color:#697b70;margin:15px 0 0;line-height:1.5}
@media(max-width:600px){.brewery-info{padding:17px 15px}.brewery-info-grid{column-gap:18px}.brewery-info-item strong{font-size:14px}}

.approx-brewery-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}.approx-brewery-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dce6dd;padding:9px 0;flex-wrap:wrap}.approx-brewery-list span{flex:1;min-width:220px}

/* Group repeat visits under one brewery, with a date badge for each visit. */
.journal-group-dates{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.journal-group-visit{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-top:1px solid #e2e9df}
.visit-date-badge{flex:0 0 66px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #d8e4d8;border-radius:10px;overflow:hidden;background:#fff;color:#244d3b;text-align:center;line-height:1.1}
.visit-date-badge span{display:block;width:100%;background:#244d3b;color:white;font-size:11px;font-weight:700;letter-spacing:.06em;padding:5px 0}
.visit-date-badge strong{font-size:27px;padding-top:5px;font-weight:800}
.visit-date-badge small{font-size:11px;padding:2px 0 7px;color:#66776b}
.journal-group-visit-detail{flex:1;min-width:0}
.journal-group-visit-detail .journal-visit-head{gap:10px}
.journal-group-visit-detail .journal-actions{margin-top:8px}
@media(max-width:540px){.journal-group-visit{gap:9px}.visit-date-badge{flex-basis:56px}.visit-date-badge strong{font-size:23px}}

/* v5.9.21: reliable calendar tile layout */
.journal-group-visit{display:flex;align-items:flex-start;gap:16px}
.journal-group-visit .visit-date-badge{box-sizing:border-box;flex:0 0 82px;width:82px;min-width:82px;max-width:82px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.journal-group-visit .visit-date-badge span,.journal-group-visit .visit-date-badge strong,.journal-group-visit .visit-date-badge small{display:block;text-align:center}

/* v5.9.22: compact visit-date calendar and tighter visit spacing */
.journal-group-dates{gap:6px;margin-top:10px}
.journal-group-visit{gap:10px;padding:8px 0}
.journal-group-visit .visit-date-badge{box-sizing:border-box;flex:0 0 54px;width:54px;min-width:54px;max-width:54px;border-radius:8px;line-height:1.05}
.journal-group-visit .visit-date-badge span{font-size:9px;letter-spacing:.04em;padding:3px 0}
.journal-group-visit .visit-date-badge strong{font-size:19px;line-height:1.1;padding-top:3px}
.journal-group-visit .visit-date-badge small{font-size:9px;padding:1px 0 4px}
.journal-group-visit-detail .journal-actions{margin-top:6px}
@media(max-width:540px){.journal-group-visit{gap:8px}.journal-group-visit .visit-date-badge{flex-basis:50px;width:50px;min-width:50px;max-width:50px}}

/* v5.9.23: genuinely half-sized calendar; no inline style overrides */
.journal-group-visit{gap:7px;padding:5px 0}
.journal-group-dates{gap:3px;margin-top:7px}
.journal-group-visit .visit-date-badge{box-sizing:border-box;flex:0 0 28px;width:28px;min-width:28px;max-width:28px;border-radius:4px;line-height:1;overflow:hidden}
.journal-group-visit .visit-date-badge span{font-size:6px;letter-spacing:0;padding:2px 0}
.journal-group-visit .visit-date-badge strong{font-size:12px;line-height:1;padding:2px 0 1px}
.journal-group-visit .visit-date-badge small{font-size:6px;line-height:1;padding:1px 0 2px}
@media(max-width:540px){.journal-group-visit .visit-date-badge{flex:0 0 28px;width:28px;min-width:28px;max-width:28px}}

/* v5.9.24: compact user-photo gallery in the profile cover's lower right */
.profilehero{position:relative;overflow:hidden}
.brewery-photo-gallery{position:absolute;right:16px;bottom:16px;z-index:2;display:flex;flex-direction:column;align-items:flex-end;gap:7px;max-width:min(46%,320px)}
.brewery-photo-thumbnails{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-height:142px;overflow-y:auto}
.brewery-photo-tile{position:relative;width:61px;height:61px;border:2px solid #fff;border-radius:9px;overflow:visible;background:#fff;box-shadow:0 2px 9px #0005}
.brewery-photo-preview{display:block;width:100%;height:100%;border:0;padding:0;background:transparent;border-radius:7px;overflow:hidden}
.brewery-photo-preview img{width:100%;height:100%;object-fit:cover}
.brewery-photo-delete{position:absolute;right:-7px;top:-9px;border:0;background:#fff;color:#1d3c2f;border-radius:50%;width:21px;height:21px;line-height:18px;font-size:17px;box-shadow:0 1px 5px #0006}
.brewery-photo-add{background:#fff;color:#1d3c2f;border-radius:10px;padding:9px 13px;cursor:pointer;font-size:14px;font-weight:750;box-shadow:0 2px 9px #0005}
.brewery-photo-add:focus-within{outline:3px solid #e8b169}
.brewery-photo-status{color:#fff;font-size:10px;text-align:right;text-shadow:0 1px 4px #000;max-width:230px}
.brewery-photo-status:empty{display:none}
.brewery-photo-lightbox{position:fixed;inset:0;background:#000d;z-index:9999;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:25px}
.brewery-photo-lightbox img{max-width:95vw;max-height:78vh;object-fit:contain}
.brewery-photo-lightbox button{background:white}
@media(max-width:650px){.brewery-photo-gallery{right:9px;bottom:9px;max-width:48%}.brewery-photo-tile{width:44px;height:44px}.brewery-photo-add{font-size:12px;padding:7px 9px}.brewery-photo-thumbnails{max-height:100px}}

/* Visit History: keep the reset control visible below the four dropdowns. */
.journal-clear-filters-row{display:flex;justify-content:flex-end;margin:-8px 0 20px;clear:both}
.journal-clear-filters-row #journalClearFilters{display:inline-flex;align-items:center;justify-content:center;visibility:visible;white-space:nowrap;min-height:38px}
@media(max-width:550px){.journal-clear-filters-row{justify-content:flex-start;margin:0 0 18px}}

/* v5.9.29: account screen preview */
.authbox{max-width:520px;width:min(94vw,520px);max-height:90vh;overflow-y:auto}
.authheading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.authheading h2{margin:0}.authheading p{margin:4px 0 0}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:16px 0;padding:5px;background:#eef3ee;border-radius:12px}
.auth-tab{border:0;background:transparent;padding:11px 8px;border-radius:9px;font-weight:700;cursor:pointer;color:#284b41}
.auth-tab.active{background:#fff;box-shadow:0 1px 5px #0002}
.authbox form .field{display:block;margin:12px 0}.authbox form .field input{width:100%;box-sizing:border-box}
.auth-status{padding:12px;border-radius:10px;background:#f0f4ed;color:#345146;font-size:0.9rem;line-height:1.5}
.auth-demo{border-top:1px solid #d9e5da;margin-top:18px;padding-top:14px}.auth-demo h3{margin:0 0 6px}.auth-demo .outline{margin:5px 0}
[hidden]{display:none!important}

/* v5.9.30: local member profile and privacy */
.member-page{max-width:950px}.member-page .panel{margin:18px 0}.member-username{font-weight:800;font-size:1.2rem;margin:4px 0 22px}
.member-page .field{display:block;margin:12px 0}.member-page .field input,.member-page .field textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px}
.member-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.member-privacy-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 18px}
.member-privacy-line{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #dce6dc;border-radius:10px;padding:12px;background:#f9fbf8}
.member-privacy-line input{width:19px;height:19px;flex-shrink:0;accent-color:#27654a}
.member-privacy-line small{display:block;color:#617369;margin-top:4px}
.member-public-rule{padding:12px;background:#eef4ee;border-radius:10px;margin:14px 0 18px}
.member-public-rule p{margin:5px 0 0}.member-avatar-row{display:flex;align-items:center;gap:12px}
.member-avatar{width:74px;height:74px;border-radius:50%;object-fit:cover}
#memberSaveStatus{margin-left:12px}
@media(max-width:650px){.member-fields,.member-privacy-grid{grid-template-columns:1fr}}

/* v5.9.31 About and community guidelines */
.about-guidelines{padding-left:1.5rem;line-height:1.65}.about-guidelines li{margin:0 0 12px}.about button[disabled]{opacity:.6;cursor:not-allowed}

/* v5.9.33 — keep photo controls above the brewery name on phones and desktop. */
.brewery-photo-gallery{top:16px;bottom:auto;right:16px;max-width:min(46%,320px)}
@media(max-width:650px){
 .brewery-photo-gallery{top:9px;bottom:auto;right:9px;max-width:52%;gap:5px}
 .brewery-photo-thumbnails{max-height:100px}
 .brewery-photo-add{white-space:nowrap}
 .profileheading{right:12px}
}

/* v5.9.34: no sideways scrolling to reach mobile navigation links */
.mobile-menu-btn{display:none;border:1px solid #d3ddd5;border-radius:10px;background:#fff;color:#214e3c;padding:10px 13px;font-weight:800;cursor:pointer}
@media(max-width:650px){
 .topbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px;height:auto}
 .topbar .brand{flex:1 1 auto;min-width:0}
 .mobile-menu-btn{display:block;order:2}
 .topbar .account{display:block;order:3;padding:8px 11px}
 .topbar nav#mainNav{display:none;order:4;flex:0 0 100%;width:100%;max-width:100%;overflow:visible;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:3px;padding:8px 0 4px;border-top:1px solid #e3e9e1}
 .topbar nav#mainNav.is-open{display:flex}
 .topbar nav#mainNav a{display:block;flex-shrink:1;width:100%;font-size:15px;padding:13px 14px;white-space:normal}
}

/* v5.9.35 — visible 4 × 2 icon navigation on iPhone, no swipe or menu needed. */
.topbar nav#mainNav a.mobile-extra{display:none}
@media(max-width:650px){
 .topbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:12px 12px;height:auto}
 .topbar .brand{order:1;flex:1 1 auto;min-width:0}
 .topbar .account{order:2;display:block;padding:8px 11px}
 .mobile-menu-btn{display:none!important}
 .topbar nav#mainNav,.topbar nav#mainNav.is-open{order:3;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;flex:0 0 100%;gap:7px;overflow:visible;flex-wrap:initial;padding:9px 0 2px;border-top:1px solid #e3e9e1}
 .topbar nav#mainNav a,.topbar nav#mainNav a.mobile-extra{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;min-width:0;min-height:65px;width:auto;padding:8px 3px;border:1px solid #dce7dc;border-radius:11px;background:#f4f8f3;color:#285541;font-size:10.5px;line-height:1.2;white-space:normal;font-weight:750}
 .topbar nav#mainNav a::before{content:'⌂';font-size:23px;line-height:1;color:#34765c;font-weight:500}
 .topbar nav#mainNav a[data-nav="map"]::before{content:'▧'}
 .topbar nav#mainNav a[data-nav="directory"]::before{content:'⌕'}
 .topbar nav#mainNav a[data-nav="journal"]::before{content:'▤'}
 .topbar nav#mainNav a[data-nav="add"]::before{content:'⊕'}
 .topbar nav#mainNav a[data-nav="about"]::before{content:'ⓘ'}
 .topbar nav#mainNav a[data-nav="recent"]::before{content:'◷'}
 .topbar nav#mainNav a[data-nav="my-profile"]::before{content:'♙'}
 .topbar nav#mainNav a.active{background:#e0efe3;border-color:#8ebca1;color:#174a34}
 .topbar nav#mainNav a[data-nav="discover"]{order:1}
 .topbar nav#mainNav a[data-nav="directory"]{order:2}
 .topbar nav#mainNav a[data-nav="map"]{order:3}
 .topbar nav#mainNav a[data-nav="journal"]{order:4}
 .topbar nav#mainNav a[data-nav="recent"]{order:5}
 .topbar nav#mainNav a[data-nav="add"]{order:6}
 .topbar nav#mainNav a[data-nav="about"]{order:7}
 .topbar nav#mainNav a[data-nav="my-profile"]{order:8}
 #recentPanel{scroll-margin-top:12px}
}

/* v5.9.36: iPhone account dialog — readable, tappable local demo button and scroll. */
.accountmodal:has(.authbox){
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.authbox .local-demo-continue{
  display:block;
  width:100%;
  min-height:50px;
  padding:13px 16px;
  border:2px solid #a96b2c;
  border-radius:12px;
  background:#cf863d;
  color:#211b12;
  font-size:16px;
  font-weight:800;
  line-height:1.35;
  text-align:center;
  white-space:normal;
  opacity:1;
  -webkit-text-fill-color:#211b12;
  appearance:none;
  -webkit-appearance:none;
  touch-action:manipulation;
}
.authbox .local-demo-continue span{color:inherit;-webkit-text-fill-color:inherit}
@media(max-width:650px){
  .accountmodal:has(.authbox){
    display:block;
    padding:12px 10px max(24px,env(safe-area-inset-bottom));
    height:100vh;
    height:100dvh;
  }
  .accountmodal .authbox{
    display:block;
    width:100%;
    max-width:520px;
    max-height:none;
    min-height:0;
    margin:0 auto;
    padding:20px 16px 30px;
    overflow:visible;
    -webkit-overflow-scrolling:touch;
  }
  .authbox .auth-demo{padding-bottom:20px}
  .authbox #localDemoForm .field input{font-size:16px}
  .authbox .local-demo-continue{margin:12px 0 8px}
}
