:root { --brand-color: #0078d4; --sidebar-color: #2c3e50; }
body { font-family: sans-serif; margin: 0; padding: 0; background: #f4f4f4; display: flex; height: 100vh; overflow: hidden; }

/* Sidebar Styles */
.sidebar { width: 280px; background: var(--sidebar-color); color: white; padding: 16px 14px; display: flex; flex-direction: column; box-shadow: 2px 0 5px rgba(0,0,0,0.1); height: 100vh; overflow: hidden; }
.sidebar h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: #95a5a6; margin-bottom: 15px; margin-top: 20px; }
.sidebar-btn { background: #34495e; color: white; border: none; padding: 12px; margin-bottom: 8px; border-radius: 6px; cursor: pointer; text-align: left; font-size: 14px; transition: 0.2s; display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; }
.sidebar-btn:hover { background: #1abc9c; }
.sidebar-btn.active { background: #1abc9c; border-left: 4px solid #fff; }
.sidebar-btn.danger { background: #c0392b; margin-top: 10px; }

.sidebar-menu-group {
    position: relative;
    margin-bottom: 10px;
}

.sidebar-group-title {
    width: 100%;
    background: rgba(15, 23, 42, 0.45);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    padding: 11px 12px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sidebar-group-title:hover,
.sidebar-menu-group.open .sidebar-group-title,
.sidebar-menu-group:focus-within .sidebar-group-title {
    background: rgba(26, 188, 156, 0.18);
    border-color: rgba(26, 188, 156, 0.4);
    transform: translateX(2px);
}

.sidebar-group-title::after {
    content: '▸';
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.22s ease;
}

.sidebar-menu-group.open .sidebar-group-title::after,
.sidebar-menu-group:focus-within .sidebar-group-title::after {
    transform: translateX(2px);
}

.sidebar-group-panel {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 240px;
    max-width: 320px;
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateX(-18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 20;
    will-change: transform, opacity, top, left;
}

.sidebar-menu-group:not(.dismissed):hover .sidebar-group-panel,
.sidebar-menu-group.open .sidebar-group-panel,
.sidebar-menu-group:focus-within .sidebar-group-panel {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.sidebar-group-panel .sidebar-btn {
    margin-bottom: 8px;
}

.sidebar-group-panel .sidebar-btn:last-child {
    margin-bottom: 0;
}

.sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(224, 224, 224, 0.35);
    padding-top: 12px;
    margin-top: 10px;
    background: var(--sidebar-color);
}

/* Zone Selector Styles */
.zone-box { padding: 10px; background: #1a252f; border-radius: 8px; margin-bottom: 20px; border: 1px solid #34495e; }
.zone-box label { font-size: 10px; color: #95a5a6; display: block; margin-bottom: 5px; text-transform: uppercase; font-weight: bold; }
#zone-selector { width: 100%; background: #2c3e50; color: white; border: 1px solid #455a64; padding: 8px; border-radius: 4px; cursor: pointer; }

/* Main Content Styles */
.main-content, .content { flex-grow: 1; padding: 25px; overflow-y: auto; position: relative; }
.view-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* Floor Grid Styles */
.floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.table-card { background: white; padding: 20px; border-radius: 12px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border-top: 8px solid #ccc; transition: transform 0.2s ease; cursor: pointer; }
.table-card:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.table-card .followup-star { position: absolute; top: 8px; right: 10px; font-size: 16px; color: #f59e0b; }
@keyframes seatedPulse {
    0%, 49% { background: #ffffff; color: #0078d4; }
    50%, 100% { background: #0078d4; color: #ffffff; }
}

/* Queue Styles */
.guest-card { background: white; padding: 20px; margin-bottom: 12px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; border-left: 5px solid #28a745; }
.seat-btn { background: var(--brand-color); color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; }

.wait-time {
    font-size: 12px;
    font-weight: bold;
    color: #e67e22; /* Warning orange */
    background: #fdf2e9;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 5px;
    display: inline-block;
}
.wait-time.long-wait {
    color: white;
    background: #e74c3c; /* Urgent red */
}

/* Manage View Table Styles */
.mgmt-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.mgmt-table th, .mgmt-table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
.mgmt-table th { background: #f8f9fa; color: #666; font-size: 13px; }

/* Form Styles */
.form-container { background: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
input, select { padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.btn-primary { background: #27ae60; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; }
.btn-primary:hover { background: #219a52; }

/* Status Colors */
.status-Available { border-top-color: #28a745; }
.status-Assigned { border-top-color: #0078d4; }
.status-Occupied { border-top-color: #dc3545; }
.status-Unavailable { border-top-color: #6c757d; }
.status-Provisional { border-top-color: #e67e22; }
.status-In-Progress { border-top-color: #0078d4; }
.status-CheckingOut { border-top-color: #6f42c1; }
.status-Bussing { border-top-color: #ffc107; }
.status-label { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.status-select { margin-top: 10px; padding: 8px; width: 100%; border-radius: 4px; border: 1px solid #ddd; font-size: 12px; }
.status-pill-select { border-width: 1px; border-style: solid; cursor: pointer; appearance: none; -webkit-appearance: none; width: auto; min-width: 132px; text-align: center; text-align-last: center; }
.table-status-select { margin-top: 8px; }
.guest-status-select { margin-top: 6px; }

.status-label.status-Available { background: #28a745; color: white; }
.status-label.status-Assigned { background: #0078d4; color: white; }
.status-label.status-Occupied { background: #dc3545; color: white; }
.status-label.status-Unavailable { background: #6c757d; color: white; }
.status-label.status-Provisional { background: #e67e22; color: white; }
.status-label.status-In-Progress { background: #0078d4; color: white; }
.status-label.status-CheckingOut { background: #6f42c1; color: white; }
.status-label.status-Bussing { background: #ffc107; color: white; }
.status-label.status-Seated { animation: seatedPulse 2s infinite steps(1, end); border: 1px solid #0078d4; }
.attr-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 4px 8px; border-radius: 12px; background: #eef2ff; color: #1f2937; font-size: 12px; }

/* Modal Styles */
#modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; }
#history-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 500px; background: white; padding: 30px; border-radius: 12px; z-index: 1000; }

/* Settings Toggles */
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.settings-section { margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; background: white; }
.settings-header { background: #f8f9fa; padding: 15px; cursor: pointer; font-weight: bold; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.settings-header .chevron { display: inline-block; transition: transform 0.2s ease; font-style: normal; }
.settings-section.active .settings-header .chevron { transform: rotate(180deg); }
.settings-content { padding: 20px; display: none; border-top: 1px solid #eee; }
.settings-section.active .settings-content { display: block; }
.btn-secondary { background: #f3f4f6; border: 1px solid #ccc; color: #333; border-radius: 4px; cursor: pointer; }
.btn-secondary:hover { background: #e2e8f0; }
.decor-toolbox { display: none; gap: 8px; border-left: 2px solid #ccc; padding-left: 15px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.decor-toolbox.visible { display: flex !important; }
.seating-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 420px; background: white; padding: 24px; border-radius: 14px; z-index: 1001; box-shadow: 0 24px 40px rgba(0,0,0,0.15); }
.seating-modal h3 { margin-top: 0; margin-bottom: 16px; }
.seating-modal .option-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; cursor: pointer; }
.seating-modal .option-row:hover { background: #f8fafc; }
.seating-modal input[type="radio"] { accent-color: var(--brand-color); }
.seating-modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.hybrid-table-modal { max-width: 520px; }
.hybrid-table-modal-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hybrid-table-modal-grid .table-card { margin: 0; }
#floorplan-canvas { background: #1a1a1a; border-radius: 12px; }

/* Shared Frontend Utility Styles */
.card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
.menu-link { display: block; background: #0078d4; color: white; text-decoration: none; padding: 12px; margin-top: 10px; border-radius: 6px; font-weight: bold; text-align: center; }
.zone-indicator { text-align: center; color: #777; font-size: 14px; margin-bottom: 20px; }
.queue-item {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 14px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Hybrid Preview (Phase 1) */
:root {
    --hy-bg-page: #f3f4f6;
    --hy-bg-panel: #ffffff;
    --hy-bg-map: #111827;
    --hy-bg-rail: #f8fafc;
    --hy-border-soft: #d1d5db;
    --hy-text-main: #111827;
    --hy-text-muted: #6b7280;
    --hy-accent: #0ea5a4;
    --hy-accent-strong: #0f766e;
    --hy-status-available: #22c55e;
    --hy-status-assigned: #0ea5e9;
    --hy-status-occupied: #ef4444;
    --hy-status-bussing: #f59e0b;
}

#hybrid-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hybrid-main {
    display: grid;
    grid-template-columns: minmax(540px, 1fr) minmax(280px, 360px);
    gap: 12px;
}

.hybrid-map-pane,
.hybrid-rail-pane,
.hybrid-queue-dock {
    background: var(--hy-bg-panel);
    border: 1px solid var(--hy-border-soft);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hybrid-map-pane {
    padding: 12px;
}

.hybrid-map-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hybrid-pill {
    font-size: 12px;
    color: var(--hy-text-main);
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 4px 10px;
}

.hybrid-map-canvas {
    position: relative;
    min-height: 700px;
    background: radial-gradient(circle at 10% 20%, #253047 0%, var(--hy-bg-map) 60%);
    border-radius: 10px;
    overflow: hidden;
}

.hybrid-map-canvas .hy-empty {
    color: #cbd5e1;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.hy-sections-overlay {
    z-index: 1;
}

.hybrid-map-legend {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--hy-text-muted);
}

.hybrid-map-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

.hybrid-map-legend .dot.available { background: var(--hy-status-available); }
.hybrid-map-legend .dot.assigned { background: var(--hy-status-assigned); }
.hybrid-map-legend .dot.occupied { background: var(--hy-status-occupied); }
.hybrid-map-legend .dot.bussing { background: var(--hy-status-bussing); }

.hy-decor-element {
    position: absolute;
    border-radius: 4px;
    opacity: 0.72;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
}

.hy-decor-label {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    pointer-events: none;
    user-select: none;
}

.hy-table-node {
    position: absolute;
    width: 96px;
    min-height: 72px;
    margin-left: -48px;
    margin-top: -36px;
    border-radius: 10px;
    border: 2px solid #334155;
    background: rgba(15, 23, 42, 0.78);
    color: #e5e7eb;
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    z-index: 2;
}

.hy-awaiting-ack-table {
    box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.35), 0 0 14px rgba(251, 146, 60, 0.24);
}

.hy-ack-badge {
    position: absolute;
    top: -10px;
    right: -6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #7c2d12;
    background: #fed7aa;
    border: 1px solid #fb923c;
    border-radius: 999px;
    padding: 2px 6px;
    white-space: nowrap;
}

.hy-table-node:hover {
    transform: translateY(-1px);
}

.hy-table-label { font-size: 16px; font-weight: 700; line-height: 1; }
.hy-table-meta { font-size: 11px; color: #cbd5e1; }
.hy-table-section { font-size: 10px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hy-status-available { border-color: var(--hy-status-available); }
.hy-status-assigned {
    border-color: var(--hy-status-assigned);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}
.hy-status-occupied { border-color: var(--hy-status-occupied); }
.hy-status-bussing {
    border-color: var(--hy-status-bussing);
    background-image: repeating-linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0 6px, rgba(15, 23, 42, 0.72) 6px 12px);
}

.hy-fit-candidate {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.hy-recommended {
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.35), 0 0 0 5px rgba(20, 184, 166, 0.14);
}

.hy-selected-table {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.42);
}

.hybrid-rail-pane {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: var(--hy-bg-rail);
}

.hybrid-card {
    background: var(--hy-bg-panel);
    border: 1px solid var(--hy-border-soft);
    border-radius: 10px;
    padding: 10px;
}

.hybrid-card h4 {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--hy-text-main);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hy-muted { color: var(--hy-text-muted); font-size: 12px; margin: 0; }
.hy-reco { margin: 6px 0; font-size: 14px; }

.hy-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hy-reasons span {
    font-size: 11px;
    border-radius: 999px;
    padding: 3px 8px;
    background: #ecfeff;
    border: 1px solid #99f6e4;
    color: #115e59;
}

.hy-alt-list {
    margin: 0;
    padding-left: 16px;
    color: var(--hy-text-main);
    font-size: 13px;
}

.hy-pressure-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.hy-pressure-table th,
.hy-pressure-table td {
    padding: 4px 2px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.hy-pressure-table thead th {
    font-weight: 700;
    background: #f8fafc;
}

.hy-pressure-table thead tr:first-child th {
    padding-top: 6px;
    padding-bottom: 6px;
}

.hy-pressure-table thead tr:last-child th {
    font-weight: 600;
    color: #475569;
}

.hy-pressure-table th[rowspan="2"],
.hy-pressure-table td:first-child {
    text-align: left;
    padding-left: 6px;
}

/* Subtle divider between Tables (cols 2-4) and Seats (cols 5-7) */
.hy-pressure-table thead tr:first-child th:nth-child(3) {
    border-left: 1px solid #dbe3ee;
}

.hy-pressure-table thead tr:last-child th:nth-child(4) {
    border-left: 1px solid #dbe3ee;
}

.hy-pressure-table tbody td:nth-child(5) {
    border-left: 1px solid #e2e8f0;
}

.hybrid-queue-dock {
    padding: 10px;
}

.hybrid-queue-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.hy-filter-chip {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    color: var(--hy-text-muted);
    background: #f8fafc;
    cursor: pointer;
}

.hy-filter-chip.active {
    border-color: #14b8a6;
    background: #ccfbf1;
    color: #115e59;
}

.hybrid-queue-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hy-queue-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.hy-queue-chip {
    border: 1px solid #d1d5db;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 10px;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    cursor: pointer;
}

.hy-queue-chip strong { font-size: 13px; color: #0f172a; }
.hy-queue-chip span { font-size: 11px; color: #475569; }

.hy-queue-chip.selected {
    border-color: var(--hy-accent);
    box-shadow: 0 0 0 2px rgba(14, 165, 164, 0.2);
    background: #f0fdfa;
}

.hy-ack-strip {
    border: 1px solid #fdba74;
    background: #fff7ed;
    border-radius: 10px;
    padding: 8px;
}

.hy-ack-strip-title {
    font-size: 11px;
    font-weight: 800;
    color: #9a3412;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.hy-ack-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hy-ack-chip {
    font-size: 11px;
    font-weight: 600;
    color: #7c2d12;
    background: #ffedd5;
    border: 1px solid #fdba74;
    border-radius: 999px;
    padding: 3px 8px;
}

.hy-ack-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.hy-ack-item {
    border: 1px solid #fdba74;
    background: #fff7ed;
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hy-ack-item strong {
    color: #7c2d12;
    font-size: 12px;
}

.hy-ack-item span {
    color: #9a3412;
    font-size: 11px;
}

.hy-selected-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.hy-selected-table-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

.hy-selected-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.hy-selected-status-available { color: #166534; background: #dcfce7; border-color: #86efac; }
.hy-selected-status-assigned { color: #0c4a6e; background: #e0f2fe; border-color: #7dd3fc; }
.hy-selected-status-occupied { color: #991b1b; background: #fee2e2; border-color: #fca5a5; }
.hy-selected-status-bussing { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
.hy-selected-status-unavailable { color: #374151; background: #e5e7eb; border-color: #cbd5e1; }

.hy-selected-line {
    margin: 0 0 6px;
    font-size: 12px;
    color: #1f2937;
}

.hy-selected-attrs {
    margin-top: 6px;
    font-size: 12px;
    color: #1f2937;
    line-height: 1.4;
}

.hy-selected-open-btn {
    margin-top: 10px;
    width: 100%;
    border: 1px solid #0f766e;
    background: #f0fdfa;
    color: #115e59;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.hy-selected-open-btn:hover {
    background: #ccfbf1;
}

.hy-preview-seat-btn {
    margin-top: 10px;
    width: 100%;
    border: 1px solid #0f766e;
    background: #14b8a6;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.hy-preview-seat-btn:hover {
    background: #0f766e;
}

.hy-mode-toggle {
    display: inline-flex;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 8px;
}

.hy-mode-btn {
    border: 1px solid transparent;
    background: transparent;
    color: #334155;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.hy-mode-btn.active {
    background: #ffffff;
    border-color: #94a3b8;
    color: #0f172a;
}

.hy-action-msg {
    margin-top: 10px;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 12px;
}

.hy-action-success {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.hy-action-warn {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.hy-action-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.hy-action-info {
    background: #e0f2fe;
    color: #0c4a6e;
    border-color: #7dd3fc;
}

.hy-alt-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    border-radius: 8px;
    font-size: 12px;
    padding: 5px 8px;
    cursor: pointer;
}

.hy-alt-btn.selected {
    border-color: #fb923c;
    background: #fff7ed;
}

.hy-empty {
    color: var(--hy-text-muted);
    font-size: 13px;
}

.hy-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.hy-editor-status {
    font-size: 12px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
}

.hy-editor-status.hy-success {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.hy-editor-status.hy-warn {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.hy-editor-status.hy-error {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.hy-editor-canvas {
    border: 1px solid #1f2937;
}

.hy-editor-draggable {
    cursor: grab;
}

.hy-editor-draggable:active {
    cursor: grabbing;
}

.hy-editor-locked {
    opacity: 0.82;
    cursor: not-allowed;
}

@media (max-width: 1280px) {
    .hybrid-main {
        grid-template-columns: 1fr;
    }

    .hybrid-map-canvas {
        min-height: 560px;
    }

    .hybrid-map-canvas .hy-empty {
        height: 560px;
    }
}
