.page { width: min(1120px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 36px; }
.page-narrow { width: min(720px, calc(100% - 28px)); }
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(12, 14, 18, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.wordmark {
    font-family: var(--display);
    font-size: 1.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}
.wordmark span { color: var(--copper); }
.topnav, .top-actions { display: none; align-items: center; gap: 14px; }
.topnav { flex: 1; }
.topnav .btn { flex-shrink: 0; }
.topnav a:not(.btn) { color: var(--muted); text-decoration: none; }
.topnav a:not(.btn).is-active,
.topnav a:not(.btn):hover { color: var(--text); }
.topbar a.btn-primary,
.topbar a.btn-primary:hover,
.topbar a.btn-primary:focus,
.topbar a.btn-primary:focus-visible { color: var(--ink); }
.account-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; max-width: 180px; }
.account-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-link:hover { color: var(--text); }
.tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    display: flex;
    gap: 4px;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(12, 14, 18, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tabbar a.is-active { color: var(--copper); }
.subnav { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 0; }
.subnav a { color: var(--muted); text-decoration: none; }
.subnav a.is-active { color: var(--copper); }
.section-head { margin-bottom: 18px; }
.hero h1 span { color: var(--copper); }
.hero-actions, .toolbar, .filter-actions, .oauth-row, .photo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.with-filters { display: grid; gap: 18px; }
.detail-layout { display: grid; gap: 22px; }
@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .topnav, .top-actions { display: flex; }
    .tabbar { display: none; }
    .with-filters { grid-template-columns: 250px 1fr; align-items: start; }
    .detail-layout { grid-template-columns: minmax(280px, 420px) 1fr; }
    .filters { position: sticky; top: 84px; }
    .filter-toggle { display: none; }
}
@media (max-width: 899px) {
    .filters {
        position: fixed;
        left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom));
        z-index: 25;
        max-height: 70vh;
        overflow: auto;
        transform: translateY(120%);
        transition: transform 0.2s ease;
        background: var(--bg-raised);
        border-top: 1px solid var(--line-strong);
        padding: 16px;
        box-shadow: var(--shadow);
    }
    .filters.is-open { transform: none; }
}