.nn-globe-market {
  --gm-ink: var(--ink, #49313e);
  --gm-paper: var(--paper, #fffaf0);
  --gm-mint: var(--mint, #d5e5ca);
  --gm-line: var(--line, #765568);
  --gm-quiet: var(--quiet, #75646e);
  color: var(--gm-ink);
  font-family: var(--reader-font, inherit);
  min-width: 0;
}
.nn-globe-market *, .nn-globe-market *::before, .nn-globe-market *::after { box-sizing: border-box; }
.nn-globe-market button, .nn-globe-market select { color: inherit; font: inherit; }
.nn-globe-market button, .nn-globe-market select {
  border: 1px solid var(--gm-line); border-radius: 14px; background: var(--gm-paper);
  min-height: 44px; max-width: 100%; min-width: 0; padding: 8px 12px; white-space: normal; overflow-wrap: anywhere;
}
.nn-globe-market button { cursor: pointer; }
.nn-globe-market button:hover, .nn-globe-market button[aria-pressed="true"] { background: var(--gm-mint); }
.nn-globe-market button:disabled { cursor: default; opacity: .58; }
.nn-globe-market :focus-visible { outline: 3px solid var(--gold, #9b6922); outline-offset: 3px; }
.nn-gm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; min-width: 0; }
.nn-gm-top > div { flex: 1 1 220px; min-width: 0; }
.nn-gm-top h2 { font: 700 1.5rem Fredoka, 'Trebuchet MS', sans-serif; margin: 0; }
.nn-gm-top p { color: var(--gm-quiet); font-size: .875rem; margin: 5px 0 0; }
.nn-gm-layout { display: grid; grid-template-columns: minmax(245px, .82fr) minmax(300px, 1.25fr); gap: 26px; align-items: start; }
.nn-gm-globe-panel, .nn-gm-shelf-panel { min-width: 0; }
.nn-gm-globe-panel h3, .nn-gm-shelf-panel h3 { font: 700 1.25rem Fredoka, 'Trebuchet MS', sans-serif; margin: 0 0 10px; }
.nn-gm-eyebrow { font-size: .75rem; letter-spacing: .12em; margin: 0 0 6px; }
.nn-gm-globe-wrap { width: min(100%, 360px); aspect-ratio: 1; margin: 8px auto; }
.nn-gm-globe { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; }
.nn-gm-globe:active { cursor: grabbing; }
.nn-gm-controls { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 4px 0 15px; }
.nn-gm-controls span { font-size: .8125rem; text-align: center; color: var(--gm-quiet); }
.nn-gm-selectors { display: grid; gap: 9px; }
.nn-gm-selectors label { display: grid; gap: 5px; font-size: .875rem; }
.nn-gm-selectors select { width: 100%; }
.nn-gm-place-note { color: var(--gm-quiet); font-size: .875rem; line-height: 1.45; margin: 10px 0 0; }
.nn-gm-shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.nn-gm-shelf-head > div { flex: 1 1 150px; min-width: 0; }
.nn-gm-season { border: 1px solid var(--gm-line); border-radius: 22px; background: var(--warm, #f6deb3); padding: 8px 12px; font-size: .8125rem; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.nn-gm-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: .8125rem; margin: 9px 0 16px; color: var(--gm-quiet); }
.nn-gm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.nn-gm-tabs button { padding: 6px 10px; font-size: .875rem; }
.nn-gm-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nn-gm-card { min-width: 0; border: 1px solid var(--gm-line); border-radius: 14px; background: var(--gm-paper); padding: 11px; }
.nn-gm-card.is-owned { border: 2px solid var(--gold, #9b6922); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold, #9b6922) 14%, transparent); }
.nn-gm-card.is-gray { background: light-dark(#ece7e5, #383438); }
.nn-gm-card.is-gray .nn-gm-art { filter: grayscale(1); }
.nn-gm-card h4 { font: 700 1rem Fredoka, 'Trebuchet MS', sans-serif; margin: 9px 0 4px; }
.nn-gm-caption { font-size: .875rem; line-height: 1.4; margin: 0 0 7px; }
.nn-gm-sources { font-size: 10px; margin: 8px 0; }
.nn-gm-sources summary { cursor: pointer; }
.nn-gm-sources ul { margin: 6px 0 0; padding-left: 17px; }
.nn-gm-sources a { color: inherit; }
.nn-gm-status { color: var(--gm-quiet); font-size: .8125rem; line-height: 1.4; margin: 7px 0 9px; }
.nn-gm-card.is-owned .nn-gm-status { color: var(--gold, #9b6922); }
.nn-gm-art { display: grid; place-items: center; min-height: 94px; border-radius: 9px; overflow: hidden; background: var(--soft, #efdfec); }
.nn-gm-art > * { max-width: 100%; }
.nn-gm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.nn-gm-actions button { padding: 6px 9px; font-size: .875rem; }
.nn-gm-empty { grid-column: 1 / -1; border: 1px dashed color-mix(in srgb, var(--gm-line) 40%, transparent); border-radius: 14px; padding: 20px; color: var(--gm-quiet); font-size: .875rem; }
.nn-gm-blank { min-height: 194px; border: 1px dashed color-mix(in srgb, var(--gm-line) 24%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--gm-paper) 22%, transparent); }
.nn-gm-guide-note { color: var(--gm-quiet); font-size: .875rem; margin: 0 0 12px; }
.nn-gm-pin { cursor: pointer; }
.nn-gm-pin text { font: 12px Fredoka, 'Trebuchet MS', sans-serif; paint-order: stroke; stroke: var(--gm-paper); stroke-width: 3px; stroke-linejoin: round; }
.nn-gm-pin:focus-visible circle:last-of-type { stroke: var(--gold, #9b6922); stroke-width: 3; }
.nn-gm-message { min-height: 20px; margin: 8px 0 0; font-size: 11px; }
@media (max-width: 700px) {
  .nn-gm-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .nn-gm-globe-wrap { max-width: 300px; }
  .nn-gm-top { align-items: flex-start; }
  .nn-gm-top h2 { font-size: 1.3rem; }
}
@media (max-width: 360px) {
  .nn-gm-items { gap: 8px; }
  .nn-gm-card { padding: 8px; }
  .nn-gm-legend { gap: 6px 9px; }
}
@media (max-width: 400px) {
  .nn-gm-items { grid-template-columns: minmax(0, 1fr); }
  .nn-gm-top > button { flex: 0 1 auto; }
  .nn-gm-top > div { flex-basis: 180px; }
  .nn-gm-card, .nn-gm-actions, .nn-gm-actions button { min-width: 0; max-width: 100%; }
}
