/* ============================================================
   Dialog Overlay CSS — shared by layout editor + comic viewer
   ============================================================ */

/* ── Overlay layer container ── */
.dialog-overlay-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
.dialog-overlay-layer.interactive {
  pointer-events: auto;
}
/* On the other layers a bubble must not take the click meant for the panel under it
   (.dialog-box-overlay sets pointer-events: auto, which wins over the layer's none). */
.dialog-overlay-layer:not(.interactive) .dialog-box-overlay,
.dialog-overlay-layer:not(.interactive) .dialog-box-overlay * {
  pointer-events: none;
}

/* ── Dialog box base ── */
.dialog-box-overlay {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  font-size: 0.85rem;
  line-height: 1.3;
  word-wrap: break-word;
  box-sizing: border-box;
  pointer-events: auto;
  transition: box-shadow 0.15s;
}

/* ── SVG shape layer inside dialog boxes ── */
.dialog-box-overlay .dialog-shape-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

/* ── SVG shape styling ── */
.dialog-box-overlay svg { pointer-events: none; overflow: visible; }
.dialog-box-overlay svg path { transition: fill 0.15s; }
.dialog-box-overlay.selected svg path { filter: drop-shadow(0 0 3px rgba(13,110,253,0.5)); }
.tail-base-handle { cursor: grab; pointer-events: auto; }
.tail-base-handle.snapped { fill: #4CAF50; r: 7; }

/* ── Style-specific overrides ── */
.dialog-box-overlay.style-whisper {
  /* Whisper dashing is now applied to SVG stroke-dasharray */
}
.dialog-box-overlay.style-no_box {
  background: transparent !important;
  text-shadow: 0 0 4px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.6);
}

/* ── Tail / pointer — SVG-based ── */
.dialog-box-overlay .tail-svg {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.dialog-box-overlay .dialog-shape-svg .tail-handle,
.dialog-box-overlay .tail-svg .tail-handle {
  pointer-events: auto;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.15s;
}
.dialog-box-overlay.selected .dialog-shape-svg .tail-handle,
.dialog-box-overlay.selected .tail-svg .tail-handle,
.dialog-box-overlay:hover .dialog-shape-svg .tail-handle,
.dialog-box-overlay:hover .tail-svg .tail-handle {
  opacity: 0.7;
}
.dialog-box-overlay .dialog-shape-svg .tail-handle:active,
.dialog-box-overlay .tail-svg .tail-handle:active {
  cursor: grabbing;
  opacity: 1;
}

/* ── Text content overlay ── */
.dialog-box-overlay .dialog-text-content {
  position: relative;
  z-index: 1;
}

/* ── HTML tail handles (tip + midway/bulge) ── */
.tail-tip-handle, .tail-mid-handle, .tail-base-handle {
  opacity: 0;
  transition: opacity 0.15s, transform 0.1s;
}
.dialog-box-overlay.selected .tail-tip-handle,
.dialog-box-overlay.selected .tail-mid-handle,
.dialog-box-overlay.selected .tail-base-handle,
.dialog-box-overlay:hover .tail-tip-handle,
.dialog-box-overlay:hover .tail-mid-handle,
.dialog-box-overlay:hover .tail-base-handle {
  opacity: 0.8;
}
.tail-tip-handle:hover, .tail-mid-handle:hover, .tail-base-handle:hover {
  opacity: 1 !important;
  transform: scale(1.3);
}
.tail-tip-handle:active, .tail-mid-handle:active, .tail-base-handle:active {
  cursor: grabbing !important;
  opacity: 1 !important;
}

/* ── Interactive editor states ── */
.dialog-box-overlay.draggable { cursor: grab; }
.dialog-box-overlay.dragging  { cursor: grabbing; opacity: 0.8; z-index: 100; }
.dialog-box-overlay.selected  {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}
.dialog-box-overlay:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 1px;
}

.dialog-box-overlay .resize-handle {
  position: absolute;
  top: 0; right: -4px; bottom: 0; width: 8px;
  cursor: ew-resize;
  background: transparent;
}
.dialog-box-overlay.selected .resize-handle {
  background: rgba(13, 110, 253, 0.3);
  border-radius: 0 4px 4px 0;
}

/* ── Page decoration layer ── */
.decoration-overlay-layer {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}
.decoration-overlay-layer.interactive {
  pointer-events: auto;
}
.decoration-item {
  position: absolute;
  pointer-events: none;
}
.decoration-item.decoration-editable {
  pointer-events: auto;
  cursor: grab;
}
.decoration-item.decoration-editable:hover {
  outline: 2px dashed rgba(13, 110, 253, 0.6);
  outline-offset: 2px;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.2);
}

/* ── Decoration corner resize handles ── */
.dec-corner-handle {
  opacity: 0.7;
  transition: opacity 0.15s, transform 0.1s;
}
.dec-corner-handle:hover {
  opacity: 1;
  transform: scale(1.3);
}
.dec-corner-handle:active {
  cursor: grabbing !important;
  opacity: 1;
}

/* ── Layout Side Panel (always visible) ── */
#layout-side-panel {
  width: 240px;
  min-width: 240px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--color-bg-secondary);
  border-left: 1px solid var(--color-border-default);
  border-radius: 0 6px 6px 0;
}

/* ── Decoration drag sources ── */
.dec-drag-source {
  cursor: grab;
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
}
.dec-drag-source:active {
  cursor: grabbing;
}

/* ── Drop target highlight on canvas ── */
#layout-canvas-container.dec-drop-active {
  outline: 2px dashed rgba(13, 110, 253, 0.4);
  outline-offset: -2px;
}

/* ── Reader spread navigation arrows ── */
.reader-nav-arrow {
  position: absolute;
  top: 33%;            /* vertically centred in the middle third */
  height: 33%;
  width: 56px;         /* matches the gutter padding (60px - 4px breathing room) */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 10;
  user-select: none;
  border-radius: 4px;
}
.reader-nav-arrow:hover {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.05);
}
.reader-nav-arrow:active {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}
.reader-nav-arrow.d-none { display: none !important; }
.reader-nav-prev { left: 0; }
.reader-nav-next { right: 0; }

/* ── Continue to next episode link — bottom third of right gutter ── */
.reader-continue-link {
  position: absolute;
  top: 66%;
  height: 33%;
  right: 0;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.reader-continue-link:hover {
  background: rgba(255, 255, 255, 0.05);
}
.reader-continue-link a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: var(--text-xs);
  line-height: 1.3;
  text-align: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: color 0.2s ease;
}
.reader-continue-link a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Mobile responsive ─────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .dialog-box-overlay {
    font-size: 0.85rem;
    max-width: 90vw;
  }
  .reader-nav-arrow {
    width: 40px;
  }
  .reader-continue-link {
    width: 40px;
  }
  #layout-side-panel {
    width: 100%;
    min-width: unset;
    max-height: 220px;
    border-left: none;
    border-top: 1px solid var(--color-border-default);
  }
}

/* ── Reader on a web edition: one page, no wider than 960 px, scrolling in its holder ── */
/* The spread's side gutter is a margin, not padding: page_layout.js sizes each page from the spread's clientWidth/2,
   and padding is inside clientWidth, which made the right page wider than its half and cut it at 1440 px. */
#layout-reader-container .reader-web { padding: 12px 16px !important; margin: 0 !important; height: 100% !important; }
#layout-reader-container .reader-web #layout-reader-left { box-shadow: none; flex: 1 1 auto; max-width: 960px; margin: 0 auto; }

/* ── Reader: hide panel numbering ── */
#layout-reader-container.reader-hide-numbering [data-print-hide="true"] {
  display: none;
}

/* ── Print: whole episode, one comic page per sheet ──
   page_layout.js builds #layout-print-pages on beforeprint (and removes it on afterprint);
   it sits off-screen so its layers can be measured, and is the only thing printed. */
#layout-print-pages {
  position: fixed;
  left: -100000px;
  top: 0;
}
.layout-print-sheet {
  position: relative;
  width: 794px;          /* A4 at 96 CSS px per inch */
  height: 1122px;
  overflow: hidden;
  background: #fff;
  page: comic-page;
}
.layout-print-page {
  position: absolute;
  transform-origin: 0 0;
}
@page comic-page {
  size: A4 portrait;
  margin: 0;
}
/* For a print shop: the page plus its bleed on every side (print_setup.py: A4 + 3 mm). The sheet's
   own size is set by page_layout.js; a sheet size no template has used yet needs its @page rule here
   (named by print_setup's sheet_key). */
.layout-print-sheet.sheet-216x303 {
  page: comic-sheet-216x303;
}
@page comic-sheet-216x303 {
  size: 216mm 303mm;
  margin: 0;
}

/* Red marks on panels with something to fix (page_layout.js _markPanelIssues; editor only) */
.panel-issue-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
}
.page-stacked .panel-issue-layer { z-index: 101; }
.panel-issue-badge {
  position: absolute;
  transform: translate(-100%, 0);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #dc3545;
  color: #fff;
  font: 700 13px/1 system-ui, sans-serif;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.panel-issue-badge:hover, .panel-issue-badge:focus-visible { background: #b02a37; outline: 2px solid #fff; }
.panel-issues-note {
  border: 1px solid #dc3545;
  border-left-width: 4px;
  border-radius: 6px;
  background: rgba(220, 53, 69, 0.12);
  padding: 6px 8px;
  font-size: 0.8rem;
  color: #f1aeb5;
}
.panel-issues-note strong { color: #fff; }
.panel-issues-note ul { margin: 4px 0 0; padding-left: 1.1rem; }
.panel-issues-note q { color: #e9ecef; }
@media print {
  .panel-issue-layer { display: none !important; }
}
@media print {
  html.layout-printing,
  html.layout-printing body {
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  html.layout-printing body > *:not(#layout-print-pages) {
    display: none !important;
  }
  html.layout-printing #layout-print-pages {
    position: static;
  }
  html.layout-printing .layout-print-sheet {
    break-after: page;
  }
  html.layout-printing .layout-print-sheet:last-child {
    break-after: auto;
  }
  html.layout-printing [data-print-hide="true"] {
    display: none !important;
  }
}

/* Padlock on a locked bubble (editor, Dialog layer only) */
.dialog-box-overlay .dialog-lock-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #212529;
  color: #ffc107;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  z-index: 9;
  pointer-events: none;
}

/* The panel picked on the Dialog layer ("Regenerate bubble" acts on it) */
.dialog-overlay-layer .dialog-panel-pick {
  position: absolute;
  box-sizing: border-box;
  border: 2px dashed #ffc107;
  pointer-events: none;
  z-index: 0;
}

/* This page's dialogue (the Dialog layer's side view): the row whose bubble is selected, blue as a current selection */
.dlg-list-row textarea { font-size: 0.85rem; }
.dlg-list-row.is-current textarea { border-color: var(--color-accent-blue); box-shadow: 0 0 0 1px var(--color-accent-blue); }

/* ── The toolbar on a panel and the selected panel's pane (page_layout.js, UI review 2026-10-12) ── */
.panel-toolbar-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}
.panel-toolbar {
  position: absolute;
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(22, 27, 34, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  white-space: nowrap;
}
.panel-toolbar.hover { opacity: 0.8; }
.panel-toolbar.hover:hover { opacity: 1; }
.ptb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1.5px solid var(--ptb);
  border-radius: 6px;
  background: transparent;
  color: var(--ptb);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.ptb-btn:hover { background: color-mix(in srgb, var(--ptb) 22%, transparent); }
.ptb-btn.active { background: var(--ptb); color: #fff; }
.ptb-btn.blocked { opacity: 0.4; }
.panel-pane-modes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.panel-pane-modes .ptb-btn {
  justify-content: flex-start;
  width: 100%;
  font-size: 13px;
}
.panel-pane-modes .ptb-btn i { font-size: 15px; }
.panel-pane-help {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px;
  border-left: 3px solid var(--ptb);
  background: rgba(127, 127, 127, 0.1);
  font-size: 12px;
  line-height: 1.35;
}
.panel-pane-help strong { color: var(--ptb); }
.panel-mode-banner {
  position: absolute;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(13, 110, 253, 0.92);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
.panel-pane-tools { display: flex; flex-direction: column; gap: 4px; }
.pane-tool {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  column-gap: 6px;
  align-items: center;
  width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.pane-tool:hover, .pane-tool.active { border-color: #0d6efd; background: rgba(13, 110, 253, 0.08); }
.pane-tool-name { font-size: 13px; font-weight: 600; }
.pane-tool-tag {
  padding: 0 6px;
  border-radius: 8px;
  background: #8b5cf6;
  color: #fff;
  font-size: 10px;
}
.pane-tool-help { grid-column: 2 / 4; font-size: 11.5px; line-height: 1.3; opacity: 0.75; }
.pane-border { display: flex; flex-direction: column; gap: 6px; padding: 6px 8px; font-size: 12px; }
.pane-border label { display: flex; align-items: center; gap: 8px; margin: 0; }
.pane-border input[type=range] { flex: 1; }
.pane-border select { flex: 1; }
/* A band of the page drawn again above the bubbles it covers (page_layout.js _stackPageLayers) */
.band-cover { position: absolute; pointer-events: none; }
.band-cover svg { display: block; width: 100%; height: 100%; }
.band-cover, .band-cover * { pointer-events: none !important; }
.page-stacked .panel-toolbar-layer { z-index: 100; }
.breakout-step { padding: 6px 8px; border-left: 3px solid rgba(127, 127, 127, 0.35); }
.breakout-step.current { border-left-color: #0096ff; background: rgba(0, 150, 255, 0.07); }
#breakout-status-badge { white-space: normal; text-align: left; line-height: 1.3; }
.restore-points { display: flex; flex-direction: column; gap: 4px; padding: 6px 2px 8px; font-size: 12px; }
.rp-now { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 600; }
.rp-now-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rp-actions { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.rp-pin { border: 1px solid rgba(127, 127, 127, 0.4); color: inherit; }
.rp-pin.on { border-color: #8b5cf6; color: #8b5cf6; }
.rp-tag {
  align-self: flex-start;
  padding: 0 6px;
  border-radius: 8px;
  background: #14b8a6;
  color: #fff;
  font-size: 10px;
  opacity: 1 !important;
}
.rp-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  column-gap: 8px;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(127, 127, 127, 0.3);
  border-radius: 6px;
}
.rp-row.pinned { border-color: #8b5cf6; }
/* The whole picture, in its own shape: a cut picture must not look like the uncut one */
.rp-thumb {
  width: 64px;
  height: 48px;
  object-fit: contain;
  background: rgba(127, 127, 127, 0.18);
  border-radius: 4px;
}
.rp-thumb-none { display: flex; align-items: center; justify-content: center; opacity: 0.6; }
.rp-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rp-text em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-text span { opacity: 0.75; font-size: 11px; }
.panel-crop-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  padding: 6px 10px;
  border: 1.5px solid #f59e0b;
  border-radius: 8px;
  background: rgba(22, 27, 34, 0.94);
  color: #f0f6fc;
  font-size: 12px;
  line-height: 1.3;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.panel-crop-chip.in-pane {
  position: static;
  flex-direction: column;
  align-items: stretch;
  max-width: none;
  box-shadow: none;
}
.crop-chip-actions { display: flex; gap: 6px; flex-shrink: 0; }
.panel-crop-chip .btn-outline-secondary { color: #c9d1d9; border-color: #8b949e; }
@media print {
  .panel-toolbar-layer { display: none !important; }
}

/* ── Phase 4: Space-drag pan, and the side panel as a bottom sheet on phones ── */
#layout-canvas-viewport.space-pan, #layout-canvas-viewport.space-pan * { cursor: grab !important; }
#layout-canvas-viewport.space-panning, #layout-canvas-viewport.space-panning * { cursor: grabbing !important; }
.side-sheet-handle { display: none; }
.ptb-more { display: none; }
@media (max-width: 767.98px) {
  #layout-editor-wrapper {
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;
    min-height: 320px !important;
    margin-bottom: 52px;                 /* the collapsed sheet's handle */
  }
  #layout-side-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    width: 100%;
    min-width: 0;
    max-height: 56vh;
    border-left: none;
    border-top: 1px solid var(--color-border-default);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.35);
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 0.2s ease;
    overscroll-behavior: contain;
  }
  #layout-side-panel.sheet-collapsed {
    transform: translateY(calc(100% - 46px - env(safe-area-inset-bottom)));
    overflow: hidden;
  }
  .side-sheet-handle {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 3;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid var(--color-border-default);
    background: var(--color-bg-secondary);
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
  }
  .side-sheet-handle #side-sheet-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-sheet-grip {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 2px;
    background: rgba(127, 127, 127, 0.6);
  }
  .ptb-more { display: inline-flex; }
  /* Fingers need more than a mouse does */
  .ptb-btn { min-width: 38px; height: 38px; font-size: 17px; }
  .panel-crop-chip { max-width: calc(100vw - 24px); font-size: 13px; }
  .panel-crop-chip .btn { padding: 4px 12px !important; }
  .pane-tool { padding: 9px 10px; }
}
@media print {
  #layout-side-panel { display: none !important; }
}

/* Holding bay */
.layout-bay { border-top: 1px solid var(--bs-border-color); background: var(--bs-body-bg); padding: 4px 8px; }
.layout-bay[hidden], .layout-bay .bay-body[hidden] { display: none; }
.layout-bay .bay-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.layout-bay .bay-body { display: flex; align-items: stretch; gap: 4px; margin-top: 4px; }
.layout-bay .bay-track { flex: 1; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 4px; min-height: 92px; }
.layout-bay .bay-card { position: relative; flex: 0 0 120px; scroll-snap-align: start; border: 1px solid var(--bs-border-color);
  border-radius: 6px; padding: 4px; background: var(--bs-tertiary-bg); cursor: grab; touch-action: pan-x; user-select: none; }
.layout-bay .bay-card.armed { outline: 2px solid #0d6efd; }
.layout-bay .bay-card img { width: 100%; height: 64px; object-fit: cover; border-radius: 4px; }
.layout-bay .bay-noimg { height: 64px; display: flex; align-items: center; justify-content: center; color: var(--bs-secondary-color); }
.layout-bay .bay-num { position: absolute; top: 2px; left: 4px; font-size: 11px; font-weight: 600;
  background: rgba(0,0,0,.6); color: #fff; border-radius: 3px; padding: 0 4px; }
.layout-bay .bay-text { font-size: 12px; line-height: 1.25; max-height: 48px; overflow: hidden; padding-top: 14px; }
.layout-bay .bay-flag { font-size: 11px; color: var(--bs-danger); }
.layout-bay .bay-note { font-size: 11px; color: var(--bs-secondary-color); }
.layout-bay.bay-drop-ready .bay-track { outline: 2px dashed #28a745; outline-offset: -2px; }
.layout-bay .bay-empty { align-self: center; }
.bay-ghost { position: fixed; z-index: 2000; pointer-events: none; opacity: .85; width: 120px; border: 1px solid var(--bs-border-color);
  border-radius: 6px; padding: 4px; background: var(--bs-tertiary-bg); }
.bay-ghost .bay-num { font-size: 11px; font-weight: 600; margin-right: 4px; }
.bay-ghost .bay-text { font-size: 12px; max-height: 48px; overflow: hidden; }
.bay-ghost img { width: 100%; height: 64px; object-fit: cover; border-radius: 4px; }
.bay-not-here { position: fixed; z-index: 2000; pointer-events: none; color: #fff; background: var(--bs-danger); font-size: 12px;
  border-radius: 4px; padding: 1px 6px; }
.layout-bay .bay-card:focus-visible { outline: 2px solid #0d6efd; }
@media (max-width: 767.98px) {
  .layout-bay .bay-card { flex-basis: 96px; }
  .layout-bay .bay-arrow { display: none; }
}
