*{box-sizing:border-box} :root{color-scheme:light;--ink:#263c36;--muted:#6d7468;--paper:#f4f0e6;--line:#d5d3c3;--accent:#b16b40}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 Georgia,serif}button,a,summary{touch-action:manipulation}button{font:14px/1.3 system-ui;cursor:pointer;border:1px solid var(--line);border-radius:7px;background:#faf8f2;color:var(--ink);padding:13px 16px;min-height:44px;transition:background .15s}button:hover{background:#e9e7da}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b16b40;outline-offset:3px}header{max-width:1390px;margin:auto;padding:25px 45px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);font:11px system-ui;letter-spacing:2px}.brand{color:var(--ink);text-decoration:none;font-size:25px;font-family:Georgia}.brand span{font:10px system-ui;letter-spacing:2px;margin-left:14px}.edition{color:var(--muted)}main{max-width:1390px;margin:auto;padding:32px 45px}.eyebrow{font:10px/1.5 system-ui;letter-spacing:2.4px;color:var(--accent)}h1{font-size:clamp(30px,3.3vw,49px);line-height:1.12;font-weight:400;letter-spacing:-1px;margin:13px 0}h2{font-size:26px;font-weight:400;line-height:1.25;margin:14px 0}.subtitle{color:var(--muted);margin:14px 0 28px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:32px}.atlas{background:#eae6d6;border:1px solid #ccc7b5;border-radius:12px;box-shadow:0 12px 35px #373d3010;overflow:hidden;align-self:start}.map-heading,.map-footer{padding:17px 24px;display:flex;justify-content:space-between;gap:15px;font:11px system-ui;color:#77745e}.map-heading{border-bottom:1px solid #d5cfbc}.map-footer{border-top:1px solid #d5cfbc;font-size:10px}svg{display:block;width:100%;height:auto}svg text{font-family:Georgia;fill:#3c5043}svg .node{fill:#f3efdf;stroke:#9ca38b;stroke-width:1.3}svg .path{fill:none;stroke:#8b957a;stroke-width:2;stroke-dasharray:4 5}svg .new{fill:#eee0bd;stroke:#af7447;stroke-width:2}aside{padding:6px 0}.muted{color:var(--muted);font-size:15px;min-height:48px}.primary{background:var(--ink);color:#fff;border-color:var(--ink);width:100%}.primary:hover{background:#3a5649}.progress{height:4px;background:#deded0;margin:25px 0 10px;border-radius:5px;overflow:hidden}.progress>div{height:100%;background:var(--accent);transition:width .3s}.stats{display:flex;justify-content:space-between;font:11px system-ui;color:var(--muted)}.sim{margin-top:25px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.sim p{font:12px system-ui;margin:0 0 12px}.row{display:flex;gap:8px}.row button{flex:1}small{display:block;font:11px/1.6 system-ui;color:var(--muted);margin-top:10px}.tools{margin-top:16px}.save-note{font:11px/1.5 system-ui;color:var(--muted)}details{font:12px/1.6 system-ui;color:var(--muted);margin-top:20px}details button{display:block;margin-top:10px;width:100%}.text-button{border-color:transparent;background:none}summary{cursor:pointer}footer{font:11px/1.6 system-ui;color:var(--muted);padding:24px 0}dialog{width:min(580px,calc(100% - 28px));max-height:86dvh;overflow:auto;border:1px solid #c9c9b7;border-radius:14px;background:#faf7ee;color:var(--ink);padding:24px 30px;box-shadow:0 20px 90px #11271e44}dialog::backdrop{background:#20382e70;backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:center;justify-content:space-between}.dialog-top button{border:0;background:none;padding:5px 12px;font-size:25px}.nika{padding:16px 18px;background:#e9ecdf;border-left:3px solid #758a69;margin:18px 0}.nika b{display:block;font:10px system-ui;letter-spacing:2px;margin-bottom:7px}.dialog-actions{display:grid;gap:9px}#dialog-actions{display:grid;gap:9px;margin-top:22px}.choice{display:block;text-align:left;width:100%;margin-top:9px;padding:16px}.choice.selected{border:2px solid #526d55;background:#e8eddc}.find{border-bottom:1px solid var(--line);padding:12px 0}.find:last-child{border:0}.find h3{font-size:19px;font-weight:400;margin:4px 0}.find p{font-size:15px}.comparison{display:flex;gap:15px;align-items:center;padding:20px;background:#e9e6d4;border-radius:8px}.comparison span{flex:1;text-align:center}.motif{font-size:30px}.hint{font:12px/1.6 system-ui;color:var(--muted)}@media(max-width:760px){header{padding:18px 20px}.edition{display:none}main{padding:23px 18px}.workspace{grid-template-columns:1fr;gap:16px}.intro h1 br{display:none}h1{font-size:33px}.map-heading,.map-footer{padding:12px;font-size:9px}.subtitle{margin-bottom:20px}aside .muted{min-height:0}.sim{margin-top:18px}.brand span{font-size:9px}dialog{padding:20px}.atlas{border-radius:8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.map-canvas{overflow-x:auto}@media(max-width:760px){.map-canvas svg{min-width:640px}h1{overflow-wrap:normal}.map-heading{gap:6px}}

.map-scroll-hint{display:none}@media(max-width:760px){.map-scroll-hint{display:block;font:10px system-ui;color:var(--muted);padding:0 12px}}

#dialog-tag:empty{display:none}.sim .row{flex-wrap:wrap}.sim .row button{flex:1 1 120px}#dialog-body>p{margin:12px 0}
.match-source{display:flex;flex-direction:column;align-items:center;padding:12px;background:#ede9da;border:1px solid var(--line);border-radius:8px;font-size:16px}.match-source svg{width:90px;height:90px}.sign-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sign-choice{padding:9px 4px;display:flex;flex-direction:column;align-items:center;gap:5px}.sign-choice svg{width:80px;height:80px;max-width:100%}.match-source svg,.sign-choice svg,.matched-signs svg{fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round}.sign-choice.suggested{outline:3px solid var(--accent);outline-offset:2px;background:#f0e5c8}.matched-signs svg{width:75px;height:75px;margin:0 auto 8px}.matched-signs>span:nth-child(2){flex:0}#match-feedback:empty{display:none}@media(max-width:420px){.sign-options{gap:6px}.sign-choice{font-size:12px}.sign-choice svg{width:65px;height:65px}.match-source svg{width:75px;height:75px}}

svg .chosen-path{stroke:#536d54;stroke-width:3;stroke-dasharray:none}.map-place{cursor:pointer}.map-place:hover .node,.map-place:focus .node{stroke:#9c5735;stroke-width:3;fill:#f0e5c8}.map-place:focus{outline:none}.panorama-place .node{fill:#e6e5d8;stroke-dasharray:3 3}.place-sign svg{width:110px;height:110px;margin:auto;fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round}.place-mark{font-size:56px;text-align:center;line-height:1.5;color:var(--ink)}
