#echo-archive[hidden] {
    display: none !important;
}

.home-toolbar.is-echo-mode .home-toolbar-secondary {
    display: none;
}

.echo-archive {
    width: min(100%, 760px);
    margin: 0.9rem auto 0;
    color: #c9d6cc;
}

.echo-view-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 0.75rem;
}

.echo-view-hint {
    margin: 0;
    color: #66776e;
    font-size: 11px;
    line-height: 1.5;
}

.echo-view-switch {
    width: fit-content;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 0 0 auto;
    margin: 0;
    padding: 2px;
    border: 1px solid rgba(126, 163, 143, 0.16);
    border-radius: 999px;
    background: rgba(5, 9, 7, 0.72);
}

.echo-view-button {
    min-width: 64px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #65746c;
    background: transparent;
    font-size: 12px;
}

.echo-view-button.is-active {
    color: #c9d6cc;
    background: #111a15;
}

.echo-filter-label {
    flex: 0 0 auto;
    display: inline-flex;
    min-width: 42px;
    align-items: center;
    color: rgba(120, 138, 127, 0.72);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.echo-filter-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    margin-bottom: 0.6rem;
}

.echo-filter-scroll {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.42rem;
    overflow-x: auto;
    padding: 2px 20px 4px 0;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
}

.echo-filter-scroll::-webkit-scrollbar {
    display: none;
}

.echo-filter-button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 0.78rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    background: rgba(7, 12, 10, 0.5);
    color: rgba(183, 196, 187, 0.72);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.echo-filter-button:focus {
    outline: none;
}

.echo-filter-button:focus-visible {
    outline: 1px solid rgba(111, 174, 138, 0.65);
    outline-offset: 2px;
}

.echo-filter-button.is-month-active {
    border-color: #7a6136;
    background: #1a150c;
    color: #d9a441;
}

.echo-filter-button.is-venue-active {
    border-color: rgba(80, 147, 112, 0.62);
    background: rgba(22, 65, 45, 0.3);
    color: #9bd2b3;
}

.echo-sheet {
    position: relative;
    margin-top: 0.9rem;
    padding: 7px 7px 2px;
    overflow: clip;
    border: 1px solid rgba(126, 163, 143, 0.08);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 18%),
        #060807;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.echo-sheet.is-list-view {
    padding: 0;
    overflow: hidden;
    background: rgba(5, 9, 7, 0.52);
}

.echo-list { display: grid; }
.echo-list-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(126, 163, 143, 0.1);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    outline: none;
}
.echo-list-row:focus-visible {
    border-color: rgba(100, 133, 111, 0.58);
    box-shadow: 0 0 0 2px rgba(100, 133, 111, 0.14);
}
.echo-list-row:last-child { border-bottom: 0; }
.echo-list-copy {
    min-width: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1.25fr) minmax(0, .8fr) minmax(58px, .6fr);
    align-items: center;
}
.echo-list-date {
    color: #d9a441;
    font: 700 11px/1.3 var(--font-mono);
}
.echo-list-title,
.echo-list-artist,
.echo-list-venue {
    min-width: 0;
    overflow: hidden;
    padding-right: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.echo-list-title { color: #cbd7cf; font-size: 12px; }
.echo-list-artist,
.echo-list-venue { color: #6d7b73; font-size: 10px; }
.echo-list-actions { display: flex; align-items: center; }
.echo-list-action {
    min-width: 58px;
    min-height: 44px;
    margin-left: 6px;
    padding: 0 9px;
    border: 1px solid #3a5c48;
    border-radius: 999px;
    color: #8fc9aa;
    background: transparent;
    font-size: 11px;
    white-space: nowrap;
}
.echo-list-action.is-seen { border-color: transparent; color: #07110c; background: #6fae8a; }

.echo-sprockets {
    display: grid;
    grid-template-columns: repeat(10, 7px);
    justify-content: space-between;
    gap: 3px;
    padding: 4px 5px;
}

.echo-sprockets i {
    width: 7px;
    height: 5px;
    border-radius: 1px;
    background: #121814;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.012);
}

.echo-frames {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 1px 4px;
}

.echo-frame {
    position: relative;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.echo-frame:focus {
    outline: none;
}

.echo-frame:focus-visible .echo-frame-image {
    outline: 1px solid rgba(111, 174, 138, 0.7);
    outline-offset: 2px;
}

.echo-frame-image {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 133.333%;
    overflow: visible;
    border-radius: 2px;
    background: #111713;
    transition:
        outline-color 180ms ease,
        box-shadow 180ms ease;
}

.echo-frame.is-selected .echo-frame-image {
    outline: 1.5px solid #e8f0ea;
    outline-offset: 1px;
}

.echo-frame-image img:not(.echo-circle-cache) {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    filter: saturate(0.88) contrast(0.98);
}

.echo-circle-cache {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    max-width: none;
    opacity: 0.8;
    filter: drop-shadow(0 0 1px rgba(184, 139, 72, 0.2));
    mix-blend-mode: normal;
}

.echo-frame-meta {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 0.32rem;
    margin-top: 4px;
    font-family: var(--font-mono);
    line-height: 1.25;
}

.echo-frame-code {
    flex: 0 0 auto;
    color: #d9a441;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.echo-frame-name {
    min-width: 0;
    overflow: hidden;
    color: rgba(90, 102, 96, 0.98);
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 180ms ease;
}

.echo-frame.is-selected .echo-frame-name,
.echo-frame.is-seen .echo-frame-name {
    color: #b7c4ba;
}

.echo-caption {
    min-height: 48px;
    margin-top: 0.8rem;
    padding: 0.45rem 0.12rem;
}

.echo-caption-main {
    margin: 0;
    color: #d5dfd7;
    font-size: 13px;
    line-height: 1.48;
}

.echo-action-bar {
    position: relative;
    width: 100%;
    margin: 10px 0 18px;
    padding: 10px 12px;
    border: 0.5px solid #26362f;
    border-radius: 6px;
    background: #101713;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition:
        transform 180ms cubic-bezier(0.22, 0.8, 0.32, 1),
        opacity 140ms ease,
        visibility 0s linear 180ms;
}

.echo-action-bar.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
        transform 180ms cubic-bezier(0.22, 0.8, 0.32, 1),
        opacity 140ms ease,
        visibility 0s;
}

.echo-action-bar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100%, 760px);
    min-height: 48px;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto;
}

.echo-action-copy {
    min-width: 0;
}

.echo-action-title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.35rem;
}

.echo-action-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #d5dfd7;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.echo-action-date {
    color: #d9a441;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.echo-action-sub {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: #66755f;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.echo-action-signal-link {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    color: #789b88;
    font-size: 10px;
    text-decoration: none;
}

@media (max-width: 620px) {
    .echo-view-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .echo-view-switch { align-self: flex-end; }

    .echo-list-copy { grid-template-columns: 42px minmax(0, 1fr); }
    .echo-list-date { grid-row: 1 / 4; align-self: start; padding-top: 2px; }
    .echo-list-title,
    .echo-list-artist,
    .echo-list-venue { grid-column: 2; padding-right: 5px; }
    .echo-list-artist,
    .echo-list-venue { margin-top: 3px; }
    .echo-list-actions { flex-direction: column; }
    .echo-list-action { width: 64px; margin: 3px 0 3px 6px; }
}

.echo-seen-label {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 0.24rem;
    border: 0;
    background: transparent;
    color: #8fceb0;
    font-size: 12px;
    cursor: pointer;
}

.echo-seen-label.is-armed {
    color: #c98c73;
}

.echo-caption-action {
    display: inline-flex;
    min-width: 94px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border: 1px solid #3a5c48;
    border-radius: 999px;
    background: transparent;
    color: #9fe1bd;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 150ms ease, background 180ms ease, color 180ms ease;
}

.echo-caption-action:active {
    transform: scale(0.97);
}

.echo-caption-action.is-solid {
    border-color: #6fae8a;
    background: #6fae8a;
    color: #0d1210;
}

.echo-caption-action[hidden] {
    display: none;
}

.echo-foot {
    margin: 0.85rem 0 0;
    color: #4d5a50;
    font-family: var(--font-mono);
    font-size: 10px;
    text-align: center;
}

.echo-state {
    padding: 3rem 1rem;
    color: #66755f;
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
}

.echo-polaroid-flight {
    position: fixed;
    left: 50%;
    bottom: -220px;
    z-index: 210;
    width: 150px;
    padding: 8px 8px 28px;
    border-radius: 2px;
    background: #e5e0d4;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.52);
    opacity: 0;
    transform: translateX(-50%) rotate(-3deg);
    pointer-events: none;
}

.echo-polaroid-flight img {
    display: block;
    width: 134px;
    height: 102px;
    object-fit: cover;
    filter: brightness(0.12) saturate(0.2);
}

.echo-polaroid-flight.is-rising {
    bottom: 112px;
    opacity: 1;
    transition:
        bottom 500ms cubic-bezier(0.2, 0.8, 0.3, 1),
        opacity 280ms ease;
}

.echo-polaroid-flight.is-developed img {
    filter: none;
    transition: filter 1200ms ease;
}

.echo-polaroid-flight.is-away {
    opacity: 0;
    transform: translateX(-50%) rotate(-3deg) scale(0.3) translateY(-300px);
    transition: opacity 400ms ease, transform 600ms ease;
}

@media (min-width: 720px) {
    .echo-frame-code {
        font-size: 13px;
    }

    .echo-frame-name {
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .echo-archive {
        margin-top: 0.75rem;
    }

    .echo-filter-label {
        min-width: 38px;
    }

    .echo-filter-button {
        padding-inline: 0.68rem;
        font-size: 11px;
    }

    .echo-sheet {
        margin-inline: -2px;
        padding-inline: 6px;
    }

    .echo-frame-name {
        font-size: 10px;
    }

    .echo-action-bar {
        padding-right: 12px;
        padding-left: 12px;
    }

    .echo-action-bar-inner {
        gap: 0.5rem;
    }

    .echo-caption-action {
        min-width: 88px;
        padding-inline: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .echo-frame-image,
    .echo-action-bar,
    .echo-polaroid-flight,
    .echo-polaroid-flight img {
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
    }
}
