/* Adventure tools: ink outlines, colored paper and short, tactile responses. */
.bottom-nav{border:0;--minitool-row-gap:8px;--minitool-column-gap:8px;grid-gap:8px;gap:8px;padding:10px 0 5px;overflow:visible}
.bottom-nav button{position:relative;min-height:57px;--minitool-row-gap:4px;--minitool-column-gap:4px;grid-gap:4px;gap:4px;padding:6px 2px 5px;border:1.5px solid #7d8370;border-radius:8px 7px 10px 6px;background:#eee9da;box-shadow:0 3px 0 #b2b5a2;color:#414d3b;font-size:10px;font-weight:650;transition:transform .12s,background .12s,box-shadow .12s}
.bottom-nav button[data-panel=bag]{background:#e3e9dc;transform:rotate(-1deg)}
.bottom-nav button[data-panel=fly]{background:#e8e2cb;transform:rotate(1deg)}
.bottom-nav button:nth-child(4){background:#e6ddd4}
.bottom-nav button:hover,.bottom-nav button[aria-expanded=true]{background:#f7edc5;border-color:#4c5d45}
.bottom-nav button:active,.bottom-nav button[aria-expanded=true]{transform:translateY(2px);box-shadow:0 1px 0 #b2b5a2}
.bottom-nav svg{width:25px;height:25px;stroke-width:1.9}
.bottom-nav button.locked{background:#e3e2d9;border-color:#acafa3;color:#929789;box-shadow:0 2px 0 #c9cabf}
.bottom-nav button.locked svg{opacity:.5}
.bottom-nav button.locked:hover{background:#edede4;border-color:#939a86}
.adventure-backdrop{align-items:center;padding:18px 10px;background:#26332668;-webkit-backdrop-filter:none;backdrop-filter:none}
.adventure-sheet{--panel-ink:#343d30;--panel-muted:#68735e;color:var(--panel-ink);width:100%;width:min(460px,100%);height:88vh;height:calc(var(--minitool-vh,1vh) * 88);height:min(700px,88dvh);max-height:calc(100vh - 36px - var(--safe-area-inset-top,0px) - var(--safe-area-inset-bottom,0px));max-height:calc(calc(var(--minitool-vh,1vh) * 100) - 36px - var(--safe-area-inset-top,0px) - var(--safe-area-inset-bottom,0px));max-height:calc(100dvh - 36px - var(--safe-area-inset-top,env(safe-area-inset-top,0px)) - var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));padding:17px 16px 12px;border:2px solid #69705d;border-radius:10px 14px 12px 8px;background:#faf7eb;box-shadow:5px 6px 0 #202b2840,inset 0 0 0 4px #e9e5d6;overflow:hidden;animation:open-field-notes .16s ease-out}
.adventure-sheet:before{display:none}
.adventure-sheet .modal-header{position:relative;flex-shrink:0;margin:0 0 12px;padding:0 0 11px;border-bottom:1px solid #b8bca6;min-height:52px}
.adventure-sheet .modal-header{justify-content:flex-start;--minitool-row-gap:10px;--minitool-column-gap:10px;grid-gap:10px;gap:10px}
.adventure-sheet .speaker-portrait,.adventure-sheet .tool-portrait{width:44px;height:44px;flex-shrink:0;object-fit:contain}
.adventure-sheet .tool-portrait{display:grid;align-items:center;justify-items:center;place-items:center;color:#566849}
.adventure-sheet .tool-portrait svg{width:36px;height:36px;stroke-width:1.5}
.adventure-sheet .speaker-portrait+.modal-heading,.adventure-sheet .tool-portrait+.modal-heading{padding-left:0}
.adventure-sheet .close-button{margin-left:auto}
.adventure-sheet .modal-heading{padding-left:13px}
.adventure-sheet .modal-heading:before{content:"";position:absolute;top:-17px;left:0;width:6px;height:33px;background:#8b9b71;border-radius:0 0 1px 1px}
.adventure-sheet .modal-header h2{font-size:20px;font-weight:750;letter-spacing:1px;line-height:1.3}
.adventure-sheet .speaker-detail{font-size:11px;color:#6b735e;margin-top:5px;line-height:1.5}
.adventure-sheet .close-button{width:44px;height:44px;background:transparent;border:1px solid #a9b096;border-radius:50% 45% 48% 46%;font-size:27px;color:#5b6650;transition:transform .1s}
.adventure-sheet .close-button:active{transform:scale(.94)}
.adventure-sheet .back-button svg{width:22px;height:22px;stroke-width:1.9}html.minitool-no-focus-visible .adventure-sheet button:focus,html.minitool-no-focus-visible .adventure-sheet input:focus,html.minitool-no-focus-visible .adventure-sheet select:focus{outline:2px solid #506848;outline-offset:2px}
.adventure-sheet button:focus-visible,.adventure-sheet input:focus-visible,.adventure-sheet select:focus-visible{outline:2px solid #506848;outline-offset:2px}
.adventure-sheet button{touch-action:manipulation}
.adventure-sheet input,.adventure-sheet select{font:inherit;color:var(--panel-ink);min-width:0;max-width:100%;border:1px solid #a6ae94;border-radius:5px;background:#fffdf5;padding:10px;font-size:12px;min-height:44px}
.adventure-sheet input::placeholder{color:#77806c;opacity:1}
.adventure-sheet .empty-state{color:#637057;font-size:12px}
.adventure-footer{flex-shrink:0;padding-top:10px;margin-top:10px;border-top:1px dashed #aeb59b;color:#68735e;font-size:11px;line-height:1.6}
.ink-button,.paper-button{min-height:44px;padding:10px 13px;border-radius:6px 8px 5px 7px;font-size:12px;font-weight:650;display:flex;align-items:center;justify-content:center;--minitool-row-gap:5px;--minitool-column-gap:5px;grid-gap:5px;gap:5px;line-height:1.4;transition:transform .1s,box-shadow .1s}
.ink-button{background:#495d42;color:#fffdf0;border:1px solid #364831;box-shadow:0 2px 0 #bec6a7}
.paper-button{background:#f1efdf;border:1px solid #a1ab8d;color:#526045}
.ink-button:not(:disabled):active,.paper-button:not(:disabled):active{transform:translateY(2px);box-shadow:none}
.ink-button svg,.paper-button svg{width:18px;height:18px;flex-shrink:0}
.ink-button:disabled{background:#dfe2d3;color:#6f7864;border-color:#aeb69e;opacity:1;box-shadow:none}
.ink-caption{font-size:11px;color:#6c745f;letter-spacing:1px}
/* Compass: a tower index, an explored-map postcard and one explicit journey. */
.compass-workspace,.save-workspace{display:contents}
.fly-sheet .modal-heading:before{background:#c2a566}
.compass-heading{display:flex;align-items:center;--minitool-row-gap:10px;--minitool-column-gap:10px;grid-gap:10px;gap:10px;flex-shrink:0;padding:1px 0 13px}
.compass-emblem{width:45px;height:45px;display:grid;align-items:center;justify-items:center;place-items:center;flex-shrink:0;color:#82703f;transform:rotate(-12deg);animation:compass-settle .3s ease-out}
.compass-emblem svg{width:40px;height:40px;stroke-width:1.4}
.compass-heading small{display:block;font-size:10px;color:#667259;margin-bottom:3px}
.compass-heading strong{font-size:14px;white-space:nowrap}
.floor-jump{font-size:10px;color:#69765b;margin-left:auto;display:flex;flex-direction:column;--minitool-row-gap:4px;--minitool-column-gap:4px;grid-gap:4px;gap:4px;min-width:0}
.floor-jump select{padding:6px;min-height:37px;font-size:11px;max-width:128px}
.compass-body{display:grid;grid-template-columns:104px minmax(0,1fr);--minitool-row-gap:16px;--minitool-column-gap:16px;grid-gap:16px;gap:16px;flex:1;min-height:0;container-type:size}
.tower-route{position:relative;min-height:0;overflow:auto;padding:8px 7px 10px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aab499 transparent;border-left:2px solid #acb497;border-right:2px solid #acb497;border-inline:2px solid #acb497;background:#e9ebdd}
.tower-cap{display:block;height:12px;background:repeating-linear-gradient(90deg,#abb797 0 14px,transparent 14px 25px);margin:-8px -7px 8px}
.tower-base{display:block;margin:8px -7px -10px;height:8px;border-top:2px solid #a3af91;background:#dce1cf}
.tower-floor{position:relative;width:100%;min-height:63px;margin:0 0 7px;padding:9px 2px 8px;display:flex;flex-direction:column;justify-content:center;align-items:center;--minitool-row-gap:5px;--minitool-column-gap:5px;grid-gap:5px;gap:5px;border:1px solid #b2ba9d;border-radius:4px;background:#f6f5e8;color:#4e6044}
.tower-floor>span{font-size:12px;font-weight:650;white-space:nowrap}
.tower-floor>small{font-size:9px;color:#657557}
.tower-floor.blocked{background:#e4e4d8;color:#707661;border-style:dashed}
.tower-floor.blocked small{color:#71715c}
.tower-floor.selected{border:2px solid #697e50;background:#eee4bd;box-shadow:2px 2px 0 #b9bea3}
.tower-floor.current{padding-right:19px}
.floor-bear{position:absolute;width:26px;height:32px;object-fit:contain;right:-3px;bottom:12px;transform:rotate(5deg)}
.destination{align-self:center;min-width:0;text-align:center;padding:4px 0}
.map-postcard{position:relative;width:100%;width:min(100%,calc(100cqh - 150px));margin-left:auto;margin-right:auto;margin-inline:auto;border:1.5px solid #8b957a;border-radius:3px 6px 3px 5px;padding:7px;background:#fffdf5;box-shadow:3px 4px 0 #d8dbc9;transform:rotate(1deg)}
.map-postcard>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.postcard-corner{position:absolute;right:4px;top:-16px;color:#9b8752;font-size:28px}
.destination h3{font-family:"Songti SC",serif;font-size:19px;margin:20px 0 8px;letter-spacing:2px}
.destination-status{font-size:12px;color:#596c4d;line-height:1.8;min-height:44px;margin:0}
.destination-status.blocked{color:#96654f}
.map-legend{display:flex;justify-content:center;align-items:center;--minitool-row-gap:5px;--minitool-column-gap:5px;grid-gap:5px;gap:5px;color:#717b65;font-size:10px;margin:10px 0 0}
.map-legend i{width:10px;height:10px;border:1.5px solid #536b43;border-radius:50%}
.compass-footer p{margin:0 0 8px;text-align:center;font-size:10px}
.compass-footer .ink-button{width:100%}
.compass-locked{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;text-align:center;padding:16px}
.compass-locked>img{width:100px;height:100px;object-fit:contain;transform:rotate(-12deg)}
.compass-locked h3{font-size:18px;letter-spacing:1px;margin:26px 0 9px}
.compass-locked p{color:#68755c;font-size:13px;line-height:2;margin:0 0 28px}
/* Bookmarks: every row represents an independent, named game snapshot. */
.save-sheet .modal-heading:before{background:#b98c6e}
.journey-now{display:flex;--minitool-row-gap:10px;--minitool-column-gap:10px;grid-gap:10px;gap:10px;align-items:center;flex-shrink:0;padding-bottom:11px}.journey-now>img,.journey-now>canvas{width:38px;height:46px;object-fit:contain;flex-shrink:0}
.journey-now>div{min-width:0;flex:1}
.journey-now small{display:block;color:#68745d;font-size:10px;margin-bottom:3px}
.journey-now strong{font-size:13px}
.snapshot-stats{display:flex;align-items:center;flex-wrap:wrap;--minitool-row-gap:4px;--minitool-column-gap:9px;grid-gap:4px 9px;gap:4px 9px;color:#5a694f;font-size:10px;line-height:1.8;font-variant-numeric:tabular-nums}
.snapshot-stats b{font-weight:650;color:#3e4f35}
.auto-note{align-self:flex-start;border:1px dashed #a8b08e;border-radius:3px;padding:4px 6px;font-size:9px;white-space:nowrap;color:#6f7c59;transform:rotate(-3deg)}
.new-bookmark{padding:10px 0 12px;border-top:1px solid #ccd0b9;border-bottom:1px solid #ccd0b9;border-block:1px solid #ccd0b9;flex-shrink:0}
.new-bookmark>label{display:block;color:#697457;font-size:10px;margin-bottom:7px;letter-spacing:.5px}
.new-bookmark>div{display:flex;--minitool-row-gap:7px;--minitool-column-gap:7px;grid-gap:7px;gap:7px}
.new-bookmark input{width:100%;flex:1;padding-left:8px;padding-right:8px;padding-inline:8px;font-size:11px}
.new-bookmark .ink-button{font-size:11px;padding-left:9px;padding-right:9px;padding-inline:9px;white-space:nowrap;flex-shrink:0}
.new-bookmark .ink-button svg{width:16px}
.save-library-heading{display:flex;align-items:center;justify-content:space-between;--minitool-row-gap:10px;--minitool-column-gap:10px;grid-gap:10px;gap:10px;flex-shrink:0;min-height:48px;font-size:11px;color:#667358;padding-top:5px;padding-bottom:5px;padding-block:5px}
.save-library-heading>span{white-space:nowrap}
.save-library-heading b{font-size:15px;color:#4a5c3c}
.save-library-heading input{min-height:35px;max-width:170px;font-size:11px;padding:5px 9px;background:transparent;border-color:#b9c0a6}
.bookmark-library{min-height:0;overflow:auto;flex:1;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aab499 transparent;padding:3px 4px 5px 0}
.bookmark-record{position:relative;display:flex;--minitool-row-gap:10px;--minitool-column-gap:10px;grid-gap:10px;gap:10px;align-items:center;min-height:98px;background:#f3f0e2;width:100%;padding:11px 10px 10px 16px;text-align:left;border:1px solid #b8bea6;border-radius:4px 7px 6px 4px;margin-bottom:9px;color:#45543c;box-shadow:2px 2px 0 #e0e2d1}
.bookmark-record.selected{border:2px solid #6b7d50;padding:10px 9px 9px 15px;background:#f4edcf;box-shadow:2px 3px 0 #c6cbb3}
.bookmark-record>img{width:68px;height:68px;object-fit:contain;padding:3px;border:1px solid #c1c4ad;background:#fffdf5;flex-shrink:0;transform:rotate(-2deg)}
.bookmark-ribbon{position:absolute;left:5px;top:-3px;color:#bca365}
.bookmark-ribbon svg{width:12px;height:21px;fill:#e5d69d;stroke-width:1.3}
.bookmark-summary{display:flex;flex:1;min-width:0;flex-direction:column;--minitool-row-gap:3px;--minitool-column-gap:3px;grid-gap:3px;gap:3px}
.bookmark-summary>strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5}
.bookmark-summary>span:not(.snapshot-stats),.bookmark-summary time{font-size:10px;color:#69735c}
.bookmark-summary time{font-size:9px;color:#767c66}
.bookmark-summary .snapshot-stats{--minitool-row-gap:2px;--minitool-column-gap:7px;grid-gap:2px 7px;gap:2px 7px;font-size:10px;line-height:1.5}
.bookmark-tick{position:absolute;right:8px;bottom:7px;color:#63794a;font-size:13px;font-weight:800}
.older-bookmarks{width:100%;background:transparent;min-height:44px;font-size:11px;color:#576d46;border-bottom:1px dashed #bbc1ab}
.bookmark-empty{height:100%;min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:15px}
.bookmark-empty>svg{width:42px;height:42px;color:#a99562;margin-bottom:16px;transform:rotate(-9deg)}
.bookmark-empty strong{font-size:13px;color:#5c694d}
.bookmark-empty p{font-size:11px;line-height:1.9;color:#6d765f;margin:8px 0 0}
.save-footer{margin-top:5px;padding-top:9px}
.selected-bookmark-name{display:flex;align-items:center;justify-content:space-between;--minitool-row-gap:10px;--minitool-column-gap:10px;grid-gap:10px;gap:10px;font-size:10px;color:#687459;margin-bottom:7px}
.selected-bookmark-name>span{white-space:nowrap}
.selected-bookmark-name>strong{color:#536047;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:500}
.bookmark-actions{display:grid;grid-template-columns:1.35fr 1.2fr .7fr .7fr;--minitool-row-gap:6px;--minitool-column-gap:6px;grid-gap:6px;gap:6px}
.bookmark-actions>button{padding-left:3px;padding-right:3px;padding-inline:3px;font-size:11px}
.bookmark-actions .delete-bookmark{color:#986b56;background:transparent;border-color:transparent}
.saved-stamp{display:inline-block;color:#697d4c;font-size:11px;transform:rotate(-3deg);animation:stamp-bookmark .25s ease-out}
.save-device-note{font-size:10px;text-align:center;margin:2px 0}
.bookmark-confirm>strong{font-size:13px;color:#4f5e42}
.bookmark-confirm p{font-size:11px;line-height:1.7;margin:5px 0 8px;color:#68715a;overflow-wrap:break-word;overflow-wrap:anywhere}
.confirm-buttons{display:flex;--minitool-row-gap:8px;--minitool-column-gap:8px;grid-gap:8px;gap:8px;justify-content:flex-end}
.confirm-buttons>button{flex:1;max-width:180px}
.erase-button{background:#936550;border-color:#805842}
.rename-bookmark{display:grid;grid-template-columns:1fr;--minitool-row-gap:7px;--minitool-column-gap:7px;grid-gap:7px;gap:7px}
.rename-bookmark label{font-size:11px;color:#647254}
.rename-bookmark input{width:100%}
@keyframes open-field-notes{from{opacity:0;transform:translateY(8px) rotate(-.6deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes stamp-bookmark{from{opacity:.3;transform:scale(1.25) rotate(-8deg)}to{opacity:1;transform:scale(1) rotate(-3deg)}}
@keyframes compass-settle{from{transform:rotate(-70deg)}to{transform:rotate(-12deg)}}
@media(max-width:360px){
  .adventure-backdrop{padding-left:7px;padding-right:7px;padding-inline:7px}
  .adventure-sheet{padding:14px 11px 10px}
  .adventure-sheet .modal-heading:before{top:-14px}
  .adventure-sheet .modal-header h2{font-size:18px}
  .adventure-sheet .speaker-detail{font-size:10px}
  .compass-body{grid-template-columns:88px minmax(0,1fr);--minitool-row-gap:11px;--minitool-column-gap:11px;grid-gap:11px;gap:11px}
  .compass-heading{--minitool-row-gap:7px;--minitool-column-gap:7px;grid-gap:7px;gap:7px}
  .compass-emblem{width:32px}
  .compass-emblem svg{width:32px}
  .floor-jump select{max-width:106px}
  .destination h3{font-size:17px;margin-top:15px}
  .destination-status{font-size:11px}
  .auto-note{font-size:8px;padding:4px}
  .bookmark-record{--minitool-row-gap:8px;--minitool-column-gap:8px;grid-gap:8px;gap:8px}
  .bookmark-record>img{width:55px;height:55px}
  .new-bookmark input{font-size:10px}
  .new-bookmark .ink-button{padding-left:7px;padding-right:7px;padding-inline:7px;font-size:10px}
  .new-bookmark .ink-button svg{display:none}
}
@media(max-height:740px){
  .adventure-sheet{height:91vh;height:calc(var(--minitool-vh,1vh) * 91);height:91dvh;max-height:calc(100vh - 24px - var(--safe-area-inset-top,0px) - var(--safe-area-inset-bottom,0px));max-height:calc(calc(var(--minitool-vh,1vh) * 100) - 24px - var(--safe-area-inset-top,0px) - var(--safe-area-inset-bottom,0px));max-height:calc(100dvh - 24px - var(--safe-area-inset-top,env(safe-area-inset-top,0px)) - var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)))}
  .adventure-backdrop{padding-top:12px;padding-bottom:12px;padding-block:12px}
  .adventure-sheet .modal-header{margin-bottom:8px;padding-bottom:8px}
  .journey-now{padding-bottom:7px}
  .new-bookmark{padding-top:7px;padding-bottom:7px;padding-block:7px}
  .new-bookmark>label{margin-bottom:4px}
  .compass-heading{padding-bottom:8px}
  .tower-floor{min-height:58px}
  .bottom-nav{padding-top:8px;padding-bottom:3px}
  .bottom-nav button{min-height:48px;font-size:9px;padding-top:4px;padding-bottom:4px;padding-block:4px}
  .bottom-nav svg{width:22px;height:22px}
}
@media(max-height:600px){
  .adventure-sheet .speaker-detail{display:none}
  .adventure-sheet .modal-header{min-height:44px}.journey-now>img,.journey-now>canvas{width:29px;height:32px}
  .journey-now .snapshot-stats{display:none}
  .journey-now small{display:none}
  .new-bookmark>label{display:none}
  .save-library-heading{min-height:41px}
  .bookmark-record{min-height:88px}
  .adventure-footer{margin-top:6px;padding-top:6px}
  .compass-heading strong{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  .adventure-sheet,.adventure-sheet *,.bottom-nav button{animation:none!important;transition:none!important}
}
/* With a keyboard or a very short landscape viewport, keep every action reachable. */
@media(max-height:480px){
  .adventure-sheet{overflow-y:auto}
  .compass-body{flex:none;min-height:280px}
  .bookmark-library{flex:none;min-height:150px;max-height:180px}
  .bag-sheet .bag-content{flex:none;height:310px}
  .book-sheet .book-scroll{flex:none;height:240px}
}
/* Landscape tools keep their covers and actions in place, using the width for content. */
@media(min-width:540px) and (max-height:520px){.adventure-sheet.book-sheet,.adventure-sheet.bag-sheet,.adventure-sheet.fly-sheet,.adventure-sheet.save-sheet{width:100%;width:min(860px,100%);height:calc(100vh - 24px - var(--safe-area-inset-top,0px) - var(--safe-area-inset-bottom,0px));height:calc(calc(var(--minitool-vh,1vh) * 100) - 24px - var(--safe-area-inset-top,0px) - var(--safe-area-inset-bottom,0px));height:calc(100dvh - 24px - var(--safe-area-inset-top,env(safe-area-inset-top,0px)) - var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)));padding:10px 14px 8px;overflow:hidden}.adventure-sheet.book-sheet .modal-header,.adventure-sheet.bag-sheet .modal-header,.adventure-sheet.fly-sheet .modal-header,.adventure-sheet.save-sheet .modal-header{min-height:44px;padding-bottom:6px;margin-bottom:6px}.adventure-sheet.book-sheet .modal-heading:before,.adventure-sheet.bag-sheet .modal-heading:before,.adventure-sheet.fly-sheet .modal-heading:before,.adventure-sheet.save-sheet .modal-heading:before{top:-10px;height:23px}.adventure-sheet.book-sheet .modal-header h2,.adventure-sheet.bag-sheet .modal-header h2,.adventure-sheet.fly-sheet .modal-header h2,.adventure-sheet.save-sheet .modal-header h2{font-size:18px}.adventure-sheet.book-sheet .adventure-footer,.adventure-sheet.bag-sheet .adventure-footer,.adventure-sheet.fly-sheet .adventure-footer,.adventure-sheet.save-sheet .adventure-footer{margin-top:6px;padding-top:6px}
  .fly-sheet .compass-workspace{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;--minitool-row-gap:0;--minitool-column-gap:12px;grid-gap:0 12px;gap:0 12px;flex:1;min-height:0}
  .fly-sheet .compass-heading{grid-area:1 / 1;display:flex;flex-direction:column;align-items:flex-start;--minitool-row-gap:7px;--minitool-column-gap:7px;grid-gap:7px;gap:7px;padding:0;min-width:0;overflow:auto}
  .fly-sheet .compass-emblem{display:none}
  .fly-sheet .floor-jump{margin-left:0;width:100%}
  .fly-sheet .floor-jump select{width:100%;max-width:100%;min-height:44px}
  .fly-sheet .compass-body{grid-area:1 / 2;grid-template-columns:86px minmax(0,1fr);--minitool-row-gap:12px;--minitool-column-gap:12px;grid-gap:12px;gap:12px;flex:1;min-height:0}
  .fly-sheet .tower-floor{min-height:54px;padding-top:6px;padding-bottom:6px;padding-block:6px}
  .fly-sheet .destination{display:grid;grid-template-columns:minmax(74px,1fr) minmax(0,1fr);grid-template-rows:auto auto auto;align-items:center;--minitool-row-gap:6px;--minitool-column-gap:12px;grid-gap:6px 12px;gap:6px 12px;padding:5px 0;max-height:100%;overflow:auto}
  .fly-sheet .map-postcard{grid-row:1 / 4;width:100%;width:min(100%,calc(100cqh - 14px));padding:4px;transform:none}
  .fly-sheet .destination h3{margin:0;font-size:17px;letter-spacing:1px}
  .fly-sheet .destination-status{min-height:0;font-size:11px;line-height:1.6}
  .fly-sheet .map-legend{font-size:9px;margin:0}
  .fly-sheet .compass-footer{grid-area:2 / 1 / 3 / 3;display:flex;align-items:center;--minitool-row-gap:12px;--minitool-column-gap:12px;grid-gap:12px;gap:12px}
  .fly-sheet .compass-footer p{flex:1;margin:0;text-align:left}
  .fly-sheet .compass-footer .ink-button{width:auto;min-width:180px}
  .fly-sheet .compass-locked{display:grid;grid-template-columns:90px minmax(0,1fr);grid-template-rows:auto auto auto;--minitool-row-gap:8px;--minitool-column-gap:20px;grid-gap:8px 20px;gap:8px 20px;align-content:center;min-height:0;overflow:auto;text-align:left}
  .fly-sheet .compass-locked>img{grid-row:1 / 4;width:86px;height:86px}
  .fly-sheet .compass-locked h3,.fly-sheet .compass-locked p{margin:0}
  .save-sheet .save-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);grid-template-rows:auto auto minmax(0,1fr) auto;--minitool-row-gap:0;--minitool-column-gap:18px;grid-gap:0 18px;gap:0 18px;flex:1;min-height:0}
  .save-sheet .journey-now{grid-area:1 / 1;min-width:0;padding-bottom:5px}
  .save-sheet .new-bookmark{grid-area:2 / 1;padding-top:6px;padding-bottom:6px;padding-block:6px}
  .save-sheet .save-library-heading{grid-area:1 / 2;min-height:37px;padding-top:0}
  .save-sheet .bookmark-library{grid-area:2 / 2 / 5 / 3;min-height:0;max-height:none;flex:1}
  .save-sheet .save-footer{grid-area:3 / 1;align-self:end;min-height:0;max-height:100%;overflow:auto}
  .save-sheet .panel-feedback{grid-area:4 / 1;min-height:0;max-height:80px;overflow:auto}
  .save-sheet .bookmark-record{min-height:86px;padding-top:8px;padding-bottom:8px;padding-block:8px}
  .save-sheet .bookmark-record>img{width:52px;height:52px}
  .save-sheet .bookmark-actions{grid-template-columns:1.2fr 1.2fr .7fr .7fr}
  .save-sheet .bookmark-actions>button{font-size:10px}
  .save-sheet.minitool-has-active-feedback .journey-now{display:none}
  .save-sheet:has(.panel-feedback:not([hidden])) .journey-now{display:none}
  .save-sheet.minitool-has-active-feedback .new-bookmark{grid-row:1}
  .save-sheet:has(.panel-feedback:not([hidden])) .new-bookmark{grid-row:1}
  .save-sheet.minitool-has-active-feedback .save-footer{grid-row:2 / 4}
  .save-sheet:has(.panel-feedback:not([hidden])) .save-footer{grid-row:2 / 4}.save-sheet.minitool-has-confirmation .journey-now,.save-sheet.minitool-has-confirmation .new-bookmark{display:none}.save-sheet:has(.bookmark-confirm,.rename-bookmark) .journey-now,.save-sheet:has(.bookmark-confirm,.rename-bookmark) .new-bookmark{display:none}
  .save-sheet.minitool-has-confirmation .save-footer{grid-row:1 / 4;align-self:stretch;display:flex;flex-direction:column;border-top:0;margin-top:0;padding-top:0;overflow:hidden}
  .save-sheet:has(.bookmark-confirm,.rename-bookmark) .save-footer{grid-row:1 / 4;align-self:stretch;display:flex;flex-direction:column;border-top:0;margin-top:0;padding-top:0;overflow:hidden}.save-sheet .bookmark-confirm,.save-sheet .rename-bookmark{display:flex;flex:1;min-height:0;flex-direction:column;--minitool-row-gap:6px;--minitool-column-gap:6px;grid-gap:6px;gap:6px}
  .save-sheet .bookmark-confirm p{flex:1;min-height:0;overflow:auto;margin:0;line-height:1.6}
  .save-sheet .confirm-buttons{margin-top:auto;flex-shrink:0}
  .save-sheet .rename-bookmark input{flex-shrink:0}
}
@media(min-width:540px) and (max-height:360px){
  .fly-sheet.minitool-has-host-feedback .compass-heading>div small{display:none}
  .fly-sheet:has(>.feedback-host .feedback-notice) .compass-heading>div small{display:none}
}
/* A software keyboard can leave less room than the fixed controls themselves. */
@media(min-width:540px) and (max-height:299px){.adventure-backdrop .modal-sheet.adventure-sheet.book-sheet,.adventure-backdrop .modal-sheet.adventure-sheet.bag-sheet,.adventure-backdrop .modal-sheet.adventure-sheet.fly-sheet,.adventure-backdrop .modal-sheet.adventure-sheet.save-sheet{overflow-y:auto}
  .adventure-backdrop .adventure-sheet.bag-sheet .bag-content{flex:none;height:200px;min-height:200px}
  .adventure-sheet.book-sheet .book-scroll{flex:none;height:200px}
  .adventure-sheet.fly-sheet .compass-workspace{flex:none;height:240px}
  .adventure-sheet.save-sheet .save-workspace{flex:none;height:240px}
}
