/* PEBBLE-P9-OVERNIGHT-RIBBON-2026-05-20 — Confluence #8 "while you were away"
   strip. 60px tall, sits directly below the account ribbon and above the
   segment strip. Pure gentoo-tokens; no raw hex. Modal styles ride along
   in the same file so we don't perturb wire-up-polish.css. */

.pebble-overnight-strip {
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    background: var(--gl-surface-2, var(--gl-surface));
    border-bottom: 1px solid var(--gl-border);
    font-family: var(--gl-font);
    color: var(--gl-text);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.pebble-overnight-strip[data-state="loading"] .pebble-overnight-strip-loading,
.pebble-overnight-strip[data-state="empty"] .pebble-overnight-strip-empty,
.pebble-overnight-strip[data-state="error"] .pebble-overnight-strip-empty {
    color: var(--gl-text-3);
    font-size: 12px;
    font-style: italic;
}

.pebble-overnight-strip-intro {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gl-brand-strong, var(--gl-brand));
    padding-right: 8px;
    border-right: 1px solid var(--gl-border);
    white-space: nowrap;
}

.pebble-overnight-strip-chips {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    min-width: 0;
}

.pebble-overnight-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: var(--gl-surface);
    border: 1px solid var(--gl-border);
    border-radius: 999px;
    color: var(--gl-text);
    font-family: var(--gl-font);
    font-size: 12px;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.pebble-overnight-chip:hover,
.pebble-overnight-chip:focus-visible {
    background: var(--gl-surface-hover, var(--gl-surface));
    border-color: var(--gl-brand);
    transform: translateY(-1px);
    outline: none;
}

.pebble-overnight-chip-count {
    font-weight: 700;
    color: var(--gl-brand-strong, var(--gl-brand));
    font-variant-numeric: tabular-nums;
}

.pebble-overnight-chip-label {
    color: var(--gl-text-2, var(--gl-text));
    white-space: nowrap;
}

.pebble-overnight-chip[data-category="noise_archive"] .pebble-overnight-chip-count,
.pebble-overnight-chip[data-category="newsletter_archive"] .pebble-overnight-chip-count {
    color: var(--gl-text-2);
}

.pebble-overnight-chip[data-category="meeting_book"] .pebble-overnight-chip-count {
    color: var(--gl-brand-strong, var(--gl-brand));
}

.pebble-overnight-chip[data-category="draft_pending"] .pebble-overnight-chip-count {
    color: var(--gl-p0, var(--gl-brand));
}

.pebble-overnight-strip-total {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 11px;
    color: var(--gl-text-3);
    white-space: nowrap;
}

.pebble-overnight-strip-empty,
.pebble-overnight-strip-loading {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--gl-text-3);
}

/* Modal — opened when a chip is clicked. */
.pebble-overnight-modal-root {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.pebble-overnight-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 22, 0.55);
}

.pebble-overnight-modal {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 92vw);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    background: var(--gl-surface);
    color: var(--gl-text);
    border: 1px solid var(--gl-border);
    border-radius: var(--gl-radius, 8px);
    box-shadow: var(--gl-shadow-lg, 0 16px 48px rgba(0,0,0,0.25));
    font-family: var(--gl-font);
    overflow: hidden;
}

.pebble-overnight-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gl-border);
    gap: 12px;
}

.pebble-overnight-modal-title {
    font-size: 14px;
    font-weight: 600;
}

.pebble-overnight-modal-close {
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--gl-text-2);
}

.pebble-overnight-modal-close:hover {
    color: var(--gl-text);
}

.pebble-overnight-modal-body {
    padding: 12px 16px;
    overflow-y: auto;
}

.pebble-overnight-modal-status,
.pebble-overnight-modal-empty {
    margin: 0;
    font-size: 12px;
    color: var(--gl-text-3);
}

.pebble-overnight-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pebble-overnight-modal-row {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) 3fr minmax(60px, auto);
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--gl-border);
    border-radius: 6px;
    font-size: 12px;
    align-items: baseline;
}

.pebble-overnight-modal-row-actor {
    font-weight: 600;
    color: var(--gl-brand-strong, var(--gl-brand));
    font-family: var(--gl-font-mono, monospace);
}

.pebble-overnight-modal-row-action {
    color: var(--gl-text);
}

.pebble-overnight-modal-row-time {
    color: var(--gl-text-3);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Mobile: shrink intro text and let the chip strip take the rest. */
@media (max-width: 640px) {
    .pebble-overnight-strip {
        padding: 0 10px;
        gap: 8px;
    }
    .pebble-overnight-strip-intro {
        font-size: 10px;
        padding-right: 6px;
    }
    .pebble-overnight-strip-total {
        display: none;
    }
}
