:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #302c28; background: #eeeae5; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #faf8f5; }
button, input, select { font: inherit; }
.shell { min-height: 100vh; }
.auth-panel { display: flex; min-height: 100vh; flex-direction: column; align-items: center; padding: 30px 18px; background: radial-gradient(circle at top, #f2eee9 0, #faf8f5 42%); }
.auth-header { display: flex; justify-content: space-between; align-items: center; }
.auth-header { width: min(100%, 760px); }
.wordmark { font-family: Georgia, serif; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.language-wrap select { border: 1px solid #d9d2ca; border-radius: 999px; padding: 8px 28px 8px 12px; background: white; color: #514b45; font-size: 13px; }
.brand-logo { width: min(68vw, 320px); max-height: 180px; margin: 42px 0 24px; object-fit: contain; border-radius: 20px; }
.auth-card { width: min(100%, 480px); padding: 52px; background: #fff; border: 1px solid #e3ddd6; border-radius: 28px; box-shadow: 0 24px 70px rgba(75,65,56,.1); }
.eyebrow { margin: 0 0 12px; color: #6f665f; font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(36px, 4vw, 50px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.lede { margin: 18px 0 34px; color: #756d66; line-height: 1.65; }
label { display: block; margin-bottom: 9px; color: #4f4943; font-size: 14px; font-weight: 650; }
input[type="email"], .code-input { width: 100%; border: 1px solid #d5cec6; border-radius: 14px; padding: 15px 16px; background: #fdfcfb; outline: none; transition: .2s; }
input:focus { border-color: #76685c; box-shadow: 0 0 0 4px rgba(118,104,92,.14); background: white; }
.code-input { text-align: center; font-size: 27px; font-weight: 750; letter-spacing: .34em; padding-left: calc(16px + .34em); }
.field-error { min-height: 20px; margin: 7px 0 5px; color: #a53e3e; font-size: 13px; }
.primary, .secondary { width: 100%; min-height: 52px; border-radius: 14px; border: 0; cursor: pointer; font-weight: 750; transition: .2s; }
.primary { display: flex; justify-content: center; gap: 12px; align-items: center; background: #65594f; color: white; }
.primary:hover:not(:disabled) { background: #51463e; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(81,70,62,.22); }
.primary:disabled { opacity: .42; cursor: not-allowed; }
.secondary { margin-top: 20px; color: #5f554c; background: #eee9e3; }
.back { margin: -18px 0 32px; border: 0; background: transparent; color: #70665e; cursor: pointer; font-size: 22px; }
.remember-row { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; margin: 18px 0 22px; cursor: pointer; }
.remember-row input { width: 18px; height: 18px; accent-color: #65594f; }
.remember-row strong, .remember-row small { display: block; }
.remember-row small { margin-top: 3px; color: #817971; font-weight: 400; line-height: 1.4; }
.text-button { display: block; margin: 18px auto 0; border: 0; background: transparent; color: #6b5f55; cursor: pointer; }
.text-button:disabled { color: #99918a; cursor: default; }
.success-mark { display: grid; width: 52px; height: 52px; margin-bottom: 26px; place-items: center; border-radius: 50%; background: #e9e3dc; color: #6f6258; font-size: 24px; }
.placeholder-card { display: flex; align-items: center; gap: 16px; margin: 28px 0 12px; padding: 18px; border-radius: 16px; background: #f2efeb; color: #736a62; }
.placeholder-card span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #5a5047; color: white; font-weight: 800; }
.placeholder-card p { margin: 0; }
footer { margin-top: auto; padding-top: 32px; text-align: center; color: #918982; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.header-controls { display:flex; align-items:center; gap:12px; }
.header-controls label { margin:0; }
.captcha { margin:16px 0; }
.captcha > p:first-child { font-size:13px; color:#6f665f; }
.captcha .text-button { margin:4px 0 12px; }
.icon-button { display:grid; place-items:center; width:44px; height:44px; border:1px solid #d9d2ca; border-radius:50%; background:white; color:#5f554c; cursor:pointer; font-size:28px; }
.icon-button svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
button:focus-visible, select:focus-visible { outline:3px solid #8b796b; outline-offset:3px; }
.admin-symbol { font-size:68px; color:#6b5f55; line-height:1; margin:0 0 12px; }
#global-error:empty { display:none; }
input[type="password"] { width:100%; border:1px solid #d5cec6; border-radius:14px; padding:15px 16px; background:#fdfcfb; margin-bottom:16px; }
.auth-card.wide { width:min(100%,960px); }
#admin-step h1, #password-step h1, #email-step h1 { overflow-wrap:anywhere; }
#admin-step h1, #password-step h1 { font-size:clamp(28px,4vw,42px); }
.table-scroll { overflow-x:auto; margin-top:24px; }
table { border-collapse:collapse; width:100%; text-align:left; }
th,td { padding:12px 10px; border-bottom:1px solid #e3ddd6; font-size:14px; }
th { color:#6f665f; font-weight:650; }
td:first-child { overflow-wrap:anywhere; min-width:160px; }
td button { border:0; border-radius:8px; padding:10px; margin:3px; background:#eee9e3; color:#5f554c; cursor:pointer; }
td button.danger { color:#a53e3e; background:#fff1ee; }
.pagination,.editor-actions { display:flex; align-items:center; gap:16px; justify-content:space-between; }
.pagination .text-button { margin:18px 0; }
.user-editor { margin-top:24px; padding-top:20px; border-top:1px solid #d9d2ca; }
.editor-actions .secondary { margin:0; }
button:disabled { cursor:default; opacity:.5; }
[hidden] { display: none !important; }
textarea,#qr-title { width:100%; padding:14px; border:1px solid #d5cec6; border-radius:12px; font:inherit; background:#fdfcfb; }
textarea { min-height:130px; resize:vertical; }
.qr-field { margin:28px 0; padding-top:24px; border-top:1px solid #e3ddd6; }
#qr-owner-email { display:block; grid-column:1 / -1; margin:0 0 20px; overflow-wrap:anywhere; }
.sticker-flags { display:flex; flex-wrap:wrap; align-items:start; gap:12px 24px; }
.sticker-flags .remember-row { margin:0; }
.qr-graphic { display:block; width:min(100%,300px); margin:0 auto 18px; padding:0; border:0; background:white; cursor:pointer; border-radius:12px; }
.qr-graphic svg { display:block; width:100%; height:auto; }
.qr-photo { display:block; max-width:100%; max-height:420px; object-fit:contain; margin:18px auto; border-radius:12px; }
.qr-public { margin-bottom:24px; }
.qr-description { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
#public-title { overflow-wrap:anywhere; }
.qr-hint { font-size:14px; color:#6b5f55; text-align:center; }
.create-qr svg { width:32px; height:32px; fill:none; stroke:currentColor; stroke-width:1.8; flex-shrink:0; }
.create-qr { padding:18px; }
#qr-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:18px; margin-top:20px; }
#qr-list .qr-card { display:flex; flex-direction:column; align-items:stretch; gap:12px; text-align:left; width:100%; min-width:0; border:1px solid #d9d2ca; background:#f2efeb; border-radius:16px; padding:18px; margin:0; overflow:hidden; overflow-wrap:anywhere; cursor:pointer; color:#302c28; }
.qr-card:hover { box-shadow:0 8px 24px #51463e1f; }
.qr-card strong { font-size:20px; line-height:1.3; }
.qr-card-title { display:flex; align-items:flex-start; gap:12px; min-width:0; }
.qr-card-title strong { min-width:0; flex:1; overflow-wrap:anywhere; }
.sticker-card-badge { width:30px; height:30px; object-fit:contain; flex:none; }
.sticker-claim-image { display:block; width:min(72vw,300px); height:auto; margin:0 auto 22px; }
.editor-sticker-badge { display:flex; margin:0 0 0 auto; position:relative; z-index:1; }
.dialog-actions .danger { width:100%; border:1px solid #b42318; border-radius:12px; padding:13px 16px; background:#fff1ee; color:#a1261d; font:inherit; font-weight:700; cursor:pointer; }
.qr-card-description { display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-wrap; line-height:1.5; color:#736a62; }
.qr-card-photo { width:100%; height:190px; object-fit:contain; background:#eeeae5; border-radius:10px; margin-top:auto; }
.qr-card-photo-error { font-size:12px; color:#a53e3e; }
body.qr-home .auth-card { width:min(100%,960px); }
.zoomable { cursor:zoom-in; }
.zoomable:focus-visible { outline:3px solid #8b796b; outline-offset:4px; }
#qr-share-link { width:100%; padding:12px; border:1px solid #d5cec6; border-radius:8px; }
#photo-viewer { width:calc(100vw - 24px); max-width:1200px; height:92dvh; max-height:92dvh; padding:14px; overflow:hidden; background:#24211f; color:white; }
body.photo-view-open { overflow:hidden; }
#photo-viewer::backdrop { background:#000c; }
.photo-toolbar { display:flex; align-items:center; justify-content:center; gap:12px; height:48px; }
.photo-toolbar .secondary { width:auto; margin:0; padding:10px; background:white; }
.photo-toolbar output { min-width:48px; text-align:center; }
#photo-stage { position:relative; width:100%; height:calc(100% - 104px); margin-top:12px; overflow:hidden; touch-action:none; cursor:grab; }
#photo-stage:active { cursor:grabbing; }
#photo-full { position:absolute; left:50%; top:50%; max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; transform-origin:center; user-select:none; pointer-events:none; }
.photo-view-help { text-align:center; font-size:12px; color:#ddd7d1; margin:10px 0; }
@media (max-width:480px) {
  .photo-toolbar { gap:6px; }
  .photo-toolbar .icon-button { width:36px; height:36px; flex-shrink:0; }
  .photo-toolbar .secondary { max-width:96px; min-height:36px; padding:6px; font-size:12px; line-height:1.2; }
  .photo-toolbar output { min-width:42px; font-size:13px; }
  .photo-view-help { font-size:11px; }
}
@media print {
  @page { size:A4; margin:20mm; }
  body.qr-print { background:white; }
  body.qr-print > :not(#qr-print-sheet) { display:none !important; }
  body.qr-print #qr-print-sheet { display:block !important; text-align:center; padding-top:40mm; }
  #qr-print-image { display:block; width:120mm; height:120mm; margin:auto; }
  body.qr-print-page #qr-print-sheet { padding-top:0; }
  body.qr-print-page #qr-print-image { width:60mm; height:60mm; }
  #qr-print-context { text-align:left; overflow-wrap:anywhere; }
  #qr-print-context p { white-space:pre-wrap; }
  #qr-print-context img { display:block; max-width:100%; max-height:130mm; object-fit:contain; margin:10mm auto; }
}
.photo-help { font-size:12px; margin-bottom:16px; }
#admin-step:not([hidden]){display:grid;grid-template-columns:190px minmax(0,1fr);gap:28px;direction:ltr}.admin-content{min-width:0}[dir=rtl] .admin-content,[dir=rtl] .admin-menu{direction:rtl}.admin-menu{display:flex;flex-direction:column;gap:10px;align-self:start}.admin-menu button{padding:14px;border:1px solid #d5cec6;background:#f2efeb;border-radius:12px;font:inherit;text-align:start;cursor:pointer}.admin-menu button[aria-current=page]{background:#76685c;color:white}#admin-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}#admin-counts>div{display:flex;flex-direction:column;gap:12px;background:#f2efeb;border:1px solid #d5cec6;border-radius:14px;padding:16px}#admin-counts strong{font-size:28px}#sticker-form{display:grid;gap:16px}#sticker-form label:not(.remember-row){display:grid;gap:8px}#sticker-form input:not([type=checkbox]){width:100%;min-width:0;padding:10px;border:1px solid #d5cec6;border-radius:8px;font:inherit}#sticker-form input[type=color]{height:48px}#qr-dates,#admin-count-since{font-size:13px;color:#70665e;line-height:1.7}#qr-dates{border-top:1px solid #d5cec6;padding-top:18px}#sticker-claim{text-align:start}#sticker-claim h2{line-height:1.3}#sticker-claim-help{line-height:1.6}@media(max-width:650px){#admin-step:not([hidden]){grid-template-columns:1fr;gap:20px}.admin-menu{flex-direction:row;flex-wrap:wrap}.admin-menu button{flex:1;min-width:100px;padding:10px;font-size:14px}}
.qr-home-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.qr-home-title h2{margin-inline-end:auto}#qr-map-all{color:#08783e}.owned-map-dialog{width:min(90vw,720px)}.owned-map{height:50vh;min-height:260px;width:100%}.map-status{min-height:1.4em}footer a{color:inherit;display:inline-block;max-width:650px;line-height:1.7}
.filter-clear{display:flex;align-items:center;gap:8px;margin-inline-end:auto;border:0;background:transparent;color:#a1261d;font:inherit;font-weight:700;cursor:pointer;padding:8px 0;text-align:start}.filter-clear span[aria-hidden]{font-size:28px;line-height:1}.filter-clear:hover{text-decoration:underline}
.landing-promo{display:grid;grid-template-columns:1.35fr 1fr;gap:24px;align-items:center;max-width:760px;width:100%;text-align:left;color:#6b5f55;margin:24px 0}.landing-promo h2{font-size:26px}.landing-promo p{line-height:1.6}.sticker-order{border:0;background:transparent;color:inherit;padding:0;font:inherit;cursor:pointer}.sticker-order img{width:100%;height:auto;display:block}.sticker-order span{display:block;font-size:14px;line-height:1.5}.auth-header{direction:ltr}[dir=rtl] .auth-card,[dir=rtl] dialog{text-align:right}[dir=rtl] .landing-promo{text-align:right}input[type=email],.code-input,#sent-email,#user-email,#admin-email{direction:ltr;unicode-bidi:isolate}.owned-map-dialog{max-width:720px!important}@media(max-width:520px){.landing-promo{grid-template-columns:1fr}.sticker-order{max-width:240px;justify-self:center}}
dialog { max-width:min(440px,90vw); border:1px solid #d5cec6; border-radius:20px; padding:24px; }
dialog::backdrop { background:rgba(55,49,44,.42); }
.dialog-actions { display:grid; gap:10px; }.dialog-actions .secondary { margin:0; }
body.qr-owner .brand-logo { display:none; } body.qr-owner .auth-card { margin-top:24px; }
@media (max-width: 850px) { .auth-panel { padding: 24px 18px; } .brand-logo { margin-top: 30px; } .auth-card { padding: 34px 26px; } }
@media (max-width: 480px) { .brand-logo { width: min(72vw, 260px); margin: 24px 0 18px; } .auth-card { border-radius: 22px; padding: 30px 22px; } h1 { font-size: 36px; } }
.location-pin{display:flex;align-items:center;gap:.65rem;color:#b42318;border-color:currentColor;width:100%;justify-content:flex-start}.location-pin.located{color:#08783e}.location-pin svg{flex:none}.location-coordinates{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:1rem 0}.location-coordinates label{display:grid;gap:.35rem}#location-map{height:min(52vh,420px);min-height:260px;border-radius:14px;border:1px solid #d2cbc4;overflow:hidden}#location-dialog{width:min(92vw,720px)}#location-dialog section{margin:1rem 0}#location-error{color:#b42318;min-height:1.4em}@media(max-width:520px){.location-coordinates{grid-template-columns:1fr}#location-map{height:42vh}}
#brand-home{display:block;flex-shrink:0;line-height:0;border-radius:12px}#brand-home:focus-visible{outline:3px solid #76685c;outline-offset:3px}.header-logo{display:block;width:120px;height:80px;object-fit:contain;border-radius:12px}.auth-header{gap:12px}.header-controls{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.auth-header~#auth-card{margin-top:20px}@media(max-width:480px){.header-logo{width:90px;height:60px}.header-controls{gap:6px}.auth-header{gap:6px}.language-wrap select{padding:8px 18px 8px 8px}}
/* Map dialogs use the available browser viewport, including mobile dynamic height. */
#location-dialog,.owned-map-dialog{inset:0;margin:0;width:100vw;max-width:100vw!important;height:100vh;height:100dvh;max-height:100dvh;border-radius:0;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:auto}
#location-dialog[open],.owned-map-dialog[open]{display:flex;flex-direction:column;gap:8px}
#location-dialog h2,.owned-map-dialog h2{margin:0;flex-shrink:0}
#location-dialog #location-map-panel{display:flex;flex:1;min-height:180px;flex-direction:column;gap:8px;margin:0}
#location-map,.owned-map-dialog .owned-map{height:auto;min-height:120px;flex:1;width:100%}
#location-dialog .location-coordinates{grid-template-columns:1fr 1fr;margin:0;gap:8px}
#location-dialog .location-coordinates input{min-width:0;width:100%}
#location-help,#location-error,.owned-map-dialog .map-status{margin:0;min-height:0}
#location-dialog button,.owned-map-dialog button{flex-shrink:0;margin-top:0}
.qrmia-map-marker{width:19px;height:19px;padding:0;margin:0;border:3px solid #fff;border-radius:50%;background:#08783e;box-shadow:0 1px 5px #302c2888;cursor:pointer}
.qrmia-map-marker.selected{width:21px;height:21px;background:#08783e}.qrmia-map-marker.device{width:17px;height:17px;background:#176bd1;cursor:default}
#qr-search-dialog .dialog-actions,#support-dialog .dialog-actions{margin-top:20px}
#support-dialog{width:min(560px,calc(100vw - 32px))}
#support-message{width:100%;resize:vertical;min-height:120px;max-height:40dvh}
.table-sort{appearance:none;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;padding:8px 4px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;text-align:start}.table-sort .sort-mark{min-width:1em}.table-sort[aria-pressed="true"]{color:#76685c}.qr-scanner-dialog{width:min(720px,calc(100vw - 24px))}.qr-scanner-dialog video{display:block;width:100%;max-height:70dvh;background:#1f1c1a;border-radius:12px;margin:12px 0}.qr-scanner-dialog p{min-height:1.5em}
footer #support-open{display:inline;padding:0;margin:0;font:inherit}

.qr-create-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; direction:ltr; }
.qr-action-button { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-width:0; min-height:76px; padding:12px 8px; margin:0; }
.qr-action-button img { width:42px; height:42px; object-fit:contain; flex:none; }
.qr-action-button span { white-space:pre-line; text-align:start; line-height:1.25; overflow-wrap:anywhere; min-width:0; }
#qr-search-dialog > .qr-action-button { width:100%; min-width:0; margin:0 0 16px; }
@media(max-width:480px){.qr-create-row{gap:8px}.qr-action-button{gap:6px;font-size:13px}.qr-action-button img{width:32px;height:32px}}
#qr-search { display:block; width:100%; min-height:0; height:auto; line-height:1.5; resize:none; }
.qr-card-indicators { display:flex; align-items:flex-start; gap:6px; margin-top:-10px; margin-right:-10px; flex:none; direction:ltr; }
.qr-card-location { display:inline-flex; color:#08783e; flex:none; }
.qr-card-shell { position:relative; }
.sticker-badge-space { width:30px; height:30px; flex:none; }
.sticker-badge-button { width:30px; height:30px; min-height:0; padding:0; border:0; background:transparent; border-radius:5px; cursor:pointer; }
.sticker-badge-button img { display:block; width:30px; height:30px; object-fit:contain; }
.gallery-sticker-badge { position:absolute; top:8px; right:8px; }
.gallery-sticker-badge.with-location { right:44px; }
.qr-public { position:relative; }
#public-location { position:absolute; top:8px; right:8px; color:#08783e; width:38px; height:38px; padding:4px; }
.qr-public:has(#public-location:not([hidden])) { padding-top:54px; }
.gallery-location-button { position:absolute; top:8px; right:8px; display:flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; border:0; border-radius:5px; background:transparent; color:#08783e; cursor:pointer; }
#qr-view-close { position:absolute; top:8px; right:8px; width:38px; height:38px; padding:4px; font-size:28px; line-height:1; }
.qr-public:has(#qr-view-close:not([hidden])) { padding-top:54px; }
.qr-public:has(#qr-view-close:not([hidden])) #public-location { right:50px; }
.home-sticker-promo { display:grid; grid-template-columns:minmax(0,1fr) 110px; align-items:center; gap:18px; width:100%; direction:ltr; margin:20px 0; text-align:left; line-height:1.5; }
.home-sticker-promo img { width:100%; height:auto; object-fit:contain; }
#user-sticker-form { display:grid; gap:16px; }
#user-sticker-form label:not(.remember-row) { display:grid; gap:8px; }
#user-sticker-form input:not([type=checkbox]) { width:100%; min-width:0; padding:10px; border:1px solid #d5cec6; border-radius:8px; font:inherit; }
#user-sticker-form input[type=color] { height:48px; }
#user-sticker-step, #qr-step { position:relative; padding-top:48px; }
.form-close { position:absolute; top:0; right:0; width:38px; height:38px; padding:4px; line-height:1; }
#qr-step .editor-sticker-badge { position:absolute; top:0; right:48px; margin:0; }
#qr-color-open { position:absolute; top:0; left:0; width:38px; height:38px; }
#qr-colors-step { position:relative; padding-top:48px; }
#qr-colors-form, #qr-export-settings form { display:grid; gap:16px; }
#qr-colors-form label:not(.remember-row), #qr-export-settings label { display:grid; gap:8px; }
#qr-colors-form input[type=color] { width:100%; height:48px; }
#qr-export-settings input { width:100%; min-width:0; padding:10px; }
.sr-only { position:absolute; width:1px!important; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.public-heading{display:flex;align-items:center;gap:12px;min-width:0}.public-heading #public-title{flex:1;min-width:0}.public-heading>.icon-button{flex:none}.public-heading img{object-fit:contain}.public-heading button:disabled{opacity:1;cursor:not-allowed}
#public-edit{position:absolute;top:8px;right:50px;width:38px;height:38px;padding:4px;font-size:28px}.qr-public:has(#qr-view-close:not([hidden])) #public-edit{right:92px}
.nearby-dialog{width:min(92vw,620px);max-height:85vh;overflow:auto}.nearby-close{float:right;font-size:28px}.nearby-dialog li{margin:18px 0}.nearby-dialog li p{margin:5px 0}.nearby-dialog a{overflow-wrap:anywhere}
.google-attribution{padding:10px 10px 5px;background:white}.google-attribution img{height:18px;width:auto;display:block}
#qr-lat,#qr-lng,#qr-nearby-radius{width:100%;min-width:0;padding:10px}.location-coordinates{max-width:100%}#location-map:has(iframe){min-height:280px}
.public-heading{display:grid;grid-template-columns:minmax(0,1fr) 90px;align-items:start;column-gap:12px}
.public-heading #public-title{grid-column:1;grid-row:1}
.public-heading #public-description{grid-column:1;grid-row:2}
.public-heading .nearby-open{grid-column:2;grid-row:1 / span 2;width:90px;height:90px;padding:0;align-self:start}
.public-heading .nearby-open img{width:90px;height:90px;max-width:100%}
.public-heading:not(:has(.nearby-open:not([hidden]))){grid-template-columns:minmax(0,1fr)}
.nearby-categories{border:0;padding:0;margin:12px 0;min-width:0;display:grid;gap:8px}
.nearby-categories .remember-row{margin:0}
/* BACKLOG 21 September (6): inline nearby results and viewing-only map controls. */
#location-dialog{position:fixed;box-sizing:border-box}#location-title{padding-inline-end:48px;overflow-wrap:anywhere}
#location-dismiss{position:absolute;inset-inline-end:12px;top:12px;font-size:28px}
#location-close{display:block;align-self:center;width:auto;min-width:120px;margin:16px auto 0}
.nearby-panel{grid-column:1 / -1;grid-row:2;width:100%;box-sizing:border-box;background:#f2f2f2;border-radius:14px;padding:16px;max-height:none;overflow:visible;margin:12px 0}
.public-heading #public-description{grid-row:3}
.nearby-panel .nearby-close{font-size:28px;min-width:44px;min-height:44px;margin:0;float:inline-end}
.nearby-panel h2{margin:0;padding-inline-end:48px;font-size:1.2rem}
.nearby-panel ul{padding:0;margin:12px 0;list-style:none}
.nearby-panel li{margin:8px 0}
.nearby-item{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;color:inherit;text-decoration:none}
.nearby-item:hover,.nearby-item:focus-visible{background:#e2e8e4;outline:2px solid #08783e}
.nearby-category-icon{font-size:32px;line-height:1.3;flex:0 0 44px;text-align:center}
.nearby-item-text{min-width:0;display:grid;gap:4px;overflow-wrap:anywhere}
.nearby-item-text>span{font-size:.9em;color:#555}
.public-heading .nearby-open{grid-row:1 / span 3}.public-heading:has(.nearby-panel:not([hidden])) .nearby-open{grid-row:1}
#location-map{box-sizing:border-box}#location-error:empty{display:none}
/* Nearby remains one column on phones, two columns on tablets and desktops. */
@media(min-width:768px){
 .nearby-panel ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;align-items:start}
 .nearby-panel li{min-width:0;margin:0}
 .nearby-item{box-sizing:border-box;width:100%}
}
/* 22 September: map viewing fills the viewport; consent and editing remain separate. */
.nearby-category-disclosure{margin:12px 0}.nearby-category-disclosure summary{cursor:pointer;font-weight:600;padding:10px 0}
#location-dialog.map-view-fullscreen{padding:0;overflow:hidden;border:0}
#location-dialog.map-view-fullscreen #location-map-panel{position:absolute;inset:0;min-height:0;margin:0;gap:0}
#location-dialog.map-view-fullscreen #location-map{height:100%;width:100%;border:0;border-radius:0;min-height:0}
#location-dialog.map-view-fullscreen #location-title{position:absolute;z-index:2;top:max(12px,env(safe-area-inset-top));right:64px;max-width:calc(100% - 88px);max-height:25dvh;overflow:auto;margin:0;padding:8px 12px;background:#fffffff0;border-radius:12px;font-size:1.2rem}
#location-dialog.map-view-fullscreen #location-dismiss{z-index:3;inset-inline-end:auto;right:max(12px,env(safe-area-inset-right));background:#fffffff0}
#location-dialog.map-view-fullscreen #location-close{position:absolute;z-index:2;bottom:max(48px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);margin:0;box-shadow:0 2px 8px #0003}
#location-dialog.map-view-fullscreen #location-error:not(:empty){position:absolute;z-index:3;bottom:110px;left:12px;right:12px;background:white;padding:8px}
img.nearby-category-icon{width:44px;height:44px;object-fit:contain;flex:0 0 44px}
