/* Studio simpel (besluit 055, T21a): the Bolt styles of apps/studio-simpel/src/index.css, scoped under .ss so they do not touch the
   rest of TourMaker. Mock-map and demo rules are left out. Extra rules for the real map, files and messages are at the end. */
.ss {
  --primary: #1a6f4d;
  --primary-ink: #ffffff;
  --primary-press: #155840;
  --primary-soft: #e8f3ee;
  --secondary: #2f6fb0;
  --secondary-soft: #e9f1f8;

  --story: #e07b1d;
  --story-soft: #fcefdd;
  --turn: #2f6fb0;
  --turn-soft: #e9f1f8;
  --problem: #d33b2f;
  --problem-soft: #fce9e7;
  --ok: #1f8a55;
  --ok-soft: #e4f4ec;
  --skipped: #8a8f98;

  --ink: #1b2430;
  --ink-2: #5a6273;
  --ink-3: #8a8f98;
  --line: #e4e7eb;
  --line-2: #d2d6dd;
  --panel: #ffffff;
  --panel-2: #f7f8fa;
  --page: #eef1f4;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow: 0 6px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 18px 48px rgba(17, 24, 39, 0.16);

  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --bar-h: 56px;
  --list-w: 280px;
  --panel-w: 360px;
}

.ss, .ss * { box-sizing: border-box; }

.ss, .ss {
  margin: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ss {
  height: 100%;
}

.ss button {
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  min-height: 40px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ss button:hover { background: var(--panel-2); }
.ss button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 111, 176, 0.35);
  border-color: var(--secondary);
}
.ss button:active { transform: translateY(1px); }
.ss button[disabled] { opacity: 0.5; cursor: not-allowed; }

.ss .btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
  font-weight: 600;
}
.ss .btn-primary:hover { background: var(--primary-press); border-color: var(--primary-press); }

.ss .btn-ghost {
  background: transparent;
  border-color: transparent;
}
.ss .btn-ghost:hover { background: var(--panel-2); }

.ss .btn-soft { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.ss .btn-soft:hover { background: #dceb e3; }

.ss .icon { display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.ss .icon svg { display: block; }

.ss input[type="text"], .ss textarea, .ss select {
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  width: 100%;
  min-height: 40px;
}
.ss textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.ss input:focus, .ss textarea:focus, .ss select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(47, 111, 176, 0.25);
}

.ss a { color: var(--secondary); text-decoration: none; }
.ss a:hover { text-decoration: underline; }

/* ---------- App shell ---------- */

.ss .app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--page);
}

.ss .top-bar {
  height: var(--bar-h);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  flex: 0 0 auto;
}
.ss .top-bar .spacer { flex: 1; }

.ss .top-bar .brand {
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ss .top-bar .brand .dot-mark {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.ss .save-status { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.ss .save-status.ok { color: var(--ok); }
.ss .save-status.fail { color: var(--problem); }

.ss .status-lamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  background: var(--panel);
  cursor: pointer;
}
.ss .status-lamp .lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.ss .status-lamp.ok .lamp { background: var(--ok); }
.ss .status-lamp.warn .lamp { background: var(--story); }
.ss .status-lamp.error .lamp { background: var(--problem); }

/* ---------- Tour screen layout ---------- */

.ss .tour-shell {
  flex: 1;
  display: flex;
  min-height: 0;
}

.ss .point-list {
  width: var(--list-w);
  flex: 0 0 auto;
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.ss .point-list .list-head {
  padding: 14px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ss .point-list .collapse-btn { min-height: 28px; padding: 4px; border: none; background: transparent; color: var(--ink-3); }
.ss .point-list .collapse-btn:hover { background: var(--panel-2); }

.ss .point-row {
  display: grid;
  grid-template-columns: 24px 18px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.ss .point-row:hover { background: var(--panel-2); }
.ss .point-row.selected { background: var(--primary-soft); border-left-color: var(--primary); }
.ss .point-row .num { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 12px; text-align: right; }
.ss .point-row .mark { width: 14px; height: 14px; border-radius: 50%; }
.ss .point-row .mark.story { background: var(--story); }
.ss .point-row .mark.note { background: var(--ink-3); }
.ss .point-row .mark.turn {
  background: transparent;
  border: none;
  color: var(--turn);
  display: flex; align-items: center; justify-content: center;
}
.ss .point-row .name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss .point-row .state { font-size: 12px; color: var(--ink-3); }
.ss .point-row .state.done { color: var(--ok); }
.ss .point-row .state.problem { color: var(--problem); }
.ss .point-row .state.skip { color: var(--skipped); }
.ss .point-row.dimmed { opacity: 0.45; }

.ss .map-area {
  flex: 1;
  position: relative;
  min-width: 0;
  background: #dfe6ec;
  display: flex;
  flex-direction: column;
}

.ss #map { position: absolute; inset: 0; }

.ss .map-overlay-top {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 6px 10px 6px 14px;
  max-width: min(680px, 92%);
}
.ss .map-overlay-top .prompt { font-size: 13px; color: var(--ink); }
.ss .map-overlay-top .tools { display: flex; gap: 4px; border-left: 1px solid var(--line); padding-left: 8px; margin-left: 4px; }
.ss .tool-chip {
  min-height: 32px; padding: 4px 10px; font-size: 12px;
  border-radius: 999px; background: transparent; border: 1px solid transparent;
  color: var(--ink-2);
}
.ss .tool-chip:hover { background: var(--panel-2); }
.ss .tool-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.ss .map-floating {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ss .point-panel {
  width: var(--panel-w);
  flex: 0 0 auto;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}
.ss .play-dot {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--ok);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(31,138,85,0.25);
  transition: left 0.2s, top 0.2s;
  pointer-events: none;
}

/* ---------- Panels ---------- */

.ss .panel-head {
  padding: 14px 16px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.ss .panel-head .head-main { flex: 1; min-width: 0; }
.ss .panel-head .kind-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
}
.ss .panel-head .num { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 12px; margin-right: 6px; }
.ss .panel-head h2 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}
.ss .panel-head .close-btn {
  min-height: 32px; min-width: 32px; padding: 0;
  border-radius: 8px; background: transparent; border: none; color: var(--ink-2);
}
.ss .panel-head .close-btn:hover { background: var(--panel-2); color: var(--ink); }

.ss .panel-nav {
  display: flex; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--line);
}
.ss .panel-nav button { flex: 1; justify-content: center; }

.ss .panel-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 16px; }

.ss .field label {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.ss .field .hint { color: var(--ink-3); font-size: 12px; margin-top: 4px; }

.ss .section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); margin: 0;
}

.ss .audio-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2);
}
.ss .audio-row .meta { flex: 1; min-width: 0; }
.ss .audio-row .file { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss .audio-row .length { color: var(--ink-3); font-size: 12px; }
.ss .audio-row .play-btn { min-height: 34px; padding: 4px 10px; }

.ss .dropzone {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  background: var(--panel);
}
.ss .dropzone:hover { border-color: var(--secondary); color: var(--secondary); }

.ss .link-btn {
  background: transparent; border: none; color: var(--ink-3);
  font-size: 12px; padding: 4px 0; min-height: auto; cursor: pointer;
}
.ss .link-btn:hover { color: var(--problem); text-decoration: underline; }

.ss .thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ss .thumb {
  width: 64px; height: 64px; border-radius: 8px;
  background: linear-gradient(135deg, #cfd8e3, #b6c2d2);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 10px;
  cursor: pointer;
}
.ss .thumb:hover { box-shadow: var(--shadow-sm); }

.ss .phone-preview {
  background: #11181f;
  color: #e7eef5;
  border-radius: 18px;
  padding: 16px 14px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 220px;
  margin-top: 10px;
}
.ss .phone-preview .pt-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ss .phone-preview .pt-text { color: #b9c4d0; }
.ss .phone-preview .pt-muted { color: #7b8694; font-size: 11px; margin-top: 8px; }

.ss .fold {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.ss .fold > summary {
  list-style: none; cursor: pointer;
  padding: 10px 12px; display: flex; align-items: center; justify-content: space-between;
  font-weight: 500;
}
.ss .fold > summary::-webkit-details-marker { display: none; }
.ss .fold > summary::after { content: '+'; color: var(--ink-3); }
.ss .fold[open] > summary::after { content: '−'; }
.ss .fold .fold-body { padding: 0 12px 12px; }

.ss .stepper { display: flex; align-items: center; gap: 8px; }
.ss .stepper button { min-width: 36px; min-height: 36px; padding: 0 8px; }
.ss .stepper .val { min-width: 60px; text-align: center; font-variant-numeric: tabular-nums; }
.ss .stepper .auto-btn { font-size: 12px; padding: 6px 10px; min-height: 34px; margin-left: 6px; }
.ss .stepper .auto-btn.active { background: var(--secondary-soft); color: var(--secondary); border-color: transparent; }

.ss .problem-line {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 13px;
}
.ss .problem-line.error { background: var(--problem-soft); color: #8a241c; }
.ss .problem-line.warn { background: var(--story-soft); color: #7a4a17; }
.ss .problem-line .tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.ss .panel-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.ss .panel-foot .spacer { flex: 1; }

/* ---------- Start screen ---------- */

.ss .start-screen {
  flex: 1;
  overflow-y: auto;
  padding: 40px 0 80px;
}
.ss .start-inner { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.ss .start-inner h1 {
  font-size: 28px; font-weight: 600; margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.ss .start-inner .sub { color: var(--ink-2); margin-bottom: 32px; }

.ss .start-section { margin-bottom: 40px; }
.ss .start-section h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); margin: 0 0 14px; font-weight: 600;
}

.ss .empty-line {
  background: var(--panel);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: var(--ink-2);
  text-align: center;
}

.ss .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.15s, transform 0.05s;
}
.ss .card.clickable { cursor: pointer; }
.ss .card.clickable:hover { box-shadow: var(--shadow); }

.ss .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.ss .card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ss .card .name { font-size: 16px; font-weight: 600; }
.ss .card .city { color: var(--ink-2); font-size: 13px; }
.ss .card .date { color: var(--ink-3); font-size: 12px; }
.ss .card .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-2); font-size: 13px; }
.ss .card .meta .item { display: inline-flex; align-items: center; gap: 6px; }
.ss .card .meta .item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.ss .card .meta .item .dot.story { background: var(--story); }
.ss .card .meta .item .dot.turn { background: var(--turn); }
.ss .card .versions { color: var(--ink-2); font-size: 13px; }
.ss .card .last-sent { color: var(--ink-3); font-size: 12px; }
.ss .card .todo { font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.ss .card .todo .pill { padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.ss .card .todo .pill.warn { background: var(--story-soft); color: #7a4a17; }
.ss .card .todo .pill.err { background: var(--problem-soft); color: #8a241c; }

.ss .bundle-link { margin-top: 8px; }

/* ---------- Menus / popovers ---------- */

.ss .popover {
  position: absolute;
  top: calc(var(--bar-h) - 4px);
  right: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 280px;
  z-index: 30;
  overflow: hidden;
}
.ss .popover .menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; gap: 12px; cursor: pointer;
}
.ss .popover .menu-item:hover { background: var(--panel-2); }
.ss .popover .menu-item .label { color: var(--ink); }
.ss .popover .menu-item .desc { color: var(--ink-3); font-size: 12px; }
.ss .popover .sep { height: 1px; background: var(--line); margin: 0; }
.ss .popover .seg { display: flex; padding: 8px; gap: 4px; }
.ss .popover .seg button { flex: 1; justify-content: center; min-height: 34px; font-size: 12px; }
.ss .popover .seg button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ss .popover .row-head { padding: 10px 14px 4px; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }

.ss .switch { width: 38px; height: 22px; background: var(--line-2); border-radius: 999px; position: relative; flex: 0 0 auto; transition: background 0.15s; }
.ss .switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: left 0.15s; box-shadow: var(--shadow-sm); }
.ss .switch.on { background: var(--primary); }
.ss .switch.on::after { left: 18px; }

/* ---------- Check list ---------- */

.ss .check-popover {
  position: absolute;
  top: calc(var(--bar-h) - 4px);
  right: 200px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 360px;
  z-index: 30;
  overflow: hidden;
}
.ss .check-popover .head { padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.ss .check-popover .body { max-height: 60vh; overflow-y: auto; }
.ss .check-line {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 14px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.ss .check-line:hover { background: var(--panel-2); }
.ss .check-line .tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; flex: 0 0 auto; padding-top: 2px; }
.ss .check-line.error .tag { color: var(--problem); }
.ss .check-line.warn .tag { color: var(--story); }
.ss .check-line.ok { background: var(--ok-soft); color: #145; cursor: default; }
.ss .check-line.ok .tag { color: var(--ok); }

/* ---------- Dialogs ---------- */

.ss .scrim {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, 0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  animation: fade 0.15s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.ss .dialog {
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: min(480px, 92vw);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.ss .dialog h3 { margin: 0; font-size: 18px; font-weight: 600; }
.ss .dialog .body { color: var(--ink-2); }
.ss .dialog .actions { display: flex; gap: 8px; justify-content: flex-end; }
.ss .dialog .summary-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px;
}
.ss .dialog .summary-line:hover { background: var(--panel-2); }
.ss .dialog .summary-lines { display: flex; flex-direction: column; gap: 6px; }

.ss .progress { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.ss .spinner { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Play bar ---------- */

.ss .play-bar {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 8;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(820px, 92%);
}
.ss .play-bar .play-btn { min-height: 36px; min-width: 36px; padding: 0; border-radius: 50%; justify-content: center; }
.ss .play-bar .speeds { display: flex; gap: 2px; }
.ss .play-bar .speeds button { min-height: 30px; padding: 0 8px; font-size: 12px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-2); }
.ss .play-bar .speeds button.active { background: var(--ink); color: #fff; }
.ss .play-bar .now { font-size: 13px; color: var(--ink); white-space: nowrap; flex: 0 0 auto; }
.ss .play-bar .scrubber { flex: 1; height: 22px; position: relative; cursor: pointer; }
.ss .play-bar .track { position: absolute; top: 9px; left: 0; right: 0; height: 4px; background: var(--line); border-radius: 2px; }
.ss .play-bar .fill { position: absolute; top: 9px; left: 0; height: 4px; background: var(--ok); border-radius: 2px; }
.ss .play-bar .block { position: absolute; top: 5px; height: 12px; border-radius: 2px; }
.ss .play-bar .block.story { background: var(--story); }
.ss .play-bar .block.turn { background: var(--turn); }
.ss .play-bar .block.problem { background: var(--problem); }
.ss .play-bar .handle { position: absolute; top: 4px; width: 14px; height: 14px; background: var(--ok); border: 2px solid #fff; border-radius: 50%; transform: translateX(-50%); box-shadow: var(--shadow-sm); }
.ss .play-bar .close { min-height: 30px; min-width: 30px; padding: 0; border-radius: 50%; border: none; background: transparent; color: var(--ink-3); }

/* ---------- Reports / Live full screens ---------- */

.ss .sub-screen {
  flex: 1;
  overflow-y: auto;
  padding: 32px 0 80px;
}
.ss .sub-inner { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.ss .sub-inner h1 { font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.ss .sub-inner .sub { color: var(--ink-2); margin-bottom: 24px; }

.ss .live-now {
  background: var(--ok-soft); color: #134;
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}

/* ---------- Loading / error overlays ---------- */

.ss .overlay-state {
  position: absolute; inset: 0;
  background: rgba(238, 241, 244, 0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 40;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-2);
}

/* ---------- Misc ---------- */
.ss .row { display: flex; align-items: center; gap: 8px; }
.ss .row.wrap { flex-wrap: wrap; }
.ss .col { display: flex; flex-direction: column; gap: 8px; }
.ss .muted { color: var(--ink-3); }
.ss .spacer { flex: 1; }
.ss .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .ss { --list-w: 240px; --panel-w: 320px; }

}
@media (max-width: 720px) {
  .ss .point-list, .ss .point-panel { position: absolute; top: 0; bottom: 0; z-index: 20; }
  .ss .point-list { left: 0; }
  .ss .point-panel { right: 0; }

}


/* ---- added when building it into TourMaker (T21a) ---- */
.ss { position: fixed; inset: 0; z-index: 10; overflow: hidden; }
.ss .ss-map-host, .ss .ss-map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ss .ss-map-canvas { cursor: grab; }
.ss .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ss .card.busy { opacity: 0.6; cursor: progress; }
.ss .dropzone.over { border-color: var(--primary); background: var(--primary-soft); }
.ss .thumb { padding: 0; overflow: hidden; border: 1px solid var(--line); }
.ss .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss .photo-big { position: fixed; inset: 0; z-index: 60; background: rgba(17, 24, 39, 0.82); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.ss .photo-big img { max-width: 92vw; max-height: 92vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.ss .play-btn.playing { background: var(--primary); color: var(--primary-ink); }
.ss .ss-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; max-width: min(640px, 92vw); display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 12px 16px; background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px; }
.ss .ss-toast button { min-width: 32px; min-height: 32px; padding: 0 8px; background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }

/* Editing controls have their own layout row ABOVE the actual map viewport.
   No floating pill across anker handles, stories or crossroads. */
.ss .map-area:has(> .map-toolbar) #map {
  position: relative; inset: auto; flex: 1 1 0; min-height: 0;
}
.ss .map-area > .map-toolbar {
  position: relative; inset: auto; top: auto; left: auto; transform: none;
  width: 100%; max-width: none; min-height: 48px;
  flex: 0 0 auto; z-index: 6;
  border-radius: 0; box-shadow: none;
  padding: 8px 12px; gap: 8px; flex-wrap: wrap;
}
.ss .map-area > .map-toolbar .prompt { flex: 1 1 170px; }
.ss .map-area > .map-toolbar .tools { flex: 1 1 auto; flex-wrap: wrap; }
.ss .map-area > .map-toolbar button { flex-shrink: 0; }
