/*
 * Peekopals web app: one chat's photo screen (the phone's Create photo screen with the Selfie /
 * Candid / Memory chips) and the full-screen photo viewer. Colours are the phone's roles (--md-*).
 * See server/src/main/kotlin/htmx/webApp/chat/AGENTS.md.
 */

/* ---------- photo screen ---------- */

#wa-photo-dialog .wa-dialog {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    max-height: min(820px, 92dvh);
    width: min(560px, 100%);
}
@media (max-width: 899px) {
    #wa-photo-dialog .wa-dialog { max-height: none; width: 100%; }
    /* the id rule above would keep this screen 100dvh, with Create memory behind the keys */
    html.wa-keyboard-open #wa-photo-dialog .wa-dialog { height: 100%; max-height: 100%; }
}

.wa-photo-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* only the picked kind's words show */
.wa-photo-screen[data-selected-photo-kind="SELFIE"] [data-for-photo-kind]:not([data-for-photo-kind="SELFIE"]),
.wa-photo-screen[data-selected-photo-kind="SECRET_SNAP"] [data-for-photo-kind]:not([data-for-photo-kind="SECRET_SNAP"]),
.wa-photo-screen[data-selected-photo-kind="MEMORY_WITH_USER"] [data-for-photo-kind]:not([data-for-photo-kind="MEMORY_WITH_USER"]) {
    display: none !important;
}

.wa-photo-screen-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(8px, env(safe-area-inset-top)) 8px 0 16px;
}
.wa-round-close-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--md-surface-container-high);
    color: var(--md-on-surface);
    cursor: pointer;
}
.wa-round-close-button:hover { background: var(--md-surface-container-highest); }

.wa-photo-screen-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wa-photo-screen-heading { display: flex; flex-direction: column; gap: 4px; }
.wa-photo-screen-title { margin: 0; font-size: calc(24px * var(--wa-text-scale, 1)); line-height: calc(32px * var(--wa-text-scale, 1)); font-weight: 600; color: var(--md-on-surface); }
.wa-photo-screen-subtitle { margin: 0; font-size: calc(12px * var(--wa-text-scale, 1)); line-height: calc(16px * var(--wa-text-scale, 1)); color: var(--md-on-surface-variant); }

/* the phone's CurrentActivitySection */
.wa-activity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 24px;
    background: var(--md-surface);
    border: 1px solid var(--md-outline-variant);
}
.wa-activity-card-photo-column { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wa-activity-card-time {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--md-surface-container-high);
    font-size: calc(11px * var(--wa-text-scale, 1));
    font-weight: 500;
    color: var(--md-on-surface);
    white-space: nowrap;
}
.wa-activity-card-photo-button { padding: 0; border: none; background: none; cursor: pointer; border-radius: 16px; }
.wa-activity-card-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; display: block; }
.wa-activity-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.wa-activity-card-title { margin: 0; display: flex; align-items: center; gap: 4px; font-size: calc(16px * var(--wa-text-scale, 1)); font-weight: 500; line-height: calc(24px * var(--wa-text-scale, 1)); color: var(--md-on-surface); }
.wa-activity-card-bolt .wa-icon svg, .wa-activity-card-bolt svg { width: 16px; height: 16px; }
.wa-activity-card-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--md-surface-container-high);
    font-size: calc(12px * var(--wa-text-scale, 1));
    color: var(--md-on-surface);
}
.wa-activity-card-chip svg { width: 14px; height: 14px; }

/* Selfie / Candid / With you: the phone's PhotoKindPictureTile */
.wa-photo-kind-tiles { display: flex; gap: 8px; }
.wa-photo-kind-tile {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 0.72;
    overflow: hidden;
    border-radius: 16px;
    background: var(--md-surface-container-high);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
/* the border sits on top of the photo, like the phone's border modifier */
.wa-photo-kind-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--md-outline-variant);
    pointer-events: none;
}
.wa-photo-kind-tile-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* a dark veil, not transparency, dims the tiles that aren't picked */
.wa-photo-kind-tile-veil { position: absolute; inset: 0; background: var(--md-scrim); opacity: 0.75; transition: opacity 160ms ease; }
.wa-photo-kind-tile-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--md-scrim) 100%); }
.wa-photo-kind-tile-name {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 8px;
    text-align: center;
    color: var(--wa-on-photo);
    font-size: calc(14px * var(--wa-text-scale, 1));
    line-height: calc(20px * var(--wa-text-scale, 1));
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.wa-photo-kind-tile-check {
    position: absolute;
    top: 6px;
    right: 6px;
    display: none;
    border-radius: 50%;
    background: var(--md-on-secondary);
    color: var(--md-secondary);
    line-height: 0;
}
.wa-photo-kind-tile-check svg { width: 24px; height: 24px; display: block; }
.wa-photo-kind-tile-jobs {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--md-surface-container-highest);
    border: 1px solid var(--md-outline-variant);
    color: var(--md-on-surface);
}
.wa-photo-kind-tile:has(input:checked)::after,
.wa-photo-kind-tile.is-selected::after { border: 2px solid var(--md-secondary); }
.wa-photo-kind-tile:has(input:checked) .wa-photo-kind-tile-veil,
.wa-photo-kind-tile.is-selected .wa-photo-kind-tile-veil { opacity: 0; }
.wa-photo-kind-tile:has(input:checked) .wa-photo-kind-tile-check,
.wa-photo-kind-tile.is-selected .wa-photo-kind-tile-check { display: block; }
.wa-photo-kind-tile:has(input:focus-visible) { outline: 2px solid var(--md-on-surface); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .wa-photo-kind-tile-veil { transition: none; }
}

.wa-photo-screen-face-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: var(--md-surface-container-high);
}
.wa-photo-screen-face-note p { flex: 1; margin: 0; font-size: calc(12px * var(--wa-text-scale, 1)); line-height: calc(16px * var(--wa-text-scale, 1)); color: var(--md-on-surface); }
.wa-button--secondary { background: var(--md-secondary); border-color: var(--md-secondary); color: var(--md-on-secondary); }

/* the phone's outlined field with its floating label and the clear (backspace) icon */
.wa-photo-ask-field { position: relative; }
.wa-photo-ask-label {
    position: absolute;
    top: -8px;
    left: 12px;
    padding: 0 4px;
    font-size: calc(12px * var(--wa-text-scale, 1));
    color: var(--md-on-surface-variant);
    background: var(--md-background);
}
.wa-photo-ask-text {
    width: 100%;
    min-height: 120px;
    max-height: 180px;
    resize: none;
    padding: 16px 44px 16px 16px;
    border-radius: 12px;
    border: 1px solid var(--md-outline);
    background: transparent;
    color: var(--md-on-surface);
    font: inherit;
    font-size: calc(14px * var(--wa-text-scale, 1));
    line-height: calc(20px * var(--wa-text-scale, 1));
}
.wa-photo-ask-text:focus { outline: none; border: 2px solid var(--md-primary); padding: 15px 43px 15px 15px; }
.wa-photo-ask-text::placeholder { color: var(--md-on-surface-variant); opacity: 0.8; }
.wa-photo-ask-clear {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--md-on-surface-variant);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.wa-photo-ask-clear svg { width: 18px; height: 18px; }
.wa-photo-ask-clear:disabled { opacity: 0.35; cursor: default; }

/* "Add details (optional)": the phone's PhotoAskDetailsFoldRow and the field folded under it */
.wa-photo-ask-details { display: flex; flex-direction: column; }
/* the picked kind's price ("🪙 4") above the details row, always visible */
.wa-photo-screen-tip {
    margin: 0;
    text-align: center;
    color: var(--md-on-surface-variant);
    font-size: calc(14px * var(--wa-text-scale, 1));
    line-height: 1.45;
}
.wa-photo-screen-tip .wa-coin-price { white-space: nowrap; }
.wa-photo-ask-details-row {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 16px;
    background: var(--md-surface-container-low);
    color: var(--md-on-surface);
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.wa-photo-ask-details-row:focus-visible { outline: none; box-shadow: var(--wa-focus-ring); }
.wa-photo-ask-details-edit-icon { color: var(--md-on-surface-variant); line-height: 0; }
.wa-photo-ask-details-edit-icon svg { width: 18px; height: 18px; }
.wa-photo-ask-details-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-photo-ask-details-label { font-size: calc(14px * var(--wa-text-scale, 1)); line-height: calc(20px * var(--wa-text-scale, 1)); }
.wa-photo-ask-details-preview {
    font-size: calc(12px * var(--wa-text-scale, 1));
    line-height: calc(16px * var(--wa-text-scale, 1));
    color: var(--md-on-surface-variant);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wa-photo-ask-details-preview[hidden] { display: none; }
.wa-photo-ask-details-chevron { color: var(--md-on-surface-variant); line-height: 0; transition: transform 200ms ease; }
.wa-photo-ask-details-chevron svg { width: 24px; height: 24px; }
.wa-photo-ask-details.is-open .wa-photo-ask-details-chevron { transform: rotate(180deg); }
/* the phone's expandVertically + fadeIn: the body grows from 0 rows to its height */
.wa-photo-ask-details-body {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 220ms ease, opacity 220ms ease;
}
.wa-photo-ask-details.is-open .wa-photo-ask-details-body { grid-template-rows: 1fr; opacity: 1; }
/* the field's floating label pokes 8px above it, so the top room sits inside the clipped row */
.wa-photo-ask-details-body-inner { min-height: 0; overflow: hidden; padding-top: 16px; }
@media (prefers-reduced-motion: reduce) {
    .wa-photo-ask-details-body, .wa-photo-ask-details-chevron { transition: none; }
}

.wa-photo-screen-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--md-outline-variant);
    padding: 8px 16px max(12px, var(--wa-bottom-inset));
    background: var(--md-background);
}
.wa-photo-screen-capture { width: 100%; min-height: 52px; gap: 8px; font-size: calc(15px * var(--wa-text-scale, 1)); }
/* one line that shortens with an ellipsis, like the phone's button */
.wa-photo-screen-capture-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-photo-screen-capture > .wa-icon { flex: none; }

/* "are you sure you want to cancel this photo request?" */
.wa-photo-screen-discard {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 5;
}
.wa-photo-screen-discard[hidden] { display: none; }
.wa-photo-screen-discard-card {
    width: 100%;
    max-width: 560px;
    padding: 20px 16px max(16px, var(--wa-bottom-inset));
    border-radius: 24px 24px 0 0;
    background: var(--md-background);
}
.wa-photo-screen-discard-title { margin: 0 0 16px; font-size: calc(18px * var(--wa-text-scale, 1)); font-weight: 600; text-align: center; }

/* the capture flash (white edges, like the phone's CameraCaptureFlash) */
.wa-photo-screen-flash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    box-shadow: inset 0 0 60px 24px #fff;
    z-index: 6;
}
.wa-photo-screen--flash .wa-photo-screen-flash { animation: wa-photo-screen-flash 520ms ease-out; }
@keyframes wa-photo-screen-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .wa-photo-screen--flash .wa-photo-screen-flash { animation: none; }
}

/* memory photos permission sheet */
.wa-memory-permission { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 8px; text-align: center; }
.wa-memory-permission-faces { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.wa-memory-permission-face {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--md-outline-variant);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--md-surface-container-high);
}
/* the phone's Outlined.Favorite heart in a yellow circle between the two faces */
.wa-memory-permission-heart { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--md-secondary); color: var(--md-on-secondary); }
.wa-memory-permission-heart svg { width: 20px; height: 20px; }
.wa-memory-permission-title { margin: 0; font-size: calc(24px * var(--wa-text-scale, 1)); line-height: calc(32px * var(--wa-text-scale, 1)); font-weight: 600; }
.wa-memory-permission-body { margin: 0 0 16px; font-size: calc(14px * var(--wa-text-scale, 1)); color: var(--md-on-surface-variant); }
.wa-memory-permission-points { display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; margin-bottom: 16px; }
.wa-memory-permission-point { display: flex; align-items: center; gap: 12px; font-size: calc(14px * var(--wa-text-scale, 1)); color: var(--md-on-surface); }
.wa-memory-permission-allow { width: 100%; min-height: 48px; }

/* ---------- full-screen photo viewer ---------- */

/* the chat's viewer only: the activity panel's viewer (its strip is marked data-viewer-track,
   web-app-pal-activity.css) shares the class names, and these rules hid its "Send message…" box behind the photo */
.wa-photo-viewer:not(:has(> [data-viewer-track])) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    animation: wa-photo-viewer-fade-in 200ms ease-out;
}
@keyframes wa-photo-viewer-fade-in { from { background: transparent; opacity: 0; } }
.wa-photo-viewer-track:not([data-viewer-track]) {
    position: absolute;
    inset: 0;
    display: flex;
    will-change: transform;
}
.wa-photo-viewer-page {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.wa-photo-viewer-page img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    transition: transform 200ms ease-out;
}
/* a double-click zoom. A pinch writes its own transform on the image, which replaces this one while the fingers are down. */
.wa-photo-viewer-page img.is-zoomed { transform: scale(2); cursor: zoom-out; }
/* the buttons are the round outlined .wa-floating-icon-button, like the activity panel's viewer (Anudeep, 2026-10-28) */
.wa-photo-viewer-chrome-button {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    z-index: 2;
}
.wa-photo-viewer-close { right: 16px; }
.wa-photo-viewer-download {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    left: 16px;
    z-index: 3;
}
.wa-photo-viewer-download[hidden] { display: none; }
.wa-photo-viewer-candid { left: 68px; }
.wa-photo-viewer-candid[hidden] { display: none; }
.wa-photo-viewer-step {
    position: absolute;
    top: 50%;
    margin-top: -22px;
    display: none;
    z-index: 2;
}
.wa-photo-viewer-step--previous { left: 16px; }
.wa-photo-viewer-step--next { right: 16px; }
/* every round button on a photo viewer (chat and activity panel; the page behind is always black):
   a filled circle with a clear outline, so the X and both arrows show their touch area in either theme (Anudeep, 2026-10-28) */
.wa-photo-viewer .wa-floating-icon-button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(40, 40, 40, 0.9);
    color: #FFFFFF;
}
.wa-photo-viewer .wa-floating-icon-button:hover { background: rgba(64, 64, 64, 0.95); }
.wa-photo-viewer .wa-floating-icon-button svg { width: 22px; height: 22px; }
.wa-photo-viewer-step[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) {
    .wa-photo-viewer-step { display: inline-flex; }
}
.wa-photo-viewer-counter {
    position: absolute;
    bottom: max(16px, var(--wa-bottom-inset));
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: calc(12px * var(--wa-text-scale, 1));
    z-index: 2;
}
.wa-photo-viewer-counter[hidden] { display: none; }

/* a candid photo's eye-off chip on the bubble and the "they will not know" sheet */
.wa-photo-candid-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.wa-photo-candid-chip svg { width: 16px; height: 16px; }
.wa-candid-info { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-bottom: 8px; }
.wa-candid-info-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--md-inverse-on-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.wa-candid-info-title { margin: 0; font-size: calc(22px * var(--wa-text-scale, 1)); font-weight: 600; }
.wa-candid-info-body { margin: 0 0 16px; font-size: calc(14px * var(--wa-text-scale, 1)); color: var(--md-on-surface-variant); }
.wa-candid-info .wa-button { width: 100%; min-height: 48px; }

/* ---------- photo bubbles (finished, locked, being made, refused) ---------- */

button.wa-photo-link {
    position: relative;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    width: auto;
}
button.wa-photo-link .wa-bubble-gif { margin-bottom: 0; }

/* the phone's stand-in: the pal's own picture, heavily blurred, in a 9:16 frame */
.wa-photo-stand-in {
    position: relative;
    width: min(240px, 60vw);
    aspect-ratio: 9 / 16;
    margin: 2px -8px 6px;
    border-radius: 14px;
    overflow: clip;
    background: var(--md-surface-container-high);
}
.wa-photo-stand-in-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(28px);
    transform: scale(1.15);
    pointer-events: none;
    user-select: none;
}
.wa-photo-stand-in-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
}
/* a locked still sits flush in the bubble, frosted like the phone, with no lock drawn on the photo.
   With no caption the bubble would shrink to "Unlock". The floor is the "still being made" bubble:
   that photo is min(240px, 60vw), flush in its bubble, plus the 1px border on each side. */
.wa-thread-page .wa-bubble:has(> .wa-photo-stand-in--locked) {
    min-width: calc(min(240px, 60vw) + 2px);
}
.wa-thread-page .wa-photo-stand-in--locked {
    width: calc(100% + 24px);
    min-width: min(240px, 60vw);
    max-width: none;
    margin: -8px -12px 0;
    border-radius: 15px 15px 0 0;
}
.wa-message--continues-cluster .wa-photo-stand-in--locked { border-top-left-radius: 3px; }
.wa-photo-stand-in--locked .wa-photo-stand-in-overlay {
    background: color-mix(in srgb, var(--md-surface-container-low) 55%, transparent);
}
.wa-photo-overlay-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: calc(11px * var(--wa-text-scale, 1));
    font-weight: 500;
}
.wa-photo-overlay-chip svg { width: 14px; height: 14px; }
.wa-photo-overlay-reason { margin: 0; font-size: calc(12px * var(--wa-text-scale, 1)); line-height: calc(16px * var(--wa-text-scale, 1)); color: #fff; }

/* the phone's warm strip under the time: a hairline, then a centred lock and "Unlock" with the coin price */
.wa-media-unlock-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% + 24px);
    min-height: 48px;
    margin: 6px -12px -8px;
    padding: 12px;
    border: 0;
    border-top: 1px solid var(--md-on-background, #555555);
    border-radius: 0 0 15px 3px;
    background: color-mix(in srgb, var(--wa-pal-bubble) var(--wa-chat-fill-strength, 100%), transparent);
    color: var(--md-on-surface);
    font: inherit;
    font-size: calc(16px * var(--wa-text-scale, 1));
    line-height: calc(20px * var(--wa-text-scale, 1));
    font-weight: 600;
    cursor: pointer;
}
.wa-media-unlock-strip-label { display: inline-flex; align-items: center; gap: 8px; }
.wa-media-unlock-strip svg { width: 20px; height: 20px; }
.wa-media-unlock-strip .wa-coin { width: 16px; height: 16px; }
/* the phone's circular progress in place of the lock: a 20px primary arc, 2px stroke, no track */
.wa-media-unlock-strip.is-unlocking { cursor: default; }
.wa-media-unlock-strip .wa-media-unlock-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--md-primary);
    border-right-color: transparent;
}

/* the phone fits the whole still in a frame of its own shape (never cropped), at most ~55% of the screen tall */
.wa-thread-page .wa-photo {
    width: auto;
    max-width: min(280px, 100%);
    max-height: 55vh;
    object-fit: contain;
}
/* an unlocked still is the top of the bubble: the bubble's own top corners curve it, and its bottom stays square where the words start */
.wa-thread-page .wa-bubble:has(> .wa-photo-frame) {
    padding: 0 0 4px;
    overflow: clip;
}
.wa-thread-page .wa-bubble:has(> .wa-photo-frame) > .wa-quote { margin: 8px 12px 0; }
.wa-thread-page .wa-bubble:has(> .wa-photo-frame) .wa-photo-frame,
.wa-thread-page .wa-bubble:has(> .wa-photo-frame) :is(button, a).wa-photo-link {
    width: 100%;
    margin: 0;
    display: block;
}
.wa-thread-page .wa-bubble:has(> .wa-photo-frame) .wa-photo {
    width: 100%;
    max-width: none;
    border-radius: 0;
}
.wa-thread-page .wa-bubble:has(> .wa-photo-frame) > .wa-bubble-text { padding: 8px 12px 0; }
.wa-thread-page .wa-bubble:has(> .wa-photo-frame) > .wa-bubble-meta { margin-top: 0; padding: 2px 12px 2px; }
/* a photo still being made (or one the filter refused) sits flush the same way: the blurred stand-in is the top of the
   bubble, curved only by the bubble's own corners, with the words under it, so it keeps the finished photo's shape */
.wa-thread-page .wa-bubble:has(> .wa-photo-stand-in:not(.wa-photo-stand-in--locked)) {
    padding: 0 0 4px;
    overflow: clip;
}
.wa-thread-page .wa-bubble:has(> .wa-photo-stand-in:not(.wa-photo-stand-in--locked)) > .wa-quote { margin: 8px 12px 0; }
.wa-thread-page .wa-bubble > .wa-photo-stand-in:not(.wa-photo-stand-in--locked) {
    display: block;
    margin: 0;
    border-radius: 0;
}
.wa-thread-page .wa-bubble:has(> .wa-photo-stand-in:not(.wa-photo-stand-in--locked)) > .wa-bubble-text { padding: 8px 12px 0; }
.wa-thread-page .wa-bubble:has(> .wa-photo-stand-in:not(.wa-photo-stand-in--locked)) > .wa-bubble-meta { margin-top: 0; padding: 2px 12px 2px; }

/* ---------- chat screen design pass (the phone's ChatScreen) ---------- */

/* a day line above the first message of each day (the phone's DateSeparator), in the 1:1 and group
   chats. It scrolls with the list; the floating pill under the header shows the topmost message's day */
.wa-thread-page[data-open-character-id] .wa-thread .wa-day-separator,
.wa-thread-page[data-open-group-character-set-key] .wa-thread .wa-day-separator {
    position: static;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 16px 16px;
}
.wa-thread-page[data-open-character-id] .wa-thread .wa-day-separator::before,
.wa-thread-page[data-open-character-id] .wa-thread .wa-day-separator::after,
.wa-thread-page[data-open-group-character-set-key] .wa-thread .wa-day-separator::before,
.wa-thread-page[data-open-group-character-set-key] .wa-thread .wa-day-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: color-mix(in srgb, var(--md-outline-variant) 40%, transparent);
}
.wa-sticky-date-pill {
    position: absolute;
    top: calc(max(8px, env(safe-area-inset-top)) + 56px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--md-surface-container);
    color: var(--md-on-surface-variant);
    font-size: calc(11px * var(--wa-text-scale, 1));
    font-weight: 500;
    line-height: calc(16px * var(--wa-text-scale, 1));
    pointer-events: none;
    transition: opacity 160ms ease-out;
}
.wa-sticky-date-pill[hidden] { display: block; opacity: 0; visibility: hidden; }

/* the phone's round "jump to newest" button with the yellow dot for unseen pal messages */
.wa-scroll-to-newest {
    position: absolute;
    right: 16px;
    bottom: 96px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--md-outline-variant);
    background: var(--md-surface-container-high);
    color: var(--md-on-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--wa-chat-shadow-small);
    cursor: pointer;
}
.wa-scroll-to-newest[hidden] { display: none; }
.wa-scroll-to-newest-dot {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--md-secondary);
}
.wa-scroll-to-newest-dot[hidden] { display: none; }
@media (min-width: 900px) {
    .wa-scroll-to-newest { right: max(16px, calc(50% - 380px + 16px)); }
}

/*
 * The waiting row of a chat (the phone's ChatPresenceBlock): the pal's round clip, then the stage
 * animation in a fixed 64 x 12 px slot, with no bubble and no stage word. Each stage copies the
 * phone's own animation, size, colour and timing (ChatScreenComponents.kt): reading fills three
 * bars left to right, thinking hops the dots up, typing presses them like keys. A 1:1 row carries
 * data-presence-stage; group rows have none and keep their typing bubble. web-app.js keeps the clip
 * playing and cross-fades a stage change; the slide-in below is the phone's TYPING_INDICATOR_ENTER.
 */
.wa-thread-page .wa-typing-row { align-items: center; padding: 4px 16px; }
.wa-thread-page .wa-typing-row .wa-typing-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.wa-presence-clip {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--md-outline);
    flex: none;
}
.wa-thread-page .wa-typing-bubble { padding: 8px 12px; }

/* the slot every stage shares, so a stage change never moves the first dot; a row without a clip gets the same bare slot */
.wa-thread-page .wa-typing-row[data-presence-stage] :is(.wa-presence-indicator, .wa-typing-bubble) {
    position: relative;
    display: flex;
    align-items: center;
    width: 64px;
    height: 12px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
/* three 8 px marks, 4 px apart, resting on the bottom of a 12 px row (the thinking hop uses the headroom) */
.wa-thread-page .wa-typing-row[data-presence-stage] .wa-typing-dots {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    width: 64px;
    height: 12px;
}
.wa-thread-page .wa-typing-row[data-presence-stage] .wa-typing-dots > span {
    flex: none;
    width: 8px;
    height: var(--wa-presence-mark-height, 8px);
    border-radius: 999px;
    background: var(--md-on-surface-variant);
}
.wa-thread-page .wa-typing-row[data-presence-stage] .wa-typing-dots > span:nth-child(1) { animation: var(--wa-presence-first-mark-animation, none); }
.wa-thread-page .wa-typing-row[data-presence-stage] .wa-typing-dots > span:nth-child(2) { animation: var(--wa-presence-second-mark-animation, none); }
.wa-thread-page .wa-typing-row[data-presence-stage] .wa-typing-dots > span:nth-child(3) { animation: var(--wa-presence-third-mark-animation, none); }

/*
 * Which stage a group of marks draws: its row's stage, or the stage it had while it lifts away.
 * The phone delays each dot 0 / 150 / 300 ms inside a reversing tween, so the delay repeats on
 * every pass and each dot has its own loop length (hold, ease in, ease back, hold), all peaking
 * at 50%. Thinking and typing ease with FastOutSlowIn and back along the same curve reversed.
 */
.wa-typing-row[data-presence-stage="TYPING"] .wa-typing-dots:not([data-leaving-presence-stage]),
.wa-typing-dots[data-leaving-presence-stage="TYPING"] {
    --wa-presence-first-mark-animation: wa-presence-typing-press-first-dot 900ms linear infinite;
    --wa-presence-second-mark-animation: wa-presence-typing-press-second-dot 1200ms linear infinite;
    --wa-presence-third-mark-animation: wa-presence-typing-press-third-dot 1500ms linear infinite;
}
.wa-typing-row[data-presence-stage="THINKING"] .wa-typing-dots:not([data-leaving-presence-stage]),
.wa-typing-dots[data-leaving-presence-stage="THINKING"] {
    --wa-presence-first-mark-animation: wa-presence-thinking-hop-first-dot 1200ms linear infinite;
    --wa-presence-second-mark-animation: wa-presence-thinking-hop-second-dot 1500ms linear infinite;
    --wa-presence-third-mark-animation: wa-presence-thinking-hop-third-dot 1800ms linear infinite;
}
/* reading draws 8 x 12 px bars that light one after another and stay lit, then all dim together */
.wa-typing-row[data-presence-stage="READING"] .wa-typing-dots:not([data-leaving-presence-stage]),
.wa-typing-dots[data-leaving-presence-stage="READING"] {
    --wa-presence-mark-height: 12px;
    --wa-presence-first-mark-animation: wa-presence-reading-fill-first-bar 1200ms linear infinite;
    --wa-presence-second-mark-animation: wa-presence-reading-fill-second-bar 1200ms linear infinite;
    --wa-presence-third-mark-animation: wa-presence-reading-fill-third-bar 1200ms linear infinite;
}
@keyframes wa-presence-typing-press-first-dot {
    0% { transform: scale(1); opacity: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    50% { transform: scale(0.55); opacity: 0.45; animation-timing-function: cubic-bezier(0.8, 0, 0.6, 1); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes wa-presence-typing-press-second-dot {
    0%, 12.5% { transform: scale(1); opacity: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    50% { transform: scale(0.55); opacity: 0.45; animation-timing-function: cubic-bezier(0.8, 0, 0.6, 1); }
    87.5%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes wa-presence-typing-press-third-dot {
    0%, 20% { transform: scale(1); opacity: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    50% { transform: scale(0.55); opacity: 0.45; animation-timing-function: cubic-bezier(0.8, 0, 0.6, 1); }
    80%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes wa-presence-thinking-hop-first-dot {
    0% { transform: translateY(0); opacity: 0.3; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    50% { transform: translateY(-4px); opacity: 1; animation-timing-function: cubic-bezier(0.8, 0, 0.6, 1); }
    100% { transform: translateY(0); opacity: 0.3; }
}
@keyframes wa-presence-thinking-hop-second-dot {
    0%, 10% { transform: translateY(0); opacity: 0.3; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    50% { transform: translateY(-4px); opacity: 1; animation-timing-function: cubic-bezier(0.8, 0, 0.6, 1); }
    90%, 100% { transform: translateY(0); opacity: 0.3; }
}
@keyframes wa-presence-thinking-hop-third-dot {
    0%, 16.667% { transform: translateY(0); opacity: 0.3; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
    50% { transform: translateY(-4px); opacity: 1; animation-timing-function: cubic-bezier(0.8, 0, 0.6, 1); }
    83.333%, 100% { transform: translateY(0); opacity: 0.3; }
}
@keyframes wa-presence-reading-fill-first-bar {
    0% { opacity: 0.3; }
    16.667%, 75% { opacity: 1; }
    91.667%, 100% { opacity: 0.3; }
}
@keyframes wa-presence-reading-fill-second-bar {
    0%, 25% { opacity: 0.3; }
    41.667%, 75% { opacity: 1; }
    91.667%, 100% { opacity: 0.3; }
}
@keyframes wa-presence-reading-fill-third-bar {
    0%, 50% { opacity: 0.3; }
    66.667%, 75% { opacity: 1; }
    91.667%, 100% { opacity: 0.3; }
}

/* a stage change (220 ms): the new animation rises in from just below, the old one lifts away a touch larger */
.wa-thread-page .wa-typing-row[data-presence-stage] .wa-typing-dots--arriving { animation: wa-presence-stage-arrive 220ms cubic-bezier(0.4, 0, 0.2, 1) both; }
.wa-thread-page .wa-typing-row[data-presence-stage] .wa-typing-dots--leaving {
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: wa-presence-stage-leave 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes wa-presence-stage-arrive { from { transform: translateY(50%) scale(0.8); opacity: 0; } }
@keyframes wa-presence-stage-leave { to { transform: translateY(-50%) scale(1.2); opacity: 0; } }

/* opening: the clip and the marks slide up from the row's bottom edge (240 ms) while fading in (200 ms) */
.wa-thread-page .wa-typing-row[data-presence-stage] { --wa-presence-row-height: 20px; overflow: hidden; }
.wa-thread-page .wa-typing-row[data-presence-stage]:has(.wa-presence-clip) { --wa-presence-row-height: 40px; }
.wa-thread-page .wa-typing-row--visible[data-presence-stage]:not(.wa-typing-row--already-shown) > * {
    animation:
        wa-presence-row-slide-in 240ms cubic-bezier(0.4, 0, 0.2, 1),
        wa-presence-row-fade-in 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes wa-presence-row-slide-in { from { transform: translateY(var(--wa-presence-row-height)); } }
@keyframes wa-presence-row-fade-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .wa-typing-row .wa-typing-dots span { animation: none !important; opacity: 0.7; }
    .wa-thread-page .wa-typing-row[data-presence-stage] > *,
    .wa-thread-page .wa-typing-row[data-presence-stage] .wa-typing-dots { animation: none !important; }
    .wa-thread-page .wa-typing-row[data-presence-stage] .wa-typing-dots--leaving { display: none; }
}

/* ==================== chat media parity (w3-chat-media) ==================== */

/* the photo send screen is black in both themes, like the phone's (its chrome uses the phone's dark colours) */
:root {
    --wa-photo-send-chrome-surface: #1C1C1EE6;
    --wa-photo-send-round-button-surface: #383838;
    --wa-photo-send-on-chrome: #FFFFFF;
}

/* top row: rotate (stills only) | the price chip | close */
.wa-photo-send-top-bar { display: flex; align-items: center; gap: 8px; padding: 6px; }
.wa-photo-send-top-side { flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
.wa-photo-send-top-side--end { justify-content: flex-end; }
.wa-photo-send-rotate-buttons { display: flex; gap: 16px; }
.wa-photo-send-rotate-buttons[hidden] { display: none; }
.wa-photo-send-round-button {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--md-outline-variant);
    background: var(--wa-photo-send-round-button-surface);
    color: var(--wa-photo-send-on-chrome);
    cursor: pointer;
}
.wa-photo-send-round-button .wa-icon svg { width: 20px; height: 20px; }
.wa-photo-send-round-button:focus-visible,
.wa-photo-send-price-chip:focus-visible { outline: 2px solid var(--wa-focus-ring, var(--md-primary)); outline-offset: 2px; }
.wa-photo-send-price-chip {
    flex: none;
    height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--wa-photo-send-chrome-surface);
    color: var(--wa-photo-send-on-chrome);
    font: inherit;
    font-size: calc(14px * var(--wa-text-scale, 1));
    font-weight: 500;
    cursor: pointer;
}
.wa-photo-send-price-chip .wa-icon svg { width: 20px; height: 20px; }
.wa-photo-send-price-chip .wa-coin-price { display: inline-flex; align-items: center; gap: 4px; }
/* the preview turns with the rotate buttons (baked into the file only when it is sent) */
.wa-media-panel--photo .wa-media-panel-photo { transform-origin: center; }
/* the caption field is a solid dark pill, like the phone's */
.wa-media-panel--photo .wa-media-panel-caption { background: var(--wa-photo-send-chrome-surface); border-color: transparent; border-radius: 24px; }

/* "Why this photo costs coins": the balance pill, a warm card with the info disc and the price line, "Got it" */
.wa-photo-send-cost-info { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 8px 0 8px; }
.wa-photo-send-cost-info-balance[hidden] { display: none; }
.wa-photo-send-cost-info-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 24px;
    background: color-mix(in srgb, var(--md-secondary-container) 18%, var(--md-surface-container-low, var(--md-background)));
    text-align: center;
}
.wa-photo-send-cost-info-disc {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container, var(--md-on-secondary));
}
.wa-photo-send-cost-info-text { margin: 0; font-size: calc(16px * var(--wa-text-scale, 1)); font-weight: 500; }
.wa-photo-send-cost-info .wa-button { width: 100%; min-height: 48px; }

/* a photo bubble's corner chips (the phone's PhotoBubbleCornerIcon): candid eye-off top left, "kept safe" shield top right */
.wa-photo-frame { position: relative; width: fit-content; max-width: 100%; }
.wa-photo-sensitive { position: relative; }
.wa-photo-corner-chip,
.wa-photo-candid-chip.wa-photo-corner-chip {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--md-on-surface);
    color: var(--md-background);
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
}
.wa-photo-corner-chip--start { left: 0; border-radius: 14px 0 12px 0; }
.wa-photo-corner-chip--end { right: 0; left: auto; border-radius: 0 14px 0 12px; }
.wa-photo-corner-chip .wa-icon svg { width: 24px; height: 24px; }
.wa-photo-stand-in .wa-photo-corner-chip { z-index: 3; }
.wa-photo-kept-safe-info { position: relative; padding-top: 32px; }

/* a paid photo still being made: the spinner and the phone's "ready in a couple of minutes" line */
.wa-photo-being-made {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--md-on-surface) 45%, transparent);
}
.wa-photo-being-made .wa-spinner { width: 20px; height: 20px; border-color: color-mix(in srgb, var(--md-background) 35%, transparent); border-top-color: var(--md-background); }
.wa-photo-being-made-helper { margin: 0; font-size: calc(12px * var(--wa-text-scale, 1)); line-height: 1.35; color: var(--md-background); text-align: center; }

/* a voice note still being made keeps its player row (spinner on the round button) and says when it will be ready */
.wa-voice-note-being-made-button { cursor: default; }
.wa-voice-note-being-made-button .wa-spinner { width: 16px; height: 16px; border-color: color-mix(in srgb, var(--md-background) 35%, transparent); border-top-color: var(--md-background); }
.wa-voice-note-being-made-helper { margin: 2px 0 0; font-size: calc(12px * var(--wa-text-scale, 1)); line-height: 1.35; color: var(--md-on-surface-variant); }

/* the daily photo / voice note limit sheet and "No more selfies today" (the phone's DailyMediaLimitSheetContent) */
.wa-media-limit-sheet { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0 8px; }
.wa-media-limit-sheet-close { position: absolute; top: 0; right: 0; }
.wa-media-limit-sheet-badge {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container, var(--md-on-secondary));
}
.wa-media-limit-sheet-badge .wa-icon svg { width: 32px; height: 32px; }
.wa-media-limit-sheet-title { margin: 16px 0 0; font-size: calc(24px * var(--wa-text-scale, 1)); line-height: 1.33; font-weight: 600; }
.wa-media-limit-sheet-body { margin: 8px 0 0; font-size: calc(14px * var(--wa-text-scale, 1)); line-height: 1.43; color: var(--md-on-surface-variant); }
.wa-media-limit-sheet-invite-hint {
    width: 100%;
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--md-inverse-on-surface);
    font-size: calc(14px * var(--wa-text-scale, 1));
    font-weight: 600;
}
.wa-media-limit-sheet-reward { margin: 12px 0 0; font-size: calc(14px * var(--wa-text-scale, 1)); font-weight: 600; }
.wa-media-limit-sheet-invite { margin-top: 24px; min-height: 48px; gap: 8px; }
.wa-media-limit-sheet-more-info { margin-top: 12px; min-height: 48px; color: var(--md-on-surface-variant); }

/* "Not enough coins for a photo" (the phone's InviteFriendsToGetCoinsBottomSheet with a price) */
.wa-invite-coins-sheet { display: flex; flex-direction: column; padding-bottom: 12px; }
.wa-invite-coins-sheet-title { margin: 0; font-size: calc(24px * var(--wa-text-scale, 1)); font-weight: 700; text-align: center; }
.wa-invite-coins-sheet-subtitle { margin: 8px 0 24px; font-size: calc(14px * var(--wa-text-scale, 1)); color: var(--md-on-surface-variant); text-align: center; }
.wa-invite-coins-sheet .wa-earn-list { margin-bottom: 24px; }
.wa-invite-coins-sheet .wa-button--wide { min-height: 48px; margin-top: 8px; }

/* the "+" chooser's photo card: a small spinner and how many photos are still being made, after the title */
.wa-plus-chooser-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wa-photo-jobs-in-progress { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--md-on-surface-variant); font-size: calc(11px * var(--wa-text-scale, 1)); font-weight: 500; }
.wa-photo-jobs-in-progress-spinner { width: 16px; height: 16px; border-color: color-mix(in srgb, var(--md-on-surface-variant) 30%, transparent); border-top-color: var(--md-on-surface-variant); }

/* the coins sheet's Daily limits tab (the phone's DailyLimitsPage) */
/* the same grouped card as the earn and spend pages (CoinCatalogListCard): surfaceContainerLow, 12 px corners, 16 px inside;
   rows sit 16 px above and below each hairline, like the phone's DailyLimitRowDivider */
.wa-daily-limits-card { display: flex; flex-direction: column; gap: 0; padding: 16px; border-radius: 12px; background: var(--md-surface-container-low); }
.wa-daily-limit-row { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; }
.wa-daily-limit-row:first-child { padding-top: 0; }
.wa-daily-limit-row:last-child { padding-bottom: 0; }
.wa-daily-limit-row + .wa-daily-limit-row { border-top: 1px solid var(--md-outline-variant); }
.wa-daily-limit-row-title { display: flex; align-items: center; gap: 12px; font-size: calc(14px * var(--wa-text-scale, 1)); font-weight: 600; color: var(--md-on-surface); }
.wa-daily-limit-row-title .wa-icon { color: var(--md-on-surface-variant); }
.wa-daily-limit-row-usage { display: flex; align-items: center; gap: 8px; }
.wa-daily-limit-row-used { flex: 1; font-size: calc(12px * var(--wa-text-scale, 1)); color: var(--md-on-surface-variant); }
.wa-daily-limit-row-status { font-size: calc(11px * var(--wa-text-scale, 1)); color: var(--md-on-surface-variant); text-align: end; }
.wa-daily-limit-row-status--reached { color: var(--md-error); }
.wa-daily-limit-row-track { display: block; height: 4px; border-radius: 999px; background: var(--md-outline-variant); overflow: hidden; }
.wa-daily-limit-row-track-fill { display: block; height: 100%; border-radius: 999px; background: var(--md-on-surface-variant); }
.wa-daily-limits-resets { margin: 12px 0 0; font-size: calc(12px * var(--wa-text-scale, 1)); color: var(--md-on-surface-variant); text-align: center; }
