/* Seat editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } }
.editor-canvas { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px; min-height: 260px; }
.editor-canvas svg { display: block; max-width: none; user-select: none; touch-action: none; }
.editor-canvas .grid-line { stroke: #eef0ef; stroke-width: 1; }
.editor-canvas .seat .seat-shape { fill: #ffffff; stroke: #9aa59f; }
.editor-canvas .seat .seat-shape.first { fill: #f3e7c8; }  /* 1st class */
.editor-canvas .seat.sel .seat-shape { stroke: var(--focus); stroke-width: 3; }
.editor-canvas .seat { cursor: grab; }
.editor-canvas .seat.dup .seat-shape, .editor-canvas .seat.overlap .seat-shape { fill: var(--bad-bg); stroke: var(--bad); stroke-width: 2.4; }
.editor-canvas .resize-handle { fill: #ffffff; stroke: var(--focus); stroke-width: 2.5; }
.editor-canvas .resize-handle:hover { fill: var(--focus); }
.editor-canvas .select-box { fill: color-mix(in srgb, var(--focus) 10%, transparent); stroke: var(--focus); stroke-dasharray: 4 3; }
.layout-sheet { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.layout-print-map { display: block; width: 100%; height: auto; margin: 12px 0; }
.layout-print-text { font: 600 11px var(--font); fill: #1f2523; text-anchor: middle; dominant-baseline: central; }
.layout-print-back { stroke: #7f8c86; stroke-width: 3.5; stroke-linecap: round; }
.layout-print-legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.layout-print-legend span { display: inline-flex; gap: 6px; align-items: center; }
@media print { .layout-sheet { padding: 0; max-width: none; } @page { size: landscape; margin: 12mm; } }
.route-map { display: block; max-width: none; height: auto; font-family: var(--font); color: var(--ink, #1f2523); }
.editor-bar { gap: 6px; }
.editor-bar #ed-name { flex: 1 1 160px; min-width: 140px; max-width: 260px; }  /* gives way before the tools wrap */
.editor-sel-tools { display: inline-flex; gap: 2px; }
.editor-glyph { display: inline-block; width: 16px; font-size: 1.05rem; line-height: 16px; text-align: center; }
.btn-danger-ghost:not(:disabled) { color: var(--bad); }
.editor-size { display: inline-flex; align-items: center; gap: 6px; }
.editor-size input { width: 70px; }
.editor-canvas-wrap { position: relative; }
.editor-canvas-wrap .editor-canvas { padding-top: 48px; }  /* room for the zoom box above the map */
.group-row.is-set { background: var(--info-bg); border-radius: var(--radius-sm); padding-left: 8px; padding-right: 8px; }
tr.is-out-of-order > td { background: color-mix(in srgb, var(--bad-bg) 70%, transparent); }  /* route editor */
.minutes-hint { color: var(--bad); }
.editor-zoom { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; gap: 2px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.editor-help-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; max-width: 520px; }
.editor-zoom #zoom-level { min-width: 64px; font-variant-numeric: tabular-nums; }

/* Check-in */
.checkin { max-width: 560px; margin: 0 auto; }
.scan-box { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-box .frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 14px; }
.scan-result { border-radius: var(--radius); padding: 18px; text-align: center; font-weight: 700; font-size: 1.15rem; }
.scan-result.ok { background: var(--ok-bg); color: var(--ok); border: 2px solid var(--ok); }
.scan-result.bad { background: var(--bad-bg); color: var(--bad); border: 2px solid var(--bad); }
.scan-result.warn { background: var(--warn-bg); color: var(--warn); border: 2px solid var(--accent); }
.scan-result .detail { font-weight: 500; font-size: .95rem; color: var(--ink); margin-top: 6px; }

/* Auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, #e9efec 0%, #f5f6f4 60%); }
.auth .card { width: 100%; max-width: 420px; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; color: var(--ink); }
.auth-brand .logo { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }

@media print {
  .bo-side, .bo-top, .toolbar, .no-print { display: none !important; }
  .bo { display: block; }
  body { background: #fff; }
}

