:root {
    --bg: #f3f2ee;
    --bg-subtle: #e8e6e0;
    --surface: #ffffff;
    --text: #222222;
    --muted: #555555;
    --dim: #777777;
    --line: #cfcbc2;
    --link: #0b4f8a;
    --link-hover: #083662;
    --header-bg: #2c333a;
    --header-text: #ffffff;
    --accent: #9b2c2c;
    --ok: #2f6b2f;
    --focus: #0b4f8a;
    --danger: #9b2c2c;
    --app-height: 100vh;
    --border-soft: var(--line);
    --border: var(--line);
    --radius: 0;
    --radius-sm: 0;
    --primary: var(--header-bg);
    --primary-deep: var(--link);
    --text-main: var(--text);
    --text-muted: var(--muted);
    --text-dim: var(--dim);
    --surface-muted: var(--bg-subtle);
    --surface-overlay: var(--surface);
    --surface-overlay-strong: var(--surface);
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --motion: 280ms;
    --motion-slow: 520ms;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.22, 1.45, 0.36, 1);
}

:root[data-theme="dark"] {
    --bg: #1e1f21;
    --bg-subtle: #2a2b2e;
    --surface: #26272a;
    --text: #ececec;
    --muted: #c4c4c4;
    --dim: #9a9a9a;
    --line: #3d3f43;
    --link: #8ec5ff;
    --link-hover: #c5e0ff;
    --header-bg: #141516;
    --header-text: #f3f3f3;
    --accent: #e07070;
    --ok: #7dbe7d;
    --focus: #8ec5ff;
    --danger: #e07070;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

a {
    color: var(--link);
    text-underline-offset: 2px;
    transition: color var(--motion) var(--ease), text-underline-offset var(--motion) var(--ease);
}

a:hover {
    color: var(--link-hover);
    text-underline-offset: 4px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    transition: outline-offset var(--motion) var(--ease);
}

body.site-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header:not(.home-masthead):not(.page-header):not(.admin-page-head):not(.transport-lab-topbar):not(.tracker-topbar),
.site-header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    position: sticky;
    top: 0;
    z-index: 400;
    border-bottom: 1px solid #1a1e22;
    overflow: visible;
}

header:not(.home-masthead):not(.page-header):not(.admin-page-head):not(.transport-lab-topbar):not(.tracker-topbar),
.site-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem 0.8rem;
    padding-block: 0.12rem;
}

.site-header {
    flex-wrap: nowrap;
    gap: 0.25rem 0.8rem;
    padding-block: 0.12rem;
}

.site-header-nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.site-nav-links {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: clamp(0.35rem, 1.2vw, 1.25rem);
    padding-inline: clamp(0.35rem, 1vw, 0.9rem);
}

.site-header-tools {
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.site-header .site-nav-links a,
.site-header .site-nav-links button,
.site-header .site-nav-links summary,
.site-header .site-header-tools .nav-link,
.site-header .site-header-tools .site-search-form input,
.site-header .site-header-tools .site-search-form button,
.site-header .site-nav-toggle {
    min-height: 28px;
    padding-top: 0.12rem;
    padding-bottom: 0.12rem;
}


.site-search-form input {
    width: clamp(7rem, 12vw, 14rem);
}

.site-brand,
.site-brand-link {
    display: flex;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.site-brand h1,
header h1 {
    margin: 0;
    color: var(--header-text);
    font-size: 1.2rem;
    font-weight: 700;
}

nav,
.site-header-nav,
#dynamic-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.15rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-link,
.site-header-link,
.site-nav-links a,
.site-nav-links button,
.site-nav-toggle,
.site-nav-more summary {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.2rem 0.6rem;
    border: 0;
    background: transparent;
    color: var(--header-text);
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    transition: background-color var(--motion) var(--ease), text-underline-offset var(--motion) var(--ease), transform var(--motion) var(--ease-spring);
}

.nav-link:hover,
.site-header-link:hover,
.site-nav-links a:hover,
.site-nav-links button:hover,
.site-nav-more summary:hover,
.nav-link[aria-current="page"],
.site-header-link[aria-current="page"],
.site-nav-links a[aria-current="page"],
.site-nav-links button[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.site-header-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.site-search-form {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.site-search-form input {
    min-height: 32px;
    width: min(14rem, 42vw);
    padding: 0.2rem 0.45rem;
    border: 1px solid #5a6168;
    background: #1c2227;
    color: #fff;
}

.site-search-form button,
.site-nav-toggle {
    min-height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    background: transparent;
}

.site-nav-toggle {
    display: none;
}

.site-notify {
    position: relative;
}

.site-notify-count {
    margin-left: 0.25rem;
    font-weight: 700;
}

.site-notify-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: min(22rem, 86vw);
    max-height: 20rem;
    overflow: auto;
    padding: 0.6rem 0.7rem;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    z-index: 500;
}

.site-notify-panel.is-open {
    display: grid;
    gap: 0.45rem;
    animation: tth-pop 380ms var(--ease-spring);
}

.site-notify-panel a {
    color: var(--text);
    text-decoration: none;
}

.site-donate-tab {
    position: relative;
}

.site-donate-tab summary {
    list-style: none;
    cursor: pointer;
}

.site-donate-tab summary::-webkit-details-marker {
    display: none;
}

.site-donate-tab[open] > summary,
.site-donate-tab > summary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-donate-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: min(24rem, calc(100vw - 2rem));
    box-sizing: border-box;
    padding: 0.85rem;
    color: var(--header-text);
    background: var(--header-bg);
    border: 1px solid #1a1e22;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    z-index: 600;
}

.site-donate-panel p {
    margin: 0.35rem 0 0.7rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.site-donate-wallets {
    display: grid;
    gap: 0.55rem;
}

.site-donate-wallets > div {
    min-width: 0;
}

.site-donate-wallets span {
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.site-donate-wallets code {
    display: block;
    color: var(--header-text);
    font-size: 0.74rem;
    overflow-wrap: anywhere;
    user-select: all;
}

.site-nav-more {
    position: relative;
}

.site-nav-more summary {
    list-style: none;
}

.site-nav-more summary::-webkit-details-marker {
    display: none;
}

.site-nav-more[open] .site-nav-more-menu {
    animation: tth-pop 380ms var(--ease-spring);
}

.site-nav-more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 13rem;
    display: grid;
    background: var(--header-bg);
    border: 1px solid #1a1e22;
    z-index: 500;
}

.site-nav-more-menu a {
    min-height: 36px;
}

.site-guest-note {
    margin: 0 0 1rem;
    color: var(--muted);
}

.btn-admin {
    color: #ffd2d2;
}

main,
.site-main-shell {
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
    flex: 1 1 auto;
}

body.home-view .site-main-shell {
    width: min(100%, 1120px);
}

.site-stack {
    display: grid;
    gap: 1rem;
}

.site-page-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.site-span-4 { grid-column: span 4; }
.site-span-5 { grid-column: span 5; }
.site-span-6 { grid-column: span 6; }
.site-span-7 { grid-column: span 7; }
.site-span-8 { grid-column: span 8; }
.site-span-12 { grid-column: 1 / -1; }

.site-panel,
.site-panel-tight,
.site-intro-card,
.site-panel-body {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.site-panel-tight,
.site-intro-card {
    padding: 0;
}

.site-kicker {
    display: none;
}

.site-lead,
.login-subtitle,
.hero-subtitle {
    color: var(--muted);
    max-width: 40rem;
}

.site-inline-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    color: var(--muted);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.page-header h2 {
    margin: 0;
    font-size: 1.45rem;
}

.search-bar,
.admin-input,
input.admin-input,
textarea.admin-input,
select.admin-input,
.tracker-input {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 0;
}

textarea.admin-input {
    min-height: 7rem;
    resize: vertical;
}

.btn-primary,
.btn-secondary,
.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    border-radius: 0;
}

.btn-primary,
.btn-secondary,
.button-primary,
.button-secondary {
    transition: background-color var(--motion) var(--ease), color var(--motion) var(--ease), border-color var(--motion) var(--ease), filter var(--motion) var(--ease), transform var(--motion) var(--ease);
}

.btn-primary,
.button-primary {
    background: var(--header-bg);
    border-color: var(--header-bg);
    color: #fff;
}

.btn-primary:hover,
.button-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-primary:active,
.btn-secondary:active,
.button-primary:active,
.button-secondary:active,
.home-start a:active,
.home-start button:active,
.nav-link:active,
.site-header-link:active,
.site-nav-more summary:active {
    transform: translateY(1px) scale(0.97);
}

.btn-secondary:hover,
.button-secondary:hover {
    background: var(--bg-subtle);
}

.full-width,
.full {
    width: 100%;
}

.empty-state {
    color: var(--muted);
    padding: 0.4rem 0;
}

.error-message {
    color: var(--danger);
    min-height: 1.2em;
}

.muted {
    color: var(--muted);
}

.contact-link {
    color: var(--link);
}

.site-footer,
.site-footer-minimal,
footer {
    margin-top: auto;
    padding: 1.2rem 1rem 1.6rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.4rem;
}

.footer-user-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0.7rem 0;
}

.footer-disclaimer {
    max-width: 52rem;
    line-height: 1.45;
}

.home-page {
    display: block;
}

.home-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(14rem, 0.9fr);
    gap: 0.8rem 2rem;
    align-items: end;
    padding-bottom: 0.9rem;
    margin-bottom: 0.95rem;
    border-bottom: 1px solid var(--line);
}

.home-photo-banner {
    display: flex;
    min-height: clamp(8rem, 15vw, 12rem);
    align-items: center;
    margin-bottom: 0.9rem;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    overflow: hidden;
    color: #fff;
    background-color: #17232c;
    background-position: center;
    background-size: cover;
    border-radius: 18px;
    text-decoration: none;
    transition: transform var(--motion) var(--ease), filter var(--motion) var(--ease);
}

.home-photo-banner:hover {
    color: #fff;
    filter: brightness(1.04);
    transform: translateY(-2px);
}

.home-photo-banner-copy {
    max-width: 38rem;
}

.home-photo-banner h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 0.95;
}

.home-photo-banner p {
    margin: 0.7rem 0 1rem;
    color: rgba(255,255,255,.86);
    font-size: 1.05rem;
}

.home-photo-banner span {
    font-weight: 800;
}

.home-masthead h2 {
    margin: 0 0 0.3rem;
    font-size: 1.7rem;
}

.home-masthead p {
    margin: 0;
    max-width: 38rem;
    color: var(--muted);
}

.home-masthead-aside {
    display: grid;
    gap: 0.45rem;
}

.home-meta,
.home-note,
.home-empty {
    margin: 0;
    color: var(--dim);
    font-size: 0.92rem;
}

.home-start,
.home-more-list,
.home-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.95rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-start a,
.home-start button,
.home-block-head a,
.home-block-head button,
.home-chip-list button,
.home-more-list a,
.home-inline-action button,
.home-plain-list button {
    font: inherit;
    font-weight: 600;
    color: var(--link);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--motion) var(--ease), text-underline-offset var(--motion) var(--ease);
}

.home-featured {
    margin: 0 0 1.3rem;
}

.home-featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: minmax(140px, 17vw);
    gap: 6px;
}

.home-photo {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--bg-subtle);
}

.home-photo.is-lead {
    grid-row: span 2;
}

.home-photo-media,
.home-photo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-photo-media {
    position: absolute;
    inset: 0;
}

.home-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 1.8rem 0.55rem 0.45rem;
    background: linear-gradient(180deg, transparent, rgba(20, 20, 20, 0.72));
    color: #f5f5f5;
    font-size: 0.84rem;
}

.home-photo-caption em {
    font-style: normal;
    opacity: 0.85;
}

.home-lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
    border-top: 1px solid var(--line);
}

.home-block {
    padding: 0.95rem 0;
}

.home-block h3,
.home-page .home-block-head h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.home-block-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.55rem;
}

.home-chip-list span {
    color: var(--dim);
    font-weight: 500;
}

.home-inline-action {
    margin: 0.7rem 0 0;
}

.home-block-more {
    border-top: 1px solid var(--line);
}

.home-page .home-picture-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-page .home-picture-card,
.home-picture-card {
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    text-decoration: none;
    color: inherit;
}

.home-picture-media img,
.home-picture-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--bg-subtle);
}

.home-notification-item {
    display: grid;
    gap: 0.15rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
}

.home-hero-panel,
.home-action-grid,
.home-action-card,
.home-mobile-grid,
.home-mobile-card,
.home-section-card,
.quick-links-section,
.quick-link-button {
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.home-category-pills,
.gallery-uploader-jumps,
.audio-section-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
}

.home-category-pill,
.gallery-uploader-pill,
.audio-section-pill {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--link);
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem 1.1rem;
}

.picture-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(20, 24, 28, 0.09);
}

.picture-frame,
.home-picture-media,
.profile-photo-media,
.photo-detail-media {
    position: relative;
    overflow: hidden;
    background: var(--bg-subtle);
}

.picture-frame {
    height: 220px;
}

.picture-frame img,
.photo-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picture-info,
.picture-card-footer,
.picture-credit {
    padding: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.picture-main-link {
    position: relative;
    display: block;
}

.picture-info {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 3.2rem 0.85rem 0.75rem;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 12, 0.86));
}

.picture-info h3 {
    margin: 0;
    font-size: 1rem;
}

.picture-info span {
    display: block;
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
}

.picture-card-footer {
    padding: 0.65rem 0.85rem 0.75rem;
}

.picture-main-link {
    color: inherit;
    text-decoration: none;
}

.image-loading-frame {
    position: relative;
}

.image-loading-label {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    color: var(--dim);
    font-size: 0.85rem;
}

.image-loading-frame img {
    opacity: 0;
}

.image-loading-frame.image-loaded .image-loading-label {
    display: none;
}

.image-loading-frame.image-loaded img {
    opacity: 1;
}

.protected-media-root {
    position: relative;
}

.protected-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.login-box,
.login-box-wide {
    width: min(100%, 28rem);
    margin: 1.5rem auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.login-box-wide {
    width: min(100%, 40rem);
}

.login-box h2 {
    margin: 0 0 0.6rem;
    font-size: 1.45rem;
}

.login-box form,
.account-form,
.photo-comment-form {
    display: grid;
    gap: 0.7rem;
}

.input-group {
    display: grid;
    gap: 0.3rem;
}

.two-factor-option {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.photo-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    gap: 1.2rem 1.6rem;
    align-items: start;
}

.photo-detail-media img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-detail-info h2 {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
}

.photo-detail-meta,
.photo-detail-actions,
.photo-detail-nav,
.photo-detail-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    margin: 0.7rem 0;
}

.photo-detail-back {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.photo-comments-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.photo-comments-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.photo-comment {
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
}

.photo-comment-header,
.photo-comment-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.86);
}

.photo-lightbox-media img {
    max-height: 90vh;
    width: auto;
}

.photo-lightbox-close,
.photo-lightbox-nav button {
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
}

.modal-overlay,
.photo-report-modal,
.request-preview-dialog {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow: auto;
    background: rgba(0, 0, 0, 0.45);
}

.modal {
    width: min(92vw, 420px);
    max-height: min(90dvh, 720px);
    overflow: auto;
    padding: 1rem;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
}

.photo-report-card,
.request-preview-body,
.upload-progress-card,
.approval-progress-card {
    width: min(92vw, 420px);
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.profile-main {
    display: grid;
    gap: 1rem;
}

.profile-hero-backdrop {
    position: absolute;
    inset: 0 0 auto;
    display: block;
    height: 175px;
    overflow: hidden;
    background: linear-gradient(125deg, var(--header-bg), #49616f);
}

.profile-hero-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(8, 12, 16, 0.08), rgba(8, 12, 16, 0.68));
}

.profile-hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.profile-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 1rem;
    min-height: 255px;
    padding: 145px 1.15rem 1.1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 16px 38px rgba(20, 24, 28, 0.1);
}

.profile-avatar {
    z-index: 2;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    background: var(--bg-subtle);
    border: 4px solid var(--surface);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    font-size: 1.4rem;
    font-weight: 700;
    overflow: hidden;
    border-radius: 50%;
}

.profile-details {
    z-index: 2;
    min-width: 0;
}

.profile-title-row h2 {
    margin: 0;
    font-size: 1.6rem;
}

.profile-kicker {
    display: none;
}

.profile-mini-nav,
.profile-follow-row,
.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
}

.profile-badge,
.profile-empty-badge,
.admin-user-badge,
.verified-badge-row span,
.category-badge,
.status-badge,
.giveaway-pill,
.giveaway-status,
.referrals-pill,
.updates-meta-badge {
    display: inline-block;
    padding: 0.05rem 0.35rem;
    border: 1px solid var(--line);
    background: var(--bg-subtle);
    font-size: 0.8rem;
}

.profile-stats-grid,
.referrals-stats-grid,
.status-grid,
.admin-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.7rem 1rem;
}

.profile-stat-box,
.referrals-stat-card,
.status-stat,
.admin-analytics-card {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.profile-photo-grid,
.profile-video-grid,
.verified-grid,
.giveaway-grid,
.audio-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.9rem;
}

.profile-photo-card,
.profile-video-card,
.verified-photographer-card,
.giveaway-card,
.audio-library-card,
.leaderboard-row,
.update-card {
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    color: inherit;
    text-decoration: none;
}

.profile-photo-card,
.profile-video-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
    box-shadow: 0 10px 26px rgba(20, 24, 28, 0.1);
}

.profile-photo-media img,
.profile-video-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--bg-subtle);
}

.profile-photo-copy,
.profile-video-copy {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 0.12rem;
    padding: 2.8rem 0.75rem 0.7rem;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 12, 0.88));
}

.profile-photo-copy span,
.profile-video-copy span,
.profile-video-copy small {
    color: rgba(255, 255, 255, 0.76);
}

.profile-avatar img,
.video-feed-avatar img,
.verified-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
    align-items: start;
}

.audio-library-card {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 0.75rem;
    padding: 1rem;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(20, 24, 28, 0.08);
    transition: transform var(--motion) var(--ease-spring), box-shadow var(--motion) var(--ease), border-color var(--motion) var(--ease);
}

.audio-library-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--link) 42%, var(--line));
    box-shadow: 0 18px 38px rgba(20, 24, 28, 0.13);
}

.audio-card-wave {
    display: flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--header-bg), color-mix(in srgb, var(--link) 72%, #111));
}

.audio-card-wave i {
    width: 4px;
    height: 35%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.audio-card-wave i:nth-child(2),
.audio-card-wave i:nth-child(6) { height: 62%; }
.audio-card-wave i:nth-child(3),
.audio-card-wave i:nth-child(5) { height: 88%; }
.audio-card-wave i:nth-child(4) { height: 48%; }

.audio-library-card-top {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
}

.audio-library-title,
.audio-submit-credit {
    min-width: 0;
    overflow-wrap: anywhere;
}

.audio-library-card audio {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.verified-avatar {
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--header-bg);
    color: #fff;
    font-weight: 800;
}

.verified-photographer-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--link) 6%, var(--surface)));
    box-shadow: 0 10px 26px rgba(20, 24, 28, 0.07);
    transition: transform var(--motion) var(--ease-spring), box-shadow var(--motion) var(--ease), border-color var(--motion) var(--ease);
}

.verified-photographer-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--link) 35%, var(--line));
    box-shadow: 0 17px 36px rgba(20, 24, 28, 0.12);
}

.verified-card-body h3,
.verified-card-body p {
    margin: 0;
}

.verified-card-topline {
    color: var(--link);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.verified-profile-link {
    font-weight: 700;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(14rem, 0.8fr);
    gap: 1.4rem;
}

.home-picture-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.home-picture-caption {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    padding: 2.7rem 0.65rem 0.55rem;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 12, 0.82));
}

.home-picture-caption span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
}

.photo-detail-media {
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(20, 24, 28, 0.12);
}

.leaderboard-row {
    transition: padding-left var(--motion) var(--ease-spring), background-color var(--motion) var(--ease);
}

.leaderboard-row:hover {
    padding-left: 0.65rem;
    background: color-mix(in srgb, var(--link) 6%, transparent);
}

@media (max-width: 640px) {
    .profile-shell {
        grid-template-columns: 1fr;
        padding-top: 132px;
    }

    .profile-avatar {
        width: 78px;
        height: 78px;
    }

    .verified-photographer-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .verified-profile-link {
        display: none;
    }
}

.account-shell,
.account-grid,
.account-main,
.policy-page,
.about-page,
.support-page,
.referrals-shell,
.updates-shell,
.status-shell,
.leaderboard-page,
.verified-main,
.gif-maker-page,
.event-page {
    display: grid;
    gap: 1rem;
}

.account-card,
.policy-card,
.about-card,
.support-card,
.referrals-panel,
.referrals-link-card,
.referrals-section-card,
.referrals-progress-card,
.event-card,
.gif-maker-panel,
.status-card,
.status-side,
.feature-release-card {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.account-hero h2,
.policy-card h2,
.updates-hero h2,
.giveaway-hero h2,
.referrals-hero h2 {
    margin: 0 0 0.4rem;
    font-size: 1.5rem;
}

.account-picture-card {
    display: grid;
    gap: 1rem;
}

.account-picture-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.account-picture-preview {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--header-text);
    background: var(--header-bg);
    font-weight: 800;
}

.account-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button:not(:disabled):active,
.btn-primary:not(:disabled):active,
.btn-secondary:not(:disabled):active {
    transform: translateY(1px);
}

button[aria-busy="true"] {
    cursor: progress;
    opacity: 0.72;
}

.form-grid,
.gif-maker-grid,
.support-two-column,
.referrals-columns,
.about-grid,
.event-grid,
.support-hero-grid {
    display: grid;
    gap: 1rem;
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 1.5rem;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
}

.request-toolbar,
.request-toolbar-row,
.request-mode-switch,
.status-toolbar,
.account-actions-inline,
.referrals-actions,
.referrals-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.7rem;
    align-items: center;
}

.request-mode-tab,
.gif-maker-tab {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    min-height: 34px;
    padding: 0 0.7rem;
    cursor: pointer;
}

.request-mode-tab.active,
.gif-maker-tab.active,
.status-filter.active {
    background: var(--header-bg);
    color: #fff;
    border-color: var(--header-bg);
}

.status-list,
.status-item,
.referrals-list-item,
.leaderboard-row {
    padding: 0.65rem 0;
    border-top: 1px solid var(--line);
}

.request-media-card-icon,
.request-media-card-label,
.request-media-card-meta,
.request-media-card-name {
    display: block;
}

.upload-progress-track,
.approval-progress-track,
.feature-release-progress {
    height: 6px;
    background: var(--bg-subtle);
    border: 1px solid var(--line);
}

body.admin-mode-admin,
body.admin-mode-superuser {
    overflow-x: hidden;
    overflow-y: auto;
}

body.admin-mode-admin header,
body.admin-mode-superuser header {
    position: sticky;
    top: 0;
}

body.admin-mode-admin main,
body.admin-mode-superuser main {
    width: min(100%, 1280px);
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.admin-panel {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.admin-header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.admin-shell {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
    min-width: 0;
}

.admin-sidebar {
    position: sticky;
    top: 4.6rem;
    max-height: calc(100dvh - 5.2rem);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.35rem;
}

.admin-mobile-nav {
    display: none;
}

.admin-tab-content,
.admin-section {
    min-width: 0;
}

.admin-tab-content {
    overflow-x: auto;
}

.admin-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-tab-list {
    display: grid;
    gap: 0.2rem;
}

.admin-tab-button {
    width: 100%;
    text-align: left;
    min-height: 36px;
    padding: 0.35rem 0.2rem;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
}

.admin-tab-button.active {
    font-weight: 700;
    text-decoration: underline;
}

.admin-tab-button {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
}

.admin-tab-button.has-work .admin-tab-count {
    font-weight: 700;
}

.admin-page-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.admin-page-hint {
    margin: 0 0 0.9rem;
    color: var(--muted);
}

.admin-next-step {
    margin: 0 0 1rem;
}

.admin-work-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.admin-work-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.admin-work-item > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.admin-work-item span {
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-overview-tools {
    margin-top: 1.4rem;
}

.admin-overview-tools h4 {
    margin: 0 0 0.5rem;
}

.admin-overview-tools .card-actions {
    flex-wrap: wrap;
}

.admin-section,
.admin-tab-content,
.feature-toggle-card,
.superuser-card {
    padding: 0.2rem 0 1rem;
    background: none;
    border: 0;
    box-shadow: none;
}

.admin-pictures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
}

.admin-picture-card,
.admin-audio-card {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0.5rem;
}

.admin-db-table,
table {
    width: 100%;
    border-collapse: collapse;
}

.admin-db-table th,
.admin-db-table td,
table th,
table td {
    border-bottom: 1px solid var(--line);
    padding: 0.35rem 0.4rem;
    text-align: left;
    vertical-align: top;
}

.superuser-grid,
.superuser-rate-grid,
.feature-toggle-groups {
    display: grid;
    gap: 0.8rem;
}

.admin-settings-details {
    margin: 0 0 1rem;
    border-bottom: 1px solid var(--line);
}

.admin-settings-details > summary {
    padding: 0.75rem 0;
    color: var(--link);
    cursor: pointer;
    font-weight: 700;
}

.feature-toggle-list {
    display: grid;
    gap: 0.45rem;
}

.role-list,
.role-editor-card {
    display: grid;
    gap: 16px;
}

.role-list {
    margin-top: 20px;
}

.role-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.role-permission-group {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 12px;
}

.role-permission-group legend {
    padding: 0 6px;
    font-weight: 800;
}

.role-permission-option {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 8px 0;
}

.role-editor-card .admin-input,
.superuser-card .admin-input {
    margin-bottom: 10px;
}

.application-question-builder,
.application-question-list {
    display: grid;
    gap: 10px;
}

.application-question-builder {
    margin-bottom: 14px;
}

.application-question-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
}

@media (max-width: 760px) {
    .application-question-row {
        grid-template-columns: 1fr;
    }
}

.feature-toggle-card {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
}

.feature-toggle-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.feature-toggle-main > p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.feature-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 4.7rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-subtle);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.feature-switch > span {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: currentColor;
}

.feature-switch.is-on {
    color: var(--ok);
    border-color: currentColor;
}

.feature-inline-setting {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-top: 0.75rem;
}

.feature-inline-setting .admin-input {
    width: 5.5rem;
}

.card-actions,
.btn-edit-small,
.btn-delete-small {
    display: inline-flex;
    gap: 0.4rem;
}

.btn-delete-small {
    color: var(--danger);
}

html.video-feed-mode,
body.video-feed-mode {
    height: 100%;
    height: 100dvh;
    height: var(--app-height);
    overflow: hidden;
    background: #111;
}

body.video-feed-mode {
    display: flex;
    flex-direction: column;
}

body.video-feed-mode .site-header,
body.video-feed-mode .site-footer,
body.video-feed-mode footer,
body.video-feed-mode #announcement-bar,
body.video-feed-mode #admin-mode-badge,
body.video-feed-mode #theme-picker-panel {
    display: none !important;
}

body.video-feed-mode .site-main-shell,
body.video-feed-mode main,
body.video-feed-mode #content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #111;
}

.video-feed-page,
.video-feed-loading-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: 100%;
    background: #111;
    color: #f3f3f3;
}

.video-feed-loading-shell,
.video-feed-empty {
    display: grid;
    place-items: center;
    flex: 1 1 auto;
    min-height: 100%;
    text-align: center;
    padding: 1.5rem;
    color: #ddd;
}

.video-feed-loading-card,
.video-feed-empty {
    display: grid;
    gap: 0.35rem;
    max-width: 22rem;
}

.video-feed-loading-card strong,
.video-feed-empty strong {
    font-size: 1.15rem;
}

.video-feed-loading-card span,
.video-feed-empty span {
    color: #bdbdbd;
}

.video-feed-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 10px;
    background: linear-gradient(rgba(0, 0, 0, 0.55), transparent);
    pointer-events: none;
}

.video-feed-topbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.video-feed-topbar-row-tabs {
    justify-content: center;
    margin-top: 6px;
}

.video-feed-heading {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.video-feed-heading strong,
.video-feed-heading span {
    display: block;
    line-height: 1.2;
}

.video-feed-heading span {
    color: #cfcfcf;
    font-size: 0.78rem;
}

.video-feed-home-button,
.video-feed-toggle-button,
.video-feed-tab {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    cursor: pointer;
}

.video-feed-tab.active,
.video-feed-toggle-button.active {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.video-feed-shell {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: none;
}

.video-feed-shell::-webkit-scrollbar {
    display: none;
}

.video-feed-card {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    height: var(--app-height);
    min-height: var(--app-height);
    max-height: var(--app-height);
    overflow: hidden;
    background: #111;
    color: #f3f3f3;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.video-feed-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.video-feed-player {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    background: #000;
}

.video-feed-catcher {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.video-feed-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    padding: calc(env(safe-area-inset-top, 0px) + 92px) 12px calc(env(safe-area-inset-bottom, 0px) + 16px);
    background: linear-gradient(transparent 42%, rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.video-feed-copy,
.video-feed-rail {
    pointer-events: none;
}

.video-feed-copy a,
.video-feed-rail a,
.video-feed-rail button,
.video-feed-comment-pill,
.video-feed-scrubbar {
    pointer-events: auto;
}

.video-feed-copy {
    min-width: 0;
}

.video-feed-copy h3 {
    margin: 0.35rem 0 0.25rem;
    font-size: 1.02rem;
    font-weight: 650;
    color: #fff;
}

.video-feed-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.video-feed-profile-link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.video-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    color: #d4d4d4;
    font-size: 0.82rem;
}

.video-feed-comment-pill {
    margin-top: 0.55rem;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.video-feed-scrubbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.65rem;
}

.video-feed-scrubber {
    flex: 1 1 auto;
    width: min(100%, 280px);
    accent-color: #fff;
    cursor: pointer;
}

.video-feed-time {
    color: #d4d4d4;
    font-size: 0.75rem;
    white-space: nowrap;
}

.video-feed-rail {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding-bottom: 4px;
}

.video-feed-action,
.video-feed-rail-profile {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 44px;
    color: #fff;
    background: none;
    border: 0;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
}

.video-feed-action:hover,
.video-feed-rail-profile:hover {
    color: #fff;
}

.video-feed-action.active {
    color: #ffb4b4;
}

.video-feed-action-icon,
.video-feed-like-heart svg {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
}

.video-feed-action-icon svg,
.video-feed-like-heart svg,
.video-feed-rail-profile svg {
    width: 28px;
    height: 28px;
    max-width: none;
    display: block;
}

.video-feed-action-label,
.video-feed-rail-profile span:last-child,
.video-feed-action-count {
    font-size: 0.72rem;
    line-height: 1.2;
}

.video-feed-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #fff;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    border-radius: 50%;
}

.video-feed-pause-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    width: 56px;
    height: 56px;
    margin: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.video-feed-pause-mark::before,
.video-feed-pause-mark::after {
    content: "";
    position: absolute;
    top: 16px;
    width: 5px;
    height: 24px;
    background: #fff;
}

.video-feed-pause-mark::before {
    left: 20px;
}

.video-feed-pause-mark::after {
    right: 20px;
}

.video-feed-card.is-paused .video-feed-pause-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-feed-card.is-loading .video-feed-pause-mark,
.video-feed-card-unsupported .video-feed-pause-mark {
    opacity: 0;
}

.video-feed-like-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 7;
    width: 72px;
    height: 72px;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.video-feed-like-heart.is-bursting {
    animation: heart-pop 0.7s ease;
}

@keyframes heart-pop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}

.video-feed-load-cover,
.video-feed-unsupported-note {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    place-items: center;
    text-align: center;
    padding: 1rem;
    pointer-events: none;
}

.video-feed-card.is-loading .video-feed-load-cover,
.video-feed-card-unsupported .video-feed-unsupported-note {
    display: grid;
    background: #111;
}

.video-feed-load-brand,
.video-feed-unsupported-note {
    display: grid;
    gap: 0.25rem;
    color: #ddd;
}

.video-feed-comments-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.video-feed-comments-drawer.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.video-feed-comments-drawer.is-closing {
    opacity: 0;
}

.video-feed-comments-sheet {
    width: min(100%, 520px);
    max-height: min(70vh, 640px);
    overflow: auto;
    padding: 1rem 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem);
    background: var(--surface);
    color: var(--text);
    border-top: 1px solid var(--line);
    transform: translateY(18px);
    transition: transform 0.2s ease;
}

.video-feed-comments-drawer.is-visible .video-feed-comments-sheet {
    transform: none;
}

.video-feed-comments-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.video-feed-comments-head h3 {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
}

.video-feed-comments-head span,
.video-feed-comment-head span {
    color: var(--muted);
    font-size: 0.85rem;
}

.video-feed-comment {
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
}

.video-feed-comment-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
}

.video-feed-comment p {
    margin: 0.3rem 0 0;
}

.video-feed-comments-form {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.video-feed-comments-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.video-feed-comment-gif-tools,
.video-feed-comment-gif-toolbar,
.video-feed-comment-gif-selected,
.comment-media-picker {
    display: grid;
    gap: 0.5rem;
}

.video-feed-comment-gif-toolbar {
    grid-auto-flow: column;
    justify-content: start;
}

.comment-media-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.4rem;
}

.comment-media-picker-item {
    padding: 0;
    border: 1px solid var(--line);
    background: var(--bg-subtle);
    cursor: pointer;
}

.comment-media-picker-preview,
.video-feed-comment-gif,
.video-feed-comment-gif-preview {
    display: block;
    width: 100%;
    height: 88px;
    object-fit: cover;
}

.video-feed-comment-gif,
.video-feed-comment-gif-preview {
    height: auto;
    max-height: 180px;
}

@media (min-width: 760px) {
    .video-feed-page {
        background: #161616;
    }

    .video-feed-stage {
        width: min(420px, 100%);
        box-shadow: 0 0 0 1px #2a2a2a;
    }

    .video-feed-topbar {
        left: 50%;
        width: min(420px, 100%);
        transform: translateX(-50%);
    }
}

.gif-maker-shell,
.gif-maker-stage,
.referrals-main,
.status-main,
.updates-list {
    display: grid;
    gap: 0.8rem;
}

.gif-maker-preview-frame,
.gif-maker-drop {
    min-height: 180px;
    border: 1px dashed var(--line);
    background: var(--surface);
    display: grid;
    place-items: center;
}

.referrals-steps,
.support-steps {
    display: grid;
    gap: 0.5rem;
}

.support-step,
.support-mini-card,
.support-callout,
.support-crisis-panel {
    padding: 0.2rem 0;
}

.announcement-bar {
    position: relative;
    z-index: 50;
    padding: 0.45rem 1rem;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--line);
    text-align: center;
    animation: tth-settle var(--motion-slow) var(--ease) both;
}

.announcement-item {
    color: inherit;
    text-decoration: none;
}

.tracker-page,
.tracker-app,
.transport-lab-page,
.transport-lab-shell {
    display: grid;
    gap: 0.7rem;
}

.tracker-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    gap: 0.8rem;
}

.tracker-map-shell,
.tracker-map {
    min-height: 420px;
    background: var(--bg-subtle);
    position: relative;
}

.tracker-panel,
.tracker-column,
.transport-lab-section,
.transport-lab-hero,
.transport-lab-detail {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.tracker-toolbar,
.tracker-subtoolbar,
.tracker-topbar,
.transport-lab-topbar,
.transport-lab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    align-items: center;
}

.tracker-chip,
.tracker-mode-pill,
.transport-lab-chip,
.transport-lab-pill-link,
.support-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--link);
    text-decoration: underline;
}

.tracker-arrival-card,
.tracker-vehicle-card,
.transport-lab-related-card,
.transport-lab-action-card {
    padding: 0.5rem 0;
    border-top: 1px solid var(--line);
    background: none;
}

.transport-lab-home-grid,
.transport-lab-related-grid,
.transport-lab-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.7rem 1rem;
}

.theme-picker-panel,
.theme-picker-box {
    margin-top: 1rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
}

.theme-picker-header,
.theme-picker-preview,
.theme-picker-field {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    align-items: center;
}

.theme-picker-select {
    min-height: 34px;
}

.theme-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid var(--line);
}

.home-plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-plain-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-top: 1px solid var(--line);
}

.home-plain-list li:first-child {
    border-top: 0;
}

.rallies-list {
    display: grid;
    gap: 0;
}

.rally-item {
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
}

.rally-item h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}

.rally-when,
.rally-location,
.rally-organiser {
    margin: 0.15rem 0;
    color: var(--muted);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-storage-stats {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-nav-group {
    margin: 0 0 0.95rem;
}

.admin-nav-group-title {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
}

.admin-rally-form,
.admin-rally-item {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.admin-rally-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.admin-rally-dates label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.notification {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 300;
    max-width: 22rem;
    padding: 0.65rem 0.8rem;
    background: var(--header-bg);
    color: #fff;
    border: 0;
}

.notification-error {
    background: var(--danger);
}

.notification-success {
    background: var(--ok);
}

.boot-loader {
    min-height: 30vh;
    display: grid;
    align-content: center;
}

.not-found {
    padding: 1rem 0;
}

.credit {
    color: var(--muted);
    font-size: 0.9rem;
}

.status-normal { color: var(--ok); }

:root[data-site-event]:not([data-site-event="none"]) .site-header {
    box-shadow: inset 0 -3px 0 var(--accent);
}

/* Seasonal appearance overlays the selected light or dark mode. */
:root[data-site-event="halloween"] {
    --accent: #f27512;
    --focus: #ffb347;
    --link: #b44200;
    --link-hover: #6e1e00;
    --header-bg: #251126;
    --header-text: #fff4df;
    --ok: #5f7d36;
    --danger: #b73520;
}

:root[data-site-event="halloween"] body {
    background-image: radial-gradient(circle at 8% 0%, rgba(255, 139, 31, .16), transparent 25rem), radial-gradient(circle at 92% 8%, rgba(100, 37, 91, .14), transparent 23rem);
}

:root[data-theme="dark"][data-site-event="halloween"] {
    --bg: #17101a;
    --bg-subtle: #26192a;
    --surface: #211723;
    --text: #fff1df;
    --muted: #dfcbbb;
    --dim: #b99fae;
    --line: #613b50;
    --link: #ffb347;
    --link-hover: #ffd08a;
    --header-bg: #100a13;
}

:root[data-site-event="halloween"] .site-header {
    background-image: linear-gradient(115deg, #160c1a 0%, #452043 48%, #9c350e 100%);
    border-bottom-color: #f27512;
    box-shadow: inset 0 -3px 0 #ff9b2f, 0 5px 18px rgba(42, 12, 35, .22);
}

:root[data-site-event="halloween"] .site-header::after {
    content: "✦";
    margin-left: auto;
    color: #ffbd55;
    font-size: 1.25rem;
    text-shadow: 0 0 12px rgba(255, 162, 47, .75);
    pointer-events: none;
}

:root[data-site-event="halloween"] .theme-picker-panel,
:root[data-site-event="halloween"] .card,
:root[data-site-event="halloween"] .panel {
    border-color: rgba(210, 91, 24, .45);
}

.photo-detail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.admin-request-queue {
    display: grid;
    gap: 1rem;
}

.admin-request-queue .admin-picture-card {
    max-width: 42rem;
}

@media (max-width: 860px) {
    .home-masthead,
    .home-lower,
    .home-featured-grid,
    .photo-detail-layout,
    .profile-content-grid,
    .admin-shell,
    .support-layout,
    .tracker-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .admin-work-item {
        flex-wrap: wrap;
    }

    .admin-desktop-nav {
        display: none;
    }

    .admin-mobile-nav {
        display: grid;
        gap: 0.3rem;
        position: sticky;
        top: 3.4rem;
        z-index: 50;
        margin: 0 0 0.8rem;
        padding: 0.45rem 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }

    .admin-mobile-nav label {
        font-size: 0.78rem;
        color: var(--muted);
    }

    .site-nav-toggle {
        display: inline-flex;
    }

    .site-header {
        align-items: flex-start;
    }

    header nav,
    .site-header-nav,
    #dynamic-nav,
    .site-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    header.is-nav-open nav,
    header.is-nav-open .site-header-nav,
    header.is-nav-open #dynamic-nav,
    header.is-nav-open .site-nav-links {
        display: flex;
    }

    .site-nav-more-menu,
    .site-notify-panel,
    .site-donate-panel {
        position: static;
        width: 100%;
    }

    .home-photo.is-lead {
        grid-column: 1 / -1;
        min-height: 240px;
    }

    .site-span-4,
    .site-span-5,
    .site-span-6,
    .site-span-7,
    .site-span-8 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .home-featured-grid,
    .home-page .home-picture-grid,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-featured-grid {
        grid-auto-rows: minmax(150px, auto);
    }

    header,
    .site-header {
        position: static;
    }
}

.home-page,
.site-main-shell {
    animation: tth-settle var(--motion-slow) var(--ease-spring) both;
}

.home-featured,
.home-block,
.home-lower,
.login-card,
.site-panel,
.site-intro-card,
.account-hero,
.updates-hero,
.support-hero,
.about-hero,
.gif-maker-hero,
.event-hero,
.home-masthead {
    animation: tth-settle var(--motion-slow) var(--ease-spring) both;
}

.home-masthead { animation-delay: 20ms; }
.home-featured { animation-delay: 90ms; }
.home-block { animation-delay: 160ms; }
.home-lower { animation-delay: 230ms; }

.home-start a,
.home-start button,
.home-chip-list a,
.home-more-list a,
.home-block-head button,
.home-block-head a {
    transition: transform var(--motion) var(--ease-spring), color var(--motion) var(--ease);
}

.home-start a:hover,
.home-start button:hover,
.home-chip-list a:hover,
.home-more-list a:hover,
.home-block-head button:hover,
.home-block-head a:hover {
    transform: translateY(-3px);
}

.picture-card,
.home-picture-card,
.home-photo,
.home-picture-media,
.gallery-grid a,
.home-featured-grid a {
    transition: transform var(--motion) var(--ease-spring), filter var(--motion) var(--ease);
}

.picture-card:hover,
.home-picture-card:hover,
.home-photo:hover,
.gallery-grid a:hover,
.home-featured-grid a:hover {
    transform: translateY(-6px) scale(1.015);
    filter: saturate(1.06);
}

.picture-card img,
.home-picture-media img,
.home-picture-card img,
.home-photo img {
    transition: transform 640ms var(--ease-spring);
}

.picture-card:hover img,
.home-picture-media:hover img,
.home-picture-card:hover img,
.home-photo:hover img {
    transform: scale(1.06);
}

.site-nav-more-menu a,
.site-notify-panel a {
    transition: background-color var(--motion) var(--ease), padding-left var(--motion) var(--ease-spring), transform var(--motion) var(--ease-spring);
}

.site-nav-more[open] .site-nav-more-menu a,
.site-notify-panel.is-open a {
    animation: tth-item-in 340ms var(--ease-spring) both;
}

.site-nav-more-menu a:nth-child(1),
.site-notify-panel.is-open a:nth-child(1) { animation-delay: 30ms; }
.site-nav-more-menu a:nth-child(2),
.site-notify-panel.is-open a:nth-child(2) { animation-delay: 60ms; }
.site-nav-more-menu a:nth-child(3),
.site-notify-panel.is-open a:nth-child(3) { animation-delay: 90ms; }
.site-nav-more-menu a:nth-child(4),
.site-notify-panel.is-open a:nth-child(4) { animation-delay: 120ms; }
.site-nav-more-menu a:nth-child(5),
.site-notify-panel.is-open a:nth-child(5) { animation-delay: 150ms; }
.site-nav-more-menu a:nth-child(6),
.site-notify-panel.is-open a:nth-child(6) { animation-delay: 180ms; }
.site-nav-more-menu a:nth-child(7),
.site-notify-panel.is-open a:nth-child(7) { animation-delay: 210ms; }
.site-nav-more-menu a:nth-child(8),
.site-notify-panel.is-open a:nth-child(8) { animation-delay: 240ms; }

.site-nav-more-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
}

.site-search-form input,
.site-search-form button,
.search-bar,
.admin-input {
    transition: border-color var(--motion) var(--ease), background-color var(--motion) var(--ease), transform var(--motion) var(--ease-spring);
}

.site-search-form input:focus {
    transform: scaleX(1.03);
    transform-origin: left center;
}

.site-nav-more[open] .site-nav-more-menu {
    animation: tth-pop 380ms var(--ease-spring);
}

.site-notify-panel.is-open {
    animation: tth-pop 380ms var(--ease-spring);
}

@keyframes tth-settle {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    68% {
        opacity: 1;
        transform: translateY(-4px) scale(1.008);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes tth-pop {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.92);
    }
    70% {
        opacity: 1;
        transform: translateY(2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes tth-item-in {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    70% {
        opacity: 1;
        transform: translateX(2px);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.dir-page .dir-search {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
}

.dir-page .dir-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
}

.dir-page .dir-search button,
.dir-page .dir-list a,
.dir-page .dir-meta a {
    font: inherit;
}

.dir-kicker {
    margin: 0 0 6px;
    color: var(--dim);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dir-list {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--surface);
}

.dir-list a,
.dir-list .dir-row {
    display: block;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.dir-list a:first-child,
.dir-list .dir-row:first-child {
    border-top: 0;
}

.dir-list a:hover {
    background: var(--bg-subtle);
}

.dir-list strong {
    display: block;
}

.dir-list span,
.dir-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.dir-swatch {
    display: inline-block;
    width: 42px;
    height: 16px;
    border: 1px solid #111;
    vertical-align: middle;
    margin-right: 8px;
}

.dir-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 14px 0 0;
}

.dir-crumb {
    margin: 0 0 10px;
    color: var(--dim);
    font-size: 0.88rem;
}

.dir-crumb a {
    color: var(--link);
}

.dir-vehicle-livery {
    width: min(100%, 420px);
    height: 72px;
    margin: 12px 0 16px;
    border: 1px solid #111;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.dir-facts {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 8px 14px;
    margin: 0 0 18px;
}

.dir-facts dt {
    margin: 0;
    color: var(--dim);
    font-weight: 700;
}

.dir-facts dd {
    margin: 0;
}

.dir-working {
    margin: 0 0 18px;
}

.dir-working h3,
.dir-services h3,
.dir-fleet h3 {
    margin: 18px 0 8px;
    font-size: 1rem;
}

.dir-services {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.dir-service {
    display: grid;
    grid-template-columns: 4.2rem 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
    color: inherit;
    text-decoration: none;
}

.dir-service:hover {
    background: var(--bg-subtle);
}

.dir-service strong {
    font-size: 1.05rem;
}

.dir-table {
    width: 100%;
    border-collapse: collapse;
}

.dir-table th,
.dir-table td {
    text-align: left;
    padding: 7px 8px 7px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.dir-table th {
    color: var(--dim);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dir-table a {
    color: var(--link);
    font-weight: 700;
}

.dir-lede,
.dir-note {
    margin: 0 0 12px;
    color: var(--muted);
}

.dir-note {
    font-size: 0.92rem;
}

.dir-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 0 0 16px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
}

.dir-tabs a {
    color: var(--link);
    font-weight: 700;
    text-decoration: none;
}

.dir-tabs a[aria-current="page"] {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.dir-bus-preview {
    display: flex;
    align-items: center;
    margin: 8px 0 18px;
}

.dir-bus-body {
    width: min(100%, 280px);
    height: 64px;
    border: 1px solid #111;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.dir-bus-nose {
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 16px solid #111;
    margin-left: 2px;
}

.home-lookup {
    margin: 0 0 1.4rem;
    padding: 14px 0 4px;
    border-top: 1px solid var(--line);
}

.home-lookup h3 {
    margin: 0 0 6px;
}

.home-lookup-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.home-lookup-links a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.home-lookup-links a:hover {
    border-color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --motion: 0.01ms;
        --motion-slow: 0.01ms;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
