@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&display=swap');
*{box-sizing:border-box}body{margin:0;background:#f4f5fb;color:#20243d;font:15px system-ui,-apple-system,sans-serif}header{height:68px;display:flex;justify-content:space-between;align-items:center;padding:0 24px;background:#fff;box-shadow:0 2px 10px #17244312;position:relative;z-index:1100}.logo{font-weight:850;font-size:25px;color:#161c37;text-decoration:none}nav{display:flex;align-items:center;gap:18px}nav a{color:#49436d;text-decoration:none}.profile{position:relative;cursor:pointer}.profile summary{list-style:none;font-weight:700}.menu{position:absolute;right:0;top:30px;background:white;padding:18px;box-shadow:0 8px 20px #0002;min-width:210px;display:grid;gap:12px;border-radius:10px}.app-shell{display:grid;grid-template-columns:235px minmax(0,1fr);height:calc(100vh - 68px);min-height:600px}.side-menu{background:#fff;border-right:1px solid #e2e4ef;padding:18px 12px;overflow:auto}.side-brand{font-size:19px;padding:4px 9px 24px}.side-brand small{display:block;font-size:10px;margin:4px 0 0 26px;color:#73788c}.side-menu a{display:block;padding:13px 14px;margin:3px 0;border-radius:11px;text-decoration:none;color:#222844;font-weight:570}.side-menu a:hover,.side-menu a.active{background:#e9e9ff;color:#5140bf}.side-section{font-weight:750;border-top:1px solid #e7e7f1;margin:25px 10px 8px;padding-top:16px}.side-hint{font-size:12px;color:#7c8092;padding:5px 13px}.work-area{min-width:0;display:flex;flex-direction:column}.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 15px;background:#fbfbff;border-bottom:1px solid #e7e8f2}.toolbar>input{flex:1 1 330px}.toolbar input,.toolbar select,input,textarea,select{border:1px solid #d3d5e4;padding:11px;border-radius:10px;font:inherit;background:white}.filter-pills{display:flex;gap:7px;overflow:auto;max-width:100%;order:3;flex-basis:100%}.pill{white-space:nowrap;background:#fff!important;color:#343851!important;border:1px solid #dedfeb!important;box-shadow:0 2px 4px #121a3110}.pill.active{background:#6650dc!important;color:#fff!important}.toolbar #kind{display:none}button,.cta{background:#6550d5;border:0;border-radius:10px;color:white;padding:11px 16px;cursor:pointer;font-weight:700;text-decoration:none}.layout{display:grid;grid-template-columns:45% minmax(0,55%);min-height:0;flex:1}.map-panel{position:relative;min-height:420px;min-width:0}.map-label{position:absolute;top:14px;left:14px;z-index:500;background:#fffffff0;border-radius:12px;padding:9px 12px;box-shadow:0 2px 9px #0002;font-size:12px;font-weight:650}#map{height:100%;min-height:420px;z-index:1}.board{background:#b78c5d;background-image:radial-gradient(#6c431f22 1px,transparent 1.3px),radial-gradient(#e9c79b66 .9px,transparent 1.1px);background-size:7px 7px,11px 11px;padding:22px;overflow:auto}.board-head{display:flex;align-items:center;justify-content:space-between;color:#312115}.board-head small{font-size:11px;letter-spacing:2px;font-weight:800}.board h1{font-size:24px;margin:5px 0 22px}.notes{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:22px;align-content:start}.note{position:relative;min-height:178px;padding:22px 14px 14px;color:#322819;text-decoration:none;box-shadow:4px 6px 11px #33221145;transform:rotate(-1deg);font-family:'Caveat',cursive;font-size:23px;transition:transform .18s}.note:hover{transform:rotate(0) scale(1.035);z-index:2}.note:nth-child(even){transform:rotate(2deg)}.note:before{content:'';position:absolute;top:7px;left:50%;width:13px;height:13px;border-radius:50%;background:#d94a4a;box-shadow:1px 2px 3px #0005}.note:nth-child(3n):before{background:#4164d5}.note h3{font-size:29px;line-height:1;margin:15px 0}.note small{font:11px system-ui;text-transform:uppercase}.note p{font-size:19px;margin:0}.empty-help{margin-top:20px;background:#fffdf0d9;border-radius:13px;padding:20px;max-width:430px;color:#3b3022}.empty-help h3{margin:0 0 8px}.empty-help p{line-height:1.5}main{max-width:950px;margin:30px auto;padding:24px;background:white;border-radius:14px}.auth{max-width:510px}.auth form,.settings-panel form{display:grid;gap:16px}.auth label,.settings-panel label{display:grid;gap:6px;font-weight:600}textarea{min-height:120px}.flash{padding:12px;background:#fff2b5;text-align:center}.muted{color:#777}.post-detail{line-height:1.65}.comment{border-top:1px solid #ddd;padding:14px 0}table{width:100%;border-collapse:collapse}td,th{text-align:left;border-bottom:1px solid #ddd;padding:10px}td small{display:block;color:#777}.inline{display:inline-block;margin:3px}.inline button{font-size:12px;padding:7px}.post-detail form{display:grid;gap:12px}.settings-panel{background:#f7f6ff;padding:22px;border:1px solid #e0dcfa;border-radius:14px;margin:20px 0}.sysop{max-width:1000px}@media(max-width:1150px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.side-menu{padding:12px 7px}.layout{grid-template-columns:42% 58%}}@media(max-width:800px){header{height:auto;flex-wrap:wrap;gap:8px;padding:12px}nav{flex-wrap:wrap;gap:8px}.app-shell{display:block;height:auto}.side-menu{display:flex;overflow:auto;gap:8px;white-space:nowrap;padding:7px}.side-menu a{padding:8px 12px}.side-brand,.side-section,.side-hint{display:none}.layout{display:block}#map,.map-panel{height:330px;min-height:330px}.board{min-height:430px}.toolbar input{min-width:100%}}

/* v0.2 interactive map placement and personal notes */
.map-add{position:absolute;z-index:1000;top:55px;left:14px;right:14px;max-width:380px;padding:15px;background:#fff;border-radius:13px;box-shadow:0 12px 35px #1116;color:#20243d}
.map-add[hidden]{display:none}.map-add p{margin:8px 0;color:#5b6074;font-size:12px}.map-add>div{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.map-add .cta{display:inline-block}
.secondary{background:#e6e6f0;color:#222842}.danger{background:#b82f40}.my-post-list{display:grid;gap:12px}.my-post{border:1px solid #e0e3ee;border-radius:12px;padding:15px;display:flex;justify-content:space-between;gap:15px;align-items:center}.my-post small{display:block;color:#74788d;margin:5px 0}.my-post form{margin:0}.delete-post{margin:16px 0}.leaflet-container{cursor:crosshair}@media(max-width:800px){.map-add{top:48px;left:8px;right:8px}.my-post{align-items:flex-start;flex-direction:column}}

/* v0.2.1: place search and SYSOP aliases */
.place-search{display:flex;flex:1 1 350px;gap:7px;min-width:220px}.place-search input{min-width:0;flex:1}.place-search button{white-space:nowrap}.place-results{width:100%;background:#fff;border:1px solid #dedfeb;border-radius:10px;padding:8px;display:grid;gap:5px}.place-results[hidden]{display:none}.place-result{background:#f1f0fe;color:#272444;text-align:left;font-weight:500}.place-result:hover{background:#dedbff}.place-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.place-admin-grid .settings-panel{margin:10px 0}.registry-list{display:grid;gap:7px}.registry-list>div{border:1px solid #e2e2eb;border-radius:10px;padding:9px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.registry-list button{padding:6px 10px}@media(max-width:800px){.place-admin-grid{grid-template-columns:1fr}.place-search{width:100%;flex-basis:100%}.toolbar>input{flex-basis:100%}}

/* v0.2.2: official Kartverket place picker and 1000m search radius */
.radius-status{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;padding:8px 11px;background:#eeebff;border:1px solid #d9d2ff;border-radius:10px;color:#3d3286;font-weight:700;font-size:13px}
.radius-status[hidden]{display:none}.radius-status button{padding:7px 10px;font-size:12px}.place-result{line-height:1.35;white-space:normal;overflow-wrap:anywhere}

/* v0.2.3: SYSOP controls, Post-it board and Post-it editor */
.sysop-top-link{display:inline-flex;background:#392c88;color:#fff!important;padding:8px 13px;border-radius:9px;font-weight:800}
.maintenance-switch{display:flex!important;align-items:center;gap:12px;font-weight:800!important}.maintenance-switch input{width:22px;height:22px}
.postit-board{max-width:1200px;background:#b78c5d;background-image:radial-gradient(#6c431f22 1px,transparent 1.3px);background-size:8px 8px;min-height:75vh;padding:26px}
.postit-board-head{background:#fff8e5e6;padding:16px 20px;border-radius:12px;margin-bottom:22px}.postit-board-head h1{margin:0 0 6px}.postit-board-head p{margin:0 0 17px}
.postit-board .my-post-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:25px;align-items:stretch}
.postit-card{position:relative;display:block;border:0;border-radius:1px;min-height:260px;padding:28px 20px 18px;color:#3a2e16;background:#fff29a;box-shadow:5px 7px 14px #3e270a66;transform:rotate(-1.5deg);overflow-wrap:anywhere}
.postit-card:nth-child(3n+2){background:#ffe3ab;transform:rotate(1deg)}.postit-card:nth-child(3n+3){background:#d9f4ca;transform:rotate(-.5deg)}
.postit-card .pin-head,.postit-editor .pin-head{position:absolute;top:7px;left:50%;width:17px;height:17px;background:#e64c53;border-radius:50%;box-shadow:1px 3px 4px #0005}
.postit-card h2{font:700 30px/1.1 'Caveat',cursive;margin:12px 0}.postit-card>p{font:23px/1.12 'Caveat',cursive;min-height:80px;margin:12px 0;white-space:normal}
.postit-card>small,.postit-meta{font:11px system-ui;color:#655b42}.postit-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:13px;font:12px system-ui}
.postit-actions a,.postit-actions button{color:#302c35;background:#ffffffb5;padding:7px 10px;border-radius:6px;text-decoration:none;font-weight:750;display:inline-block}.postit-actions button.danger{background:#b62f40;color:#fff}.postit-actions form{margin:0}
.postit-edit-page{max-width:780px;background:transparent;padding:16px}.postit-editor{position:relative;background:#fff29a;min-height:500px;margin:22px auto;padding:44px 35px 26px;box-shadow:8px 12px 22px #32250a4a;display:grid;gap:18px;transform:rotate(-.35deg)}
.postit-editor label{display:grid;gap:7px;font-weight:750}.postit-editor input,.postit-editor textarea,.postit-editor select{background:#fff9c8;border:1px solid #d5bf69;width:100%;border-radius:4px}
.postit-editor input[name=title]{font:700 34px 'Caveat',cursive}.postit-editor textarea{min-height:260px;font:26px/1.2 'Caveat',cursive;resize:vertical}.postit-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.postit-editor-actions{display:flex;gap:15px;align-items:center}.postit-location{font-size:12px;color:#665a38}
@media(max-width:700px){.postit-board{padding:12px}.postit-board .my-post-list{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:17px}.postit-card{padding:27px 15px 15px}.postit-editor{padding:40px 17px 20px}.postit-fields{grid-template-columns:1fr}}

.maintenance-login{background:#fff0b0;padding:18px;border-radius:12px;border:1px solid #d9bd63;margin-bottom:22px}.maintenance-login h1{margin:0 0 12px}

/* v0.2.4: consolidated top navigation, all action links styled as buttons */
body{background:#eae7f6}
header{height:auto;min-height:90px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 25px;padding:18px clamp(14px,3vw,34px) 14px;background:#eeecfc;box-shadow:none;border-bottom:3px solid #d8d2f0}
header .logo{font-size:clamp(25px,3vw,34px);padding-bottom:3px}
header nav{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.nav-button,header nav>a,header nav details>summary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:#fff;border:1px solid #d5cfea;border-radius:12px;box-shadow:0 2px 4px #25204717;padding:10px 16px;color:#34315c!important;font-size:15px;font-weight:750;text-decoration:none;cursor:pointer}
header nav>a:hover,header nav details>summary:hover{background:#dfdcff}
header nav .sysop-top-link{background:#4936a8;color:#fff!important}
header nav details .menu{top:calc(100% + 8px);z-index:1500;gap:7px;padding:10px;max-height:70vh;overflow:auto}
header nav details .menu a,header nav details .menu button{display:block;width:100%;padding:11px 14px;background:#eeeafb;color:#373058;border-radius:9px;text-align:left;text-decoration:none;font-size:14px;border:0}
header nav details .menu a:hover{background:#dcd4ff}
.app-shell{height:calc(100vh - 95px)}
main a:not(.note):not(.photo-thumb):not(.logo),.postit-actions a,.post-view-tools a,.post-view-owner a{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#6550d5;color:#fff;text-decoration:none;font-size:14px;font-weight:750;padding:10px 14px;border-radius:10px;margin:3px 2px 3px 0;box-shadow:0 2px 6px #241c541c}
main a:not(.note):not(.photo-thumb):hover{background:#513bc4}
.postit-actions a{padding:8px 10px!important;font-size:12px!important}
.post-view-page{background:transparent;max-width:900px;margin:12px auto;padding:14px}
.post-view-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.post-view-postit{position:relative;background:#fff29a;box-shadow:9px 12px 21px #281c0a55;min-height:440px;padding:52px clamp(22px,5vw,50px) 32px;transform:rotate(-.35deg);overflow-wrap:anywhere}
.post-view-postit .pin-head{position:absolute;top:12px;left:50%;width:21px;height:21px;border-radius:50%;background:#d94850;box-shadow:1px 3px 4px #0006}
.post-view-postit h1{font:700 clamp(36px,6vw,57px)/1.05 'Caveat',cursive;margin:18px 0 10px}
.post-view-meta{font:700 13px system-ui;color:#776332;margin:0 0 22px}
.post-view-body{font:clamp(25px,3vw,34px)/1.2 'Caveat',cursive;min-height:160px;white-space:normal}
.post-view-owner{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:20px}
.post-view-owner form{margin:0}
.post-comments{background:#fff;border-radius:14px;margin:28px 0;padding:22px}
.post-photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:10px;margin:18px 0}
.photo-thumb{display:block!important;position:relative;width:100%;aspect-ratio:1/1;border:4px solid #fff9d5;border-radius:5px;overflow:hidden;background:#d7c882;box-shadow:0 3px 9px #221b0840;padding:0!important;margin:0!important}
.photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.photo-thumb:focus-visible{outline:3px solid #4936a8}
.post-photo-edit{background:#fff9c999;border:1px dashed #c5a74f;padding:14px;border-radius:8px}
.post-photo-edit h2{margin:0 0 5px;font-size:21px}
.post-photo-edit p{font-size:13px;color:#6a5935}
.photo-remove{display:grid!important;gap:5px;text-align:center;background:#fff7d1;border-radius:5px;padding:5px}
.photo-remove img{width:100%;aspect-ratio:1;object-fit:cover}
.photo-remove span{font:12px system-ui;display:flex;justify-content:center;align-items:center;gap:5px}
.photo-remove input[type=checkbox]{width:16px!important;height:16px}
.postit-card .post-photo-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:10px 0}
.postit-card .photo-thumb{max-height:70px}
.photo-lightbox{position:fixed;inset:0;background:#090914eF;z-index:9000;display:flex;align-items:center;justify-content:center;padding:55px 16px 30px}
.photo-lightbox[hidden]{display:none}
.photo-lightbox img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 8px 50px #000a}
.photo-lightbox button{position:absolute;top:12px;right:16px;font-size:24px;padding:5px 15px;background:#fff;color:#201c32;border-radius:9px}
@media(max-width:800px){header{padding:12px 10px 13px;align-items:stretch;gap:10px}header nav{gap:7px}header .logo{font-size:28px}header nav>a,header nav details>summary{min-height:45px;font-size:14px;padding:10px 12px}.app-shell{height:auto}.post-view-page{padding:10px}.post-view-postit{padding:50px 18px 24px}.post-photo-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(max-width:800px){header nav{width:100%;padding-top:2px;justify-content:flex-start}header nav .profile{flex:0 0 auto}.profile .menu{right:0}}

/* v0.2.5 – profile pass, create-with-images, interactive author identity */
.new-post-page{max-width:760px;background:#fff3a4;box-shadow:8px 10px 21px #4b3d1850;position:relative;transform:rotate(-.25deg)}
.new-post-page:before{content:'';position:absolute;width:20px;height:20px;border-radius:50%;background:#e45055;box-shadow:1px 3px 5px #0005;left:50%;top:12px}
.new-post-page form{gap:14px}.new-post-page h1{font:700 42px/1.1 'Caveat',cursive}
.new-post-page .post-photo-edit{background:#fffacb;border:2px dashed #b99d44;padding:17px}
.new-post-page input[type=file]{max-width:100%}
.post-author-link{background:#fff5c0!important;color:#44336c!important;border:1px solid #c6a964!important;text-decoration:none!important;padding:4px 10px!important;border-radius:20px!important;font-size:inherit!important}
.public-profile{max-width:960px;background:transparent;padding:12px}
.profile-pass{position:relative;overflow:hidden;background:linear-gradient(115deg,#292159,#4a3caf 63%,#8379ee);border-radius:22px;color:white;padding:26px;min-height:250px;box-shadow:0 12px 34px #251b6440}
.profile-pass-glow{position:absolute;width:260px;height:260px;border:3px solid #ffffff34;right:-35px;top:-100px;border-radius:50%;box-shadow:0 0 0 38px #ffffff0b,0 0 0 75px #ffffff07;animation:passFloat 5s ease-in-out infinite alternate}
@keyframes passFloat{from{transform:translate(0,0) rotate(-10deg)}to{transform:translate(-30px,30px) rotate(10deg)}}
.profile-pass-identity{position:relative;display:flex;align-items:center;gap:22px;z-index:1;flex-wrap:wrap}
.profile-avatar{display:flex;align-items:center;justify-content:center;width:115px;height:115px;border-radius:25px;font-size:70px;font-weight:850;background:linear-gradient(145deg,#f8e3bb,#f5b15c);color:#342a6d;border:4px solid #ffffff55;box-shadow:0 6px 14px #140b4c66;transform:rotate(-4deg)}
.profile-pass h1{font-size:clamp(28px,5vw,46px);margin:5px 0}.profile-pass p{color:#ece9ff}.profile-pass small{letter-spacing:.17em;opacity:.8}
.profile-pass-actions{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:10px;margin-top:24px;align-items:center}
.profile-pass-actions form{display:flex;flex-wrap:wrap;gap:9px;margin:0}.profile-pass-actions button,.profile-pass-actions .cta{background:white;color:#362d87!important;border:1px solid #ffffff88;min-height:45px;box-shadow:0 3px 10px #0002}
.profile-pass-actions button.secondary{background:transparent;color:#fff!important}
.profile-public-posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:21px;padding:20px 3px}
.profile-public-posts .postit-card h3{font:700 30px/1.1 'Caveat',cursive;margin:16px 0}.profile-public-posts .postit-card p{font:23px 'Caveat',cursive}
@media(max-width:600px){.profile-pass{padding:20px}.profile-avatar{width:85px;height:85px;font-size:52px}.profile-pass-identity{gap:15px}.new-post-page{margin:14px 10px;padding:25px 15px}}
@media(prefers-reduced-motion:reduce){.profile-pass-glow{animation:none}}

.friends-page{max-width:780px}.friend-request-card{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;border:1px solid #e1dbf7;background:#fbfaff;border-radius:14px;padding:18px;margin:12px 0}


/* 0.2.8: Comments are small real sticky notes pinned to the outside edge of the main note. */
.post-view-with-notes{background:transparent!important;width:min(98%,1460px)!important;max-width:1460px!important;margin:16px auto!important;padding:12px 15px 90px!important;overflow:visible!important}
.post-view-with-notes .post-view-tools{width:min(100%,990px);margin:0 auto 34px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;position:relative;z-index:100}
.post-view-navigation,.post-view-comment-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.post-view-comment-tools{position:relative;flex-wrap:nowrap}
.comment-total{color:#625c76;font:600 13px system-ui,sans-serif;white-space:nowrap}
.postit-comment-layout.sticky-stage{position:relative;display:block;width:min(100%,990px);margin:0 auto;isolation:isolate;overflow:visible!important}
.postit-center{position:relative;z-index:1;min-width:0}
.postit-center>.post-view-postit{width:100%;max-width:none;margin:0;min-height:440px;overflow:visible}
/* Wings occupy outer strips; each note overlaps just a narrow blank edge of the large sticky. */
.postit-comment-layout .comment-wing{position:absolute;top:0;width:170px;padding:0;margin:0;display:flex;flex-direction:column;align-items:center;gap:15px;z-index:5;overflow:visible;pointer-events:none}
.postit-comment-layout .comment-wing-left{left:-132px;top:12px}
.postit-comment-layout .comment-wing-right{right:-132px;top:55px}
.comment-sticky{--note-bg:#f9d4e1;background:var(--note-bg)!important;color:#29243a!important;position:relative;display:block!important;box-sizing:border-box;width:170px!important;min-height:123px!important;max-height:230px;overflow:auto;padding:25px 13px 13px!important;margin:0!important;border:0!important;border-radius:1px!important;box-shadow:4px 7px 13px #27223e48!important;transform:translateY(var(--note-shift,0px)) rotate(var(--note-tilt,-3deg));font-family:'Caveat','Comic Sans MS',cursive!important;font-size:23px!important;line-height:1.15!important;overflow-wrap:anywhere;pointer-events:auto;transition:transform .2s ease,box-shadow .2s ease}
.comment-sticky:nth-child(even){margin-top:18px!important}
.comment-sticky:nth-child(3n){margin-top:24px!important}
.comment-sticky:hover,.comment-sticky:focus-within{transform:rotate(0deg) scale(1.055);box-shadow:8px 12px 19px #27223e55!important;z-index:10}
.comment-sticky p{font:inherit!important;color:inherit!important;margin:0 0 12px!important;padding:0!important;white-space:normal;line-height:1.12}
.comment-sticky .comment-author{display:inline-block!important;margin-top:4px!important;padding:2px 5px!important;border-radius:5px!important;background:#ffffffa6!important;color:#47359f!important;box-shadow:none!important;font:700 12px system-ui,sans-serif!important;text-decoration:none}
.comment-pin{position:absolute;top:7px;left:calc(50% - 7px);width:14px;height:14px;background:#db4051;border-radius:50%;box-shadow:1px 2px 4px #0005}
.comment-composer{display:block;position:relative;flex:none;margin:0;z-index:101}
.comment-composer>summary{display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap;min-height:45px;margin:0!important;padding:10px 16px!important;list-style:none;cursor:pointer;border-radius:11px;background:#6550d5;color:#fff;font:750 15px system-ui,sans-serif;box-shadow:0 2px 6px #332c6e30}
.comment-composer>summary::-webkit-details-marker{display:none}
.comment-composer[open]>summary{background:#4935b6}
.comment-composer .comment-popover{position:absolute!important;top:calc(100% + 12px)!important;right:0!important;left:auto!important;z-index:200;box-sizing:border-box;width:390px;max-width:calc(100vw - 32px);padding:22px 20px 18px!important;background:#fff0a1!important;border:1px solid #ead579!important;border-radius:4px!important;box-shadow:9px 13px 27px #29203955!important;transform:rotate(.5deg)!important;color:#29243a}
.comment-popover::before{content:'';position:absolute;top:6px;left:calc(50% - 7px);width:14px;height:14px;background:#d94850;border-radius:50%;box-shadow:1px 2px 4px #0004}
.comment-popover-title{font:700 27px 'Caveat','Comic Sans MS',cursive;margin:5px 0 8px}
.comment-composer .comment-popover form{display:flex!important;flex-direction:column!important;gap:10px!important;background:transparent!important;border:0!important;box-shadow:none!important;position:static!important;transform:none!important;max-width:none!important;padding:0!important;margin:0!important}
.comment-composer .comment-popover label{font:600 12px system-ui,sans-serif!important;margin:0}
.comment-composer .comment-popover textarea{box-sizing:border-box;width:100%!important;min-height:82px!important;height:88px!important;max-height:130px;resize:vertical;border:1px solid #ddc777!important;border-radius:8px!important;background:#fff9d5!important;padding:11px 13px!important;font:18px 'Caveat',cursive!important;color:#29243a}
.comment-popover-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.comment-popover-actions button{font:700 13px system-ui,sans-serif;padding:10px 14px}
.comment-popover-actions .secondary{background:#ebdfa7;color:#29243a}
@media(max-width:1230px) and (min-width:761px){
 .postit-comment-layout.sticky-stage{width:calc(100% - 190px)}
 .postit-comment-layout .comment-wing-left{left:-135px}
 .postit-comment-layout .comment-wing-right{right:-135px}
 .postit-comment-layout .comment-wing{width:160px}
 .comment-sticky{width:160px!important}
}
@media(max-width:760px){
 .post-view-with-notes{width:100%!important;max-width:100%!important;padding:12px 12px 55px!important}
 .post-view-with-notes .post-view-tools{margin-bottom:26px;justify-content:flex-start;gap:8px}
 .post-view-comment-tools{flex-wrap:wrap;gap:8px}
 .postit-comment-layout.sticky-stage{display:flex;flex-direction:column;width:100%;gap:14px;overflow:visible}
 .postit-center{order:0}
 .postit-comment-layout .comment-wing{position:relative!important;left:auto!important;right:auto!important;top:auto!important;order:1;width:100%;display:flex;flex-flow:row wrap;align-items:flex-start;justify-content:center;gap:16px;pointer-events:auto}
 .comment-sticky{width:min(43%,170px)!important;min-width:124px;min-height:118px!important;margin:0!important;flex:none}
 .comment-sticky:nth-child(n){margin:0!important}
 .postit-center>.post-view-postit{min-height:380px}
 .comment-composer .comment-popover{right:auto!important;left:0!important;width:min(390px,calc(100vw - 32px));transform:none!important}
}

/* v0.2.9 - post owner comment moderation */
.owner-comments{margin:30px 0 24px;padding:22px;border-radius:15px;background:#b98f63;background-image:radial-gradient(#6b442229 1px,transparent 1.3px);background-size:9px 9px;box-shadow:inset 0 2px 12px #6d4d3038}
.owner-comments-heading{padding:4px 7px 14px;color:#292239}
.owner-comments-heading h2{margin:0 0 7px;font-size:24px}
.owner-comments-heading p{margin:0;font-size:14px}
.owner-comments-empty{padding:18px;background:#fff6d8;border-radius:8px}
.owner-comments-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:20px;padding:10px 2px}
.owner-comment-note{background:var(--owner-note-bg,#fff0a0);position:relative;min-height:195px;padding:27px 16px 14px;box-shadow:5px 7px 12px #372a2948;display:flex;flex-direction:column;gap:10px;transform:rotate(-1deg);overflow-wrap:anywhere}
.owner-comment-note:nth-child(3n+2){transform:rotate(2deg)}
.owner-comment-note:nth-child(3n){transform:rotate(-2deg)}
.owner-note-pin{position:absolute;top:7px;left:calc(50% - 7px);width:14px;height:14px;background:#d84755;border-radius:50%;box-shadow:1px 2px 4px #0005}
.owner-comment-text{font:25px/1.16 'Caveat','Comic Sans MS',cursive;color:#25223d;margin:0;flex:1;white-space:normal}
.owner-comment-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;font:12px system-ui,sans-serif}
.owner-comment-meta a{color:#4b339c;font-weight:700;text-decoration:none}
.owner-comment-meta time{color:#514b53;font-size:11px}
.owner-comment-note form{margin:0;display:block}
.owner-comment-delete{background:#b92c48;color:white;border:0;border-radius:8px;width:100%;padding:10px 9px;font:700 13px system-ui,sans-serif;cursor:pointer}
.owner-comment-delete:hover{background:#8f1730}
.owner-comment-delete:focus-visible{outline:3px solid #3b2f85;outline-offset:2px}
@media(max-width:600px){.owner-comments{padding:12px}.owner-comments-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:13px}.owner-comment-note{padding:26px 11px 11px;min-height:170px}.owner-comment-text{font-size:22px}}

/* v0.3.0: profile editing, dates, friend map */
.profile-edit-page{max-width:820px;margin:26px auto;padding:24px;background:#fff;border-radius:18px;box-shadow:0 6px 20px #261f4930}
.profile-form{display:grid;gap:16px}.profile-form>label,.profile-form .profile-preview label{display:grid;gap:7px;font-weight:700}
.profile-form input:not([type=checkbox]),.profile-form select{width:100%;padding:12px;border-radius:10px;border:1px solid #cdc5e5;background:#fff}
.profile-preview{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.profile-preview img{width:92px;height:92px;object-fit:cover;border-radius:50%;background:#ddd}
.profile-share-switch{display:flex!important;align-items:center;gap:12px}.profile-share-switch input{width:20px;height:20px}
.post-date-editor{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:12px;background:#fff8c6;border-radius:10px}
.post-date-editor label{display:grid;gap:8px}.post-date-editor input,.post-date-editor select{width:100%;padding:10px;border-radius:8px}
.friend-post-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:12px 0 22px}.friend-post-filter label{display:grid;gap:5px}
.friend-person-icon{background:transparent!important;border:none!important}.friend-person-icon div{height:36px;width:32px;border-radius:12px 12px 9px 9px;color:#fff;display:flex;align-items:center;justify-content:center;border:2px solid #fff;box-shadow:0 2px 8px #0006;font-size:25px;font-weight:bold}
.profile-avatar{overflow:hidden}.profile-avatar img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
@media(max-width:650px){.post-date-editor{grid-template-columns:1fr}.profile-edit-page{margin:10px;padding:16px}}

.friend-person-icon .friend-human{position:relative;width:28px;height:39px;background:transparent!important;border:none;box-shadow:none}.friend-human:before{content:"";position:absolute;left:8px;top:1px;width:13px;height:13px;background:var(--person-color);border:2px solid #fff;border-radius:50%;box-shadow:0 1px 3px #0005}.friend-human span{position:absolute;left:5px;top:15px;width:20px;height:22px;background:var(--person-color);border:2px solid #fff;border-radius:10px 10px 4px 4px;box-shadow:0 2px 6px #0005}

/* v0.3.1 Wall of Fame: headline between navigation and comment action. */
.post-view-with-notes .post-view-tools{width:min(100%,990px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-bottom:45px}
.post-view-with-notes .post-view-comment-tools{justify-self:end}
.wall-of-fame-heading{font:700 clamp(27px,3vw,43px) 'Caveat','Comic Sans MS',cursive;color:#30234c;text-align:center;white-space:nowrap;transform:rotate(-3deg);text-shadow:1px 2px 0 #fff8}
.postit-comment-layout .comment-wing{padding-top:59px}
.wall-reaction{position:absolute;top:0;left:50%;transform:translateX(-50%);width:58px;height:58px;border-radius:50%;display:flex;justify-content:center;align-items:center;background:radial-gradient(circle at 36% 25%,#fff6ac,#ffd028 60%,#f0a900);border:2px solid #d39d13;box-shadow:2px 4px 9px #251c4635;font:700 53px/1 system-ui,sans-serif;color:#5b3b16;pointer-events:none}
.wall-reaction span{transform:translateY(-2px)}
.comment-sticky[draggable="true"]{cursor:grab;touch-action:pan-y}
.comment-sticky[draggable="true"]:active{cursor:grabbing}
.postit-comment-layout .comment-wing.is-drop-target{outline:3px dashed #6653d5;outline-offset:8px;background:#6653d50c}
.comment-move-tools{display:flex;gap:3px;flex-wrap:wrap;margin-top:9px;position:relative;z-index:2}
.comment-sticky .comment-move{width:auto!important;min-height:27px!important;padding:4px 6px!important;margin:0!important;border:1px solid #4a368c55!important;border-radius:6px!important;background:#ffffffb8!important;color:#39305d!important;box-shadow:none!important;font:700 10px/1.2 system-ui,sans-serif!important;cursor:pointer}
.comment-sticky .comment-move[data-side="left"][disabled],.comment-sticky .comment-move[data-side="right"][disabled]{opacity:.4;cursor:default}
.arrange-hint{text-align:center;margin:45px 0 0;color:#59536b;font-size:13px}
@media(max-width:760px){
 .post-view-with-notes .post-view-tools{display:flex;flex-wrap:wrap;justify-content:center;margin-bottom:30px}
 .wall-of-fame-heading{order:-1;width:100%;font-size:35px}
 .postit-comment-layout .comment-wing{padding-top:76px;min-height:60px;align-content:start}
 .postit-comment-layout .comment-wing:has(.comment-sticky){padding-top:73px}
 .wall-reaction{width:48px;height:48px;font-size:44px;top:7px}
 .comment-move-tools{flex-direction:column}
}

/* v0.3.3: category symbols and private home icon on the Leaflet map */
.tegnestift-map-icon{background:none!important;border:0!important;overflow:visible!important}
.map-symbol{display:flex;align-items:center;justify-content:center;width:35px;height:35px;background:#fff;border:2px solid #56516a;border-radius:12px;box-shadow:0 3px 9px #17122655;font:22px/1 system-ui,'Apple Color Emoji','Segoe UI Emoji',sans-serif;position:relative;user-select:none}
.map-symbol:after{content:'';position:absolute;bottom:-7px;left:12px;border-left:4px solid transparent;border-right:4px solid transparent;border-top:7px solid #56516a}
.map-symbol--sted{border-color:#6753d8;background:#f2edff}.map-symbol--sted:after{border-top-color:#6753d8}
.map-symbol--diskusjon{border-color:#5794bd;background:#e8f6ff}.map-symbol--diskusjon:after{border-top-color:#5794bd}
.map-symbol--arrangement{border-color:#bf6990;background:#fff0f8}.map-symbol--arrangement:after{border-top-color:#bf6990}
.map-symbol--annonse{border-color:#ae7a3f;background:#fff4df}.map-symbol--annonse:after{border-top-color:#ae7a3f}
.map-symbol--informasjon{border-color:#4e8a70;background:#eafff1;color:#247355;font-weight:900}.map-symbol--informasjon:after{border-top-color:#4e8a70}
.map-symbol--person{border-color:#2865d2;background:#edf4ff}.map-symbol--person:after{border-top-color:#2865d2}
.map-symbol--home{width:41px;height:41px;border-color:#a77927;background:#fff3b7;font-size:27px;box-shadow:0 4px 11px #24172b66}.map-symbol--home:after{border-top-color:#a77927;left:16px}

/* v0.3.4: explicit local/explore mode selector. */
.map-mode-nav{display:flex;gap:8px;align-items:center;width:100%;flex-wrap:wrap}
.map-mode-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border:1px solid #dcd8f5;background:white;color:#332d60;border-radius:12px;text-decoration:none;font-weight:750;box-shadow:0 2px 5px #16104a0b}
.map-mode-link:hover,.map-mode-link.active{background:#6550d5;color:white}
@media(max-width:800px){.map-mode-nav{flex-wrap:nowrap}.map-mode-link{flex:1;font-size:13px;padding:10px 7px}}

/* v0.3.5: account navigation moves into the map toolbar; no duplicate masthead */
body:has(.app-shell){overflow:hidden}
body:has(.app-shell) .app-shell{height:100vh;min-height:0}
body:has(.app-shell) .work-area{height:100vh;min-height:0}
body:has(.app-shell) .toolbar{align-content:flex-start;column-gap:10px;row-gap:10px;padding:12px 14px}
body:has(.app-shell) .map-mode-nav{width:auto;flex:1 1 auto;min-width:280px}
.map-account-nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-left:auto;min-width:0}
.map-account-nav .nav-button,.map-account-nav .profile>summary{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #d5cfea;border-radius:12px;min-height:42px;padding:9px 13px;color:#34315c;font-size:14px;font-weight:750;text-decoration:none;box-shadow:0 2px 4px #25204717;cursor:pointer;white-space:nowrap}
.map-account-nav .sysop-top-link{background:#4936a8;color:#fff}
.map-account-nav .profile{position:relative}
.map-account-nav .profile .menu{z-index:1800;top:calc(100% + 8px);right:0}
.map-account-nav .profile .menu a,.map-account-nav .profile .menu button{display:block;width:100%;padding:10px;text-align:left;background:#f0ecff;color:#332b68;border-radius:8px;border:0}
body:has(.app-shell) .toolbar>input{flex:1 1 280px}
@media(max-width:850px){body:has(.app-shell){overflow:auto}body:has(.app-shell) .app-shell,body:has(.app-shell) .work-area{height:auto;min-height:0}.map-account-nav{width:100%;margin:0;justify-content:flex-start}.map-account-nav .nav-button,.map-account-nav .profile>summary{font-size:13px;padding:8px 10px;min-height:40px}body:has(.app-shell) .map-mode-nav{width:100%;min-width:0}}

/* v0.3.6: compact category row and radius control */
body:has(.app-shell) .toolbar{gap:8px;padding:9px 14px;align-items:center}
body:has(.app-shell) .map-mode-nav,body:has(.app-shell) .map-account-nav{order:0}
body:has(.app-shell) .toolbar>input#search{order:1;flex:1 1 280px;min-width:170px}
body:has(.app-shell) .place-search{order:2;flex:1 1 65%;min-width:250px}
body:has(.app-shell) .place-results{order:3;flex-basis:100%}
body:has(.app-shell) .toolbar #radius-status{display:none!important}
body:has(.app-shell) .toolbar #radius-controls{order:4}
body:has(.app-shell) .toolbar #map-view{order:4}
body:has(.app-shell) .toolbar #share{order:4}
body:has(.app-shell) .filter-pills{order:4;flex:1 1 auto;width:auto;max-width:none;min-width:0;flex-basis:auto;align-items:center}
body:has(.app-shell) .pill{padding:10px 12px;font-size:13px}
.radius-controls{display:flex;align-items:center;gap:5px;flex:0 0 auto;min-width:0;background:#f0edff;border:1px solid #dad5fa;border-radius:10px;padding:4px 7px;color:#3b3179;font-weight:750}
.radius-controls .radius-caption{font-size:12px}
.radius-controls button{padding:5px 9px;min-height:32px;font-size:16px;line-height:1;background:#6550d5;border-radius:7px}
.radius-controls button#radius-clear{font-size:11px;padding:6px 8px;background:#fff;color:#493a9a;border:1px solid #d4ccf4}
.radius-controls input[type=range]{width:100px;min-width:100px;max-width:100px;flex:none;accent-color:#6550d5;padding:0;border:0;background:transparent;cursor:pointer}
.radius-controls output{font-size:12px;min-width:50px;white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}
@media(max-width:1200px){body:has(.app-shell) .filter-pills{flex:1 0 100%;order:5}}
@media(max-width:850px){body:has(.app-shell) .toolbar #radius-controls{order:4;flex:1 1 auto}body:has(.app-shell) .filter-pills{order:5;flex-basis:100%}body:has(.app-shell) .toolbar>input#search{min-width:100%;order:2}body:has(.app-shell) .place-search{order:3;flex-basis:100%}}
/* A roughly 10 cm long slider on desktop, scaled for smaller screens. */
@media(min-width:1400px){.radius-controls input[type=range]{width:360px;min-width:360px;max-width:360px}}
@media(min-width:900px) and (max-width:1399px){.radius-controls input[type=range]{width:220px;min-width:220px;max-width:220px}}
