:root {
    --page-bg: #f3f4f6;
    --surface: #ffffff;
    --surface-soft: #f8f9fb;
    --ink: #1f2937;
    --ink-soft: #6b7280;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

body {
    background: var(--page-bg);
    color: var(--ink);
    font-size: 0.94rem;
}

.panel-surface {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.public-board-hero {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.12), transparent 30%),
        #ffffff;
}

.public-board-hero__subtitle {
    color: #475569;
    max-width: 42rem;
    font-size: 0.95rem;
}

.soft-label {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.notification-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-counter {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 700;
}

.notification-counter.is-empty {
    display: none;
}

.notifications-menu {
    width: min(24rem, 92vw);
    overflow: hidden;
    border-radius: 1rem;
}

.notifications-menu__header {
    padding: 0.9rem 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.dropdown-notifications {
    max-height: 22rem;
    overflow-y: auto;
}

.dropdown-notification-item,
.dropdown-empty {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    border-left: 4px solid transparent;
}

.dropdown-notification-item:last-child,
.dropdown-empty:last-child {
    border-bottom: 0;
}

.dropdown-notification-item.is-unread {
    background: #f9fafb;
}

.dropdown-notification-title {
    font-size: 0.83rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.dropdown-notification-event {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink);
}

.dropdown-notification-message,
.dropdown-notification-date,
.dropdown-empty {
    color: var(--ink-soft);
    font-size: 0.77rem;
}

.notification-dismiss-button {
    color: #9ca3af;
    line-height: 1;
}

.notification-dismiss-button:hover {
    color: #111827;
}

.dropdown-notification-item--cobalt { border-left-color: #2563eb; }
.dropdown-notification-item--emerald { border-left-color: #10b981; }
.dropdown-notification-item--violet { border-left-color: #7c3aed; }
.dropdown-notification-item--amber { border-left-color: #d97706; }
.dropdown-notification-item--orange { border-left-color: #ea580c; }
.dropdown-notification-item--teal { border-left-color: #0f766e; }
.dropdown-notification-item--coral { border-left-color: #f43f5e; }
.dropdown-notification-item--sky { border-left-color: #0ea5e9; }
.dropdown-notification-item--fuchsia { border-left-color: #c026d3; }
.dropdown-notification-item--mint { border-left-color: #059669; }
.dropdown-notification-item--indigo { border-left-color: #4f46e5; }
.dropdown-notification-item--ruby { border-left-color: #dc2626; }
.dropdown-notification-item--slate { border-left-color: #64748b; }

.nav-tabs {
    border-bottom-color: var(--line);
}

.nav-tabs .nav-link {
    color: var(--ink-soft);
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding-inline: 0;
    margin-right: 1.25rem;
    background: transparent;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
    color: var(--ink);
    border-bottom-color: #111827;
    background: transparent;
}

.event-shell {
    background: #fff;
    border-radius: 1.1rem;
    padding: 2px;
}

.event-card {
    border: 3px solid var(--line-strong);
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.event-card--dropzone {
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.event-card--muted {
    background: #fbfbfc;
    opacity: 0.85;
}

.event-card__eyebrow {
    color: var(--ink-soft);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.event-card__count,
.event-card__status {
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.event-menu-button {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.event-menu-dropdown {
    width: min(18rem, 92vw);
    border-radius: 1rem;
}

.event-meta {
    display: grid;
    gap: 0.3rem;
    font-size: 0.84rem;
    color: #374151;
}

.event-description {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    color: #4b5563;
}

.event-sales-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 0.8rem;
}

.event-sales-note i {
    font-size: 0.9rem;
}

.worker-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid transparent;
    background: #f9fafb;
}

.worker-pill--draggable {
    gap: 0.45rem;
    cursor: grab;
    user-select: none;
}

.worker-pill--dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.worker-pill-wrapper {
    display: inline-flex;
}

.worker-pill-button {
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.worker-pill-button::after {
    display: none;
}

.worker-pill-menu {
    border-radius: 0.9rem;
    min-width: 12rem;
}

.selection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.status-icon-group {
    display: flex;
    gap: 0.45rem;
}

.status-icon-button {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.selection-button {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 9rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.18s ease;
    font-size: 0.84rem;
    text-align: left;
}

.selection-button--inline {
    flex-direction: row;
    align-items: center;
    min-width: auto;
    font-weight: 600;
}

.selection-button__title {
    font-weight: 600;
}

.selection-button__meta {
    color: var(--ink-soft);
    font-size: 0.75rem;
}

.btn-check:checked + .selection-button {
    box-shadow: none;
}

.selection-button:hover {
    filter: none;
}

.selection-button--neutral {
    background: #fff;
}

.event-card--cobalt { border-color: #2563eb; background: rgba(37, 99, 235, 0.10); }
.event-card--emerald { border-color: #10b981; background: rgba(16, 185, 129, 0.10); }
.event-card--violet { border-color: #7c3aed; background: rgba(124, 58, 237, 0.10); }
.event-card--amber { border-color: #d97706; background: rgba(217, 119, 6, 0.10); }
.event-card--orange { border-color: #ea580c; background: rgba(234, 88, 12, 0.10); }
.event-card--teal { border-color: #0f766e; background: rgba(15, 118, 110, 0.10); }
.event-card--coral { border-color: #f43f5e; background: rgba(244, 63, 94, 0.10); }
.event-card--sky { border-color: #0ea5e9; background: rgba(14, 165, 233, 0.10); }
.event-card--fuchsia { border-color: #c026d3; background: rgba(192, 38, 211, 0.10); }
.event-card--mint { border-color: #059669; background: rgba(5, 150, 105, 0.10); }
.event-card--indigo { border-color: #4f46e5; background: rgba(79, 70, 229, 0.10); }
.event-card--ruby { border-color: #dc2626; background: rgba(220, 38, 38, 0.10); }
.event-card--slate { border-color: #64748b; background: rgba(100, 116, 139, 0.10); }

.text-tone-cobalt { color: #2563eb !important; }
.text-tone-emerald { color: #059669 !important; }
.text-tone-violet { color: #7c3aed !important; }
.text-tone-amber { color: #b45309 !important; }
.text-tone-orange { color: #c2410c !important; }
.text-tone-teal { color: #0f766e !important; }
.text-tone-coral { color: #e11d48 !important; }
.text-tone-sky { color: #0284c7 !important; }
.text-tone-fuchsia { color: #a21caf !important; }
.text-tone-mint { color: #047857 !important; }
.text-tone-indigo { color: #4338ca !important; }
.text-tone-ruby { color: #b91c1c !important; }
.text-tone-slate { color: #475569 !important; }

.selection-button--cobalt,
.worker-pill.tone-cobalt { background: rgba(37, 99, 235, 0.09); border-color: rgba(37, 99, 235, 0.18); color: #1d4ed8; }
.selection-button--emerald,
.worker-pill.tone-emerald { background: rgba(16, 185, 129, 0.09); border-color: rgba(16, 185, 129, 0.18); color: #047857; }
.selection-button--violet,
.worker-pill.tone-violet { background: rgba(124, 58, 237, 0.09); border-color: rgba(124, 58, 237, 0.18); color: #6d28d9; }
.selection-button--amber,
.worker-pill.tone-amber { background: rgba(217, 119, 6, 0.09); border-color: rgba(217, 119, 6, 0.18); color: #b45309; }
.selection-button--orange,
.worker-pill.tone-orange { background: rgba(234, 88, 12, 0.09); border-color: rgba(234, 88, 12, 0.18); color: #c2410c; }
.selection-button--teal,
.worker-pill.tone-teal { background: rgba(15, 118, 110, 0.09); border-color: rgba(15, 118, 110, 0.18); color: #0f766e; }
.selection-button--coral,
.worker-pill.tone-coral { background: rgba(244, 63, 94, 0.09); border-color: rgba(244, 63, 94, 0.18); color: #e11d48; }
.selection-button--sky,
.worker-pill.tone-sky { background: rgba(14, 165, 233, 0.09); border-color: rgba(14, 165, 233, 0.18); color: #0284c7; }
.selection-button--fuchsia,
.worker-pill.tone-fuchsia { background: rgba(192, 38, 211, 0.09); border-color: rgba(192, 38, 211, 0.18); color: #a21caf; }
.selection-button--mint,
.worker-pill.tone-mint { background: rgba(5, 150, 105, 0.09); border-color: rgba(5, 150, 105, 0.18); color: #047857; }
.selection-button--indigo,
.worker-pill.tone-indigo { background: rgba(79, 70, 229, 0.09); border-color: rgba(79, 70, 229, 0.18); color: #4338ca; }
.selection-button--ruby,
.worker-pill.tone-ruby { background: rgba(220, 38, 38, 0.09); border-color: rgba(220, 38, 38, 0.18); color: #b91c1c; }
.selection-button--slate,
.worker-pill.tone-slate { background: rgba(100, 116, 139, 0.09); border-color: rgba(100, 116, 139, 0.18); color: #475569; }

.btn-check:checked + .selection-button--cobalt,
.selection-button--cobalt:hover { background: rgba(37, 99, 235, 0.16); border-color: rgba(37, 99, 235, 0.32); }
.btn-check:checked + .selection-button--emerald,
.selection-button--emerald:hover { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.32); }
.btn-check:checked + .selection-button--violet,
.selection-button--violet:hover { background: rgba(124, 58, 237, 0.16); border-color: rgba(124, 58, 237, 0.32); }
.btn-check:checked + .selection-button--amber,
.selection-button--amber:hover { background: rgba(217, 119, 6, 0.16); border-color: rgba(217, 119, 6, 0.32); }
.btn-check:checked + .selection-button--orange,
.selection-button--orange:hover { background: rgba(234, 88, 12, 0.16); border-color: rgba(234, 88, 12, 0.32); }
.btn-check:checked + .selection-button--teal,
.selection-button--teal:hover { background: rgba(15, 118, 110, 0.16); border-color: rgba(15, 118, 110, 0.32); }
.btn-check:checked + .selection-button--coral,
.selection-button--coral:hover { background: rgba(244, 63, 94, 0.16); border-color: rgba(244, 63, 94, 0.32); }
.btn-check:checked + .selection-button--sky,
.selection-button--sky:hover { background: rgba(14, 165, 233, 0.16); border-color: rgba(14, 165, 233, 0.32); }
.btn-check:checked + .selection-button--fuchsia,
.selection-button--fuchsia:hover { background: rgba(192, 38, 211, 0.16); border-color: rgba(192, 38, 211, 0.32); }
.btn-check:checked + .selection-button--mint,
.selection-button--mint:hover { background: rgba(5, 150, 105, 0.16); border-color: rgba(5, 150, 105, 0.32); }
.btn-check:checked + .selection-button--indigo,
.selection-button--indigo:hover { background: rgba(79, 70, 229, 0.16); border-color: rgba(79, 70, 229, 0.32); }
.btn-check:checked + .selection-button--ruby,
.selection-button--ruby:hover { background: rgba(220, 38, 38, 0.16); border-color: rgba(220, 38, 38, 0.32); }
.btn-check:checked + .selection-button--slate,
.selection-button--slate:hover { background: rgba(100, 116, 139, 0.16); border-color: rgba(100, 116, 139, 0.32); }

.btn-check:checked + .selection-button--neutral,
.selection-button--neutral:hover {
    background: rgba(17, 24, 39, 0.06);
    border-color: rgba(17, 24, 39, 0.2);
    color: #111827;
}

.legend-title {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    margin-bottom: 0.75rem;
}

.legend-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.84rem;
}

.legend-item--editable {
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0.1rem;
    border-radius: 0.75rem;
}

.legend-item__content {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.legend-edit-button {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.legend-item--editable:hover .legend-edit-button,
.legend-item--editable:focus-within .legend-edit-button {
    opacity: 1;
    pointer-events: auto;
}

.legend-item--editable:hover .legend-edit-button {
    transform: translateY(-1px);
}

.legend-color {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    display: inline-block;
    flex-shrink: 0;
}

.legend-color--cobalt { background: #2563eb; }
.legend-color--emerald { background: #10b981; }
.legend-color--violet { background: #7c3aed; }
.legend-color--amber { background: #d97706; }
.legend-color--orange { background: #ea580c; }
.legend-color--teal { background: #0f766e; }
.legend-color--coral { background: #f43f5e; }
.legend-color--sky { background: #0ea5e9; }
.legend-color--fuchsia { background: #c026d3; }
.legend-color--mint { background: #059669; }
.legend-color--indigo { background: #4f46e5; }
.legend-color--ruby { background: #dc2626; }
.legend-color--slate { background: #64748b; }

.event-dropzone-hint {
    color: var(--ink-soft);
    font-size: 0.74rem;
}

.public-board-empty {
    border: 1px dashed var(--line-strong);
    border-radius: 1rem;
    padding: 2rem 1.25rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
}

.modal-footer--split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

[data-event-dropzone].is-drag-target {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
    transform: translateY(-2px);
}

[data-event-dropzone].is-drag-target .event-dropzone-hint {
    color: #111827;
    font-weight: 700;
}

.is-loading {
    opacity: 0.65;
    pointer-events: none;
}
