.annotation-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; border-bottom:1px solid var(--line); }
.annotation-head h1 { font:700 20px var(--serif); color:var(--gold); text-align:left; letter-spacing:.04em; }
.annotation-tools { display:flex; align-items:end; gap:12px 16px; flex-wrap:wrap; padding:12px 20px; }
.annotation-modes { display:flex; flex-wrap:wrap; gap:6px; }
.annotation-tools .btn { min-height:44px; }
.annotation-tools .btn[aria-pressed=true] { border-color:var(--gold); color:var(--gold); background:#242c36; }
.annotation-tools label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--mut); margin:0; }
.annotation-tools select { min-height:36px; padding:6px 10px; }
.annotation-color input { height:36px; width:48px; padding:3px; cursor:pointer; }
.annotation-tools .annotation-visible { flex-direction:row; align-items:center; align-self:center; gap:8px; min-height:44px; color:var(--txt); }
.annotation-visible input { width:42px; height:24px; }
.annotation-status,.annotation-access { margin:0; padding:0 20px 10px; font-size:13px; }
.annotation-status { color:var(--txt); }
.annotation-access { color:var(--mut); }
.annotation-note-row { display:flex; align-items:center; gap:12px; padding:0 20px 12px; }
.annotation-note-row input { flex:1; min-width:0; }
#annotation-map { flex:1; min-height:360px; width:100%; border:0; background:var(--ink); }
.annotation-status[data-error=true] { color:#ffb7a9; }
.annotation-retry { align-self:flex-start; margin:0 20px 12px; min-height:44px; }
@media(max-width:600px) {
  .annotation-head { padding:12px; flex-wrap:wrap; }
  .annotation-tools { padding:12px; gap:12px; }
  .annotation-tools .btn { padding:9px 12px; }
  .annotation-status,.annotation-access { padding:0 12px 10px; }
  .annotation-note-row { padding:0 12px 12px; flex-direction:column; align-items:stretch; }
}
.annotations-page { color:#f0e9dc; background:#0b1017; }
.embedded .annotation-head { display:none; }
.map-stock-tools { display:flex; flex-wrap:wrap; align-items:end; gap:10px 12px; padding:12px 20px; border-bottom:1px solid var(--line); }
.map-stock-tools label { flex:1 1 260px; margin:0; }
.map-stock-tools input { min-height:44px; }
.map-stock-tools .btn { min-height:44px; }
.map-stock-tools p { flex-basis:100%; margin:0; color:var(--mut); font-size:12px; }
.map-stock-tools .stock-crypts { flex:0 1 auto; flex-direction:row; align-items:center; gap:8px; min-height:44px; color:var(--txt); font:13px system-ui,sans-serif; text-transform:none; letter-spacing:0; cursor:pointer; }
.map-stock-tools .stock-crypts input { min-height:24px; height:24px; width:42px; }
#map-stock-matches { flex-basis:100%; }
#map-stock-matches > p { color:var(--txt); margin:0 0 6px; }
#map-stock-match-list { display:flex; flex-wrap:wrap; gap:6px; max-height:156px; overflow-y:auto; list-style:none; padding:3px; margin:0; scrollbar-color:var(--gold2) var(--ink); }
#map-stock-match-list li { font-size:13px; color:var(--txt); }
#map-stock-match-list button { min-height:44px; max-width:100%; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:var(--ink); color:var(--txt); font:inherit; text-align:left; cursor:pointer; }
#map-stock-match-list button:hover { border-color:var(--gold2); }
#map-stock-match-list button[aria-pressed=true] { border-color:var(--gold); background:#242c36; box-shadow:inset 3px 0 var(--gold); }
#map-stock-match-list button:focus-visible { outline:2px solid var(--gold); outline-offset:1px; }
#map-stock-match-list strong { color:var(--gold); font-variant-numeric:tabular-nums; }
@media(max-width:600px) { .map-stock-tools { padding:12px; } .map-stock-tools label { flex-basis:100%; } }
