.ros-public-board {
    display: block;
    width: min(100%, 560px);
    max-width: none;
    margin: 10px auto;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .045);
    font-family: inherit;
}

.ros-board-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 24px;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 11px;
}

.ros-board-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
}

.ros-public-board.is-restaurant-open .ros-board-header { color: #16763a; }
.ros-public-board.is-restaurant-open .ros-board-live-dot {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .45);
    animation: ros-board-open-pulse 1.8s ease-out infinite;
}

.ros-board-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.ros-board-column {
    min-width: 0;
    padding: 7px;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.ros-board-column.is-ready { border-color: #b8dfbe; background: #f6fcf7; }
.ros-board-column.is-completed { border-color: #dbe3ec; background: #f8fafc; }
.ros-board-column h2 {
    margin: 0 0 6px;
    overflow: hidden;
    color: #475569;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ros-board-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.ros-board-ticket {
    min-width: 46px;
    min-height: 34px;
    padding: 4px 5px;
    border: 1px solid #dde2e7;
    border-radius: 7px;
    background: #fff;
    color: #172033;
    cursor: pointer;
}

.is-ready .ros-board-ticket { border-color: #78c685; color: #176b2b; }
.is-completed .ros-board-ticket { color: #64748b; }
.ros-board-ticket span { display: block; overflow-wrap: anywhere; font-size: 15px; font-weight: 800; line-height: 1.05; letter-spacing: .02em; }
.ros-board-ticket small { display: block; max-width: 84px; margin-top: 3px; font-size: 9px; line-height: 1.15; }
.ros-board-empty { width: 100%; margin: 0; padding: 4px 2px; color: #94a3b8; font-size: 9px; line-height: 1.25; text-align: center; }
.ros-board-error { margin: 6px 0 0; color: #b91c1c; font-size: 10px; text-align: center; }

@keyframes ros-board-open-pulse {
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 480px) {
    .ros-public-board { padding: 6px; }
    .ros-board-columns { gap: 4px; }
    .ros-board-column { padding: 6px 4px; }
    .ros-board-ticket { min-width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .ros-public-board.is-restaurant-open .ros-board-live-dot { animation: none; }
}
