/* Settings, Activity log and colour extras on New master (settings.js, activity.js, colour-extras.js), 29 Nov 2026 */
#stBox { display: grid; gap: 6px; padding: 4px 0 2px; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--soft); }
.st-seg { display: flex; }
.st-seg button, .st-btn { font: inherit; font-size: 12px; color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 3px 8px; cursor: pointer; margin-left: -1px; min-width: 34px; }
.st-seg button:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.st-seg button:last-child { border-radius: 0 6px 6px 0; }
.st-seg button.on { background: var(--accent); border-color: var(--accent); color: #1b1712; font-weight: 600; }
.st-seg button:focus-visible, .st-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.st-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-foot small { color: var(--soft); font-size: 11px; }
.st-btn { border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; }
.st-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.st-btn:hover { border-color: var(--accent); }

/* Panel size: the side panels grow or shrink together (the map stays as it is) */
#panel, #place, #layersFly, #looksFly, #lyLegend, #lyHud { zoom: var(--nm-ui, 1); }
@media (min-width: 601px) { #panel, #place { max-height: calc((100% - 24px) / var(--nm-ui, 1)); } } /* phones keep their own heights (base.css 45%, find.css 48%) */

/* Light panels (the map keeps its own colours, as on the Editor) */
:root[data-theme="light"] {
  --panel: rgba(255, 252, 246, 0.97);
  --ink: #1b1712;
  --soft: #6b5f4c;
  --line: rgba(27, 23, 18, 0.14);
  --accent: #b07d1a;
}
:root[data-theme="light"] #panel, :root[data-theme="light"] #place, :root[data-theme="light"] .rd-pop .maplibregl-popup-content { box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18); }
:root[data-theme="light"] .pg-h button:hover, :root[data-theme="light"] .pg-h button:focus-visible { background: rgba(0, 0, 0, 0.05); }
:root[data-theme="light"] #fdQ { color: var(--ink); }
:root[data-theme="light"] .st-seg button.on { color: #fff; }

/* Activity log (activity-panel.js): owner only */
#nmAct { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
#nmAct[hidden] { display: none; }
#nmAct .ac-sheet { width: min(1100px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; font: 13px/1.45 Inter, system-ui, sans-serif; backdrop-filter: blur(6px); }
#nmAct .ac-head { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
#nmAct h2 { margin: 0 auto 0 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
#nmAct h3 { margin: 0 0 6px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
#nmAct h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
#nmAct .ac-head button { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; cursor: pointer; }
#nmAct .ac-head button.on { background: var(--accent); border-color: var(--accent); color: #1b1712; font-weight: 600; }
:root[data-theme="light"] #nmAct .ac-head button.on { color: #fff; }
#nmAct .ac-seg { display: flex; }
#nmAct .ac-seg button { border-radius: 0; margin-left: -1px; }
#nmAct .ac-seg button:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
#nmAct .ac-seg button:last-child { border-radius: 0 6px 6px 0; }
#nmAct #acX { font-size: 17px; line-height: 1; padding: 3px 10px; }
#nmAct .ac-body { padding: 14px 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#nmAct .ac-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#nmAct .ac-card { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; display: grid; gap: 1px; }
#nmAct .ac-card span, #nmAct .ac-card small { color: var(--soft); font-size: 11.5px; }
#nmAct .ac-card b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
#nmAct .ac-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#nmAct .ac-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
#nmAct .ac-two > div, #nmAct .ac-three > div { min-width: 0; }
#nmAct .ac-list { list-style: none; margin: 0; padding: 0; }
#nmAct .ac-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
#nmAct .ac-list li span { min-width: 0; overflow-wrap: anywhere; }
#nmAct .ac-list li b { font-variant-numeric: tabular-nums; }
#nmAct .ac-list small, #nmAct .ac-muted { color: var(--soft); }
#nmAct .ac-list time { flex: 0 0 104px; color: var(--soft); font-variant-numeric: tabular-nums; }
#nmAct .ac-ev { justify-content: flex-start !important; }
#nmAct .ac-scroll { overflow-x: auto; }
#nmAct table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
#nmAct th { text-align: left; color: var(--soft); font-weight: 500; font-size: 11.5px; padding: 5px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
#nmAct td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
#nmAct .ac-map { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--soft); }
#nmAct .ac-map i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, #8a8a84); }
#nmAct .ac-bad { color: #e5484d; }
@media (max-width: 720px) {
  #nmAct { padding: 0; }
  #nmAct .ac-sheet { max-height: 100vh; height: 100%; border-radius: 0; }
  #nmAct .ac-cards { grid-template-columns: 1fr 1fr; }
  #nmAct .ac-two, #nmAct .ac-three { grid-template-columns: 1fr; }
  #nmAct .ac-ev { flex-direction: column; gap: 0; }
  #nmAct .ac-ev time { flex: none; }
}

/* Colour extras (colour-extras.js): the Sales switches and Show all */
.cx-sw { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.cx-sw button { font: inherit; font-size: 11.5px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; cursor: pointer; }
.cx-sw button.on { background: var(--accent); border-color: var(--accent); color: #1b1712; font-weight: 600; }
:root[data-theme="light"] .cx-sw button.on { color: #fff; }
.cx-sw button:focus-visible, .cx-all:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cx-all { font: inherit; font-size: 11.5px; color: var(--accent); background: none; border: 0; padding: 4px 0 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cx-card small { display: block; color: var(--soft); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.cx-card b { display: block; font-size: 14.5px; margin: 2px 0; }
.cx-card .cx-f { font-size: 12px; font-variant-numeric: tabular-nums; }
.cx-card .cx-f i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
/* phones: the map's buttons sit over the panel's right edge, so the settings rows start on the left */
@media (max-width: 600px) { .st-row { flex-wrap: wrap; justify-content: flex-start; gap: 4px 10px; } .st-row > span { flex-basis: 100%; } }
