/* ring2order dashboard: main styles (moved out of index.html in v3.37). Phone/tablet/touch fixes live in responsive.css, loaded after this file. */
:root {
    --navy: #12356B;
    --navy-dark: #0c2650;
    --navy-light: #1d4785;
    --red: #D92735;
    --red-dark: #b81f2c;
    --pale: #F3F6FB;
    --ink: #1f2a3d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--pale);
}

h1, h2, h3, .auth-form h2 {
    font-family: 'Nunito', 'Inter', sans-serif;
    color: var(--navy);
}

.auth-container {
    min-height: calc(100vh - 80px); min-height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pale);
    flex-direction: column;
    padding: 1.5rem 1rem;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--red);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background: var(--red-dark);
}

.btn:disabled {
    background: #6c757d;  /* Improved contrast */
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-secondary {
    background: #6c757d;
    margin-top: 0.5rem;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.dashboard {
    display: none;
    min-height: 100vh; min-height: 100dvh;
}

/* Top bar (brand navy) with main pages */
.dashboard { flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 900;
    display: flex; align-items: center; gap: 1rem;
    background: var(--navy); color: white;
    padding: 0 1.25rem; min-height: 64px;
    box-shadow: 0 2px 6px rgba(12, 38, 80, 0.35);
}
.tb-brand { flex: none; display: flex; align-items: center; }
.tb-brand img { display: block; height: 42px; width: auto; }
.tb-tabs { flex: 1 1 auto; display: flex; align-items: stretch; gap: 0.15rem; overflow-x: auto; scrollbar-width: none; align-self: stretch; }
.tb-tabs::-webkit-scrollbar { display: none; }
.tb-tab {
    display: inline-flex; align-items: center; white-space: nowrap;
    color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    padding: 0 0.85rem; border-bottom: 3px solid transparent; border-top: 3px solid transparent;
    transition: background-color 0.2s, color 0.2s;
}
.tb-tab:hover { background: var(--navy-light); color: white; }
.tb-tab.active { color: white; background: var(--navy-light); border-bottom-color: var(--red); }
.tb-tab[hidden] { display: none; }
.tb-admin { color: #ffd6d9; }
.tb-right { flex: none; display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.tb-email { color: rgba(255, 255, 255, 0.8); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-logout { color: white; text-decoration: none; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 6px; padding: 0.35rem 0.75rem; }
.tb-logout:hover { background: var(--red); border-color: var(--red); }

/* Body: optional side sub-menu + page */
.dash-body { display: flex; align-items: flex-start; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); }
.subnav { flex: none; width: 230px; position: sticky; top: 64px; align-self: flex-start; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto;
    background: white; border-right: 1px solid #dde3ee; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); padding: 1.25rem 0; }
.subnav[hidden], .subnav-group[hidden], .subnav-group > div[hidden], .subnav a[hidden], .rs-tab[hidden] { display: none; }
.subnav h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7a90; padding: 0 1.25rem; margin: 0 0 0.6rem; }
.subnav a { display: flex; align-items: center; justify-content: space-between; color: var(--navy); text-decoration: none; padding: 0.6rem 1.25rem; font-size: 0.92rem; border-left: 3px solid transparent; }
.subnav a:hover { background: var(--pale); }
.subnav a.active { background: var(--pale); border-left-color: var(--red); font-weight: 600; }

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
    margin-left: 8px;
    vertical-align: middle;
}

.main-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: #495057;  /* Improved contrast from #6c757d */
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.settings-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.content-section {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-section.active {
    display: block;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th, .table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #664d03;  /* Improved contrast from #856404 */
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

/* Voice previews (Settings) */
.voice-picker-wrap { margin: 0.5rem 0 1rem; }
.voice-picker-title { margin: 0 0 0.25rem; color: var(--navy); }
.voice-picker-hint { color: #666; font-size: 0.9rem; margin: 0 0 0.75rem; }
.voice-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 0.6rem; }
.voice-card { display: flex; align-items: center; gap: 0.6rem; border: 2px solid #e1e5e9; border-radius: 8px; padding: 0.6rem 0.7rem; background: #fff; cursor: pointer; }
.voice-card:hover { border-color: #b8c4d9; }
.voice-card.selected { border-color: #12356B; background: #F3F6FB; }
.voice-card input[type="radio"] { margin: 0; }
.voice-card .voice-info { flex: 1; min-width: 0; }
.voice-card .voice-info strong { display: block; color: #12356B; }
.voice-card .voice-info small { color: #666; font-size: 0.8rem; }
.voice-play { flex: none; width: 36px; height: 36px; border-radius: 50%; border: none; background: #D92735; color: #fff; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.voice-play:hover { background: #b81f2c; }
.voice-play:focus-visible { outline: 3px solid #12356B; outline-offset: 2px; }
.voice-play[aria-busy="true"] { opacity: 0.6; cursor: wait; }

/* Your services (Settings) */
.svc-box { background: #F3F6FB; border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.svc-intro { color: #555; margin: 0.25rem 0 0.75rem; }
.svc-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border-radius: 8px; padding: 0.85rem 1rem; margin-bottom: 0.6rem; box-shadow: 0 1px 3px rgba(18,53,107,0.08); }
.svc-text p { margin: 0.25rem 0 0; color: #666; font-size: 0.9rem; }
.svc-control { flex: none; text-align: right; max-width: 45%; }
.svc-control .btn { width: auto; }
.svc-note { color: #666; }
.svc-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.6rem; margin-left: 0.4rem; vertical-align: middle; }
.svc-on { background: #d4edda; color: #155724; }
.svc-off { background: #e9ecef; color: #495057; }
.svc-none { background: #fff3cd; color: #7a5a00; }
.svc-warning { background: #fff3cd; color: #7a5a00; border-radius: 6px; padding: 0.6rem 0.9rem; }
.svc-warning[hidden] { display: none; }
.svc-switch { position: relative; display: inline-block; width: 52px; height: 28px; }
.svc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.svc-slider { position: absolute; inset: 0; background: #adb5bd; border-radius: 28px; transition: background 0.2s; cursor: pointer; }
.svc-slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.svc-switch input:checked + .svc-slider { background: #28a745; }
.svc-switch input:checked + .svc-slider::before { transform: translateX(24px); }
.svc-switch input:focus-visible + .svc-slider { outline: 3px solid #12356B; outline-offset: 2px; }
.svc-switch input:disabled + .svc-slider { opacity: 0.6; cursor: wait; }
@media (max-width: 600px) { .svc-row { flex-direction: column; align-items: flex-start; } .svc-control { max-width: none; text-align: left; } }

/* Menu options */
.rs-status { padding: 0.6rem 0.9rem; border-radius: 6px; margin: 0.5rem 0 1rem; }
.rs-status-ok { background: #d4edda; color: #155724; }
.rs-status-todo { background: #fff3cd; color: #664d03; }
.rs-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; border-bottom: 2px solid #dee2e6; margin-bottom: 1rem; }
.rs-tab { width: auto; background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 0.6rem 1rem; font-weight: 600; color: #495057; cursor: pointer; }
.rs-tab.active { color: var(--navy); border-bottom-color: #D92735; }
.rs-tab:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
#reservations .btn { width: auto; }
.rs-daybar, .rs-inline, .rs-question-actions, .rs-form-actions, .rs-suggest { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rs-daybar { margin-bottom: 1rem; }
.rs-daybar input[type=date] { width: auto; }
.rs-dayname { margin-left: 0.5rem; color: var(--navy); }
.rs-spacer { flex: 1; }
.rs-muted { color: #6c757d; font-size: 0.85rem; }
.rs-intro { color: #495057; max-width: 70ch; }
.rs-empty { color: #6c757d; padding: 1rem 0; }
#reservations { min-width: 0; }
.rs-table-wrap { position: relative; overflow-x: auto; max-width: calc(100vw - 32px); }
.rs-table { width: 100%; border-collapse: collapse; background: #fff; }
.rs-table th, .rs-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid #e9ecef; text-align: left; vertical-align: top; }
.rs-table th { background: #F3F6FB; color: var(--navy); font-size: 0.85rem; }
.rs-table select, .rs-edit input[type=text], .rs-edit input[type=number] { width: auto; max-width: 12rem; padding: 0.3rem 0.4rem; }
.rs-edit input[type=number] { max-width: 5rem; }
.rs-hours input[type=time] { width: auto; }
.rs-row-cancelled td { opacity: 0.55; text-decoration: line-through; }
.rs-row-cancelled td:last-child, .rs-row-cancelled td:nth-last-child(2) { text-decoration: none; }
.rs-answers { margin: 0; padding-left: 1rem; font-size: 0.9rem; }
.rs-actions { white-space: nowrap; }
.rs-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.6rem; }
.rs-booked { background: #e7f1ff; color: #0b3d91; }
.rs-request { background: #fff3cd; color: #7a5300; }
.rs-requests { background: #fff8e1; border: 1px solid #f3d27a; border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.75rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.rs-seated { background: #d4edda; color: #155724; }
.rs-done { background: #e9ecef; color: #495057; }
.rs-noshow { background: #f8d7da; color: #842029; }
.rs-cancelled { background: #e9ecef; color: #6c757d; }
.rs-form { background: #F3F6FB; border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.rs-combo-room { border: 1px solid #dde3ec; border-radius: 8px; padding: 0.4rem 0.75rem 0.6rem; margin: 0.5rem 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.rs-combo-room legend { font-weight: 600; font-size: 0.85rem; padding: 0 0.3rem; }
.rs-form h3 { margin: 0.25rem 0 0.75rem; color: var(--navy); font-size: 1.05rem; }
.rs-form label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; font-size: 0.9rem; }
.rs-form label.rs-check, .rs-check { flex-direction: row; align-items: center; gap: 0.4rem; font-weight: 400; }
.rs-check input { width: auto; margin: 0; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 0.75rem; margin-bottom: 0.75rem; }
.rs-inline label { min-width: 140px; }
.rs-inline .rs-wide { flex: 1; min-width: 240px; }
.rs-inline .btn { align-self: flex-end; }
.rs-walkin { align-self: end; padding-bottom: 0.5rem; }
.rs-free { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-bottom: 0.75rem; font-size: 0.9rem; }
.rs-time { width: auto; border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 999px; padding: 0.15rem 0.6rem; cursor: pointer; font-size: 0.85rem; }
.rs-time:hover, .rs-time:focus-visible { background: var(--navy); color: #fff; }
.rs-question { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; padding: 0.75rem; margin-bottom: 0.75rem; }
.rs-question .rs-grid { margin-bottom: 0.5rem; }
.rs-question label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; font-size: 0.85rem; }
.rs-inactive { opacity: 0.6; }
.rs-question label.rs-check { flex-direction: row; align-items: center; font-weight: 400; font-size: 0.9rem; }
#reservations input[type=text], #reservations input[type=number], #reservations input[type=tel], #reservations input[type=time],
#reservations input[type=date], #reservations select, #reservations textarea {
    padding: 0.45rem 0.55rem; border: 1px solid #ced4da; border-radius: 6px; font: inherit; background: #fff; box-sizing: border-box; }
#reservations input:focus-visible, #reservations select:focus-visible, #reservations textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.rs-table td:first-child { white-space: nowrap; }
.rs-suggest { margin: 0.75rem 0; }
.rs-quick summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.rs-closed { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }
/* Admin: view any restaurant */
.hdr-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.av-picker { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.av-picker[hidden], .av-banner[hidden] { display: none; }
.av-picker select { padding: 0.35rem 0.5rem; border: 2px solid var(--red); border-radius: 6px; font: inherit; font-weight: 400; max-width: 16rem; }
.av-banner { background: #fff4e5; border: 1px solid #f0b35b; color: #6b4200; border-radius: 8px; padding: 0.6rem 0.9rem; margin: -1rem 0 1.25rem; font-size: 0.9rem; }

/* Settings -> Order ticket numbers */
.on-form { background: #f8f9fa; padding: 1.5rem; border-radius: 8px; margin-top: 1rem; }
.on-fields { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-start; }
.on-fields .form-group { flex: 0 1 14rem; margin-bottom: 0; }
.on-fields small { color: #6c757d; font-size: 0.8rem; }
.on-preview { display: flex; flex-direction: column; justify-content: center; background: white; border: 2px dashed var(--navy-light); border-radius: 8px; padding: 0.6rem 1.1rem; min-width: 9rem; }
.on-preview span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7a90; }
.on-preview strong { font-size: 1.6rem; color: var(--navy); font-family: ui-monospace, Menlo, Consolas, monospace; }
.on-note { color: #8a5a00; font-size: 0.85rem; min-height: 0; margin: 0.75rem 0; }
.on-note:empty { display: none; }

/* Support tickets: thread + admin inbox */
.badge-secondary { background: #e2e8f0; color: #2d3748; }
.st-summary { background: #f8f9fa; padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 0.75rem; }
.st-summary p { margin: 0.25rem 0; }
.st-thread { display: flex; flex-direction: column; gap: 0.5rem; max-height: 50vh; max-height: 50dvh; overflow-y: auto; padding: 0.5rem; background: var(--pale); border: 1px solid #dde3ee; border-radius: 8px; }
.st-msg { max-width: 85%; padding: 0.5rem 0.75rem; border-radius: 10px; }
.st-theirs { align-self: flex-start; background: white; border: 1px solid #dde3ee; }
.st-mine { align-self: flex-end; background: #e8eef9; border: 1px solid #c7d4ee; }
.st-meta { font-size: 0.75rem; color: #4a5568; margin-bottom: 0.2rem; }
.st-body { white-space: pre-wrap; word-wrap: break-word; }
.st-empty { color: #6c757d; font-style: italic; }
.st-reply { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.st-reply label { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.st-reply textarea { width: 100%; padding: 0.6rem; border: 2px solid #cbd5e0; border-radius: 6px; font: inherit; resize: vertical; }
.st-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.st-actions .as-after { font-weight: 400; display: flex; gap: 0.4rem; align-items: center; }
.st-order-note { background: #fff4e5; border: 1px solid #f0b35b; border-radius: 6px; padding: 0.4rem 0.7rem; margin-bottom: 0.75rem; }
.st-order-note[hidden] { display: none; }
.as-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.as-filters select { padding: 0.45rem; border: 1px solid #cbd5e0; border-radius: 6px; font: inherit; }
.as-layout { display: grid; grid-template-columns: minmax(min(16rem, 100%), 1fr) 2fr; gap: 1rem; align-items: start; }
@media (max-width: 1024px) { .as-layout { grid-template-columns: 1fr; } }
.as-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 75vh; max-height: 75dvh; overflow-y: auto; }
.as-row { display: flex; flex-direction: column; gap: 0.25rem; text-align: left; background: white; border: 1px solid #dde3ee; border-radius: 8px; padding: 0.6rem 0.75rem; cursor: pointer; font: inherit; }
.as-row:hover, .as-row.active { border-color: var(--navy); background: #f3f6fc; }
.as-row-top, .as-row-meta { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.as-row-meta { justify-content: flex-start; color: #4a5568; }
.as-detail { background: white; border: 1px solid #dde3ee; border-radius: 8px; padding: 1rem; min-height: 12rem; }
.as-from { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; margin-top: 0; }

/* Admin AI test chat */
.ac-note { color: #4a5568; margin: 0.25rem 0 1rem; }
body.admin-only .tb-tabs .tb-tab:not(#adminNavTab) { display: none; }
.ac-setup { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin-bottom: 0.5rem; }
.ac-setup label { display: flex; flex-direction: column; font-size: 0.85rem; font-weight: 600; color: var(--navy); gap: 0.25rem; }
.ac-setup select, .ac-setup input[type=tel] { padding: 0.5rem; border: 1px solid #cbd5e0; border-radius: 6px; min-width: 14rem; font: inherit; }
.ac-setup .ac-check { flex-direction: row; align-items: center; font-weight: 400; }
.ac-setup .btn[hidden] { display: none; }
.ac-status { min-height: 1.4em; font-size: 0.85rem; color: #4a5568; }
.ac-status[data-kind=error] { color: var(--red); }
.ac-status[data-kind=ok] { color: #276749; }
.ac-panel { display: flex; flex-direction: column; height: max(420px, calc(100vh - 320px)); height: max(420px, calc(100dvh - 320px)); border: 1px solid #dde3ee; border-radius: 8px; overflow: hidden; background: white; }
.ac-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; border: none; border-radius: 0; background: var(--pale); border: 1px solid #dde3ee; border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ac-msg { max-width: 80%; padding: 0.55rem 0.8rem; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; }
.ac-msg[hidden] { display: none; }
.ac-ai { align-self: flex-start; background: white; border: 1px solid #dde3ee; }
.ac-user { align-self: flex-end; background: var(--navy); color: white; }
.ac-system { align-self: center; font-size: 0.8rem; color: #4a5568; font-style: italic; }
.ac-tool { align-self: flex-start; max-width: 95%; font-size: 0.78rem; background: #fffbea; border: 1px dashed #d69e2e; }
.ac-tool pre { white-space: pre-wrap; margin-top: 0.4rem; font-size: 0.75rem; }
.ac-compose { flex: none; background: white; border-top: 1px solid #dde3ee; padding: 0.75rem; margin: 0; }
.ac-preview { margin: 0.4rem 0 0; font-size: 0.85rem; color: #4a5568; white-space: pre-wrap; word-wrap: break-word; max-height: 4.5em; overflow-y: auto; }
.ac-preview:empty { display: none; }
.ac-compose-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.ac-compose-label span { font-weight: 400; color: #4a5568; }
.ac-compose-row { display: flex; flex-direction: column; gap: 0.5rem; }
.ac-compose textarea { width: 100%; min-width: 0; height: 4.8rem; min-height: 4.8rem; max-height: 12rem; -webkit-text-fill-color: var(--ink); opacity: 1; padding: 0.7rem 0.8rem; border: 2px solid var(--navy-light); border-radius: 8px; font: inherit; font-size: 1.05rem; line-height: 1.45; color: var(--ink); background: white; resize: vertical; }
.ac-compose textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18, 53, 107, 0.15); }
.ac-compose textarea:disabled { background: #f1f3f7; border-color: #cbd5e0; }
.ac-compose .btn { align-self: flex-end; padding: 0.6rem 1.6rem; }
@media (max-width: 600px) { .ac-setup select, .ac-setup input[type=tel] { min-width: 0; width: 100%; } .ac-setup label { width: 100%; } .ac-msg { max-width: 92%; } }
.rs-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rs-head .btn[hidden], .rs-tabs[hidden] { display: none; }
.rs-guide { background: #fff; }
/* Guide header: progress ring + steps */
.rs-guide-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.rs-guide-head .rs-stepper { margin: 0; }
.rs-ring { position: relative; width: 64px; height: 64px; flex: none; }
.rs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rs-ring circle { fill: none; stroke-width: 5; }
.rs-ring-bg { stroke: #e2e8f0; }
.rs-ring-fg { stroke: var(--navy); stroke-linecap: round; transition: stroke-dashoffset 0.9s cubic-bezier(.2,.8,.2,1), stroke 0.4s; }
.rs-ring-full .rs-ring-fg { stroke: #198754; }
.rs-ring-full { animation: rsPulse 0.8s ease 0.6s; }
.rs-ring-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--navy); font-size: 0.95rem; }
.rs-step-justdone .rs-step-num { animation: rsPop 0.6s cubic-bezier(.3,1.6,.5,1); }
.rs-slide { animation: rsSlide 0.35s ease-out; }
@keyframes rsSlide { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes rsPop { 0% { transform: scale(0.3); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes rsPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Dining areas step: room tiles + floor plan */
.ra-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1024px) { .ra-layout { grid-template-columns: 1fr; } }
.ra-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); gap: 0.6rem; }
.ra-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.9rem 0.5rem; background: white; border: 2px solid #dde3ee; border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink); transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.ra-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(18, 53, 107, 0.12); }
.ra-tile:active { transform: scale(0.97); }
.ra-tile:focus-visible { outline: 3px solid var(--navy-light); outline-offset: 2px; }
.ra-icon { font-size: 1.8rem; line-height: 1; transition: transform 0.3s cubic-bezier(.3,1.6,.5,1); }
.ra-name { font-weight: 600; font-size: 0.9rem; text-align: center; }
.ra-tick { position: absolute; top: 6px; right: 8px; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #198754; color: white; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform 0.3s cubic-bezier(.3,1.6,.5,1); }
.ra-on { border-color: var(--navy); background: #eef3fb; }
.ra-on .ra-tick { transform: scale(1); }
.ra-on .ra-icon { transform: scale(1.12); }
.ra-custom { margin-top: 0.75rem; }
.ra-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.4rem; }
.ra-list li { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ra-list input { flex: 1 1 10rem; padding: 0.4rem 0.5rem; border: 1px solid #cbd5e0; border-radius: 6px; font: inherit; }
.ra-stats { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.ra-stats span { background: var(--pale); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.85rem; color: #4a5568; }
.ra-stats strong { color: var(--navy); font-size: 1rem; }
.ra-manage { margin-bottom: 1rem; }
.ra-manage .ra-tiles { margin-top: 0.75rem; }

/* Floor plan preview */
.fp { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); gap: 0.6rem; padding: 0.75rem; margin: 0.5rem 0 1rem;
      background: #f7f9fc linear-gradient(rgba(18,53,107,0.05) 1px, transparent 1px) 0 0 / 100% 16px; border: 2px solid var(--navy); border-radius: 12px; }
.fp-room { background: white; border: 2px solid #c7d4ee; border-radius: 10px; padding: 0.55rem 0.65rem; display: flex; flex-direction: column; gap: 0.4rem; min-height: 6.5rem; }
.fp-room.fp-pop { animation: fpRoomIn 0.55s cubic-bezier(.3,1.4,.5,1); }
.fp-head { display: flex; align-items: center; gap: 0.4rem; color: var(--navy); font-size: 0.9rem; }
.fp-icon { font-size: 1.15rem; }
.fp-tables { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; flex: 1; }
.fp-floor { background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(18,53,107,0.04) 8px 16px); border-radius: 6px; min-height: 2.5rem; }
.fp-table { --size: calc(1.5rem + var(--s) * 0.16rem); width: var(--size); height: var(--size); border-radius: 50%; background: var(--navy); color: white; font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(18,53,107,0.25); }
.fp-table.fp-off { background: #a0aec0; }
.fp-table.fp-pop { animation: rsPop 0.55s cubic-bezier(.3,1.6,.5,1); }
.fp-meta { font-size: 0.75rem; color: #6b7a90; }
.fp-hint { font-size: 0.8rem; color: #a0aec0; font-style: italic; }
.fp-bar { border-color: #f0b35b; } .fp-patio { border-color: #8fd19e; } .fp-private { border-color: #c9a7e8; }
.fp-lounge { border-color: #f4a6b0; } .fp-counter { border-color: #9bd4e4; } .fp-upstairs { border-color: #b8c2cc; }
.fp-none { border-style: dashed; border-color: #cbd5e0; background: #fbfcfe; }
.fp-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 12rem; border-style: dashed; color: #6b7a90; text-align: center; }
.fp-ghost { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.fp-ghost span { width: 3.2rem; height: 2.4rem; border: 2px dashed #c7d4ee; border-radius: 8px; animation: fpGhost 1.8s ease-in-out infinite; }
.fp-ghost span:nth-child(2) { animation-delay: 0.3s; } .fp-ghost span:nth-child(3) { animation-delay: 0.6s; }
@keyframes fpRoomIn { from { opacity: 0; transform: scale(0.6) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fpGhost { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
    .rs-ring-fg, .ra-tile, .ra-icon, .ra-tick { transition: none; }
    .rs-slide, .rs-step-justdone .rs-step-num, .rs-ring-full, .fp-room.fp-pop, .fp-table.fp-pop, .fp-ghost span { animation: none; }
}
/* Floor: live table management */
.fl-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.fl-stats { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.fl-stat { background: var(--pale); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; color: #4a5568; border-left: 4px solid #cbd5e0; }
.fl-stat strong { color: var(--navy); font-size: 1.05rem; }
.fl-s-free { border-left-color: #2f9e57; } .fl-s-seated { border-left-color: var(--navy); } .fl-s-soon { border-left-color: #e0a100; }
.fl-clock { font-size: 0.8rem; }
.fl-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.fl-pill { width: auto; background: white; border: 2px solid #c7d4ee; border-radius: 999px; padding: 0.35rem 0.85rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.fl-pill small { background: #F3F6FB; border-radius: 999px; padding: 0 0.45rem; margin-left: 0.2rem; color: #4a5568; }
.fl-pill.active { background: var(--navy); color: white; border-color: var(--navy); }
.fl-pill.active small { background: rgba(255,255,255,0.2); color: white; }
.fl-pill:focus-visible, .fl-tile:focus-visible, .fl-guest:focus-visible { outline: 3px solid #D92735; outline-offset: 2px; }
.fl-legend { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.78rem; color: #4a5568; margin-bottom: 0.6rem; }
.fl-key { display: inline-flex; align-items: center; gap: 0.3rem; background: none; }
.fl-key::before { content: ''; width: 0.8rem; height: 0.8rem; border-radius: 3px; background: var(--fl-c); }
.fl-arriving { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; background: #fff8e1; border: 1px solid #f3d27a; border-radius: 10px; padding: 0.5rem 0.65rem; margin-bottom: 0.75rem; font-size: 0.88rem; }
.fl-guest { width: auto; background: white; border: 1px solid #e0c46a; border-radius: 999px; padding: 0.25rem 0.7rem; cursor: pointer; font-size: 0.85rem; color: #5c4400; }
.fl-guest-late { border-color: #e8590c; color: #a33b00; font-weight: 600; }
.fl-floor { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.75rem; border: 2px solid var(--navy); border-radius: 12px;
      background: #f7f9fc linear-gradient(rgba(18,53,107,0.05) 1px, transparent 1px) 0 0 / 100% 16px; }
.fl-room { background: white; border: 2px solid #c7d4ee; border-radius: 10px; padding: 0.6rem 0.7rem; }
.fl-room h4 { margin: 0 0 0.5rem; color: var(--navy); font-size: 0.95rem; display: flex; gap: 0.4rem; align-items: baseline; flex-wrap: wrap; }
.fl-room h4 .rs-muted { font-weight: 400; font-size: 0.8rem; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); gap: 0.5rem; }
.fl-tile { --fl-c: #2f9e57; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 0.15rem; background: white; border: 2px solid #e2e8f0; border-top: 6px solid var(--fl-c);
      border-radius: 10px; padding: 0.5rem 0.6rem; cursor: pointer; min-height: 5.6rem; transition: transform 0.15s, box-shadow 0.15s; color: #2d3748; }
.fl-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(18,53,107,0.15); }
.fl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.3rem; }
.fl-name { font-size: 1.05rem; color: var(--navy); }
.fl-seats { font-size: 0.75rem; background: #F3F6FB; border-radius: 999px; padding: 0 0.45rem; color: #4a5568; }
.fl-state { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--fl-c); }
.fl-who { font-weight: 600; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-time { font-size: 0.8rem; color: #4a5568; }
.fl-free { --fl-c: #2f9e57; } .fl-soon { --fl-c: #c98a00; } .fl-late { --fl-c: #e8590c; } .fl-seated { --fl-c: #12356B; } .fl-over { --fl-c: #D92735; }
.fl-tile.fl-seated, .fl-tile.fl-over { background: #f3f6fb; }
.fl-tile.fl-late { animation: flPulse 2s ease-in-out infinite; }
.fl-tile.fl-walkin .fl-seats::after { content: ' · walk-in'; }
.fl-tile.fl-picked { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,53,107,0.25); }
.fl-tile.fl-changed { animation: rsPop 0.55s cubic-bezier(.3,1.6,.5,1); }
.wl-badge { display: inline-block; min-width: 1.3rem; padding: 0 0.4rem; border-radius: 999px; background: #D92735; color: white; font-size: 0.75rem; font-weight: 700; text-align: center; margin-left: 0.25rem; }
.wl-badge[hidden] { display: none; }
.wl-panel { background: white; border: 1px solid #dee2e6; border-radius: 12px; padding: 0.7rem 0.9rem; margin: 0.75rem 0; }
.wl-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.wl-head h4 { margin: 0; color: var(--navy); display: flex; align-items: center; gap: 0.4rem; }
.wl-count { background: var(--navy); color: white; border-radius: 999px; padding: 0 0.55rem; font-size: 0.85rem; }
.wl-form { margin-top: 0.6rem; }
.wl-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.wl-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid #eef1f5; flex-wrap: wrap; }
.wl-row.wl-called { background: #fff8e1; border-radius: 8px; padding-left: 0.4rem; }
.wl-pos { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #eef3fb; color: var(--navy); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.wl-who { flex: 1 1 220px; display: flex; flex-direction: column; }
.wl-actions { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.wl-actions select { min-height: 32px; }
.ki-steps { padding-left: 1.2rem; }
.ki-steps li { margin: 0.25rem 0; }
.fl-sheet { position: sticky; bottom: 0.5rem; margin-top: 0.75rem; background: white; border: 2px solid var(--navy); border-radius: 12px; padding: 0.75rem 0.9rem; box-shadow: 0 8px 24px rgba(18,53,107,0.25); z-index: 5; }
.fl-sheet p { margin: 0.35rem 0; }
.fl-sheet-head { display: flex; align-items: baseline; gap: 0.5rem; }
.fl-sheet-head strong { font-size: 1.1rem; color: var(--navy); }
.fl-close { width: auto; margin-left: auto; background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #4a5568; padding: 0 0.3rem; }
.fl-actions, .fl-walkform { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.5rem; }
.fl-walkform label, .fl-inline { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.88rem; margin: 0; }
.fl-actions .btn, .fl-walkform .btn { margin: 0; width: auto; }
.fl-walkform input[type=number] { width: 4.5rem; padding: 0.3rem 0.4rem; }
.fl-walkform input[type=text] { width: 10rem; padding: 0.3rem 0.4rem; }
.fl-inline select { width: auto; padding: 0.3rem 0.4rem; }
.fl-answers { font-size: 0.85rem; color: #4a5568; }
@keyframes flPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,89,12,0); } 50% { box-shadow: 0 0 0 4px rgba(232,89,12,0.3); } }
@media (prefers-reduced-motion: reduce) { .fl-tile, .fl-tile.fl-late, .fl-tile.fl-changed { animation: none; transition: none; } }
@media (max-width: 600px) { .fl-grid { grid-template-columns: repeat(2, 1fr); } .fl-walkform input[type=text] { width: 100%; } }
/* Import menu */
.mi-intro { color: #4a5568; margin-bottom: 1rem; max-width: 60rem; }
.mi-card { background: white; border-radius: 12px; padding: 1.25rem; box-shadow: 0 2px 8px rgba(18,53,107,0.08); max-width: 64rem; }
.mi-card input, .mi-card select, .mi-card textarea { width: auto; padding: 0.35rem 0.5rem; border: 1px solid #cbd5e0; border-radius: 6px; font: inherit; }
.mi-card textarea, #miUrl { width: 100%; }
.mi-card .btn { width: auto; }
.mi-muted { color: #6b7a90; font-size: 0.85rem; }
.mi-label { display: block; font-weight: 600; margin: 0.5rem 0 0.35rem; }
.mi-srcs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mi-src { width: auto; background: var(--pale); border: 2px solid transparent; border-radius: 999px; padding: 0.45rem 1rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.mi-src.active { background: var(--navy); color: white; }
.mi-drop { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; border: 2px dashed #9fb3d9; border-radius: 12px; padding: 2rem 1rem; cursor: pointer; background: #f7f9fc; transition: background 0.2s, border-color 0.2s; }
.mi-drop.over, .mi-drop:hover { background: #eef3fb; border-color: var(--navy); }
.mi-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mi-drop:focus-within { outline: 3px solid var(--navy); outline-offset: 2px; }
.mi-drop-icon { font-size: 2.2rem; }
.mi-files { list-style: none; padding: 0; margin: 0.75rem 0 0.25rem; display: flex; flex-direction: column; gap: 0.3rem; }
.mi-files li { display: flex; gap: 0.5rem; align-items: center; background: var(--pale); border-radius: 8px; padding: 0.35rem 0.6rem; }
.mi-files li span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-x { width: auto; background: none; border: none; color: #6b7a90; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 0.3rem; }
.mi-x:hover { color: var(--red); }
.mi-what { margin-top: 1rem; background: #f3f6fb; border-left: 4px solid var(--navy); border-radius: 8px; padding: 0.75rem 1rem; }
.mi-what ul { margin: 0.4rem 0 0.4rem 1.2rem; }
.mi-actions { margin-top: 1rem; }
.mi-progress { text-align: left; }
.mi-scan { position: relative; width: 6rem; height: 7.5rem; margin: 0 auto 1rem; }
.mi-page { position: absolute; inset: 0; background: white; border: 2px solid #c7d4ee; border-radius: 6px; padding: 0.7rem 0.6rem; display: flex; flex-direction: column; gap: 0.45rem; }
.mi-page span { height: 0.4rem; background: #dbe4f3; border-radius: 3px; } .mi-page span:nth-child(2n) { width: 70%; }
.mi-beam { position: absolute; left: -6px; right: -6px; height: 3px; background: var(--red); box-shadow: 0 0 10px rgba(217,39,53,0.6); border-radius: 2px; animation: miScan 1.8s ease-in-out infinite; }
@keyframes miScan { 0%, 100% { top: 6%; } 50% { top: 90%; } }
.mi-stages { list-style: none; padding: 0; margin: 0 auto 0.75rem; max-width: 30rem; display: flex; flex-direction: column; gap: 0.6rem; }
.mi-stage { display: flex; gap: 0.6rem; align-items: flex-start; color: #a0aec0; }
.mi-stage small { display: block; color: #6b7a90; font-size: 0.8rem; }
.mi-dot { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; color: #6b7a90; font-weight: 700; font-size: 0.85rem; }
.mi-done .mi-dot, .mi-stage.mi-done .mi-dot { background: #2f9e57; color: white; }
.mi-stage.mi-done, .mi-stage.mi-now { color: var(--ink); }
.mi-stage.mi-now .mi-dot { background: var(--navy); color: white; animation: rsPulse 1.6s ease-in-out infinite; }
.mi-bar { display: block; height: 6px; background: #e2e8f0; border-radius: 3px; margin-top: 0.35rem; overflow: hidden; width: 16rem; max-width: 100%; }
.mi-bar span { display: block; height: 100%; background: var(--navy); transition: width 0.5s; }
.mi-progress > .mi-muted { text-align: center; }
.mi-review-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.mi-review-head h3 { margin: 0; }
.mi-stats { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.75rem 0; }
.mi-stat { background: var(--pale); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; color: #4a5568; }
.mi-stat strong { color: var(--navy); font-size: 1.05rem; }
.mi-stat-warn { background: #fff4e0; } .mi-stat-warn strong { color: #b35c00; }
.mi-stat-sug { background: #eef6ff; }
.mi-warnings { background: #fff8e1; border: 1px solid #f3d27a; border-radius: 8px; padding: 0.5rem 0.75rem 0.5rem 1.8rem; font-size: 0.88rem; margin: 0 0 0.75rem; }
.mi-views { display: flex; gap: 0.25rem; border-bottom: 2px solid #dee2e6; margin-bottom: 0.75rem; }
.mi-view { width: auto; background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 0.55rem 0.9rem; font-weight: 600; color: #495057; cursor: pointer; }
.mi-view.active { color: var(--navy); border-bottom-color: var(--red); }
.mi-cat h4 { color: var(--navy); margin: 0.9rem 0 0.4rem; }
.mi-item, .mi-group { border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.6rem 0.7rem; margin-bottom: 0.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mi-flag { border-color: #f0b35b; background: #fffaf0; }
.mi-flagtext { color: #b35c00; font-size: 0.85rem; margin: 0; }
.mi-item-top { display: flex; gap: 0.4rem; align-items: center; }
.mi-item-top .mi-name { flex: 1; font-weight: 700; color: var(--navy); min-width: 0; }
.mi-catin { width: 10rem !important; color: #4a5568; }
.mi-desc { width: 100% !important; font-size: 0.88rem; }
.mi-sizes { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.mi-size { display: inline-flex; align-items: center; gap: 0.2rem; background: var(--pale); border-radius: 8px; padding: 0.2rem 0.35rem; }
.mi-size input:first-child { width: 7rem; } .mi-size input[type=number], .mi-opts input[type=number] { width: 5.5rem; }
.mi-dollar { color: #6b7a90; }
.mi-link { width: auto; background: none; border: none; color: var(--navy); font-weight: 600; cursor: pointer; padding: 0.2rem 0.3rem; text-decoration: underline; }
.mi-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.mi-chip { display: inline-flex; align-items: center; gap: 0.2rem; background: #eef3fb; color: var(--navy); border-radius: 999px; padding: 0.15rem 0.3rem 0.15rem 0.7rem; font-size: 0.82rem; font-weight: 600; }
.mi-chip button { width: auto; background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0.2rem; }
.mi-chip.mi-req { background: var(--navy); color: white; }
.mi-chip.mi-sug { outline: 2px dashed #7fa6e0; }
.mi-chips select { font-size: 0.82rem; padding: 0.15rem 0.4rem; }
.mi-sugcard { border-color: #9fc0ef; background: #f6faff; }
.mi-sugtext { font-size: 0.85rem; color: #24548f; margin: 0; }
.mi-off { opacity: 0.55; }
.mi-include { margin-left: auto; }
.mi-rules { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; font-size: 0.85rem; }
.mi-rules label { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0; font-weight: 500; }
.mi-rules input[type=number] { width: 4rem; }
.mi-tog { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; margin: 0; }
.mi-rulechip { background: #eef3fb; color: var(--navy); border-radius: 999px; padding: 0.15rem 0.6rem; font-weight: 600; }
.mi-rulechip.mi-req { background: var(--navy); color: white; }
.mi-opts { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.mi-opts th { text-align: left; color: #6b7a90; font-weight: 600; font-size: 0.78rem; padding: 0.2rem 0.3rem; }
.mi-opts td { padding: 0.2rem 0.3rem; border-top: 1px solid #edf2f7; vertical-align: middle; }
.mi-opts td:first-child input { width: 100%; min-width: 8rem; }
.mi-sp { display: flex; gap: 0.4rem; flex-wrap: wrap; } .mi-sp label { display: inline-flex; gap: 0.25rem; align-items: center; margin: 0; font-size: 0.8rem; }
.mi-used { font-size: 0.85rem; color: #4a5568; margin: 0; }
.mi-save { position: sticky; bottom: 0; background: white; border-top: 2px solid #e2e8f0; margin: 0.75rem -1.25rem -1.25rem; padding: 0.9rem 1.25rem; border-radius: 0 0 12px 12px; display: flex; flex-direction: column; gap: 0.6rem; }
.mi-mode { border: 1px solid #e2e8f0; border-radius: 8px; padding: 0.5rem 0.75rem; }
.mi-mode legend { font-weight: 600; padding: 0 0.3rem; }
.mi-mode label { display: block; margin: 0.25rem 0; }
.mi-save .btn { align-self: flex-start; }
.mi-done { display: flex; gap: 0.5rem; margin-bottom: 1rem; } .mi-done[hidden] { display: none; } .mi-done .btn { width: auto; }
@media (max-width: 600px) { .mi-opts thead { display: none; } .mi-opts tr { display: flex; flex-wrap: wrap; gap: 0.3rem; border-top: 1px solid #edf2f7; padding: 0.3rem 0; } .mi-opts td { border: none; } .mi-catin { width: 7rem !important; } }
@media (prefers-reduced-motion: reduce) { .mi-beam, .mi-stage.mi-now .mi-dot { animation: none; } }
#reservations .rs-tabs { display: none; }
/* Setup locked = service mode (iPad at the host stand): side menu gone, two big tabs, everything touch-sized */
body.rs-service #subnav:has(> .subnav-group[data-group="reservations"]:not([hidden])) { display: none; }
body.rs-service #reservations .rs-tabs { display: flex; gap: 0.4rem; border: none; background: #e6ecf6; padding: 0.35rem; border-radius: 14px; margin-bottom: 1rem; }
body.rs-service #reservations .rs-tab { flex: 1; min-height: 3.25rem; margin: 0; border: none; border-radius: 10px; font-size: 1.1rem; color: #4a5568; }
body.rs-service #reservations .rs-tab.active { background: white; color: var(--navy); box-shadow: 0 2px 6px rgba(18,53,107,0.15); }
body.rs-service #reservations .rs-head { align-items: center; }
body.rs-service #reservations .rs-lockbtn { width: auto; min-width: 44px; min-height: 44px; padding: 0 0.7rem; font-size: 1.1rem; background: none; border: 1px solid #d5dbe5; color: #6b7a90; }
body.rs-service #reservations button:not(.pl-t), body.rs-service #reservations .btn { min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body.rs-service #reservations .btn-sm { padding: 0.5rem 1rem; font-size: 0.95rem; }
body.rs-service #reservations .fl-pill { padding: 0.55rem 1.1rem; font-size: 1rem; }
body.rs-service #reservations .fl-guest { padding: 0.5rem 0.9rem; font-size: 0.95rem; }
body.rs-service #reservations .fl-stat { padding: 0.45rem 0.95rem; font-size: 0.95rem; }
body.rs-service #reservations .pl-switch button { padding: 0.5rem 1rem; font-size: 0.95rem; }
body.rs-service #reservations .pl-t, body.rs-service #reservations .fl-tile { touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
body.rs-service #reservations .fl-sheet .btn, body.rs-service #reservations .wl-row .btn { min-height: 48px; font-size: 1rem; padding: 0.55rem 1.1rem; }
body.rs-service #reservations input:not([type=checkbox]):not([type=radio]), body.rs-service #reservations select { min-height: 44px; font-size: 16px; }
body.rs-service #reservations input[type=checkbox] { width: 1.4rem; height: 1.4rem; vertical-align: middle; }
body.rs-service #reservations .fl-close { min-width: 48px; font-size: 1.9rem; }
@media (hover: none) { body.rs-service #reservations .fl-tile:hover, body.rs-service #reservations button.pl-t:hover { transform: none; box-shadow: none; } }
.subnav a.subnav-tab.active, .subnav a.subnav-jump.active { background: var(--pale); border-left-color: var(--red); font-weight: 600; }
.set-anchor { scroll-margin-top: 80px; }
/* Settings = separate pages, one per side-menu item (#settings[data-page]) */
#settings [data-spage] { margin-top: 0 !important; padding-top: 0 !important; border-top: none !important; }
#settings[data-page="services"] [data-spage]:not([data-spage~="services"]) { display: none; }
#settings[data-page="info"] [data-spage]:not([data-spage~="info"]) { display: none; }
#settings[data-page="forwarding"] [data-spage]:not([data-spage~="forwarding"]) { display: none; }
#settings[data-page="billing"] [data-spage]:not([data-spage~="billing"]) { display: none; }
#settings[data-page="tickets"] [data-spage]:not([data-spage~="tickets"]) { display: none; }
#settings[data-page="printer"] [data-spage]:not([data-spage~="printer"]) { display: none; }
#settings[data-page="info"] .settings-section[data-spage="info"], #settings[data-page="forwarding"] .settings-section[data-spage="forwarding"] { margin-bottom: 1rem; }
/* Settings locked: no side menu either */
body.settings-locked #subnav:has(> .subnav-group[data-group="settings"]:not([hidden])) { display: none; }
.rs-stepper { list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; counter-reset: none; }
.rs-step button { width: auto; display: flex; align-items: center; gap: 0.5rem; background: #F3F6FB; border: 2px solid transparent; border-radius: 999px; padding: 0.35rem 0.9rem 0.35rem 0.35rem; cursor: pointer; font-weight: 600; color: #495057; }
.rs-step-num { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #dee2e6; color: #343a40; font-size: 0.85rem; }
.rs-step-current button { border-color: var(--navy); color: var(--navy); }
.rs-step-current .rs-step-num { background: var(--navy); color: #fff; }
.rs-step-done .rs-step-num { background: #198754; color: #fff; }
.rs-step button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.rs-guide-title { color: var(--navy); margin: 0.5rem 0 0.25rem; }
.rs-guide-nav { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; border-top: 1px solid #dee2e6; padding-top: 1rem; margin-top: 1rem; }
.rs-guide-nav .btn { width: auto; }
.rs-copy { margin-bottom: 0.5rem; }
.rs-checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.rs-checklist li { padding: 0.5rem 0; border-bottom: 1px solid #e9ecef; display: flex; gap: 0.6rem; align-items: center; }
.rs-ctext { flex: 1; }
.rs-checklist li .btn { width: auto; }
.rs-icon { flex: none; display: inline-flex; width: 1.5rem; height: 1.5rem; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.rs-ok .rs-icon { background: #198754; }
.rs-todo .rs-icon { background: #b45309; }
.rs-done-box { background: #d4edda; color: #155724; border-radius: 8px; padding: 1rem; margin-top: 1rem; }
.rs-chip { background: #fff; border: 1px solid #ced4da; border-radius: 999px; padding: 0.15rem 0.3rem 0.15rem 0.7rem; font-size: 0.85rem; }
.rs-chip button { width: auto; border: none; background: none; cursor: pointer; font-size: 1rem; padding: 0 0.3rem; }
.mo-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mo-header .btn, .mo-group-actions .btn, .mo-empty .btn, .og-footer .btn { width: auto; }
.og-size-col input { min-width: 9rem !important; }
.mo-header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mo-header-actions .btn { width: auto; }
.mo-suggest-head { margin: 0.5rem 0 1rem; }
.mo-suggest-head h3 { margin: 0; color: var(--navy); }
.mo-suggest-bulk { display: flex; gap: 0.5rem; }
.mo-suggest-bulk .btn { width: auto; }
.mo-suggestion { border-left: 4px solid #D92735; padding: 1rem 1.25rem; background: #fff; box-shadow: 0 1px 4px rgba(18,53,107,0.08); border-radius: 8px; }
.mo-why { margin: 0.25rem 0; color: #333; }
.mo-pick { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; font-weight: normal; }
.mo-chip-guess { background: #fff; border-style: dashed; }
.mo-tag { font-size: 0.7rem; background: #fff3cd; color: #7a5a00; border-radius: 4px; padding: 0.05rem 0.35rem; }
.mo-analyzing { display: flex; align-items: center; gap: 1rem; }
.mo-spinner { width: 28px; height: 28px; border: 3px solid #d6deeb; border-top-color: #D92735; border-radius: 50%; animation: mo-spin 0.9s linear infinite; flex: none; }
@keyframes mo-spin { to { transform: rotate(360deg); } }
.mo-suggest-done { background: #F3F6FB; }
.mo-chip-link { cursor: pointer; font: inherit; font-size: 0.8rem; color: var(--navy); margin: 0.1rem 0; }
.mo-chip-link:hover, .mo-chip-link:focus-visible { background: #e3eaf6; border-color: var(--navy); }
.menu-options-none { color: #999; font-size: 0.85rem; }
.mo-intro { color: #555; max-width: 640px; margin: 0.25rem 0 0; }
.mo-group { margin-bottom: 1rem; }
.mo-group-off { opacity: 0.65; }
.mo-group-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.mo-group-head h3 { margin: 0; color: var(--navy); }
.mo-group-actions { display: flex; gap: 0.5rem; }
.mo-rules { color: #6c757d; font-size: 0.875rem; margin: 0.25rem 0 0.5rem; }
.mo-prompt { font-style: italic; color: #444; margin: 0.25rem 0 0.5rem; }
.mo-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.mo-chip { background: #F3F6FB; border: 1px solid #d6deeb; border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.85rem; }
.mo-chip-off { text-decoration: line-through; color: #999; }
.mo-badge { background: #6c757d; color: #fff; font-size: 0.7rem; border-radius: 4px; padding: 0.1rem 0.4rem; vertical-align: middle; }
.mo-items { font-size: 0.875rem; color: #444; margin: 0.5rem 0 0; }
.mo-empty { text-align: center; padding: 2rem; }
.mo-empty p { max-width: 560px; margin: 0.75rem auto 1.25rem; color: #555; }
.og-modal { max-width: 1060px; margin: 3% auto; max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
.og-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.og-grid-4 { grid-template-columns: repeat(4, 1fr); }
.og-subhead { margin: 1.25rem 0 0.5rem; color: var(--navy); }
.og-checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.og-checks label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: normal; }
.og-small-input { width: 4.5rem; margin-left: 0.35rem; }
.og-table-wrap { overflow-x: auto; }
.og-table input[type="text"], .og-table input[type="number"], .og-table select { width: 100%; min-width: 4.5rem; padding: 0.35rem; }
.og-table td:first-child input { min-width: 9rem; }
.og-center { text-align: center; }
.og-row-actions { white-space: nowrap; }
.og-icon-btn { background: none; border: 1px solid #ccd; border-radius: 4px; width: 1.9rem; height: 1.9rem; cursor: pointer; }
.og-icon-btn:disabled { opacity: 0.35; cursor: default; }
.og-remove { color: #D92735; }
.og-search { width: 100%; padding: 0.5rem; margin-bottom: 0.5rem; }
.og-items { max-height: 260px; overflow-y: auto; border: 1px solid #e1e5e9; border-radius: 6px; padding: 0.5rem 0.75rem; }
.og-category { border: none; padding: 0; margin: 0 0 0.75rem; }
.og-category legend { font-weight: 700; color: var(--navy); }
.og-item { display: block; font-weight: normal; padding: 0.15rem 0 0.15rem 1.25rem; }
.og-item[hidden] { display: none; }
.og-footer { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.og-footer-right { display: flex; gap: 0.5rem; margin-left: auto; }
#optionGroupModal [hidden] { display: none !important; }
@media (max-width: 600px) {
    .og-grid, .og-grid-4 { grid-template-columns: 1fr; }
    .og-modal { width: 96%; padding: 1rem; margin: 2% auto; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #495057;  /* Improved contrast from #6c757d */
}

.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .topbar { flex-wrap: wrap; gap: 0.25rem 0.75rem; padding: 0.5rem 16px 0; }
    .tb-brand img { height: 34px; }
    .tb-right { margin-left: auto; }
    .tb-email { display: none; }
    .tb-tabs { order: 3; flex-basis: 100%; min-height: 44px; }
    .tb-tab { padding: 0 0.7rem; font-size: 0.9rem; }
    .dash-body { flex-direction: column; align-items: stretch; min-height: 0; }
    .subnav { position: static; width: 100%; min-height: 0; max-height: none; border-right: none; border-bottom: 1px solid #dde3ee; padding: 0.5rem 0; overflow-x: auto; }
    .subnav-group { display: flex; gap: 0.25rem; padding: 0 16px; }
    .subnav-group > div { display: contents; }
    .subnav h3 { display: none; }
    .subnav a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 0.5rem 0.75rem; }
    .subnav a.active { border-bottom-color: var(--red); }
    .main-content {
        padding: 1rem 16px;
    }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* Signup + plan picker */
.signup-hint { display: block; margin-top: 0.4rem; color: #495057; font-size: 0.85rem; }
.plan-container { justify-content: flex-start; padding-top: 2rem; padding-bottom: 2rem; }
.plan-form { max-width: 640px; }
.plan-intro { margin-bottom: 1rem; color: #495057; }
.plan-group { border: 1px solid #dee2e6; border-radius: 8px; padding: 0.75rem 1rem 0.5rem; margin-bottom: 1rem; }
.plan-group legend { font-weight: 700; color: var(--navy); padding: 0 0.25rem; }
.plan-optional { font-weight: 400; color: #6c757d; }
.plan-option { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0; cursor: pointer; }
.plan-option input { margin-top: 0.3rem; width: auto; }
.plan-option small { display: block; color: #6c757d; }
.plan-option.disabled { opacity: 0.5; cursor: not-allowed; }
.plan-total { font-size: 1.1rem; margin: 1rem 0; }
.link-btn { background: none; border: none; padding: 0; margin-top: 0.4rem; color: var(--navy); text-decoration: underline; cursor: pointer; font-size: 0.85rem; width: auto; }
.low-balance-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff3cd; border: 1px solid #ffc107; border-left: 6px solid #dc3545; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.low-balance-banner[hidden] { display: none; }
/* Onboarding */
/* Onboarding visuals */
.terms-checks { padding: 0.75rem; }
.terms-checks label, .terms-check label { display: grid; grid-template-columns: 1.25rem 1fr; column-gap: 0.75rem; align-items: start; margin: 0 0 0.6rem; padding: 0.75rem 0.85rem; border: 1px solid #dee2e6; border-radius: 8px; background: #fff; font-weight: normal; line-height: 1.5; color: #343a40; cursor: pointer; text-align: left; }
.terms-checks label:last-child { margin-bottom: 0; }
.terms-checks label:has(input:checked) { border-color: var(--red); background: #fff7f7; }
.terms-check label { border: 0; padding: 0; background: none; }
.terms-checks input[type="checkbox"], .terms-check input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; padding: 0; }
.terms-text { display: block; min-width: 0; }
.ob-hero { display: flex; gap: 1rem; align-items: center; background: #f3f6fb; border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1rem; }
.ob-hero p { margin: 0; color: #343a40; line-height: 1.45; }
.ob-hero-icon { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.ob-hero-icon svg { width: 30px; height: 30px; }
.ob-flow { display: flex; align-items: stretch; gap: 0.25rem; margin-bottom: 1rem; }
.ob-flow-node { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; font-size: 0.85rem; color: #343a40; border: 1px solid #dee2e6; border-radius: 10px; padding: 0.75rem 0.5rem; background: #fff; }
.ob-flow-icon { width: 40px; height: 40px; border-radius: 50%; background: #e8edf7; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.ob-flow-icon svg { width: 22px; height: 22px; }
.ob-flow-ai { border-color: #dc3545; }
.ob-flow-ai .ob-flow-icon { background: #dc3545; color: #fff; }
.ob-flow-arrow { flex: 0 0 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #6c757d; font-size: 0.7rem; }
.ob-flow-arrow svg { width: 26px; height: 26px; color: var(--navy); }
.ob-number-card { border: 2px solid #dee2e6; border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 0.5rem; align-items: center; }
.ob-number-card:has(input:checked) { border-color: var(--navy); background: #f3f6fb; }
.ob-number-card strong { font-size: 1.2rem; color: var(--navy); }
.ob-more { display: block; margin: 0 auto 0.75rem; font-size: 0.95rem; }
.ob-forwarding { border: 2px solid var(--navy); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.ob-forwarding h3 { margin: 0 0 0.25rem; color: var(--navy); font-size: 1.1rem; }
.ob-forwarding-sub { margin: 0 0 0.75rem; color: #495057; }
.ob-dial-steps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; counter-reset: dial; }
.ob-dial-steps li { counter-increment: dial; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; background: #f8f9fa; border-radius: 10px; padding: 1rem 0.5rem 0.75rem; font-size: 0.85rem; color: #495057; }
.ob-dial-steps li::before { content: counter(dial); position: absolute; top: 6px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: #dc3545; color: #fff; font-weight: 700; font-size: 0.8rem; line-height: 22px; }
.ob-dial-steps strong { color: var(--navy); font-size: 0.95rem; }
.ob-dial-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; }
.ob-dial-icon svg { width: 24px; height: 24px; }
.ob-screen { display: inline-block; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; background: #1f2937; color: #7CFC9A; border-radius: 6px; padding: 0.3rem 0.5rem; letter-spacing: 0.04em; white-space: nowrap; font-size: 0.9rem; }
.ob-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem; }
.ob-switch-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; border-radius: 10px; padding: 0.75rem 0.5rem; font-size: 0.85rem; }
.ob-on { background: #e7f6ec; border: 1px solid #28a745; color: #1e5631; }
.ob-off { background: #f1f3f5; border: 1px solid #adb5bd; color: #495057; }
.ob-pill { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; padding: 0.15rem 0.7rem; border-radius: 999px; color: #fff; }
.ob-on .ob-pill { background: #28a745; }
.ob-off .ob-pill { background: #6c757d; }
.pct-input { display: flex; align-items: center; gap: 0.5rem; }
.pct-input input { flex: 1; }
.pct-input span { font-weight: 700; color: #495057; }
.ob-number, .ob-number-dial { white-space: nowrap; }
.ob-switch-card { min-width: 0; }
.ob-flow-caption { background: #f8f9fa; border-left: 4px solid var(--navy); border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.ob-flow-caption p { margin: 0 0 0.4rem; color: #343a40; line-height: 1.6; }
.ob-flow-caption .ob-screen { padding: 0.1rem 0.4rem; font-size: 0.85rem; }
.ob-fineprint { margin: 0; font-size: 0.8rem; color: #6c757d; }
@media (max-width: 600px) {
    .ob-flow { flex-direction: column; }
    .ob-flow-arrow { flex-basis: auto; flex-direction: row; gap: 0.3rem; }
    .ob-flow-arrow svg { transform: rotate(90deg); }
    .ob-dial-steps { grid-template-columns: 1fr; }
    .ob-switch { grid-template-columns: 1fr; }
    .ob-steps li { min-width: 0; font-size: 0.8rem; }
    .ob-hero-icon { flex-basis: 44px; height: 44px; }
}
.ob-steps { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: ob; flex-wrap: wrap; }
.ob-steps li { counter-increment: ob; flex: 1; min-width: 120px; padding: 0.5rem; border-bottom: 4px solid #dee2e6; color: #6c757d; font-size: 0.9rem; }
.ob-steps li::before { content: counter(ob) ". "; font-weight: 700; }
.ob-steps li.active { border-color: #dc3545; color: var(--navy); font-weight: 700; }
.ob-steps li.done { border-color: var(--navy); color: var(--navy); }
.ob-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.ob-row > .form-group { flex: 1; min-width: 120px; }
.ob-search .btn { width: auto; margin-bottom: 1rem; }
.ob-big-number { font-size: 1.75rem; font-weight: 700; color: var(--navy); margin: 0 0 0.5rem; }
.ob-choices { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.ob-choices .link-btn { align-self: center; font-size: 0.95rem; }
.ob-tip p { margin: 0.25rem 0 0.5rem; color: #495057; }
.ob-note { background: #fff3cd; border-radius: 6px; padding: 0.5rem 0.75rem; }
.ob-forward { margin: 0.25rem 0 0.5rem 1.25rem; padding: 0; color: #495057; }
.ob-forward li { margin-bottom: 0.35rem; }
.low-balance-banner p { margin: 0.25rem 0 0; color: #495057; }
.low-balance-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.low-balance-actions select { width: auto; min-width: 220px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.minute-history { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.minute-history th, .minute-history td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #dee2e6; }
.minute-history small { color: #6c757d; display: block; }

/* Balance warning styles */
.balance-low {
    color: #dc3545 !important;
}

.balance-critical {
    animation: flash 1s infinite;
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Skip navigation link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced focus indicators for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

/* Ensure buttons have pointer cursor */
button, .btn {
    cursor: pointer;
}

/* Full-screen loading overlay */
.processing-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.processing-overlay.active {
    display: flex;
}

.processing-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e9ecef;
    border-top: 6px solid var(--navy);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.processing-content h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.processing-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.processing-progress {
    background: #e9ecef;
    border-radius: 10px;
    height: 40px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.processing-progress-bar {
    background: linear-gradient(90deg, var(--navy) 0%, var(--red) 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.processing-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    z-index: 1;
}

.processing-status {
    font-size: 0.875rem;
    color: var(--navy);
    font-weight: 500;
}

/* Editable table cells */
.editable-cell input,
.editable-cell textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875rem;
}

.editable-cell textarea {
    min-height: 60px;
    resize: vertical;
}

.editable-cell input:focus,
.editable-cell textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 2px rgba(18, 53, 107, 0.15);
}
.auth-form {
    border-top: 5px solid var(--red);
    box-shadow: 0 8px 24px rgba(18, 53, 107, 0.12);
}

/* Website navigation bar (matches ring2order.com) */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(8, 28, 61, 0.25);
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

/* On-navy logo cropped to its top line, as on the website */
.site-brand {
    display: block;
    flex-shrink: 0;
    height: 46px;
    overflow: hidden;
}

.site-brand img {
    height: 82px;
    width: auto;
    margin-top: -6px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
}

.site-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 3px solid transparent;
}

.site-nav-link:hover {
    border-bottom-color: #9fb1cc;
}

.site-nav-actions {
    display: flex;
    gap: 10px;
}

.site-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.site-nav-actions[hidden] { display: none !important; }
.site-nav-user { color: #fff; opacity: 0.85; font-size: 0.85rem; margin-right: 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
button.site-btn { cursor: pointer; font-family: inherit; font-weight: 700; font-size: 14px; line-height: normal; background: transparent; width: auto; margin: 0; box-shadow: none; }
button.site-btn-outline:hover { background: white; color: var(--navy); }
.site-btn-outline {
    color: white;
    border-color: white;
}

.site-btn-outline:hover {
    background: white;
    color: var(--navy);
}

.site-btn-red {
    background: var(--red);
    color: white;
}

.site-btn-red:hover {
    background: var(--red-dark);
}

.site-header a:focus, .site-header button:focus {
    outline-color: white;
}

.site-nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    color: white;
}

.site-nav-toggle svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 1024px) {
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 80px;
        background: var(--navy);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px 24px;
        gap: 16px;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .site-nav-link {
        display: block;
        padding: 10px 0;
    }

    .site-nav-toggle {
        display: block;
    }
}

@media (max-width: 600px) {
    .site-header-inner {
        padding: 0 16px;
    }

    .site-brand {
        height: 38px;
    }

    .site-brand img {
        height: 68px;
        margin-top: -5px;
    }
}

.sidebar-brand {
    padding: 0 1rem 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-brand img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

button, input, select, textarea {
    font-family: inherit;
}

#authToggle {
    background: white;
    color: var(--navy);
    border: 2px solid var(--navy);
}

#authToggle:hover {
    background: var(--pale);
}

.site-footer {
    background: var(--navy);
    color: #dbe3ef;
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: 0.875rem;
}

.site-footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: white;
    font-weight: 600;
}

.site-footer a:focus {
    outline-color: white;
}

.signup-notice {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--pale);
    border-left: 4px solid var(--red);
    border-radius: 5px;
    color: var(--ink);
}

.signup-notice a {
    color: var(--navy);
    font-weight: 600;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Overview: today hour by hour (full width, live) */
.tc { --tc-calls: #2a78d6; --tc-orders: #eb6834; background: white; border: 2px solid var(--navy); border-radius: 12px; padding: 1rem 1.1rem 0.75rem; margin: 1rem 0 0; }
.tc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.tc-title h3 { margin: 0; color: var(--navy); font-size: 1.15rem; }
.tc-live { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: #52514e; }
.tc-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #2f9e57; animation: tcLive 2s ease-in-out infinite; }
@keyframes tcLive { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,158,87,0.5); } 50% { box-shadow: 0 0 0 5px rgba(47,158,87,0); } }
.tc-totals { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tc-total { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--pale); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.88rem; color: #4a5568; }
.tc-total strong { color: var(--ink); font-size: 1.1rem; }
.tc-sw { width: 0.75rem; height: 0.75rem; border-radius: 3px; display: inline-block; }
.tc-sw.tc-calls { background: var(--tc-calls); } .tc-sw.tc-orders { background: var(--tc-orders); }
.tc-plot { position: relative; height: clamp(12rem, 28vw, 20rem); padding-left: 2rem; }
.tc-grid { position: absolute; inset: 0 0 1.6rem 2rem; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.tc-grid span { border-top: 1px solid #e8ecf2; height: 0; position: relative; }
.tc-grid span:last-child { border-top-color: #c3cbd8; }
.tc-grid em { position: absolute; right: calc(100% + 0.4rem); top: -0.55rem; font-style: normal; font-size: 0.72rem; color: #6b7a90; }
.tc-cols { position: absolute; inset: 0 0 0 2rem; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.tc-col { all: unset; box-sizing: border-box; display: flex; flex-direction: column; cursor: pointer; border-radius: 6px; padding: 0 2px; position: relative; }
.tc-col:focus-visible { outline: 3px solid var(--navy-light, #3b6fc4); outline-offset: -2px; }
.tc-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 0; margin-bottom: 1.6rem; position: relative; }
.tc-col.tc-now .tc-bars::before { content: ''; position: absolute; inset: 0 -1px; background: rgba(18,53,107,0.05); border-radius: 6px 6px 0 0; }
.tc-col.tc-hover .tc-bars::after, .tc-col.tc-picked .tc-bars::after { content: ''; position: absolute; inset: 0 -1px; background: rgba(18,53,107,0.08); border-radius: 6px 6px 0 0; }
.tc-bar { position: relative; z-index: 1; width: min(42%, 1.4rem); height: calc(var(--v) * 100%); min-height: 0; border-radius: 4px 4px 0 0; transition: height 0.6s cubic-bezier(.3,1.2,.5,1), opacity 0.2s; }
.tc-bar.tc-calls { background: var(--tc-calls); } .tc-bar.tc-orders { background: var(--tc-orders); }
.tc-grow .tc-bar { animation: tcGrow 0.8s cubic-bezier(.3,1.2,.5,1) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes tcGrow { from { height: 0; } }
.tc-focus .tc-col:not(.tc-hover):not(.tc-picked) .tc-bar { opacity: 0.45; }
.tc.tc-focus .tc-col.tc-hover .tc-bar { opacity: 1; }
.tc-col.tc-future .tc-x { color: #a0aec0; }
.tc-x { position: absolute; bottom: 0.2rem; left: 0; right: 0; text-align: center; font-size: 0.72rem; color: #52514e; white-space: nowrap; }
.tc-col.tc-now .tc-x { font-weight: 700; color: var(--navy); }
.tc-detail { margin: 0.5rem 0 0.25rem; font-size: 0.9rem; color: var(--ink); min-height: 1.3em; }
.tc-table summary { cursor: pointer; font-size: 0.82rem; color: #52514e; }
.tc-table table { margin-top: 0.5rem; font-size: 0.85rem; }
@media (max-width: 600px) { .tc-plot { padding-left: 1.6rem; } .tc-grid { left: 1.6rem; } .tc-cols { left: 1.6rem; } .tc-x { font-size: 0.6rem; } .tc-col:nth-child(even) .tc-x:not(:where(.tc-now .tc-x)) { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .tc-dot, .tc-grow .tc-bar { animation: none; } .tc-bar { transition: none; } }

/* Floor plan: full width, one floor per room, tables where they sit (setup guide + live Floor) */
.pl { display: flex; flex-direction: column; gap: 1rem; margin: 0.5rem 0 1rem; }
.pl-room { animation: plRoomIn 0.5s cubic-bezier(.3,1.3,.5,1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes plRoomIn { from { opacity: 0; transform: translateY(10px); } }
.pl-head { margin: 0 0 0.4rem; color: var(--navy); font-size: 1rem; display: flex; gap: 0.4rem; align-items: baseline; flex-wrap: wrap; }
.pl-head .rs-muted { font-weight: 400; font-size: 0.82rem; }
.pl-canvas { --floor: #f7f3ec; position: relative; width: 100%; aspect-ratio: var(--ar); min-height: 13rem; container-type: inline-size;
    background-color: var(--floor); background-image: repeating-linear-gradient(90deg, transparent 0 63px, rgba(80,60,30,0.05) 63px 64px);
    border: 3px solid #b9c6dd; border-radius: 14px; box-shadow: inset 0 0 0 6px rgba(255,255,255,0.6), inset 0 2px 10px rgba(18,53,107,0.08); overflow: hidden; }
@media (max-width: 600px) { .pl-canvas { aspect-ratio: var(--ar-s); } .pl-t { --base: clamp(2.9rem, 13cqw, 4.2rem); } }
.pl-k-bar .pl-canvas::before, .pl-k-counter .pl-canvas::before { content: ''; position: absolute; left: 8%; right: 8%; top: 0; height: 9%; min-height: 12px;
    background: linear-gradient(#9a6a3a, #7a4f27); border-radius: 0 0 10px 10px; box-shadow: 0 3px 6px rgba(0,0,0,0.15); }
.pl-k-patio .pl-canvas { --floor: #eef6ec; background-image: radial-gradient(rgba(47,120,60,0.12) 1.5px, transparent 1.6px); background-size: 22px 22px; border-color: #9fd0a8; }
.pl-k-private .pl-canvas { border-color: #c9a7e8; } .pl-k-lounge .pl-canvas { --floor: #fbf1f3; border-color: #f0b4bd; }
.pl-k-upstairs .pl-canvas { border-color: #aab4c0; } .pl-k-bar .pl-canvas { border-color: #e6b56b; } .pl-k-counter .pl-canvas { border-color: #9bd4e4; }
.pl-k-none .pl-canvas { border-style: dashed; --floor: #fbfcfe; background-image: none; }
.pl-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8a94a6; font-style: italic; }
.pl-tip { font-size: 0.85rem; color: #52606f; margin: -0.5rem 0 1rem; }
.pl-t { --c: var(--navy); --fill: var(--navy); --ink-t: white; --base: clamp(3.4rem, 8.5cqw, 7rem);
    all: unset; box-sizing: border-box; position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
    width: calc(var(--base) * var(--kx)); height: var(--base); transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; text-align: center;
    background: var(--fill); color: var(--ink-t); border: 3px solid var(--c); box-shadow: 0 4px 10px rgba(18,53,107,0.22);
    transition: left 0.35s cubic-bezier(.3,1.2,.5,1), top 0.35s cubic-bezier(.3,1.2,.5,1), background 0.4s, border-color 0.4s, box-shadow 0.2s, transform 0.2s; }
.pl-round { border-radius: 50%; } .pl-rect { border-radius: 14px; }
button.pl-t { cursor: pointer; }
button.pl-t:hover { transform: translate(-50%, -50%) scale(1.06); z-index: 3; }
.pl-t:focus-visible { outline: 3px solid #D92735; outline-offset: 4px; z-index: 3; }
.pl-top { font-weight: 800; font-size: clamp(0.72rem, 1.9cqw, 1.05rem); line-height: 1.05; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-sub { font-size: clamp(0.62rem, 1.45cqw, 0.85rem); line-height: 1.1; opacity: 0.92; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-chair { position: absolute; width: 17%; aspect-ratio: 1; min-width: 7px; border-radius: 35%; background: #cfd7e3; border: 2px solid rgba(255,255,255,0.9); transform: translate(-50%, -50%); transition: background 0.4s; pointer-events: none; }
.pl-rect .pl-chair { width: calc(17% / var(--kx)); min-width: 9px; }
.pl-chair.pl-c-on { background: var(--c); }
.pl-prog { position: absolute; left: 18%; right: 18%; bottom: 14%; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.3); overflow: hidden; }
.pl-rect .pl-prog { bottom: 10%; }
.pl-prog span { display: block; height: 100%; background: white; border-radius: 3px; transition: width 0.6s; }
.pl-setup.pl-off { --fill: #a0aec0; --c: #8795a8; }
.pl-live .fl-free { --c: #2f9e57; --fill: white; --ink-t: #1d5e36; }
.pl-live .fl-soon { --c: #c98a00; --fill: #fff6dc; --ink-t: #6b4a00; }
.pl-live .fl-late { --c: #e8590c; --fill: #ffe9dc; --ink-t: #8a3300; animation: plLate 1.8s ease-in-out infinite; }
.pl-live .fl-seated { --c: #12356B; --fill: #12356B; --ink-t: white; }
.pl-live .fl-over { --c: #D92735; --fill: #D92735; --ink-t: white; animation: plOver 1.4s ease-in-out infinite; }
.pl-live .pl-off.fl-free { border-style: dashed; }
@keyframes plLate { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,89,12,0.45), 0 4px 10px rgba(18,53,107,0.2); } 50% { box-shadow: 0 0 0 10px rgba(232,89,12,0), 0 4px 10px rgba(18,53,107,0.2); } }
@keyframes plOver { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,39,53,0.5), 0 4px 10px rgba(18,53,107,0.2); } 50% { box-shadow: 0 0 0 9px rgba(217,39,53,0), 0 4px 10px rgba(18,53,107,0.2); } }
.pl-t.pl-picked { box-shadow: 0 0 0 5px rgba(18,53,107,0.3), 0 6px 16px rgba(18,53,107,0.3); z-index: 4; }
.pl-t.pl-changed { animation: plChanged 0.6s cubic-bezier(.3,1.6,.5,1); }
@keyframes plChanged { 0% { transform: translate(-50%, -50%) scale(0.6); } 60% { transform: translate(-50%, -50%) scale(1.15); } 100% { transform: translate(-50%, -50%) scale(1); } }
.pl-t.pl-pop, .pl-room.pl-pop .pl-canvas { animation: plChanged 0.55s cubic-bezier(.3,1.6,.5,1); }
.pl-room.pl-pop .pl-canvas { animation-name: plRoomIn; }
.pl-arranging .pl-t { cursor: grab; touch-action: none; }
.pl-arranging .pl-canvas { background-image: linear-gradient(rgba(18,53,107,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(18,53,107,0.06) 1px, transparent 1px); background-size: 5% 10%; }
.pl-t.pl-drag { cursor: grabbing; transition: none; z-index: 10; transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 12px 28px rgba(18,53,107,0.35); }
.pl-arrange-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; background: #eef3fb; border: 2px solid var(--navy); border-radius: 10px; padding: 0.5rem 0.75rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
.pl-arrange-bar .btn { margin: 0; width: auto; }
.pl-switch { display: inline-flex; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
.pl-switch button { all: unset; cursor: pointer; padding: 0.25rem 0.8rem; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.pl-switch button.active { background: var(--navy); color: white; }
.pl-switch button:focus-visible { outline: 3px solid #D92735; outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .pl-room, .pl-t, .pl-live .fl-late, .pl-live .fl-over, .pl-t.pl-changed, .pl-t.pl-pop { animation: none; transition: none; } }

/* Import Menu progress: full width flow + one sheet per page */
.mi-wide { padding: 1.25rem 1.25rem 1rem; max-width: none; }
.mi-flow { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.mi-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center; color: #8a94a6; font-size: 0.9rem; }
.mi-node strong { font-weight: 600; max-width: 12rem; }
.mi-node-icon { position: relative; z-index: 1; width: clamp(3rem, 7vw, 4.6rem); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: clamp(1.4rem, 3vw, 2.1rem); background: #eef1f6; border: 3px solid #d6dde8; transition: background 0.4s, border-color 0.4s, transform 0.4s; filter: grayscale(1); opacity: 0.7; }
.mi-node-tick { position: absolute; right: -4px; bottom: -4px; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #2f9e57; color: white; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform 0.35s cubic-bezier(.3,1.6,.5,1); }
.mi-node.mi-now, .mi-node.mi-done { color: var(--ink); }
.mi-node.mi-now .mi-node-icon { background: white; border-color: var(--navy); filter: none; opacity: 1; animation: miNode 1.6s ease-in-out infinite; }
.mi-node.mi-done .mi-node-icon { background: #e8f5ec; border-color: #2f9e57; filter: none; opacity: 1; }
.mi-node.mi-done .mi-node-tick { transform: scale(1); }
@keyframes miNode { 0%, 100% { box-shadow: 0 0 0 0 rgba(18,53,107,0.35); } 50% { box-shadow: 0 0 0 12px rgba(18,53,107,0); } }
.mi-link { position: absolute; top: calc(clamp(3rem, 7vw, 4.6rem) / 2 - 2px); left: calc(50% + clamp(1.5rem, 3.5vw, 2.3rem) + 6px); right: calc(-50% + clamp(1.5rem, 3.5vw, 2.3rem) + 6px); height: 4px; border-radius: 2px; background: #e2e8f0; overflow: hidden; }
.mi-link span { position: absolute; inset: 0; width: 0; background: #2f9e57; transition: width 0.6s; }
.mi-node.mi-done .mi-link span { width: 100%; }
.mi-node.mi-now .mi-link span { width: 30%; background: linear-gradient(90deg, transparent, var(--navy), transparent); animation: miFlow 1.2s linear infinite; }
@keyframes miFlow { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.mi-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr)); gap: 0.6rem; padding: 1rem; background: var(--pale); border-radius: 12px; margin-bottom: 0.9rem; }
.mi-sheets-one { display: flex; justify-content: center; }
.mi-sheets-one .mi-pg { width: 5rem; }
.mi-pg { position: relative; aspect-ratio: 3 / 4; background: white; border: 2px solid #d6dde8; border-radius: 6px; padding: 18% 14%; display: flex; flex-direction: column; gap: 9%; overflow: hidden;
    animation: miPgIn 0.4s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--i, 0) * 30ms); transition: border-color 0.3s, transform 0.3s, background 0.3s; }
@keyframes miPgIn { from { opacity: 0; transform: translateY(8px) scale(0.9); } }
.mi-pg i { display: block; height: 7%; min-height: 3px; background: #dbe4f3; border-radius: 2px; } .mi-pg i:nth-child(2n) { width: 70%; }
.mi-pg em { position: absolute; left: 4px; bottom: 2px; font-style: normal; font-size: 0.65rem; color: #8a94a6; }
.mi-pg-now { border-color: var(--navy); transform: translateY(-3px); box-shadow: 0 6px 14px rgba(18,53,107,0.18); }
.mi-pg-now::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; background: var(--red); box-shadow: 0 0 10px rgba(217,39,53,0.6); animation: miScan 1.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -230ms); }
.mi-pg-done { border-color: #2f9e57; background: #f3faf5; }
.mi-pg-done i { background: #bfe3ca; }
.mi-pg-done::before { content: '✓'; position: absolute; right: 3px; top: 2px; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #2f9e57; color: white; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; animation: rsPop 0.45s cubic-bezier(.3,1.6,.5,1); }
.mi-meter { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.mi-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), #2f9e57); border-radius: 4px; transition: width 0.8s cubic-bezier(.3,1,.5,1); }
.mi-now-text { text-align: center; font-weight: 600; margin: 0.6rem 0 0.2rem; color: var(--ink); }
@media (max-width: 600px) { .mi-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; } .mi-node:nth-child(2) .mi-link { display: none; } .mi-node { font-size: 0.8rem; } }
@media (prefers-reduced-motion: reduce) { .mi-node.mi-now .mi-node-icon, .mi-node.mi-now .mi-link span, .mi-pg, .mi-pg-now::after, .mi-pg-done::before { animation: none; } }

/* Reservations: setup lock */
.rs-lock-card, .rs-locked { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; background: #eef3fb; border: 2px solid var(--navy); border-radius: 12px; padding: 0.85rem 1rem; margin: 0 0 1rem; }
.rs-lock-big { margin-top: 1rem; background: #f3faf5; border-color: #2f9e57; }
.rs-lock-icon { font-size: 1.8rem; line-height: 1; }
.rs-lock-text { flex: 1 1 18rem; }
.rs-lock-text p { margin: 0.25rem 0 0; font-size: 0.9rem; color: #4a5568; }
.rs-lock-text strong { color: var(--navy); font-size: 1.02rem; }
.rs-lock-warn { color: #8a5a00 !important; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.rs-lock-card .btn, .rs-unlock .btn { width: auto; margin: 0; }
.rs-unlock { display: flex; align-items: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.rs-unlock label { display: flex; flex-direction: column; font-weight: 600; font-size: 0.85rem; gap: 0.2rem; margin: 0; }
.rs-unlock input { padding: 0.4rem 0.5rem; border: 1px solid #cbd5e0; border-radius: 6px; width: 12rem; }
.rs-locked-list { margin: 0 0 1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }

/* Settings password lock */
#settings.sl-locked > :not(h2):not(#settingsLockPanel) { display: none !important; }
.sl-bar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; background: #eef3fb; border: 2px solid var(--navy); border-radius: 12px; padding: 0.75rem 1rem; margin: 0 0 1rem; }
.sl-bar.sl-open { background: #f3faf5; border-color: #2f9e57; }
.sl-bar .btn { width: auto; margin: 0; }
.sl-icon { font-size: 1.6rem; line-height: 1; }
.sl-text { flex: 1 1 18rem; font-size: 0.92rem; color: #4a5568; }
.sl-text strong { color: var(--navy); }
.sl-off { flex-basis: 100%; font-size: 0.85rem; }
.sl-off summary { cursor: pointer; color: #52606f; }
.sl-gate { max-width: 30rem; margin: 2rem auto; text-align: center; background: white; border: 2px solid var(--navy); border-radius: 16px; padding: 2rem 1.5rem; box-shadow: 0 8px 24px rgba(18,53,107,0.12); }
.sl-gate .sl-icon { font-size: 2.6rem; display: block; margin-bottom: 0.5rem; }
.sl-gate h3 { margin: 0 0 0.4rem; color: var(--navy); }
.sl-gate p { color: #4a5568; margin: 0 0 1rem; }
.sl-form { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 0.5rem; }
.sl-form input { flex: 1 1 12rem; max-width: 16rem; padding: 0.55rem 0.7rem; border: 1px solid #cbd5e0; border-radius: 8px; font: inherit; }
.sl-form .btn { width: auto; margin: 0; }
.sl-msg { flex-basis: 100%; margin: 0.5rem 0 0; font-size: 0.88rem; font-weight: 600; }
.sl-err { color: #b02a37; } .sl-ok { color: #1d6b3a; }

/* Overview: a number that has something behind it opens that page */
.stat-card.stat-go { cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s; }
.stat-card.stat-go:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(18,53,107,0.18); }
.stat-card.stat-go:hover .value, .stat-card.stat-go:focus-visible .value { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.stat-card.stat-go:focus-visible { outline: 3px solid #D92735; outline-offset: 3px; }
.stat-card.stat-go h3::after { content: ' \203A'; color: var(--red); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .stat-card.stat-go { transition: none; } .stat-card.stat-go:hover { transform: none; } }

/* Settings password lock on: buying minutes is hidden outside Settings too */
body.settings-locked .owner-only { display: none !important; }
.owner-only-note { display: none; margin: 0.25rem 0 0; font-weight: 600; }
body.settings-locked .owner-only-note { display: block; }

/* Orders: live board */
.ob-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ob-head h2 { margin: 0; }
.ob-head .btn { width: auto; margin: 0; }
.ob-tools { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }
.ob-tools[hidden] { display: none; }
.ob-tools input, .ob-tools select { padding: 0.35rem 0.55rem; border: 1px solid #cbd5e0; border-radius: 8px; font: inherit; font-size: 0.9rem; width: auto; margin: 0; }
.ob-tools input { min-width: 14rem; }
.ob-flow { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0.5rem; background: white; border: 2px solid var(--navy); border-radius: 14px; padding: 1rem 0.75rem 0.85rem; margin-bottom: 0.6rem; }
.ob-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; color: #8a94a6; }
.ob-node-icon { width: clamp(2.8rem, 6vw, 4rem); aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: clamp(1.3rem, 2.6vw, 1.9rem); background: #eef1f6; border: 3px solid #d6dde8; position: relative; z-index: 1; transition: background 0.4s, border-color 0.4s, transform 0.4s; }
.ob-count { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.05; color: #a0aec0; font-weight: 800; transition: color 0.3s; }
.ob-node-label { font-size: 0.85rem; font-weight: 600; }
.ob-node.ob-has { color: var(--ink); }
.ob-node.ob-has .ob-count { color: var(--navy); }
.ob-n-new.ob-has .ob-node-icon { background: #fff3e0; border-color: #e8590c; animation: obRing 1.6s ease-in-out infinite; }
.ob-n-preparing.ob-has .ob-node-icon { background: #eef3fb; border-color: var(--navy); }
.ob-n-ready.ob-has .ob-node-icon { background: #fff6dc; border-color: #c98a00; }
.ob-n-done.ob-has .ob-node-icon { background: #e8f5ec; border-color: #2f9e57; }
@keyframes obRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,89,12,0.45); } 50% { box-shadow: 0 0 0 12px rgba(232,89,12,0); } }
.ob-pipe { position: absolute; top: calc(clamp(2.8rem, 6vw, 4rem) / 2 - 3px); left: calc(50% + clamp(1.4rem, 3vw, 2rem) + 6px); right: calc(-50% + clamp(1.4rem, 3vw, 2rem) + 6px); height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; }
.ob-pipe i { position: absolute; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); opacity: 0; }
.ob-pipe-on i { animation: obDot 2.4s linear infinite; opacity: 1; }
.ob-pipe-on i:nth-child(2) { animation-delay: 0.8s; } .ob-pipe-on i:nth-child(3) { animation-delay: 1.6s; }
@keyframes obDot { from { left: -6px; } to { left: 100%; } }
.ob-summary { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; font-size: 0.88rem; color: #4a5568; }
.ob-summary > span { background: var(--pale); border-radius: 999px; padding: 0.3rem 0.8rem; }
.ob-summary strong { color: var(--ink); }
.ob-s-warm { background: #fff6dc !important; } .ob-s-hot { background: #fde8e8 !important; color: #8a1c24 !important; }
.ob-live { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.ob-board { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0.75rem; align-items: start; }
@media (max-width: 1024px) { .ob-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ob-board { grid-template-columns: 1fr; } .ob-flow { padding: 0.75rem 0.25rem; } .ob-node-label { font-size: 0.72rem; } }
.ob-col { background: #f4f6fa; border-radius: 12px; padding: 0.6rem; border-top: 5px solid #cbd5e0; min-height: 8rem; }
.ob-c-new { border-top-color: #e8590c; } .ob-c-preparing { border-top-color: var(--navy); } .ob-c-ready { border-top-color: #c98a00; } .ob-c-done { border-top-color: #2f9e57; }
.ob-col h3 { margin: 0.1rem 0.2rem 0.6rem; font-size: 1rem; color: var(--navy); display: flex; align-items: center; gap: 0.35rem; }
.ob-col-n { margin-left: auto; background: white; border-radius: 999px; padding: 0 0.55rem; font-size: 0.85rem; color: #4a5568; }
.ob-stack { display: flex; flex-direction: column; gap: 0.55rem; }
.ob-empty { color: #8a94a6; font-style: italic; font-size: 0.88rem; margin: 0.5rem 0.2rem; }
.ob-card { background: white; border-radius: 10px; padding: 0.65rem 0.75rem; box-shadow: 0 2px 6px rgba(18,53,107,0.1); border-left: 5px solid #cbd5e0; }
.ob-c-new .ob-card { border-left-color: #e8590c; } .ob-c-preparing .ob-card { border-left-color: var(--navy); } .ob-c-ready .ob-card { border-left-color: #c98a00; } .ob-c-done .ob-card { border-left-color: #2f9e57; opacity: 0.9; }
.ob-card.ob-in { animation: obIn 0.55s cubic-bezier(.3,1.4,.5,1); }
@keyframes obIn { from { opacity: 0; transform: translateY(-10px) scale(0.96); } }
.ob-card-top { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.ob-ref { font-size: 1.15rem; color: var(--navy); }
.ob-type { font-size: 0.78rem; color: #52606f; text-transform: capitalize; }
.ob-age { margin-left: auto; font-size: 0.8rem; font-weight: 700; color: #2f6f45; background: #e8f5ec; border-radius: 999px; padding: 0.05rem 0.5rem; }
.ob-warm .ob-age { color: #6b4a00; background: #fff6dc; }
.ob-hot .ob-age { color: white; background: #D92735; animation: obHot 1.6s ease-in-out infinite; }
@keyframes obHot { 50% { opacity: 0.7; } }
.ob-who { font-weight: 600; margin: 0.2rem 0; display: flex; gap: 0.4rem; }
.ob-total { margin-left: auto; color: #4a5568; font-weight: 600; }
.ob-items { list-style: none; margin: 0.25rem 0; padding: 0; font-size: 0.85rem; color: #374151; }
.ob-items li { padding: 0.08rem 0; border-bottom: 1px dashed #edf0f5; }
.ob-more { color: #6b7a90; font-style: italic; }
.ob-ready { font-size: 0.8rem; color: #52606f; margin-top: 0.2rem; }
.ob-actions, .ob-row-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.5rem; }
.ob-actions .btn, .ob-row-actions .btn { width: auto; margin: 0; }
.ob-go { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .ob-n-new.ob-has .ob-node-icon, .ob-pipe-on i, .ob-card.ob-in, .ob-hot .ob-age { animation: none; } }

/* Messages = visual voicemail (v3.38) */
.vm-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.25rem; }
.vm-tools { display: flex; gap: 0.5rem; align-items: center; }
.vm-tools select { padding: 0.4rem 0.6rem; border: 2px solid #e1e5e9; border-radius: 6px; font: inherit; background: white; }
.vm-tools .btn { width: auto; }
.vm-intro { color: #4a5568; font-size: 0.9rem; margin: 0 0 1rem; max-width: 60rem; }
.vm-list { display: flex; flex-direction: column; gap: 0.75rem; }
.vm-card { background: white; border: 1px solid #dde3ee; border-left: 5px solid #cbd5e0; border-radius: 12px; padding: 0.85rem 1rem; box-shadow: 0 1px 3px rgba(18,53,107,0.06); }
.vm-card.vm-new { border-left-color: var(--navy); }
.vm-card.vm-urgent.vm-new { border-left-color: var(--red); }
.vm-card.vm-done { opacity: 0.85; }
.vm-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.vm-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: transparent; flex: none; }
.vm-unheard .vm-dot { background: #2a78d6; }
.vm-name { font-size: 1.05rem; color: var(--navy); }
.vm-unheard .vm-name { font-weight: 800; }
.vm-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: 999px; padding: 0.05rem 0.55rem; background: #e7f1ff; color: #0b3d91; }
.vm-tag-urgent { background: #fde8e8; color: #8a1c24; }
.vm-tag-done { background: #e9ecef; color: #495057; }
.vm-when { margin-left: auto; font-size: 0.85rem; color: #52606f; white-space: nowrap; }
.vm-subject { margin: 0.35rem 0 0; font-weight: 600; color: #343a40; }
.vm-text { margin: 0.25rem 0 0.6rem; white-space: pre-wrap; word-wrap: break-word; color: var(--ink); }
.vm-player { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; background: var(--pale); border-radius: 999px; padding: 0.35rem 0.75rem 0.35rem 0.35rem; margin-bottom: 0.6rem; }
.vm-play { width: auto; display: inline-flex; align-items: center; gap: 0.45rem; background: var(--navy); color: white; border: none; border-radius: 999px; padding: 0.45rem 1rem 0.45rem 0.8rem; font-weight: 700; cursor: pointer; }
.vm-play:hover { background: var(--navy-light); }
.vm-play:focus-visible, .vm-whole:focus-visible, .vm-track:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.vm-icon { display: inline-block; width: 1.1em; text-align: center; font-size: 0.85rem; }
.vm-track { position: relative; flex: 1 1 8rem; min-width: 6rem; height: 8px; background: #d6deeb; border-radius: 4px; cursor: pointer; }
.vm-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--navy); border-radius: 4px; }
.vm-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; left: 0; visibility: hidden; background: var(--red); border-radius: 2px; }
.vm-time { font-size: 0.82rem; color: #4a5568; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vm-whole { width: auto; background: none; border: none; color: var(--navy); font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0.2rem 0.3rem; font-size: 0.85rem; }
.vm-player audio { display: none; }
.vm-norec { font-size: 0.85rem; color: #6b7a90; font-style: italic; margin: 0 0 0.6rem; }
.vm-note { background: #f3faf5; border-left: 3px solid #2f9e57; border-radius: 6px; padding: 0.4rem 0.7rem; font-size: 0.9rem; margin: 0 0 0.6rem; }
.vm-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.vm-actions .btn { width: auto; margin: 0; text-decoration: none; display: inline-flex; align-items: center; }
.vm-spacer { flex: 1; }
.vm-muted { font-size: 0.82rem; color: #6b7a90; }
.vm-empty { text-align: center; padding: 2.5rem 1rem; color: #6b7a90; }
.vm-empty span { font-size: 2.5rem; display: block; }
@media (max-width: 600px) {
    .vm-card { padding: 0.75rem; }
    .vm-player { border-radius: 14px; }
    .vm-track { flex-basis: 100%; order: 3; }
    .vm-spacer { display: none; }
    .vm-call { flex: 1 1 100%; justify-content: center; }
}

/* Admin -> Caller transcripts (testing tool, v3.39.0) */
.ct-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.ct-row.ct-on { border-color: #68d391; background: #f0fff4; }
.ct-name { display: flex; flex-direction: column; min-width: min(14rem, 100%); flex: 1 1 14rem; }
.ct-name span { font-size: 0.8rem; color: #4a5568; }
.ct-state { font-size: 0.9rem; flex: 1 1 10rem; }
.ct-on .ct-state { color: #276749; font-weight: 600; }
.ct-pick { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.ct-pick select { padding: 0.4rem; border: 1px solid #cbd5e0; border-radius: 6px; font: inherit; }
