:root{--navy:#09285d;--ink:#152e54;--blue:#2365e8;--sky:#8ab1ff;--muted:#627391;--line:#dce5f3;--paper:#f4f7fc;--font:'DM Sans','Noto Sans Thai',sans-serif;--title:'Manrope','Noto Sans Thai',sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 var(--font)}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #7aa3fc;outline-offset:3px}button{border:0}button:disabled{opacity:.5;cursor:wait}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:var(--title)}.brand{display:flex;align-items:center;gap:10px}.brand img{width:45px;height:45px}.brand>span{font:800 25px/1.1 var(--title);letter-spacing:-1px}.brand small{display:block;font:10px/2 var(--font);letter-spacing:.4px}.book-header nav{display:flex;align-items:center;gap:30px;height:100%;font-size:14px}.book-header nav a{height:100%;display:flex;align-items:center;border-bottom:2px solid transparent;color:#c8d9f7}.book-header nav .active{color:white;border-bottom-color:#8eb5ff}.book-wrap{width:min(1400px,calc(100% - 56px));margin-inline:auto}.page-loading{min-height:60vh;display:grid;place-items:center;color:var(--muted)}.book-kicker{display:flex;align-items:center;gap:9px;color:#5d83c7;font-size:11px;letter-spacing:1.8px;font-weight:700;margin-bottom:11px}.book-kicker svg{width:15px;height:15px}.book-hero{background:linear-gradient(120deg,#09285d,#17478c);color:white;padding-block:45px 75px;position:relative;overflow:hidden}.book-hero:after{content:'';position:absolute;width:380px;height:380px;border:1px solid #ffffff09;border-radius:50%;right:6%;top:-180px;box-shadow:0 0 0 45px #ffffff03,0 0 0 90px #ffffff03;pointer-events:none}.hero-row{display:flex;align-items:center;justify-content:space-between;gap:30px}.book-hero .book-kicker{color:#a9c6ff}.book-hero h1{font-size:38px;font-weight:800;letter-spacing:-1.5px;margin-bottom:12px;line-height:1.3}.book-hero h1 em{font-style:normal;color:#a8c8ff}.book-hero p:last-child{color:#c4d6f4;margin:0;font-size:16px}.primary,.secondary,.text-button,.danger{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:600;border-radius:8px;font-size:14px;padding:12px 18px;line-height:1.5;white-space:nowrap}.primary{background:var(--blue);color:#fff;box-shadow:0 4px 12px #1e56cc1c}.primary:hover{background:#1954c7}.book-hero .primary{background:white;color:#123c79}.secondary{background:white;border:1px solid var(--line);color:#365b96}.secondary:hover{background:#edf3ff}.text-button{background:transparent;color:#3967a9;padding:7px 9px}.text-button:hover{background:#eaf0fc}.danger{background:#fff2f1;color:#b44646}.primary svg,.secondary svg,.text-button svg{width:18px;height:18px}.book-stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:12px;background:white;box-shadow:0 6px 20px #223e6c08;margin-top:-35px;position:relative;z-index:1;padding:25px 0}.book-stat{display:flex;align-items:center;justify-content:center;gap:16px;border-right:1px solid var(--line)}.book-stat:last-child{border:0}.book-stat>span{color:#6b92cf;width:43px;height:43px;border-radius:10px;display:grid;place-items:center;background:#f0f5ff}.book-stat strong{font:800 26px/1.2 var(--title);letter-spacing:-1px;display:block}.book-stat small{font-size:13px;color:var(--muted)}.local-preview{font-size:13px;padding:10px 18px;border:1px solid #cfdbf3;background:#eaf1fe;color:#355886;border-radius:8px;margin-block:18px}.book-list-section{padding-block:32px 60px}.book-list-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.book-list-heading h2{font-size:24px;letter-spacing:-.7px;margin:0}.book-list-heading>div{display:flex;align-items:center;gap:13px}.filter-input{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;background:white;padding:7px 12px}.filter-input svg{width:17px;color:#7791b7}.filter-input input{border:0;min-width:100px;max-width:200px;font-size:14px;outline:none}.list-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.entry-card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:box-shadow .2s,transform .2s}.entry-card:hover{box-shadow:0 10px 30px #15397112;transform:translateY(-2px)}.entry-map{position:relative;aspect-ratio:1.7;overflow:hidden;background:#e3edfc}.entry-map>img{width:100%;height:100%;object-fit:cover;display:block}.entry-map>svg{position:absolute;inset:0;width:100%;height:100%}.entry-map-badge{position:absolute;top:12px;left:13px;background:#ffffffed;color:#244d89;padding:4px 9px;font-size:11px;border-radius:20px;display:flex;gap:5px;align-items:center}.entry-map-badge svg{width:12px;height:12px}.entry-content{padding:22px}.entry-date{font-size:12px;color:#7285a3;margin-bottom:7px}.entry-content h3{font-size:21px;line-height:1.4;letter-spacing:-.6px;margin-bottom:5px}.entry-site{color:#5d759c;font-size:14px;margin-bottom:18px}.entry-numbers{display:flex;gap:18px;font-size:14px;padding-bottom:18px;border-bottom:1px solid #edf1f8;flex-wrap:wrap}.entry-numbers span{display:flex;align-items:center;gap:6px}.entry-numbers svg{width:16px;color:#668cc7}.entry-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:16px;gap:10px;font-size:13px;color:#59739c}.entry-bottom a{font-weight:600;color:#2361bb}.empty-book{min-height:390px;border:1px dashed #ccd9ed;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(145deg,#fff,#edf4ff);padding:40px 25px}.empty-orbit{width:104px;height:104px;border:1px solid #d8e6ff;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;box-shadow:0 0 0 13px #f5f8ff;margin-bottom:28px;color:#497bd3}.empty-orbit svg{width:44px;height:44px;stroke-width:1.3}.empty-book h3{font-size:25px;letter-spacing:-.8px;margin-bottom:10px}.empty-book p{color:var(--muted);font-size:15px;max-width:440px;margin-bottom:24px}.editor-header{padding-block:27px 24px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.editor-header h1{font-size:31px;letter-spacing:-1px;line-height:1.3;margin:8px 0 6px}.editor-header .book-kicker{font-size:10px;margin:10px 0 0}.editor-subtitle{font-size:14px;color:var(--muted);margin:0}.editor-back{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#6780a9}.editor-back svg{width:15px;transform:rotate(180deg)}.editor-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.save-state{font-size:12px;color:#6b83a6;display:flex;align-items:center;gap:5px;max-width:220px}.save-state svg{width:14px;height:14px}.save-state.dirty{color:#996a2e}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:24px;align-items:start;padding-bottom:55px}.map-workspace{position:sticky;top:20px;min-width:0;background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.workspace-heading{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.workspace-heading h2{font-size:18px;letter-spacing:-.4px;margin:0}.workspace-heading p{font-size:12px;color:var(--muted);margin:3px 0 0}.private-pill{display:flex;align-items:center;gap:5px;border:1px solid #dae6fb;background:#f0f5ff;padding:4px 9px;border-radius:20px;font-size:11px;color:#5279b5;white-space:nowrap}.private-pill svg{width:12px;height:12px}.map-toolbar{display:flex;gap:7px;align-items:center;padding:12px 17px;flex-wrap:wrap;background:#f8faff;border-bottom:1px solid var(--line)}.tool-button{border:1px solid transparent;border-radius:6px;display:flex;align-items:center;gap:6px;background:transparent;padding:7px 10px;font-size:13px;color:#55739e}.tool-button svg{width:17px;height:17px}.tool-button[aria-pressed=true]{border-color:#c7dafd;color:#245fc4;background:#eaf2ff;font-weight:600}.tool-button:hover{background:#eaf1fc}.map-toolbar .spacer{flex:1}.zoom-button{width:29px;height:29px;border:1px solid var(--line);border-radius:5px;background:white;font-size:18px;color:#5577aa}.zoom-value{font-size:11px;color:#7290b7;min-width:32px;text-align:center}.map-viewport{height:clamp(340px,39vw,560px);overflow:auto;overscroll-behavior:contain;background:#e4effb;scrollbar-color:#8fb1df #e3ecfa;scrollbar-width:thin}.map-stage{position:relative;width:100%;min-width:100%;line-height:0;touch-action:pan-x pan-y}.map-stage>img{display:block;width:100%;height:auto;user-select:none;pointer-events:none}.map-stage[data-mode=route],.map-stage[data-mode=pin]{cursor:crosshair}.route-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.log-pin{position:absolute;transform:translate(-50%,-100%);padding:0;background:transparent;display:flex;align-items:center;justify-content:center;flex-direction:column;touch-action:none;z-index:3;cursor:grab;line-height:1;filter:drop-shadow(0 3px 6px #102c5b35)}.log-pin .pin-bubble{display:grid;place-items:center;width:36px;height:36px;border:2px solid white;border-radius:50%;background:var(--pin-color);color:white;position:relative}.log-pin .pin-bubble:after{content:'';position:absolute;bottom:-5px;left:12px;border-inline:4px solid transparent;border-top:5px solid var(--pin-color)}.log-pin svg{width:23px;height:23px;stroke-width:1.8}.log-pin.selected .pin-bubble{outline:3px solid #9bbffc;outline-offset:3px}.pin-name{position:absolute;top:40px;left:50%;transform:translateX(-50%);white-space:nowrap;max-width:180px;overflow:hidden;text-overflow:ellipsis;border-radius:4px;background:white;color:#264878;padding:5px 8px;font-size:11px;line-height:1.3;display:none}.log-pin:hover .pin-name,.log-pin.selected .pin-name{display:block}.map-caption-line{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#edf4ff;padding:10px 19px;color:#5376a7;font-size:11px}.map-caption-line>span{display:flex;align-items:center;gap:5px}.map-caption-line svg{width:13px;height:13px}.map-instruction{margin:0;padding:14px 20px;background:#fff;color:#5c759b;font-size:13px;border-bottom:1px solid var(--line);line-height:1.7}.finding-palette{padding:18px 20px 20px}.palette-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.palette-heading h3{font-size:14px;margin:0}.palette-heading span{font-size:11px;color:#8194af}.finding-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.finding-choice{display:flex;align-items:center;gap:8px;background:#f8faff;border:1px solid #e2eafa;border-radius:7px;text-align:left;padding:10px 8px;font-size:11px;font-weight:500;line-height:1.4}.finding-choice>span:first-child{width:30px;height:30px;flex-shrink:0;border-radius:50%;background:#e8effd;display:grid;place-items:center;color:var(--finding-color)}.finding-choice svg{width:21px;height:21px}.finding-choice[aria-pressed=true]{border-color:#7ba9f5;background:#ecf3ff;box-shadow:0 0 0 1px #7ba9f5}.encounter-tray{padding:15px 20px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;flex-wrap:wrap}.encounter-tray>span{font-size:12px;color:#6b83a3}.encounter-tag{display:flex;align-items:center;gap:4px;border:1px solid #dce7fa;border-radius:20px;font-size:11px;padding:5px 9px;background:#f7faff}.encounter-tag.selected{background:#e5efff;border-color:#91b3ef}.encounter-tag svg{width:14px;height:14px;color:#5f83bb}.editor-sidebar{min-width:0}.form-panel{background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:17px;overflow:hidden}.form-panel-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #e6edf9}.form-panel-heading h2{font-size:16px;letter-spacing:-.3px;margin:0}.form-panel-heading>span{font-size:11px;color:#7d93b1}.form-body{padding:19px 20px}.form-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:5px;gap:4px;background:#edf2fb;border-bottom:1px solid var(--line)}.form-tabs button{background:transparent;border-radius:6px;font-size:13px;padding:8px 4px;color:#6a82a6}.form-tabs button[aria-selected=true]{background:white;color:#245dc0;box-shadow:0 2px 6px #13396f0d;font-weight:600}.field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#587195;margin-bottom:16px}.field:last-child{margin-bottom:0}.field input,.field select,.field textarea{display:block;width:100%;min-width:0;border:1px solid #d9e3f3;background:#fcfdff;border-radius:6px;color:var(--ink);padding:10px 11px;font-size:14px;line-height:1.5}.field textarea{resize:vertical;min-height:100px}.field input::placeholder,.field textarea::placeholder{color:#9baac0}.field input:focus,.field select:focus,.field textarea:focus{border-color:#7da8f2}.field small{font-size:11px;font-weight:400;color:#8495b1;line-height:1.6}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field-row .field{margin-bottom:16px}.form-separator{border:0;border-top:1px solid #e7eef9;margin:2px 0 20px}.form-subheading{font-size:13px;color:#41689f;margin:1px 0 14px}.feeling-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px}.feeling-choice{display:flex;flex-direction:column;align-items:center;gap:5px;background:#f7faff;border:1px solid #e1eafa;border-radius:7px;padding:11px 4px;font-size:11px;color:#5c7395}.feeling-choice span{font-size:23px;line-height:1.3}.feeling-choice[aria-pressed=true]{background:#eaf2ff;border-color:#85aaf0;color:#204f9a}.rating-row{display:flex;align-items:center;gap:5px;margin:6px 0 24px}.rating-row button{background:transparent;color:#ccd9ec;font-size:29px;padding:0 3px;line-height:1.3}.rating-row button.on{color:#e6b65e}.rating-row .clear-rating{font-size:12px;margin-left:12px;color:#788eae}.selected-finding{border-color:#a9c5f3}.selected-finding .form-panel-heading{background:#edf4ff}.selected-finding h2{display:flex;align-items:center;gap:8px}.selected-finding h2 svg{width:21px;height:21px;color:#507cc6}.selected-finding .remove-pin{color:#b85353;font-size:12px;background:none;padding:0}.private-note{font-size:12px;color:#6d84a6;padding:5px 9px;display:flex;align-items:flex-start;gap:8px;line-height:1.7}.private-note svg{width:15px;height:15px;margin-top:3px}.server-error{padding:14px 18px;border:1px solid #f0c9c4;background:#fff3f1;color:#984c46;border-radius:8px;font-size:14px;line-height:1.7;margin-bottom:20px}.sign-in-card{display:grid;grid-template-columns:1fr 1fr;max-width:1080px;margin:65px auto 100px;background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;min-height:510px}.sign-in-art{background:linear-gradient(145deg,#0b285e,#2856a6);color:#c5d9ff;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.sign-in-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.6;mix-blend-mode:screen}.sign-in-art>div{position:relative;text-align:center;background:#0a285da6;padding:30px;border-radius:50%;width:210px;height:210px;display:grid;place-items:center;border:1px solid #ffffff45;backdrop-filter:blur(5px)}.sign-in-art svg{width:65px;height:65px;stroke-width:1.1}.sign-in-copy{padding:65px 40px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.sign-in-copy h1{font-size:32px;line-height:1.35;letter-spacing:-1px}.sign-in-copy p{color:var(--muted);font-size:15px;margin-bottom:25px}.sign-in-copy .private-note{margin-top:16px;padding:0}#book-toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);border:1px solid #c7d9fa;background:#fff;color:#255aa7;border-radius:9px;box-shadow:0 7px 35px #0e2d642b;padding:13px 22px;z-index:40;font-size:14px;max-width:90vw;text-align:center}dialog{border:1px solid var(--line);border-radius:14px;padding:30px;width:min(460px,calc(100% - 32px));color:var(--ink);box-shadow:0 20px 100px #00245e44}dialog::backdrop{background:#09254e80;backdrop-filter:blur(4px)}dialog h2{font-size:23px;line-height:1.4;letter-spacing:-.6px;margin-bottom:13px}dialog p{font-size:15px;color:var(--muted)}.modal-close{position:absolute;right:10px;top:7px;background:none;font-size:27px;color:#7d91af}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.skip-link{position:fixed;top:-70px;left:20px;background:white;padding:10px;z-index:100;color:#174d9c}.skip-link:focus{top:10px}[hidden]{display:none!important}body:has(dialog[open]){overflow:hidden}
@media(max-width:1150px){.editor-grid{grid-template-columns:minmax(0,1fr) 330px;gap:18px}.finding-choices{grid-template-columns:repeat(4,1fr)}.finding-choice{flex-direction:column;text-align:center;font-size:10px;padding:10px 3px;gap:5px}.form-body{padding:18px 16px}.workspace-heading{padding:18px}.map-toolbar{padding:10px}.tool-button{padding:7px;font-size:12px}.tool-button svg{width:16px}.list-grid{grid-template-columns:repeat(2,1fr)}.editor-actions .secondary{font-size:0;padding:12px}.editor-actions .secondary svg{width:18px}}
@media(max-width:850px){.book-header nav{gap:22px;font-size:13px}.book-header nav a:first-child{display:none}.brand>span{font-size:23px}.brand img{width:39px;height:39px}.book-wrap,.editor-grid{grid-template-columns:1fr}.map-workspace{position:relative;top:auto}.map-viewport{height:auto;max-height:560px}.finding-choices{grid-template-columns:repeat(4,1fr)}.finding-choice{flex-direction:row;font-size:12px;padding:10px 8px;text-align:left}.editor-sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:18px}.editor-sidebar>.form-panel:first-child{grid-row:span 2}.editor-sidebar .private-note{grid-column:2}.selected-finding{grid-column:2}.editor-header{align-items:flex-start}.editor-actions{max-width:210px}.save-state{flex-basis:100%;justify-content:flex-end}.book-stat{gap:12px}.book-stat>span{width:32px;height:32px}.book-stat svg{width:20px}.book-stat strong{font-size:22px}.book-stat small{font-size:11px}.book-hero h1{font-size:33px}.sign-in-card{margin:35px 20px 70px;grid-template-columns:1fr 1.2fr}.sign-in-copy{padding:40px 28px}.sign-in-copy h1{font-size:29px}.sign-in-art>div{width:160px;height:160px}.map-caption-line{font-size:10px}}
@media(max-width:580px){.brand img{width:34px;height:34px}.brand>span{font-size:20px}.brand small{font-size:8px}.book-header nav{font-size:12px;gap:0}.book-wrap,.book-hero{padding-block:33px 70px}.book-hero h1{font-size:29px;letter-spacing:-1px}.book-hero p:last-child{font-size:14px}.hero-row{align-items:flex-start;flex-direction:column;gap:23px}.book-kicker{font-size:10px}.book-stats{padding:19px 0;grid-template-columns:1fr 1fr;gap:18px 0;margin-top:-34px}.book-stat{justify-content:flex-start;padding-left:21px;gap:13px}.book-stat:nth-child(2){border:0}.book-stat>span{width:34px;height:34px}.book-stat strong{font-size:24px}.book-stat small{font-size:12px}.book-list-section{padding-top:27px}.book-list-heading{align-items:flex-start;flex-direction:column;gap:15px}.book-list-heading h2{font-size:22px}.book-list-heading>div{width:100%;justify-content:space-between;gap:8px}.filter-input{flex:1;min-width:0}.filter-input input{max-width:100%;width:100%;font-size:14px}.text-button{font-size:13px;padding-inline:3px}.list-grid{grid-template-columns:1fr;gap:17px}.empty-book{min-height:380px;padding:33px 22px}.empty-book h3{font-size:23px}.empty-book p{font-size:14px}.editor-header{display:block;padding-block:23px 20px}.editor-header h1{font-size:26px}.editor-subtitle{font-size:13px}.editor-actions{max-width:none;justify-content:flex-start;margin-top:18px;gap:8px}.editor-actions .save-state{order:3;flex-basis:auto;margin-left:auto;font-size:11px;max-width:145px;text-align:right;justify-content:flex-end}.primary,.secondary{padding:11px 15px;font-size:13px}.editor-actions .secondary{font-size:13px;padding:10px 11px}.editor-actions .secondary svg{width:16px}.editor-grid{gap:17px}.workspace-heading{padding:16px;align-items:flex-start}.workspace-heading h2{font-size:16px}.workspace-heading p{font-size:11px}.private-pill{font-size:10px;padding:4px 7px}.map-toolbar{gap:4px;padding:9px 10px}.tool-button{font-size:11px;padding:7px 6px;gap:4px}.tool-button svg{width:15px}.zoom-button{width:25px;height:27px;font-size:16px}.zoom-value{font-size:10px;min-width:26px}.map-viewport{min-height:0;max-height:420px}.map-stage{min-width:100%}.log-pin .pin-bubble{width:32px;height:32px}.log-pin svg{width:20px;height:20px}.log-pin .pin-bubble:after{left:10px}.map-caption-line{display:block;padding:9px 12px;font-size:10px;line-height:1.7}.map-caption-line>span:last-child{margin-top:3px}.map-instruction{padding:12px 14px;font-size:12px}.finding-palette{padding:16px 13px}.palette-heading h3{font-size:13px}.palette-heading span{font-size:10px}.finding-choices{gap:6px;grid-template-columns:repeat(4,1fr)}.finding-choice{flex-direction:column;gap:6px;font-size:10px;padding:9px 3px;text-align:center}.finding-choice>span:first-child{width:28px;height:28px}.finding-choice svg{width:19px}.encounter-tray{padding:13px;font-size:11px}.editor-sidebar{display:block}.form-body{padding:18px}.form-panel-heading{padding:17px 18px}.field{font-size:13px}.field input,.field select,.field textarea{font-size:16px}.feeling-choice{font-size:12px}.feeling-grid{grid-template-columns:repeat(3,1fr)}.form-tabs button{font-size:14px}.private-note{font-size:12px}.sign-in-card{margin:28px 16px 60px;display:flex;flex-direction:column}.sign-in-art{min-height:185px}.sign-in-art>div{width:120px;height:120px;padding:20px}.sign-in-art svg{width:48px;height:48px}.sign-in-copy{padding:31px 25px}.sign-in-copy h1{font-size:27px}.sign-in-copy p{font-size:14px}.local-preview{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

@media(max-width:580px){.book-header nav{display:none}.finding-choice{font-size:12px}.palette-heading span{font-size:11px}.tool-button{font-size:12px}.map-toolbar{row-gap:8px}}


.map-views{display:flex;align-items:center;gap:4px;margin:0 16px 12px;padding:3px;width:fit-content;border-radius:10px;background:#e9eff8}
.map-views button{border:0;padding:7px 14px;background:transparent;color:#294361;border-radius:8px;font:inherit;font-weight:650;cursor:pointer}
.map-views button[aria-pressed=true]{background:#174eac;color:white}
dive-scene-editor{display:block;position:relative;min-height:320px}
dive-scene-editor[hidden],#flat-editor[hidden]{display:none}
dive-scene-editor iframe{display:block;width:100%;height:440px;border:0}
.scene-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;background:#eef4fc;color:#163866;font-weight:600}
.scene-message[hidden]{display:none}
.map-workspace:has(dive-scene-editor:not([hidden])){position:relative;top:auto}

.log-export[open]{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(210px,.85fr);align-items:center;gap:24px;width:min(780px,calc(100% - 26px));max-height:92dvh;overflow:auto;padding:28px}
.log-export .modal-close{z-index:1}
.export-preview{position:relative;display:grid;place-items:center;background:#eaf1fb;aspect-ratio:4/5;border-radius:8px;overflow:hidden}
.export-preview img{display:block;width:100%;height:auto}
.export-preview p{margin:12px;text-align:center}
.export-preview p:empty{display:none}
.export-preview img:not([hidden])+p:not(:empty){position:absolute;bottom:0;padding:8px;background:white;border-radius:6px}
.export-options{display:grid;gap:12px}
.export-options h2,.export-options p{margin:0}
.export-options p{margin-bottom:8px}
.export-options button{justify-content:center}
@media(max-width:620px){.log-export[open]{grid-template-columns:1fr;gap:16px;padding:32px 18px 18px}.export-preview{width:min(100%,32vh);margin:auto}.export-options{gap:8px}.export-options h2{font-size:21px}}

.report-dialog[open]{width:min(980px,calc(100% - 26px));max-height:94dvh;overflow:auto;padding:22px}.report-dialog h2{padding-right:30px}.report-actions{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px}.report-dialog iframe{width:100%;height:55vh;max-height:680px;display:block;border:1px solid #cddbea;border-radius:8px}.report-dialog>[role=status]:empty{display:none}.report-dialog>[data-card]{margin-top:12px}@media(max-width:600px){.report-dialog[open]{padding:16px}.report-actions button{font-size:14px;padding:7px 10px}}
.report-page-images:not([hidden]){display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px;margin:12px 0 20px}.report-page-images a{display:grid;gap:8px;padding:8px;color:#174ca6;background:#f2f6ff;border:1px solid #c8d9ed;border-radius:10px;text-align:center;font-size:1rem;font-weight:650;text-decoration:none}.report-page-images a:focus-visible{outline:3px solid #285fc1}.report-page-images img{display:block;width:100%;max-height:170px;object-fit:contain}.report-dialog [data-image-status]:not(:empty){margin-top:12px}



.premium-access{max-width:620px;margin:48px auto 80px;padding:clamp(20px,5vw,40px);background:white;border:1px solid #cbd9ed;border-radius:16px}.premium-access h1{font-size:clamp(1.7rem,4vw,2.5rem);margin:18px 0 12px}.premium-access p{font-size:1.06rem;line-height:1.8}.premium-access a{color:#184fa5}
.trial-banner{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:20px 0;padding:12px 16px;border:1px solid #cbd9ed;border-radius:10px;background:#eef4ff;color:#164589;font-size:.95rem;line-height:1.55}
.sign-in-copy .trial-signin-note{margin-top:14px;color:#164589;font-size:.95rem}
.dive-share-dialog{width:min(620px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:clamp(17px,4vw,28px);border:1px solid #cbd9ed;border-radius:16px;color:#142f57;background:#fff}
.dive-share-dialog h2{margin:0 40px 12px 0}.dive-share-dialog h3{margin:0}.dive-share-dialog p{margin:6px 0 12px;line-height:1.6}
.share-image-option,.share-link-form{border-top:1px solid #d9e6f5;padding-top:12px;margin-top:14px}
.share-link-form fieldset{margin:10px 0 14px;border:1px solid #cbd9ed;border-radius:9px}
.share-link-form legend{font-weight:650}.share-link-form input[type=checkbox]{inline-size:18px;block-size:18px;accent-color:#194da9}
.share-photo-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:8px;max-height:240px;overflow:auto}
.share-photo-options label{position:relative;display:grid;gap:4px;padding:5px;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}
.share-photo-options label:has(input:checked){background:#e9f1ff}.share-photo-options input{position:absolute;left:7px;top:7px}
.share-photo-options img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px}
.share-pin-options{display:grid;gap:5px;max-height:160px;overflow:auto}
.share-pin-options label{display:flex;gap:7px;align-items:center;min-width:0;overflow-wrap:anywhere}
.share-link-result{padding:12px;background:#eef4ff;border-radius:9px;margin-block:10px}
.share-link-result .dialog-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:flex-start}
.share-link-result a{color:#174d9c}.dive-share-dialog [role=status]{color:#164589}

.dive-site-picker {
  width: min(100%, 680px);
  margin: clamp(24px, 6vw, 56px) auto 72px;
  padding: clamp(18px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.dive-site-picker h1 { margin: 14px 0 20px; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.dive-site-picker label { display: block; margin-bottom: 6px; font-weight: 650; }
.dive-site-picker input { width: 100%; padding: 12px; border: 1px solid #a8bcda; border-radius: 8px; color: var(--ink); font: inherit; }
#dive-site-choices { list-style: none; margin: 14px 0 0; padding: 0; }
#dive-site-choices a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
#dive-site-choices a:hover, #dive-site-choices a:focus-visible { background: #eef4ff; }
#dive-site-choices a:focus-visible, .dive-site-picker input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#dive-site-choices small { display: block; margin-top: 2px; color: var(--muted); }
#dive-site-choices svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #174ca6; stroke-width: 2; }
