@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#203337;background:#e4e9e5;font-size:16px}*{box-sizing:border-box}body{margin:0;padding:48px 24px;background-image:linear-gradient(#263e3910 1px,transparent 1px),linear-gradient(90deg,#263e3910 1px,transparent 1px);background-size:32px 32px}button,input,textarea{font:inherit}button,label.secondary{cursor:pointer}button{transition:transform .15s,background .15s}button:hover{filter:brightness(.94)}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,textarea:focus-visible,label.secondary:focus-within{outline:3px solid #3d9dbb;outline-offset:3px}.device{max-width:1120px;margin:auto;background:#c93146;border:2px solid #952236;border-radius:30px 30px 30px 70px;box-shadow:0 12px 0 #8e2638,0 30px 60px #263d3929;overflow:hidden}header{height:95px;display:flex;align-items:center;gap:22px;padding:18px 35px;border-bottom:2px solid #9f2639;background:#be283e}.lens{width:57px;height:57px;border:5px solid #eff4ed;border-radius:50%;background:radial-gradient(circle at 32% 25%,#d0f5ff 0 8%,#62c1e0 12%,#2395bb 45%,#116984 90%);box-shadow:0 0 0 2px #7f263a,0 4px 0 #982336}.lights{display:flex;align-self:flex-start;margin-top:9px;gap:9px}.lights i{width:12px;height:12px;border-radius:50%;background:#ff8790;border:2px solid #892337}.lights i:nth-child(2){background:#f4d77e}.lights i:nth-child(3){background:#9ccf9f}.edition{margin-left:auto;color:#ffd8d9;font:12px 'Space Grotesk',sans-serif;letter-spacing:2px}.titlebar{padding:27px 36px 28px;display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:12px;letter-spacing:2px;color:#ffd0d6;margin:0 0 4px}h1{font:700 44px 'Space Grotesk',sans-serif;letter-spacing:-2px;margin:0;color:white}h1 span{color:#ffbec8}.primary,.secondary{border:0;border-radius:9px;padding:13px 20px;font-weight:700;display:inline-block}.primary{background:#233c3d;color:#fff;box-shadow:0 3px 0 #14292b}.titlebar .primary{background:#fff3e7;color:#922437;box-shadow:0 3px 0 #9e2337}.secondary{background:#e7ece8;color:#294344;border:1px solid #c8d1cc}.hinge{height:10px;border-top:2px solid #99283b;border-bottom:2px solid #df5263;background:#ae283c}.workspace{display:grid;grid-template-columns:290px minmax(0,1fr);gap:22px;padding:28px 30px 25px;min-height:530px}aside{display:flex;flex-direction:column}.collection-head{display:flex;justify-content:space-between;align-items:center;color:#ffe5e6;padding:0 4px 16px}h2{font:700 20px 'Space Grotesk',sans-serif;margin:0}.collection-head span{font:14px 'Space Grotesk',sans-serif;background:#a12235;border-radius:5px;padding:4px 9px}#list{display:flex;flex-direction:column;gap:9px;max-height:570px;overflow-y:auto}.entry{display:flex;gap:12px;align-items:center;width:100%;padding:12px;text-align:left;background:#ac283b;border:1px solid #e45768;border-radius:10px;color:#ffe9eb}.entry.selected{background:#f1f1df;color:#263c39;border-color:#fff;box-shadow:0 3px 0 #972537}.avatar{width:48px;height:48px;border-radius:8px;object-fit:cover;flex-shrink:0;background:#2b4c49;color:#d4e6b9;display:grid;place-items:center;font:700 20px 'Space Grotesk',sans-serif}.entry b{display:block;font-size:16px;overflow-wrap:anywhere}.entry small{display:block;font-size:12px;opacity:.75;margin-top:5px;letter-spacing:1px}.storage{font-size:12px;color:#ffced5;margin-top:auto;padding-top:22px;line-height:1.5}.screen{background:#e4ebd4;border:9px solid #303f42;border-radius:16px;box-shadow:0 4px 0 #8a2536;position:relative;min-height:450px;overflow:hidden}.screen-top{display:flex;justify-content:space-between;padding:15px 21px;border-bottom:1px solid #a5b797;font:12px 'Space Grotesk',sans-serif;letter-spacing:1.5px;color:#5a7055;background:#d7e2c9}.empty{height:100%;min-height:435px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px}.empty-number{font:700 70px 'Space Grotesk',sans-serif;color:#a3b890;letter-spacing:-5px;margin-bottom:14px}.empty h2{font-size:27px}.empty p{max-width:290px;color:#617456;line-height:1.65;margin-bottom:25px}.aside-empty{padding:25px 18px;border:1px dashed #f17c8b;border-radius:10px;color:#ffdadf;font-size:14px;line-height:1.6}.profile{padding:25px}.profile-head{display:flex;gap:23px;align-items:center}.portrait{width:140px;height:155px;object-fit:cover;background:#c8d6b7;border:1px solid #a5b793;border-radius:8px;display:grid;place-items:center;font:700 60px 'Space Grotesk',sans-serif;color:#6a805d;flex-shrink:0}.profile h2{font-size:31px;overflow-wrap:anywhere;letter-spacing:-1px}.metadata{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.chip{font-size:14px;border:1px solid #aab99c;padding:5px 9px;border-radius:5px}.stars{color:#536d40;font-size:27px;letter-spacing:3px}.notes{margin:25px 0 22px;border-top:1px solid #afbe9e;padding-top:20px}.notes h3{font:600 12px 'Space Grotesk',sans-serif;letter-spacing:2px;color:#647857;margin:0 0 12px}.notes p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:0}.profile-actions{display:flex;justify-content:space-between;gap:10px}.screen .secondary{background:#d2ddc3;border-color:#9fb28e}.text-button{background:none;border:0;color:inherit;text-decoration:underline;padding:8px;font-size:14px}.profile-actions .text-button{color:#7d3d3d}footer{padding:0 35px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#ffc5ce;font-size:11px;letter-spacing:2px}.grill{font-size:19px;letter-spacing:4px;color:#8f2335}.power{width:26px;height:9px;background:#e7db92;border-radius:3px}dialog{width:min(560px,calc(100% - 24px));border:1px solid #b9c7be;border-radius:18px;padding:27px;color:#223b3b;background:#f8faf5;box-shadow:0 25px 80px #10262b55}dialog::backdrop{background:#15292bc9;backdrop-filter:blur(4px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.icon{font-size:28px;border:0;background:none;color:#4d6564;padding:0 5px}.photo-upload{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border:1px dashed #b7c9bb;background:#edf2e8;border-radius:9px;padding:14px;margin-bottom:18px;font-size:14px}.photo-upload img{width:60px;height:60px;object-fit:cover;border-radius:6px}#photo{position:absolute;width:1px;height:1px;opacity:0}.photo-upload .secondary{font-size:14px;padding:9px 12px;margin-left:auto}form>label,.fields label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:600;margin-bottom:16px}input,textarea{width:100%;border:1px solid #bdcbc1;border-radius:7px;padding:11px;background:white;color:#223b3b;resize:vertical}.fields{display:grid;grid-template-columns:110px 1fr;gap:16px}fieldset{border:0;padding:0;margin:0 0 18px}legend{font-size:14px;font-weight:600;margin-bottom:5px}.rating{display:flex;gap:6px}.rating button{font-size:32px;line-height:1;border:0;background:transparent;color:#7c9166;padding:5px}#rating-label{font-size:12px;color:#62755e;margin:5px 0 0}.form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:18px}#error{color:#a22c3c;font-size:14px}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#243e3d;color:white;padding:12px 22px;border-radius:10px;box-shadow:0 5px 25px #18332e30;display:none;font-size:14px}#delete-dialog p{line-height:1.6} @media(max-width:720px){body{padding:16px 10px 30px}.device{border-radius:24px 24px 24px 40px}header{padding:17px 23px;height:80px}.edition{font-size:10px;letter-spacing:1px;max-width:110px;line-height:1.6}.lens{width:47px;height:47px}.titlebar{padding:23px 22px;gap:12px}h1{font-size:36px}.eyebrow{font-size:10px;letter-spacing:1px}.titlebar .primary{font-size:14px;padding:12px}.workspace{grid-template-columns:1fr;padding:21px 16px;gap:17px;min-height:0}#list{flex-direction:row;max-height:none;overflow-x:auto;padding-bottom:5px}.entry{min-width:180px;width:180px;flex-shrink:0}.collection-head{padding-bottom:10px}.storage{padding:0;margin:10px 3px 0}.screen{border-width:7px;min-height:365px}.empty{min-height:355px;padding:26px}.profile{padding:19px}.profile-head{gap:15px}.portrait{width:95px;height:116px;font-size:42px}.profile h2{font-size:26px}.metadata{gap:5px}.chip{font-size:12px}.stars{font-size:23px}footer{padding:0 23px 20px;font-size:9px;letter-spacing:1px}.grill{font-size:14px}.photo-upload .secondary{margin-left:0}dialog{padding:21px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.social-fields{display:grid;gap:10px;margin-top:10px}.social-fields label{display:flex;flex-direction:column;gap:6px;font-size:14px}.optional{font-weight:400;color:#657a68}.social-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.social-links:empty{display:none}.social-link{font-size:14px;color:#2b4b39;background:#d1dec0;border:1px solid #a0b38e;border-radius:6px;padding:8px 12px;text-decoration:none}.social-link:hover{background:#becfa9}dialog{max-height:90dvh;overflow-y:auto}

[hidden]{display:none!important}.tabs{display:flex;gap:8px;padding:0 30px 18px}.tabs button{background:#a42537;color:#ffdae0;border:1px solid #df596a;border-radius:8px;padding:11px 18px;font-size:14px;font-weight:600}.tabs button[aria-pressed="true"]{background:#e4ebd4;color:#29403b;border-color:#e4ebd4}select{font:inherit;width:100%;padding:11px;border:1px solid #bdcbc1;border-radius:7px;background:white;color:#223b3b}.extra-view{padding:28px 30px 25px}.atlas-content{padding:24px}.atlas-content h2{font-size:25px}.map-description{color:#546b4a;font-size:14px;line-height:1.6}.map-container{border:1px solid #98b3a1;border-radius:9px;overflow:hidden;margin:22px 0 12px}.map-container svg{display:block;width:100%;height:auto}.map-country{fill:#b0c09a;stroke:#6f896c;stroke-width:.45;cursor:pointer}.map-country.logged{fill:#be3448;stroke:#8d2334}.map-country:hover,.map-country.focused{fill:#efd677;stroke:#5d6641;stroke-width:1}.map-legend{display:flex;gap:22px;font-size:12px;color:#526949}.map-legend span{display:flex;align-items:center;gap:7px}.map-legend i{display:inline-block;width:11px;height:11px;background:#b0c09a;border:1px solid #6f896c;border-radius:2px}.map-legend .legend-logged{background:#be3448;border-color:#8d2334}.country-selector{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;margin-top:22px;max-width:400px}#map-detail{background:#d5e0c8;padding:16px;border-radius:9px;margin-top:15px}#map-detail h3{margin:0;font-size:18px}#map-detail p{font-size:14px;margin:8px 0;line-height:1.5}.country-person{margin:6px 8px 0 0;padding:9px 12px}.unmapped{padding:14px;background:#eed8bb;border:1px solid #c4a175;border-radius:8px;margin-top:16px;font-size:14px}.unmapped p{margin:7px 0 0;line-height:1.5}.region-guide{font-size:12px;color:#5c7254;margin-top:20px;line-height:1.6}.region-guide summary{cursor:pointer}.region-guide a{color:inherit}.badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:22px}.badge{background:#d7e1cb;border:1px solid #b0c29e;border-radius:12px;padding:18px;position:relative}.badge.unlocked{background:#e9e3ba;border-color:#b8a95d}.badge-symbol{font-size:34px;color:#829569;display:block}.unlocked .badge-symbol{color:#876b19}.badge-state{font-size:10px;letter-spacing:1.5px;color:#5e7453}.badge h3{font:700 18px 'Space Grotesk',sans-serif;margin:8px 0}.badge p{font-size:13px;line-height:1.5;min-height:39px;color:#536b4b}.badge progress{width:100%;height:9px;accent-color:#4b7652}.badge-count{display:block;font-size:12px;margin-top:7px;color:#556c4d}.regions-heading{font:700 20px 'Space Grotesk',sans-serif;margin:30px 0 8px}.region-list{border:1px solid #afbe9e;background:#d7e2ca;border-radius:8px;margin-bottom:10px}.region-list summary{padding:14px 16px;cursor:pointer;font-weight:600;font-size:14px}.region-list summary span{float:right;font-weight:400}.region-list ul{list-style:none;padding:0 16px 15px;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.region-list li{font-size:13px;color:#5d7352;line-height:1.5}.region-list li.complete{color:#8e283a;font-weight:600}.region-list li span{margin-right:3px}@media(max-width:720px){.tabs{padding:0 16px 17px;gap:6px}.tabs button{flex:1;padding:10px 6px;font-size:13px}.extra-view{padding:21px 16px}.atlas-content{padding:18px}.atlas-content h2{font-size:22px}.badge-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.badge{padding:13px}.badge h3{font-size:16px}.badge p{min-height:58px}.region-list ul{grid-template-columns:repeat(2,minmax(0,1fr))}}

.entry-filters{margin-bottom:12px}.entry-filters>label{font-size:13px;font-weight:600;color:#ffe9eb;display:block;margin-bottom:7px}.entry-filters input,.entry-filters select{background:#fff5eb;font-size:14px;border-color:#f07384}.filter-row{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:8px;margin-top:10px}.filter-row label{display:flex;flex-direction:column;gap:6px;color:#ffe9eb;font-size:12px}.filter-row select{padding:9px 7px}.filter-status{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:32px;font-size:12px;color:#ffd5dc;margin-top:5px}.filter-status .text-button{font-size:12px;padding:5px 0;color:#fff2e8}.phone-detail{margin-top:20px;padding:12px 15px;background:#d5e0c8;border-radius:8px;display:flex;flex-direction:column;gap:6px}.phone-detail>span{font:600 12px 'Space Grotesk',sans-serif;letter-spacing:1.5px;color:#647857}.phone-detail a{color:#24473f;font-size:16px;overflow-wrap:anywhere;text-underline-offset:3px}.phone-detail p{margin:0;overflow-wrap:anywhere}@media(max-width:720px){.filter-row{grid-template-columns:1fr 1fr}.entry-filters input{font-size:16px}.entry-filters select{font-size:16px}}
.account-bar{padding:0 30px 18px;display:flex;gap:16px;align-items:center;color:#ffdae0;font-size:14px;flex-wrap:wrap}.account-bar>span{font-weight:600}.account-bar label{display:flex;gap:9px;align-items:center;margin-left:auto}.account-bar select{width:auto;max-width:260px;padding:8px;font-size:14px;background:#fff3e7}.account-bar a{color:#ffe6e7;font-size:12px}#import-banner{background:#f1e3ba;color:#4a4a30;padding:15px 30px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:14px}#import-status{width:100%;font-size:13px}.own-summary{display:flex;align-items:center;gap:16px;margin-bottom:20px}.own-summary .avatar{width:64px;height:64px}.own-summary p{font-size:13px;color:#667b59;margin:5px 0}.own-summary button{margin-left:auto}.friend-code{background:#d0ddc1;border:1px solid #a3b795;border-radius:10px;padding:18px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.friend-code>span{font:600 12px 'Space Grotesk',sans-serif;letter-spacing:1px;width:100%;color:#627751}.friend-code strong{font:600 21px 'Space Grotesk',sans-serif;letter-spacing:1px}.friend-code button{margin-left:auto}.add-friend-row{display:flex;gap:10px;margin-top:8px}#add-friend-form>label{font-size:14px;font-weight:600}.add-friend-row input{min-width:0}.add-friend-row button{flex-shrink:0;font-size:14px}.friend-row{display:flex;align-items:center;gap:12px;border:1px solid #afbe9e;padding:14px;border-radius:9px;margin-bottom:12px;background:#d7e2cb}.friend-row>div:nth-child(2){min-width:0;overflow-wrap:anywhere}.friend-row strong{display:block;font-size:16px}.friend-row span:not(.avatar){display:block;font-size:12px;color:#5d7450;margin-top:5px}.friend-actions{display:flex;gap:8px;align-items:center;margin-left:auto}.friend-actions button{font-size:13px;padding:9px}.refresh-button{margin-top:12px}.profile-explanation{font-size:14px;line-height:1.6;color:#5e735f}#own-photo{position:absolute;width:1px;height:1px;opacity:0}#own-error,#friend-error,#comment-error{font-size:14px;color:#922b3d}.comments-section{border-top:1px solid #afbe9e;padding-top:22px;margin-top:25px}.comments-section>h3{font:700 20px 'Space Grotesk',sans-serif;margin:0 0 15px}.comment{background:#d5e0c8;border:1px solid #b1c2a1;border-radius:9px;padding:14px;margin-bottom:10px}.comment-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.comment-head strong{font-size:14px;overflow-wrap:anywhere}.comment time{font-size:11px;color:#617757;flex-shrink:0}.comment p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65;margin:9px 0 0}.comment .text-button{font-size:12px;color:#833547;padding:6px 0;margin-top:5px}.no-comments{font-size:14px;color:#5b7053;line-height:1.5}#comment-form{margin-top:18px}#comment-form>label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}#comment-form textarea{background:#f3f6ea}.comments-section>div{font-size:14px}.profile-actions{margin-bottom:0}@media(max-width:720px){.account-bar{padding:0 16px 17px;gap:10px}.account-bar label{margin-left:0}.account-bar select{max-width:185px}.tabs button{font-size:12px}.friend-code strong{font-size:16px}.friend-code button{padding:9px 12px}.own-summary{gap:10px;flex-wrap:wrap}.own-summary button{font-size:13px;padding:10px}.friend-row{flex-wrap:wrap}.friend-actions{width:100%;margin-left:60px}.add-friend-row{flex-wrap:wrap}.add-friend-row button{width:100%}.comment-head{flex-direction:column;gap:4px}#import-banner{padding:14px 16px}.own-summary h2{font-size:20px}}
.auth-device{max-width:620px}.auth-workspace{padding:28px 30px}.auth-content{padding:28px}.auth-content h2{font-size:27px}.auth-content p{font-size:14px;line-height:1.6;color:#536b4b}.auth-tabs{display:flex;gap:8px;border-bottom:1px solid #a9ba99;padding-bottom:14px;margin:22px 0}.auth-tabs button{flex:1;padding:11px;border:1px solid #afc29d;border-radius:7px;background:#d2dfc1;color:#4c6444;font:600 14px 'DM Sans',sans-serif}.auth-tabs button[aria-pressed="true"]{background:#2b4940;color:#f4f5df;border-color:#2b4940}.auth-content form>label{margin-bottom:16px}.auth-content textarea{background:#f7f9ef}.auth-content .primary{width:100%;margin:5px 0 12px}.auth-content #auth-error{color:#982a3c}.auth-content #mode-reset{font-size:14px;padding:8px 0}.auth-content #password-help{font-size:12px}.auth-content #new-recovery-code{font:16px 'Space Grotesk',sans-serif;margin:8px 0 12px;word-break:break-all}.auth-content #recovery-screen>label{font-size:14px;font-weight:600}@media(max-width:720px){.auth-workspace{padding:20px 16px}.auth-content{padding:22px 18px}.auth-content h2{font-size:24px}}
#google-signin{display:flex;justify-content:center;margin-top:20px}#google-status{font-size:14px;text-align:center}.auth-divider{text-align:center;font-size:14px;margin:20px 0;color:#53646c}
.journal-context{margin:0 30px 20px;padding:20px 22px;background:#243e36;color:#fff;border:2px solid #82a78c;border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:18px}.journal-context h2{font-size:26px;margin:4px 0 8px;line-height:1.25;overflow-wrap:anywhere}.journal-context p{font-size:14px;margin:0;line-height:1.5}.journal-context #journal-context-tag{font-size:14px;font-weight:700;letter-spacing:.08em;color:#bfe5cb}.journal-context.friend-journal{background:#163c66;border-color:#8ec6fa}.journal-context.friend-journal #journal-context-tag{color:#c7e5ff}.journal-context .secondary{flex-shrink:0;background:#fff;color:#163c66;border-color:#fff;font-size:14px}.viewing-friend .collection-head{background:#e1efff;border-bottom:2px solid #447eb4}.collection-head h2{overflow-wrap:anywhere}.journal-context [hidden]{display:none!important}@media(max-width:720px){.journal-context{margin:0 16px 18px;padding:18px;flex-direction:column;align-items:stretch}.journal-context h2{font-size:24px}.journal-context .secondary{width:100%}}
.tabs{flex-wrap:wrap}.tabs button{font-size:14px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.section-head h2,.section-head h3{margin:0}.section-head label{font-size:14px}.section-head select{margin-left:8px;max-width:240px}.privacy-fields{padding:18px;border:1px solid #93aa8d;border-radius:10px;margin:20px 0}.privacy-fields .check-label{display:flex;align-items:center;gap:12px;font-size:14px;margin:12px 0}.check-label input{width:18px;height:18px;flex-shrink:0}.privacy-fields p{font-size:14px;line-height:1.5}.private-notes{background:#e7eedf;padding:18px;border-left:4px solid #3f674b}.date-timeline{border-top:1px solid #afbe9e;margin-top:24px;padding-top:24px}.date-timeline h3{font-size:22px}.date-log{padding:18px;background:#dce7d0;border-radius:10px;border:1px solid #afbe9e;margin-top:16px}.date-log time,.date-log p{font-size:14px;line-height:1.6}.log-notes{white-space:pre-wrap;overflow-wrap:anywhere}.date-actions{display:flex;gap:18px}.date-actions button{font-size:14px}.timeline-photo{border:0;padding:0;background:transparent;cursor:pointer}.timeline-photo img{max-width:100%;max-height:220px;object-fit:contain;border-radius:8px}.date-photo-preview{max-width:100%;max-height:260px;object-fit:contain;margin:12px 0}.reaction-row,.feed-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.reacted{outline:3px solid #b42d43}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px;margin:24px 0}.photo-card{background:#e6edda;border:1px solid #aabb97;border-radius:10px;padding:0 0 14px;overflow:hidden;text-align:left;cursor:pointer;color:#263a2d}.photo-card img{width:100%;aspect-ratio:1;object-fit:cover}.photo-card strong,.photo-card span{display:block;padding:0 14px;overflow-wrap:anywhere}.photo-card strong{font-size:16px;margin:12px 0 6px}.photo-card span{font-size:14px}.photo-card:hover{outline:3px solid #50745f}#photo-lightbox{max-width:1000px;width:calc(100vw - 32px)}#lightbox-image{display:block;width:100%;max-height:70vh;object-fit:contain;background:#183529;border-radius:8px}.lightbox-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.stat-card{padding:22px;background:#d4e2c6;border:1px solid #a8bb96;border-radius:10px}.stat-card strong{display:block;font-size:34px}.stat-card span{display:block;font-size:14px;margin-top:8px}.activity-bars>div{margin:16px 0;font-size:16px}.activity-bars progress{display:block;width:100%;margin-top:8px;accent-color:#3f6952}.status-counts p{display:flex;justify-content:space-between;border-bottom:1px solid #aabb97;padding:12px 0}.backup-section{border-top:1px solid #aabb97;margin-top:30px;padding-top:20px}.feed-card{padding:22px;border:1px solid #aabb97;background:#dce7d1;border-radius:12px;margin:20px 0}.feed-card time,.feed-reaction-status{font-size:14px}.feed-card h3{font-size:24px}.feed-photo{display:block;width:100%;max-height:330px;object-fit:contain;background:#c6d8b9;margin:16px 0;border-radius:8px}.empty-text{font-size:16px;line-height:1.6;padding:25px 0}#date-error{color:#922b3d;font-size:14px}#date-form>label{margin:16px 0}.status-filter{display:block;margin:12px 0;font-size:14px}.status-filter select{width:100%;margin-top:8px}@media(max-width:720px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{padding:16px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tabs{gap:6px}.tabs button{flex:1 1 25%;padding:10px 6px}.section-head select{max-width:180px}.feed-card{padding:16px}.feed-actions button{font-size:14px}.photo-card strong{font-size:14px}.photo-card span{font-size:14px}}
/* Each owner brings their own DateDex shell and showcase. */
.device{--profile-shell:#c93146;--profile-image:none;background-color:var(--profile-shell);background-image:linear-gradient(var(--profile-overlay,#0002),var(--profile-overlay,#0002)),var(--profile-image);background-size:cover;background-position:center;background-attachment:scroll}.device header{background:color-mix(in srgb,var(--profile-shell) 78%,#101827)}.device.custom-profile-theme{border-color:color-mix(in srgb,var(--profile-shell) 50%,#101827);box-shadow:0 12px 0 color-mix(in srgb,var(--profile-shell) 50%,#101827),0 30px 60px #263d3929}.device .titlebar,.device .tabs,.device .account-bar,.device aside,.device footer{background:color-mix(in srgb,var(--profile-shell) 75%,#101827aa)}.device.custom-profile-theme .hinge{background:color-mix(in srgb,var(--profile-shell) 70%,#101827);border-color:#10182766}.profile-identity{display:flex;align-items:flex-start;gap:18px;min-width:0;flex:1}.profile-identity>div:last-child{min-width:0;flex:1}.profile-avatar{width:76px;height:76px;border-radius:18px;object-fit:cover;background:#e1e9da;color:#243e36;display:flex;align-items:center;justify-content:center;font-size:32px;border:3px solid #e1e9da;flex-shrink:0}.profile-name-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.profile-name-row h2{margin:0}.profile-badges{display:flex;flex-wrap:wrap;gap:5px}.profile-badge{padding:0;background:transparent;border:0;line-height:0}.achievement-emblem{width:80px;height:88px;display:block;margin-bottom:12px;filter:drop-shadow(0 3px 0 #172e3920)}.emblem-small{width:37px;height:41px;margin:0}.emblem-locked{filter:grayscale(1);opacity:.48}.showcase-badge{margin-top:12px;padding:9px 12px;font-size:14px}.showcase-badge[aria-pressed=true]{background:#254b3c;color:white}.profile-favourites{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:15px}.favourites-label{width:100%;font-size:12px;font-weight:700;letter-spacing:.12em;color:#cfdfd6}.favourites-empty{font-size:14px;color:#e0eae3}.favourite-entry{display:flex;gap:8px;align-items:center;padding:5px 10px 5px 5px;border-radius:30px;background:#edf3e6;color:#243e36;border:1px solid #b5cdb5;font-size:14px;font-weight:600;max-width:100%}.favourite-entry .avatar{width:32px;height:32px;flex-shrink:0;font-size:14px}.favourite-entry span{overflow-wrap:anywhere}.favourite-toggle{padding:9px 13px;font-size:14px}.favourite-toggle[aria-pressed=true]{color:#9a2544;background:#f6dde5}.appearance-editor,.geotag-editor{margin:24px 0;padding:18px;border:1px solid #95ab8b;border-radius:12px}.appearance-editor label{margin:12px 0;display:block}.appearance-editor p,.geotag-editor p{font-size:14px;line-height:1.6}.appearance-editor input[type=color]{width:100%;height:44px;padding:5px}.background-preview{width:100%;max-height:160px;object-fit:cover;border-radius:8px;margin:12px 0}.location-map{height:320px;width:100%;border:1px solid #8ca489;border-radius:10px;margin:16px 0;z-index:0;background:#e3eadb}.location-map .leaflet-control-attribution{font-size:12px}.map-link{display:inline-block;color:#254b3c;font-size:14px;margin:8px 0}.date-locations{margin-top:24px;border:2px solid #9caf8d;border-radius:12px;background:#dce7d0}.location-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.location-list button{text-align:left}.location-list span{display:block;font-size:14px;font-weight:400;margin-top:6px}.badge p{min-height:0}.badge-grid .badge{display:flex;flex-direction:column;align-items:flex-start}.badge-grid .badge progress{margin-top:auto;width:100%}@media(max-width:720px){.profile-identity{gap:12px}.profile-avatar{width:54px;height:54px;border-radius:12px;font-size:24px}.profile-name-row{gap:8px}.emblem-small{width:30px;height:34px}.profile-favourites{margin-left:-66px;margin-top:18px}.location-list{grid-template-columns:1fr}.location-map{height:280px}.journal-context{align-items:stretch}.appearance-editor,.geotag-editor{padding:14px}.showcase-badge{width:100%}}

.account-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;background:#e1e9da;color:#243e36;display:flex;align-items:center;justify-content:center;font-size:14px}.device:has(.background-preview){background-size:cover}.device .titlebar,.device .tabs,.device .account-bar,.device aside,.device footer{background:#10182722}.device.custom-profile-theme .titlebar,.device.custom-profile-theme .tabs,.device.custom-profile-theme .account-bar,.device.custom-profile-theme aside,.device.custom-profile-theme footer{background:#10182755}

.device aside,.device.custom-profile-theme aside{background:transparent}

.inline-profile-editor{max-width:640px;margin:24px 0}.inline-profile-editor form>label{display:block;margin:18px 0}.inline-profile-editor .modal-head{margin-bottom:16px}#profile-badge-editor,#profile-favourites-editor{border-top:1px solid #9cb48d;margin-top:28px;padding-top:20px}#profile-favourites-editor .friend-row{flex-wrap:wrap}#profile-favourites-editor button{margin-left:auto}#profile-view .own-summary h2{margin-bottom:8px}

#tab-feed{position:relative}.activity-bell{position:absolute;top:-7px;right:-7px;width:23px;height:23px;display:flex;align-items:center;justify-content:center;background:#ffe399;color:#593900;border:2px solid #fff5d9;border-radius:50%;box-shadow:0 2px 4px #0003}.activity-bell[hidden]{display:none}.activity-bell svg{width:14px;height:14px}.profile-account-actions{display:flex;justify-content:flex-end;margin-bottom:18px}.profile-account-actions a{font-size:14px;text-decoration:none}

/* Shared palette: custom themes colour the controls and content as well as the shell. */
html[data-profile-theme=custom],.device.custom-profile-theme{--theme-ink:color-mix(in srgb,var(--profile-shell) 25%,#101827);--theme-muted:color-mix(in srgb,var(--profile-shell) 30%,#526171);--theme-paper:color-mix(in srgb,var(--profile-shell) 6%,white);--theme-panel:color-mix(in srgb,var(--profile-shell) 13%,white);--theme-line:color-mix(in srgb,var(--profile-shell) 35%,#c8d2dc);--theme-dark:color-mix(in srgb,var(--profile-shell) 55%,#101827);--theme-light:color-mix(in srgb,var(--profile-shell) 15%,white)}
html[data-profile-theme=custom]{background:var(--theme-paper);color:var(--theme-ink)}
.device.custom-profile-theme header{border-color:var(--theme-dark)}
.device.custom-profile-theme .lens{box-shadow:0 0 0 2px var(--theme-dark),0 4px 0 var(--theme-dark)}
.device.custom-profile-theme .lights i{border-color:var(--theme-dark)}
.device.custom-profile-theme :is(.edition,.eyebrow,h1 span,.collection-head,.storage,footer,.entry-filters label,.filter-row label,.status-filter,.filter-count,.aside-empty){color:var(--theme-light)}
.device.custom-profile-theme .tabs button,.device.custom-profile-theme .entry{background:var(--theme-dark);border-color:var(--theme-line);color:var(--theme-paper)}
.device.custom-profile-theme .tabs button[aria-pressed=true],.device.custom-profile-theme .entry.selected{background:var(--theme-panel);color:var(--theme-ink);border-color:var(--theme-paper);box-shadow:none}
.device.custom-profile-theme .collection-head span{background:var(--theme-dark)}
.device.custom-profile-theme .aside-empty{border-color:var(--theme-line)}
.device.custom-profile-theme .screen{background:var(--theme-paper);border-color:var(--theme-dark);color:var(--theme-ink);box-shadow:0 4px 0 var(--theme-dark)}
.device.custom-profile-theme .screen-top{background:var(--theme-panel);border-color:var(--theme-line);color:var(--theme-muted)}
.device.custom-profile-theme .journal-context{background:var(--theme-dark);border-color:var(--theme-line);color:white}
.device.custom-profile-theme .journal-context.friend-journal{background:color-mix(in srgb,var(--profile-shell) 70%,#101827);border-color:var(--theme-paper)}
.device.custom-profile-theme :is(.profile-avatar,.avatar){background:var(--theme-panel);border-color:var(--theme-light);color:var(--theme-ink)}
.device.custom-profile-theme :is(.favourites-label,.favourites-empty){color:var(--theme-light)}
.device.custom-profile-theme .titlebar .primary{background:var(--theme-paper);color:var(--theme-dark);box-shadow:0 3px 0 var(--theme-dark)}
html[data-profile-theme=custom] :is(.primary,#toast){background:var(--theme-dark);color:white;box-shadow:0 3px 0 var(--theme-ink)}
html[data-profile-theme=custom] :is(.secondary,.screen .secondary,.social-link,.favourite-entry,.photo-upload,.date-log,.stat-card,.feed-card,.photo-card,.region-list,.badge,.friend-row,.private-notes,.date-locations,#map-detail){background:var(--theme-panel);border-color:var(--theme-line);color:var(--theme-ink)}
html[data-profile-theme=custom] :is(.badge.unlocked,.showcase-badge[aria-pressed=true],.favourite-toggle[aria-pressed=true]){background:var(--theme-dark);color:white;border-color:var(--theme-dark)}
html[data-profile-theme=custom] .badge.unlocked :is(p,.badge-state,.badge-count){color:var(--theme-light)}
html[data-profile-theme=custom] :is(.map-description,.own-summary p,.profile-explanation,.badge p,.badge-state,.badge-count,.optional,.empty p,.region-guide,.region-list li,.map-legend,.notes h3,#rating-label){color:var(--theme-muted)}
html[data-profile-theme=custom] :is(.region-list li.complete,.map-link,.stars,.rating button,.empty-number){color:var(--profile-shell)}
html[data-profile-theme=custom] :is(input,textarea,select){background:var(--theme-paper);border-color:var(--theme-line);color:var(--theme-ink);accent-color:var(--profile-shell)}
html[data-profile-theme=custom] :is(.appearance-editor,.geotag-editor,.privacy-fields,.chip,.notes,.date-timeline,.status-counts p,.backup-section,#profile-badge-editor,#profile-favourites-editor,.map-container,.location-map){border-color:var(--theme-line)}
html[data-profile-theme=custom] :is(.portrait,.feed-photo,#lightbox-image){background:var(--theme-panel);border-color:var(--theme-line);color:var(--theme-muted)}
html[data-profile-theme=custom] dialog{background:var(--theme-paper);border-color:var(--theme-line);color:var(--theme-ink)}
html[data-profile-theme=custom] .icon{color:var(--theme-muted)}
html[data-profile-theme=custom] progress{accent-color:var(--profile-shell)}
html[data-profile-theme=custom] .reacted{outline-color:var(--profile-shell)}
html[data-profile-theme=custom] .map-country{fill:var(--theme-panel);stroke:var(--theme-muted)}
html[data-profile-theme=custom] .map-country.logged{fill:var(--profile-shell);stroke:var(--theme-dark)}
html[data-profile-theme=custom] .map-legend i{background:var(--theme-panel);border-color:var(--theme-muted)}
html[data-profile-theme=custom] .map-legend .legend-logged{background:var(--profile-shell);border-color:var(--theme-dark)}

.device.custom-profile-theme .viewing-friend .collection-head,.device.custom-profile-theme.viewing-friend .collection-head{background:var(--theme-dark);border-color:var(--theme-light)}
.device.custom-profile-theme #journal-context-tag{color:var(--theme-light)}

#tutorial-dialog{position:fixed;inset:auto 24px 24px auto;margin:0;width:min(440px,calc(100vw - 32px));max-height:55dvh;border:2px solid var(--theme-line,#b9c7be);padding:24px}#tutorial-dialog::backdrop{background:#10182755}#tutorial-dialog h2{font-size:24px}#tutorial-description{font-size:16px;line-height:1.6}.tutorial-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}.tutorial-highlight{outline:4px solid #ffdf75!important;outline-offset:5px}#tutorial-error{color:#a22c3c;font-size:14px}@media(max-width:720px){#tutorial-dialog{right:16px;bottom:16px;padding:20px;max-height:55dvh}.tutorial-actions button{font-size:14px;padding:10px}}
