:root {
  --bg: #e9eef1;
  --surface: #ffffff;
  --surface-2: #f4f7f8;
  --ink: #17242d;
  --muted: #64727c;
  --line: #a9b6be;
  --line-dark: #42525d;
  --accent: #2f617a;
  --accent-strong: #214a60;
  --accent-soft: #d9e9f0;
  --danger: #a12f3b;
  --danger-soft: #fae9eb;
  --event: #c7d7e2;
  --scenic: #d8d3e8;
  --lore: #bfe7e8;
  --reward: #f6d39d;
  --names: #f4d2cf;
  --shadow: 0 12px 32px rgba(25, 43, 54, .15);
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #11181d;
  --surface: #1b252c;
  --surface-2: #243039;
  --ink: #eef5f8;
  --muted: #b3c0c8;
  --line: #53636d;
  --line-dark: #a8b7c0;
  --accent: #77abc3;
  --accent-strong: #9bc8da;
  --accent-soft: #263f4c;
  --danger: #ff7b87;
  --danger-soft: #44272b;
  --shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px 28px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 122px; height: auto; display: block; }
.brand h1 { margin: 0; font-size: 1.22rem; line-height: 1.1; }
.brand p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.button, .icon-button, .tool-button, .page-choice {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
.button:hover, .icon-button:hover, .tool-button:hover, .page-choice:hover { background: var(--surface-2); border-color: var(--line-dark); }
.button:active, .icon-button:active, .tool-button:active { transform: translateY(1px); }
.button { min-height: 38px; padding: 8px 13px; font-weight: 700; font-size: .88rem; }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button.subtle { background: var(--surface-2); }
.button.mini { min-height: 32px; padding: 6px 8px; font-size: .76rem; }
.button.danger-quiet { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.button.full { width: 100%; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.25rem; font-weight: 800; }
.save-status { min-width: 68px; color: var(--muted); font-size: .8rem; font-weight: 700; text-align: right; }
.save-status[data-state="dirty"] { color: #9a6b16; }
.save-status[data-state="saving"] { color: var(--accent); }
.save-status[data-state="error"] { color: var(--danger); }

.dashboard-view { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 80px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.dashboard-heading h2 { margin: 3px 0 8px; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.dashboard-heading p { margin: 0; color: var(--muted); max-width: 700px; }
.eyebrow { margin: 0; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 900; }
.search-field { width: min(320px, 100%); display: grid; gap: 6px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.search-field input, .field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}
.search-field input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field textarea { resize: vertical; }

.account-notice { padding: 18px 20px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); line-height: 1.5; }
.account-notice a { color: var(--accent); font-weight: 800; }

.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.set-card { display: grid; min-height: 220px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 18px rgba(25,43,54,.08); overflow: hidden; }
.set-card-preview { min-height: 108px; padding: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 70%, var(--surface)), var(--surface-2)); display: grid; grid-template-columns: 1fr 1.7fr; gap: 8px; }
.set-card-preview > div { border: 1px solid color-mix(in srgb, var(--line-dark) 65%, transparent); background: repeating-linear-gradient(0deg, transparent 0 7px, color-mix(in srgb, var(--line) 25%, transparent) 7px 8px), #fff; }
.set-card-preview .preview-map { position: relative; }
.set-card-preview .preview-map::before, .set-card-preview .preview-map::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #47758d; }
.set-card-preview .preview-map::before { left: 20%; top: 30%; }
.set-card-preview .preview-map::after { right: 20%; bottom: 25%; }
.set-card-preview .preview-map span { position: absolute; left: 28%; top: 37%; width: 48%; border-top: 2px solid #d0a74a; transform: rotate(18deg); }
.set-card-copy { padding: 16px 16px 10px; }
.set-card-copy h3 { margin: 0 0 6px; font-size: 1.08rem; }
.set-card-copy p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.set-card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 13px; color: var(--muted); font-size: .74rem; }
.set-card-actions { display: flex; gap: 6px; padding: 10px 12px 13px; margin-top: auto; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.set-card-actions .button:first-child { flex: 1; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state img { width: 66px; }
.empty-state h3 { color: var(--ink); margin: 14px 0 6px; }
.empty-state p { margin: 0 auto 18px; max-width: 500px; }

.editor-view { display: grid; grid-template-columns: 310px minmax(0, 1fr); height: calc(100vh - 76px); min-height: 0; overflow: hidden; }
.editor-sidebar { height: 100%; overflow: auto; padding: 16px; border-right: 1px solid var(--line); background: var(--surface-2); }
.panel { padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-heading h2 { margin: 0; font-size: .92rem; }
.field { display: grid; gap: 6px; margin-bottom: 11px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.field:last-child { margin-bottom: 0; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.help { margin: 2px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.check-field { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--muted); }

.page-list { display: grid; gap: 6px; }
.page-list-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; width: 100%; border: 1px solid transparent; border-radius: 8px; padding: 8px; background: transparent; text-align: left; cursor: pointer; }
.page-list-item:hover { background: var(--surface-2); }
.page-list-item.selected { border-color: var(--accent); background: var(--accent-soft); }
.page-list-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); color: var(--accent); font-size: .74rem; font-weight: 900; }
.page-list-item strong { display: block; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-list-item small { display: block; margin-top: 2px; color: var(--muted); font-size: .67rem; }
.page-list-item .page-kind { color: var(--muted); font-size: .65rem; }
.page-list-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.tool-button { min-height: 34px; padding: 6px; font-size: .7rem; font-weight: 800; }
.tool-button.selected { background: var(--accent); border-color: var(--accent); color: white; }

.workspace { min-width: 0; height: 100%; overflow: auto; padding: 0 30px 60px; overscroll-behavior: contain; }
.workspace-toolbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 9px 0; background: color-mix(in srgb, var(--bg) 93%, transparent); backdrop-filter: blur(10px); color: var(--muted); font-size: .78rem; }
.workspace-toolbar > :first-child { font-weight: 900; color: var(--ink); }
.page-stage { display: grid; place-items: start center; min-width: max-content; padding: 18px 0 60px; }
.sheet-page {
  --page-width: 816px;
  --page-height: 1056px;
  width: var(--page-width);
  min-height: var(--page-height);
  padding: 18px;
  background: white;
  color: #111;
  box-shadow: var(--shadow);
  transform-origin: top center;
}
.sheet-page.landscape { --page-width: 1056px; --page-height: 816px; }
.sheet-grid { display: grid; gap: 10px; min-height: calc(var(--page-height) - 36px); }
.sheet-grid.point-layout, .sheet-grid.box-layout { grid-template-rows: auto 1fr; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.room-card { min-height: 148px; border: 1.4px solid #26343d; background: white; display: grid; grid-template-rows: auto auto 1fr; }
.room-card.event .room-card-head { background: var(--event); }
.room-card.scenic .room-card-head { background: var(--scenic); }
.room-card-head { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 26px; padding: 2px 6px; border-bottom: 1px solid #26343d; }
.room-card-head input { min-width: 0; width: 100%; border: 0; background: transparent; color: #111; padding: 1px 2px; font-weight: 700; outline: none; }
.crft { display: flex; gap: 5px; align-items: center; font-size: .7rem; }
.crft-flag { display: inline-grid; place-items: center; width: 17px; height: 17px; padding: 0; border: 1.5px solid #344b59; border-radius: 2px; background: rgba(255,255,255,.55); color: #273943; font-size: .62rem; font-weight: 900; line-height: 1; cursor: pointer; transition: transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease; }
.crft-flag.selected { background: #315f76; color: white; transform: scale(1.18); box-shadow: 0 0 0 1px #fff, 0 0 0 2px #315f76; }
.crft-flag.print { cursor: default; }
.crft-flag.print:not(.selected) { background: transparent; color: #273943; transform: none; box-shadow: none; }
.room-feeling { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px; padding: 2px 6px; min-height: 24px; border-bottom: 1px solid #26343d; font-size: .72rem; }
.room-feeling input { min-width: 0; width: 100%; border: 0; background: transparent; color: #111; padding: 1px; outline: none; }
.room-notes, .section-textarea { width: 100%; min-height: 90px; resize: none; border: 0; background-color: #fff; color: #111; padding: 5px; outline: none; line-height: 12px; font-size: .68rem; background-image: linear-gradient(#e6e8e9 1px, transparent 1px), linear-gradient(90deg, #e6e8e9 1px, transparent 1px); background-size: 8px 8px; }
.room-notes:focus, .section-textarea:focus { box-shadow: inset 0 0 0 2px rgba(49,95,118,.28); }

.point-bottom { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 10px; min-height: 0; }
.section-box { display: grid; grid-template-rows: 28px 1fr; min-height: 0; border: 1.4px solid #26343d; background: white; }
.section-title { display: flex; justify-content: center; align-items: center; padding: 3px 8px; border-bottom: 1px solid #26343d; font-size: .82rem; font-weight: 900; text-align: center; }
.section-title.lore { background: var(--lore); }
.section-title.events { background: var(--event); }
.section-title.rewards { background: var(--reward); }
.section-title.names { background: var(--names); }
.map-box { position: relative; min-height: 0; border: 1.4px solid #26343d; background: white; overflow: hidden; }
.map-canvas { width: 100%; height: 100%; min-height: 520px; display: block; touch-action: none; background: white; }
.map-canvas[data-tool="icon"], .map-canvas[data-tool="quote"], .map-canvas[data-tool="line"] { cursor: crosshair; }
.map-canvas .map-object { cursor: grab; }
.map-canvas .map-object:active { cursor: grabbing; }
.map-canvas .selected-outline { stroke: #dd7d2e; stroke-width: 2.5; stroke-dasharray: 5 3; fill: none; pointer-events: none; }
.map-canvas .line-hit { stroke: transparent; stroke-width: 14; cursor: pointer; }
.map-canvas .connection.selected { stroke: #dd7d2e; }
.map-canvas text { font-family: Inter, Arial, sans-serif; }
.map-watermark { position: absolute; right: 9px; bottom: 7px; color: #a3aeb3; font-size: .58rem; pointer-events: none; }

.encounter-layout { grid-template-rows: auto 1fr 170px; }
.encounter-middle { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; min-height: 0; }
.notes-layout { grid-template-rows: 36px 1fr; }
.notes-title-input { width: 100%; border: 1.4px solid #26343d; background: var(--event); color: #111; text-align: center; font-weight: 900; font-size: 1rem; outline: none; }
.notes-area { width: 100%; min-height: 930px; border: 1.4px solid #26343d; border-top: 0; resize: none; padding: 10px; color: #111; font-size: .8rem; line-height: 16px; background-color: #fff; background-image: linear-gradient(#e6e8e9 1px, transparent 1px), linear-gradient(90deg, #e6e8e9 1px, transparent 1px); background-size: 8px 8px; }

.print-field { white-space: pre-wrap; overflow-wrap: anywhere; }
.print-field.room-name { padding: 2px; font-weight: 700; }
.print-field.feeling { min-height: 18px; }
.print-field.notes { min-height: 90px; padding: 5px; font-size: .68rem; line-height: 12px; background-image: linear-gradient(#e6e8e9 1px, transparent 1px), linear-gradient(90deg, #e6e8e9 1px, transparent 1px); background-size: 8px 8px; }

.modal-dialog { width: min(520px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 14px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 22px 60px rgba(0,0,0,.35); }
.modal-dialog::backdrop { background: rgba(10, 18, 24, .55); backdrop-filter: blur(3px); }
.dialog-header, .dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; }
.dialog-header { border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 2px 0 0; font-size: 1.2rem; }
.dialog-body { padding: 18px; }
.dialog-footer { border-top: 1px solid var(--line); justify-content: flex-end; }
.compact-dialog { width: min(620px, calc(100vw - 24px)); }
.page-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.page-choice { display: grid; gap: 5px; padding: 15px; text-align: left; }
.page-choice strong { font-size: .9rem; }
.page-choice span { color: var(--muted); font-size: .75rem; line-height: 1.35; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; padding: 10px 14px; border-radius: 9px; background: #1c2931; color: white; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: .82rem; transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8f2732; }
.print-pages { display: none; }

@media (max-width: 1120px) {
  .editor-view { grid-template-columns: 270px minmax(0, 1fr); }
  .editor-sidebar { padding: 12px; }
  .workspace { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 820px) {
  .app-header { position: relative; padding: 12px 14px; align-items: flex-start; }
  .brand img { width: 96px; }
  .brand p { display: none; }
  .editor-view { display: block; height: auto; overflow: visible; }
  .editor-sidebar { height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace { height: min(78vh, 900px); }
  .workspace-tip { display: none; }
  .dashboard-heading { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
}

@media (max-width: 600px) {
  .app-header { flex-direction: column; gap: 10px; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .header-actions .button { flex: 1; }
  .dashboard-view { width: min(100% - 24px, 1320px); padding-top: 24px; }
  .page-choice-grid { grid-template-columns: 1fr; }
  .workspace-toolbar { align-items: flex-start; flex-wrap: wrap; }
}


.drag-help { margin-top: 8px; }
.page-list-item { cursor: grab; }
.page-list-item:active { cursor: grabbing; }
.page-list-item.dragging { opacity: .45; }
.page-list-item.drag-over { border-color: var(--accent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }

.primary-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-group { margin-top: 12px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
.tool-group h3 { margin: 0 0 7px; color: var(--muted); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.map-palette { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }

.grid-zoom-control { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 8px; margin-bottom: 8px; }
.grid-zoom-control output { display: grid; place-items: center; min-height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: .78rem; font-weight: 900; }

.workspace-toolbar { padding-inline: 2px; }
.page-scroll-toggle { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--muted); font-size: .74rem; font-weight: 800; }
.page-scroll-toggle input { accent-color: var(--accent); }

.page-room-fields { margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.page-room-fields legend { padding: 0 6px; color: var(--ink); font-size: .78rem; font-weight: 900; }
.room-total { margin: 4px 0 8px; color: var(--accent); font-size: .8rem; font-weight: 900; }

@media print {
  @page { size: letter portrait; margin: 0; }
  html, body { background: white !important; }
  body > :not(.print-pages) { display: none !important; }
  .print-pages { display: block !important; }
  .print-pages .sheet-page { width: 8.5in; min-height: 11in; height: 11in; padding: .18in; box-shadow: none; transform: none; margin: 0; break-after: page; page-break-after: always; overflow: hidden; }
  .print-pages .sheet-page:last-child { break-after: auto; page-break-after: auto; }
  .print-pages .sheet-grid { min-height: calc(11in - .36in); }
  .print-pages .room-card { break-inside: avoid; }
  .print-pages .map-canvas { min-height: 5.2in; }
  .print-pages .notes-area { min-height: 10.1in; }
}

.room-grid.compact .room-card { min-height: 112px; }
.room-grid.compact .room-notes, .room-grid.compact .print-field.notes { min-height: 58px; }
.room-grid.dense .room-card { min-height: 82px; }
.room-grid.dense .room-notes, .room-grid.dense .print-field.notes { min-height: 30px; }
.room-grid.columns-1 { grid-template-columns: 1fr; }
.room-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sheet-page { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* World Shaper 0.64.0 sidebar and map-tool refinements */
.editor-view { grid-template-columns: 330px minmax(0, 1fr); }
.editor-sidebar { overflow-x: hidden; }
.panel { min-width: 0; overflow: hidden; }
.field { min-width: 0; }
.field > span { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.two-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.two-fields > .field { width: 100%; min-width: 0; }
.page-list-item { grid-template-columns: 28px minmax(0, 1fr) 62px; }
.page-list-item .page-kind { min-width: 0; text-align: right; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
.page-list-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-list-actions .button { min-width: 0; white-space: normal; line-height: 1.15; }

.tool-grid, .map-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.primary-tools { grid-template-columns: 1fr; }
.tool-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 38px;
  padding: 5px 7px;
  text-align: left;
  line-height: 1.1;
}
.tool-button > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.tool-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}
.tool-button.selected .tool-glyph { color: white; }
.tool-icon-svg svg { width: 24px; height: 24px; overflow: visible; }
.tool-icon-svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.location-glyph { font-size: .7rem; letter-spacing: -2px; }
.trees-glyph { font-size: .55rem; letter-spacing: -3px; }
.entry-glyph, .exit-glyph { width: 22px; height: 22px; margin-inline: auto; border: 2px solid currentColor; border-radius: 50%; font-size: .75rem; }
.entry-glyph { color: #2e8b57; }
.exit-glyph { color: #bd3140; font-size: 1.1rem; }
.warning-glyph { width: 0; height: 0; margin-inline: auto; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 21px solid #9a621a; color: white; font-size: .7rem; line-height: 25px; }
.warning-glyph::after { content: "!"; position: absolute; top: 8px; left: -2px; color: white; }
.route-glyph::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 12px;
  border-top: 3px solid currentColor;
  transform: rotate(-18deg);
  transform-origin: center;
}
.dashed-route::before { border-top-style: dashed; }
.direction-route::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(27deg);
}
.map-size-fields { margin-top: 12px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
.coordinate-toggle { margin: 2px 0 8px; }
.map-canvas[data-tool="label"] { cursor: crosshair; }

@media (max-width: 1120px) and (min-width: 821px) {
  .editor-view { grid-template-columns: 300px minmax(0, 1fr); }
  .editor-sidebar { padding: 12px; }
}
