/* The bottom bar stays outside the collapsible header and follows the visual
   viewport when either Android or iOS raises the software keyboard. */
.mobile-ready-bar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid #414868;
    background: #1f2335;
}
.mobile-ready-bar button, .ready-sheet button, .ready-toast button {
    min-height: 44px;
    border: 1px solid #414868;
    border-radius: 10px;
    background: #24283b;
    color: #c0caf5;
    padding: 8px 12px;
    font: inherit;
    touch-action: manipulation;
}
.mobile-ready-bar button:focus-visible, .ready-sheet button:focus-visible, .ready-sheet input:focus-visible {
    outline: 2px solid #7aa2f7;
    outline-offset: 2px;
}
.ready-current {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.ready-current span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ready-count {
    white-space: nowrap;
}
.ready-count.has-ready {
    color: #1a1b26;
    background: #9ece6a;
    border-color: #9ece6a;
    font-weight: 700;
}
.ready-next:disabled {
    opacity: 0.4;
}
.ready-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: #0008;
    display: flex;
    align-items: flex-end;
}
.ready-sheet {
    width: 100%;
    max-height: min(85dvh, 720px);
    display: flex;
    flex-direction: column;
    background: #1a1b26;
    color: #c0caf5;
    border: 1px solid #414868;
    border-radius: 20px 20px 0 0;
    padding: 12px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    box-sizing: border-box;
    box-shadow: 0 -8px 40px #0006;
}
.ready-sheet header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.ready-sheet h2 {
    font-size: 1.2rem;
    margin: 0;
}
.ready-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex: 0 0 auto;
}
.ready-filters button[aria-pressed="true"] {
    background: #7aa2f7;
    color: #1a1b26;
    border-color: #7aa2f7;
}
.ready-filters input {
    min-width: 0;
    flex: 1;
    font: inherit;
    font-size: 16px;
    padding: 8px;
    border: 1px solid #414868;
    background: #24283b;
    color: #c0caf5;
    border-radius: 10px;
}
.ready-list {
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
}
.ready-row {
    display: flex;
    gap: 6px;
    align-items: center;
    border-top: 1px solid #292e42;
    padding: 6px 0;
}
.ready-row.needs-attention {
    border-left: 3px solid #9ece6a;
    padding-left: 6px;
}
.ready-row .ready-open {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
}
.ready-row-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
    width: 100%;
}
.ready-row-heading strong {
    overflow-wrap: anywhere;
}
.ready-label {
    font-size: 0.75rem;
    color: #7dcfff;
}
.ready-location, .ready-row time {
    font-size: 0.75rem;
    color: #a9b1d6;
    overflow-wrap: anywhere;
}
.ready-preview {
    font-size: 0.85rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}
.ready-actions {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 4px;
}
.ready-row .ready-mute, .ready-row .ready-mark-read {
    font-size: 0.75rem;
    padding: 6px;
    background: transparent;
    border: 0;
}
.ready-empty, .ready-status {
    color: #a9b1d6;
    padding: 14px 8px;
}
.ready-sheet footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding-top: 12px;
    font-size: 0.8rem;
    color: #a9b1d6;
}
.ready-sheet footer button {
    color: #7aa2f7;
    background: transparent;
    border: 0;
    padding: 0;
}
.ready-toast {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 8px;
    right: 8px;
    z-index: 1400;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #292e42;
    border: 1px solid #7aa2f7;
    border-radius: 12px;
    box-shadow: 0 6px 24px #0006;
}
.ready-toast span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 360px) { .ready-next {
    display: none;
} }
