:root{--bg: #12151b;--panel: #1b1f28;--ink: #e7ebf0;--muted: #8b93a3;--line: #2c313d;--cw: #4b7bd6;--axis: #c65a4a;--accent: #d9a441;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.4 Courier New,Courier,monospace}button,input,select,textarea{font:inherit}.app{display:grid;grid-template-columns:1fr 340px;grid-template-rows:auto 1fr auto;height:100vh}.header{grid-column:1 / -1;padding:10px 16px;border-bottom:1px solid var(--line);display:flex;gap:16px;align-items:baseline}.header h1{font-size:16px;margin:0}.header .meta{color:var(--muted)}.header .zoom{margin-left:auto;display:flex;align-items:center;gap:6px}.header .zoom input[type=range]{width:120px}.header .zoom button{padding:2px 8px}.map-wrap{overflow:hidden;position:relative;-webkit-user-select:none;user-select:none}.sidebar{border-left:1px solid var(--line);background:var(--panel);overflow:auto;padding:12px}.scrubber{grid-column:1 / -1;border-top:1px solid var(--line);padding:10px 16px;display:flex;align-items:center;gap:12px}.scrubber input[type=range]{width:100%}.slider-wrap{flex:1;position:relative;display:flex;flex-direction:column}.slider-wrap .ticks{display:flex;justify-content:space-between;padding:0 8px;margin-top:2px}.slider-wrap .tick{width:1px;height:6px;background:#3a4150}.slider-wrap .tick.on{background:var(--accent, #4a7);height:8px}.level-select,.transport{display:inline-flex;gap:3px;align-items:center}.level-select button,.transport button{padding:4px 7px;font-size:12px}.level-select button.active{background:var(--accent, #4a7);border-color:var(--accent, #4a7);color:#06210f;font-weight:600}.node-pos{min-width:190px}.breadcrumb .crumb{background:transparent;border:none;color:var(--muted);padding:2px 4px;font-size:12px}.breadcrumb .crumb:hover{color:var(--ink);text-decoration:underline}.breadcrumb .crumb.active{color:var(--ink);font-weight:600}button{background:var(--line);color:var(--ink);border:1px solid #3a4150;border-radius:6px;padding:5px 10px;cursor:pointer}button:hover{background:#333b49}.jump-btn{margin-top:8px;font-size:12px;padding:3px 9px;display:inline-flex;align-items:center;gap:4px}.jump-icon{font-size:14px;line-height:1}.chip{display:inline-block;padding:1px 7px;border-radius:999px;font-size:12px;font-weight:600}.chip.cw{background:color-mix(in srgb,var(--cw) 30%,transparent);color:#bcd0f5}.chip.axis{background:color-mix(in srgb,var(--axis) 30%,transparent);color:#f2c3ba}.log{list-style:none;margin:0;padding:0;font-size:12.5px}.log li{padding:4px 6px;border-radius:5px;cursor:pointer;border-left:3px solid transparent}.log li:hover{background:#232936}.log li.active{background:#232936;border-left-color:var(--accent)}.log .act{color:var(--ink)}.log .out{color:var(--muted)}.panel-section{margin-bottom:14px}.panel-section h3{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:0 0 6px}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.terrain-key .tk-title{font-weight:600}.terrain-key .tk-label{font-size:10px;line-height:1.1;color:var(--muted);text-align:center;margin-top:1px}.legend-map{background:#e7d9a8;color:#4a3f22;border:1px solid #b19a55;border-radius:6px;padding:10px 12px;box-shadow:0 3px 12px #00000059}.legend-map .tk-title{color:#4a3d16}.legend-map .tk-label{color:#6b5a2e}.lore-panel{position:fixed;z-index:50;max-width:320px;padding:12px 14px;background:linear-gradient(180deg,#f6efd6,#efe6c6);color:#2f2b22;border:1px solid #b7a97a;border-left:4px solid #a8862f;border-radius:8px;box-shadow:0 6px 22px #0006;font-family:Georgia,Times New Roman,serif;pointer-events:auto;animation:lore-fade .12s ease-out}@keyframes lore-fade{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}.lore-title{display:flex;align-items:center;gap:7px;font-weight:700;font-size:15px;letter-spacing:.3px;margin-bottom:5px;border-bottom:1px solid #c9bd93;padding-bottom:4px}.lore-icon{color:#a8862f;font-size:20px;line-height:1;flex:0 0 auto}.lore-desc{font-size:12.5px;line-height:1.45}.lore-links{margin-top:8px;display:flex;flex-direction:column;gap:3px}.lore-links a{font-size:11.5px;color:#7a5c12;text-decoration:none;font-family:system-ui,sans-serif}.lore-links a:hover{text-decoration:underline}.compass-box{display:flex;flex-direction:column;align-items:center}.compass-box .tk-title{align-self:flex-start;margin-bottom:4px}.info-section{margin-top:6px}.info-body{display:flex;align-items:flex-start;gap:7px;font-size:12.5px;line-height:1.45}.info-icon{color:#a8862f;font-size:19px;line-height:1.3;flex:0 0 auto}.info-divider{border:none;border-top:1px solid #c9bd93;margin:9px 0 3px}.info-stack{white-space:pre-line;font-size:12.5px;line-height:1.5;font-family:Courier New,monospace}.lore-panel.wide{max-width:840px}.info-stacklist{display:flex;gap:10px;margin-top:4px;align-items:stretch}.info-stacklist .sl-list{flex:0 0 140px;max-height:220px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;padding-right:4px}.info-stacklist .sl-divider{flex:0 0 1px;align-self:stretch;background:#c9bd93}.info-stacklist .sl-list::-webkit-scrollbar{width:8px}.info-stacklist .sl-list::-webkit-scrollbar-thumb{background:#b7a97a;border-radius:4px}.info-stacklist .sl-list::-webkit-scrollbar-track{background:transparent}.panel-scroll::-webkit-scrollbar{width:8px}.panel-scroll::-webkit-scrollbar-thumb{background:#b19a55;border-radius:4px}.panel-scroll::-webkit-scrollbar-track{background:transparent}.info-stacklist .sl-item{flex:0 0 auto;text-align:left;background:none;border:none;cursor:pointer;font-family:system-ui,sans-serif;font-size:12px;color:#2f2b22;padding:3px 6px;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.info-stacklist .sl-item:hover{background:#a8862f29}.info-stacklist .sl-item.active{background:#a8862f4d;font-weight:700}.info-stacklist .sl-detail{flex:0 0 300px;min-width:0;font-size:12.5px;line-height:1.5;align-self:flex-start}.info-stacklist .sl-detail-wide{flex:0 0 auto;display:flex;gap:12px;align-items:flex-start}.info-stacklist .sl-detail-wide .sl-detail-col{flex:0 0 300px;min-width:0;display:flex;flex-direction:column}.info-stacklist .sl-detail-wide .sl-col-divider{flex:0 0 1px;align-self:stretch;background:#c9bd93}.info-stacklist .sl-detail-wide>.info-section{flex:0 0 300px;margin-top:0}.info-stacklist .sl-detail>.info-section:first-child{margin-top:0}.info-stacklist .sl-summary{font-size:12.5px;line-height:1.5}.info-stacklist .state-glyph{float:right;margin:0 0 2px 10px}.state-rows{flex:1 1 auto;min-width:0;display:grid;grid-template-columns:auto 1fr;gap:1px 10px;align-items:baseline}.state-row{display:contents}.state-label{color:#6b5f3a}.state-value{font-weight:700;font-family:Courier New,monospace}
