/* PEBBLE-P1-TODAY-CARD-2026-05-19 — Today summary card + Top-5 list +
   per-row Focus pill polish. Pure gentoo-tokens; no raw hex. Plays nice
   with the wire-up-polish.css `.pebble-top-card-slot` shell. */

.pebble-today-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px 12px;
    background: var(--gl-surface);
    border: 1px solid var(--gl-border);
    border-radius: var(--gl-radius, 8px);
    box-shadow: var(--gl-shadow-sm);
    font-family: var(--gl-font);
    color: var(--gl-text);
}

.pebble-today-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.pebble-today-card-wordmark {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gl-brand-strong);
}

.pebble-today-card-window {
    font-size: 11px;
    color: var(--gl-text-3);
}

.pebble-today-card-headline {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--gl-text);
    border-left: 3px solid var(--gl-brand);
    padding: 2px 0 2px 10px;
}

.pebble-today-card-sub {
    margin: 0;
    font-size: 12px;
    color: var(--gl-text-2);
    border-left: 2px solid var(--gl-p0);
    padding-left: 8px;
}

.pebble-today-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pebble-today-card-chip {
    appearance: none;
    border: 1px solid var(--gl-border-strong);
    background: var(--gl-surface);
    color: var(--gl-brand-strong);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.pebble-today-card-chip:hover {
    background: var(--gl-brand-soft);
    border-color: var(--gl-brand);
}

.pebble-today-card-chip:focus-visible {
    outline: 2px solid var(--gl-brand);
    outline-offset: 1px;
}

/* ─── Top-5 list ─────────────────────────────────────────────────────── */

.pebble-top5-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--gl-border);
}

.pebble-top5-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gl-border);
    font-size: 12px;
}

.pebble-top5-row:last-child {
    border-bottom: none;
}

.pebble-top5-row--acted {
    opacity: 0.55;
}

.pebble-top5-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.pebble-top5-sender {
    font-weight: 600;
    color: var(--gl-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pebble-top5-subject {
    color: var(--gl-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pebble-top5-chips {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
}

.pebble-top5-chip {
    appearance: none;
    border: 1px solid var(--gl-border);
    background: var(--gl-surface-2);
    color: var(--gl-text);
    border-radius: var(--gl-radius-sm, 6px);
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}

.pebble-top5-chip:hover {
    background: var(--gl-brand-soft);
    border-color: var(--gl-brand);
}

.pebble-top5-chip:focus-visible {
    outline: 2px solid var(--gl-brand);
    outline-offset: 1px;
}

.pebble-top5-empty {
    padding: 10px 0;
    font-size: 12px;
    color: var(--gl-text-3);
    font-style: italic;
    text-align: center;
}

/* ─── Card footer ────────────────────────────────────────────────────── */

.pebble-today-card-foot {
    display: flex;
    justify-content: flex-end;
}

.pebble-today-card-seeall {
    font-size: 11px;
    font-weight: 600;
    color: var(--gl-brand-strong);
    text-decoration: none;
    border-bottom: 1px dotted var(--gl-brand);
}

.pebble-today-card-seeall:hover {
    color: var(--gl-brand);
}

/* ─── Per-row Focus pill (extends focus-mode.css `.gl-focus-pill`) ────── */

.pebble-row-focus-pill.gl-focus-pill {
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    padding: 3px 8px 3px 6px;
}

.pebble-row-focus-drawer {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--gl-border);
    border-radius: var(--gl-radius-sm, 6px);
    background: var(--gl-surface-2);
}

/* ─── Mobile ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .pebble-today-card {
        padding: 10px 12px;
    }
    .pebble-top5-chips {
        gap: 2px;
    }
    .pebble-top5-chip {
        padding: 3px 6px;
        font-size: 10px;
    }
}
