*{box-sizing:border-box} :root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#153d43;background:#f3f6f6;font-size:16px}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:48px;border-radius:12px;padding:12px 18px;border:0;font-weight:650}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #ca6c24;outline-offset:3px}header{height:88px;display:flex;align-items:center;justify-content:space-between;max-width:1000px;margin:auto;padding:20px 28px}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-size:26px}.brand span{font-size:12px;letter-spacing:2px;border-left:1px solid #bccdce;padding-left:12px}main{max-width:940px;margin:35px auto;padding:0 28px;min-height:70vh}h1{font-size:clamp(32px,6vw,52px);letter-spacing:-1.8px;margin:8px 0 26px;line-height:1.08}h1 span{color:#d58137}.eyebrow{font-size:12px;font-weight:750;letter-spacing:2px;color:#527276;margin:28px 0 12px}.heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.primary{background:#153d43;color:white}.secondary{background:#e7eeee;color:#153d43;border:1px solid #bdcfd1}.quiet{background:transparent;color:#47666b;padding-left:0}label{display:block;font-size:14px;font-weight:650;margin:18px 0}input,select,textarea{display:block;width:100%;min-width:0;margin-top:8px;background:white;border:1px solid #bbcdd0;border-radius:10px;padding:14px;color:#163d43;font-size:16px}input:focus,textarea:focus,select:focus{outline:2px solid #3d8089;outline-offset:1px}fieldset{border:0;background:white;border-radius:18px;padding:20px 24px;margin:20px 0}legend{float:left;width:100%;padding:0;margin:4px 0 8px;color:#8a6b48;font-size:14px;font-weight:650}legend span{color:#153d43;margin-left:12px;font-size:19px}fieldset>*:nth-child(2){clear:both}.dates{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hint{font-size:14px;color:#526e72;line-height:1.6}.stats{display:flex;gap:32px;padding:22px 0;border-top:1px solid #cbd8d9;border-bottom:1px solid #cbd8d9;margin:8px 0 28px}.stats b{font-size:26px;margin-right:8px}.stats span{font-size:14px}#entries{display:grid;grid-template-columns:1fr 1fr;gap:24px}.card{background:white;border-radius:16px;overflow:hidden;border:1px solid #dbe5e5}.card>img{width:100%;height:220px;object-fit:cover}.cardbody{padding:22px}.card h2{font-size:24px;margin:12px 0}.tag{display:inline-block;background:#e5eff0;padding:6px 10px;border-radius:6px;font-size:12px;font-weight:700}.meta{color:#526e72;font-size:14px}.comment{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.actions{display:flex;gap:18px}.actions a{align-self:center;color:#245f67}.gallery{display:flex;gap:8px;overflow:auto}.gallery img{width:90px;height:80px;object-fit:cover;border-radius:8px}.empty{grid-column:1/-1;text-align:center;border:1px dashed #a5bfc2;padding:60px 20px;border-radius:18px}.empty .symbol{font-size:48px}.empty p{color:#526e72}.savebar{display:flex;justify-content:flex-end;gap:12px;padding:20px 0 calc(20px + env(safe-area-inset-bottom))}#editor{max-width:700px;margin:auto}#login{max-width:450px;margin:50px auto}#loginForm{background:white;padding:12px 24px 24px;border-radius:18px}#loginForm button{width:100%;margin-top:12px}#notice:not(:empty){padding:14px 18px;background:#fff0d9;border-radius:10px;margin-bottom:24px;line-height:1.5}.previews{display:flex;gap:12px;overflow:auto}.preview{flex:0 0 110px}.preview img{width:110px;height:100px;object-fit:cover;border-radius:10px}.preview button{font-size:12px;padding:8px;min-height:44px;background:#edf2f2;width:100%}footer{max-width:940px;margin:32px auto;padding:24px 28px;font-size:14px;color:#61797c}footer span{margin:0 8px}[hidden]{display:none!important}@media(max-width:600px){header{height:74px;padding:16px 20px}main{margin:18px auto;padding:0 20px}.heading{display:block}.heading .primary{width:100%;margin-bottom:20px}#entries{grid-template-columns:1fr;gap:18px}.stats{justify-content:space-between;gap:12px}.stats b{display:block}.dates{gap:10px}fieldset{padding:18px 16px}.savebar{position:sticky;bottom:0;background:#f3f6f6}.savebar button{flex:1}h1{letter-spacing:-1px}.card>img{height:230px}}

.journal-tools{display:flex;gap:10px}.actions button{display:flex;align-items:center;justify-content:center;min-width:48px;padding:12px}.actions svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.actions button[data-delete]{margin-left:auto;color:#973e36}#chooseMap{margin-top:12px}.stat-panel{background:white;padding:20px 24px;border-radius:16px;margin:20px 0}.stat-panel h2{font-size:20px}.stat-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:14px 0;border-bottom:1px solid #e3ebec}.stat-row:last-child{border:0}.stat-row>span{overflow-wrap:anywhere}.stat-row strong{white-space:nowrap}.stat-row strong span{font-size:14px;font-weight:400}.year-choice{max-width:240px}dialog{width:calc(100% - 32px);max-width:520px;max-height:85dvh;overflow:auto;border:0;border-radius:18px;padding:24px;color:#153d43;background:#f3f6f6}dialog::backdrop{background:#102e35aa}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-heading h2{margin:0;font-size:23px}.map-links{display:flex;gap:12px}.map-links a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:12px;border-radius:10px;text-decoration:none;flex:1}#mapError{color:#973e36}#applyMap{width:100%}@media(max-width:600px){.journal-tools{margin-bottom:16px;flex-wrap:wrap}.heading .journal-tools .primary{width:auto;margin:0;flex:1}.stat-panel{padding:16px}.stats{flex-wrap:wrap}.stat-row{font-size:14px}.stat-row strong span{font-size:12px}}
