.tenifylite-calendar {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
}

.tenifylite-login-msg {
    padding: 20px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    text-align: center;
}

.tl-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.tl-nav {
    text-decoration: none;
    color: #1f2937;
    padding: 4px 8px;
}

.tl-nav:hover {
    background: #e5e7eb;
    border-radius: 4px;
}

.tl-grid {
    width: 100%;
    border-collapse: collapse;
}

.tl-grid th,
.tl-grid td {
    border-bottom: 1px solid #f3f4f6;
    padding: 8px;
    text-align: center;
}

.tl-grid thead th {
    background: #fcfcfd;
    font-weight: 600;
    font-size: 14px;
}

.tl-time {
    font-weight: 600;
    text-align: left;
    font-size: 13px;
}

.tl-cell {
    min-width: 120px;
}

.tl-booked {
    background: #e5f7ff;
    border: 1px solid #b3e6ff;
    border-radius: 6px;
    padding: 6px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tl-booked-names {
    flex: 1;
    font-size: 13px;
}

.tl-locked {
    color: #9ca3af;
    font-size: 18px;
}

.tl-legend {
    padding: 8px 12px;
    font-size: 13px;
    color: #4b5563;
    background: #fafafa;
}

.badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid #d1d5db;
}

.badge-free {
    background: #f0fff4;
}

.badge-booked {
    background: #e5f7ff;
}

.badge-locked {
    background: #f3f4f6;
}

.button {
    background: #111827;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.button:hover {
    opacity: .9;
}

.button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.tl-book {
    background: #10b981;
}

.tl-cancel {
    background: #ef4444;
}

.tl-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 9999;
}

.tl-modal-dialog {
    background: #fff;
    border-radius: 10px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    overflow: hidden;
}

.tl-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.tl-modal-body {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.tl-modal-foot {
    padding: 12px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.tl-close {
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.tl-close:hover {
    color: #111827;
}

.tl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tl-self {
    font-weight: 600;
}

.tl-guests {
    display: grid;
    gap: 8px;
}

.tl-guest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
}

.tl-guest-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.tl-guest-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.tl-guest-remove {
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    width: 36px;
    cursor: pointer;
}

.tl-guest-remove:hover {
    background: #e5e7eb;
}

.tl-hint {
    font-size: 12px;
    color: #6b7280;
}

.tl-member-row {
    display: flex;
    gap: 8px;
}

.tl-member-select {
    flex: 1;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.tl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 13px;
}

.tl-chip-x {
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #6366f1;
}

.tl-chip-x:hover {
    color: #4f46e5;
}

.tl-add-guest,
.tl-add-member {
    background: #6366f1;
}

.tl-add-guest:hover,
.tl-add-member:hover {
    background: #4f46e5;
}

/* Responsive */
@media (max-width: 768px) {
    .tl-toolbar {
        flex-direction: column;
        gap: 8px;
    }
    
    .tl-grid {
        font-size: 12px;
    }
    
    .tl-cell {
        min-width: 90px;
    }
    
    .tl-booked {
        flex-direction: column;
        align-items: flex-start;
    }
}