:root {
    --pc-bg: #f9fafb;
    --pc-surface: #ffffff;
    --pc-surface-soft: #f5f7f8;
    --pc-ink: #122031;
    --pc-muted: #596b79;
    --pc-border: #e3e8eb;
    --pc-header: #101b2c;
    --pc-header-soft: #132238;
    --pc-accent: #32652a;
    --pc-accent-dark: #254c20;
    --pc-lime: #d7fb58;
    --pc-lime-hover: #c9f047;
    --pc-shadow: 0 0.9rem 2rem rgba(18, 32, 49, 0.09);
    --pc-shadow-soft: 0 0.55rem 1.4rem rgba(18, 32, 49, 0.05);
    --pc-header-offset: 5.75rem;
}

body {
    min-height: 100vh;
    font-family: Inter, 'Segoe UI', Arial, sans-serif;
    color: var(--pc-ink);
    background: var(--pc-bg);
    -webkit-font-smoothing: antialiased;
}

.min-w-0 {
    min-width: 0;
}

.site-shell {
    min-height: 100vh;
}

.app-shell-frame {
    width: min(100%, 1700px);
    margin: 0 auto;
    padding-inline: clamp(1rem, 2vw, 1.85rem);
}

.site-header {
    background: rgba(16, 27, 44, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1rem 2rem rgba(17, 24, 32, 0.12);
    backdrop-filter: blur(14px);
}

.site-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.site-topbar-start,
.site-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-topbar-actions {
    justify-content: flex-end;
}

.site-topbar-start {
    min-width: 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #ffffff;
    text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
    color: #ffffff;
}

.site-brand-copy {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-brand-title {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.navbar-brand-logo {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: cover;
    border-radius: 0.9rem;
    box-shadow: 0 0.6rem 1rem rgba(0, 0, 0, 0.18);
}

.site-menu-toggle,
.site-topbar-button {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    min-height: 2.65rem;
    white-space: nowrap;
}

.site-menu-toggle {
    padding-inline: 0.85rem;
    border-color: rgba(255, 255, 255, 0.2);
}

.site-menu-toggle:hover,
.site-menu-toggle:focus,
.site-account-toggle.active,
.site-account-toggle.show {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.site-topbar-action-toggle.active,
.site-topbar-action-toggle.show {
    background: var(--pc-accent-dark);
    border-color: var(--pc-accent-dark);
    color: #ffffff;
}

.site-account-toggle {
    padding-inline: 0.5rem 0.85rem;
}

.site-account-avatar,
.app-account-avatar,
.composer-teaser-avatar,
.section-placeholder-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}

.site-account-avatar,
.app-account-avatar,
.composer-teaser-avatar {
    border: 2px solid rgba(50, 101, 42, 0.12);
}

.site-account-name {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-form {
    margin: 0;
    width: 100%;
}

.header-search-shell {
    width: 100%;
    min-width: 0;
}

.header-search-group {
    width: 100%;
    min-width: 0;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.header-search-icon {
    border: 0;
    background: rgba(255, 255, 255, 0.96);
    color: var(--pc-muted);
    padding-inline: 1rem 0.8rem;
}

.header-search-input {
    width: 1%;
    min-width: 0;
    min-height: 3rem;
    border: 0;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0;
    font-size: 0.98rem;
}

.header-search-input:focus {
    border-color: rgba(50, 101, 42, 0.55);
    box-shadow: none;
    background: #ffffff;
}

.header-search-input::placeholder {
    color: #6c757d;
}

.header-search-button {
    border-radius: 0;
    min-width: 7rem;
    min-height: 3rem;
    padding-inline: 1.1rem;
    font-size: 0.98rem;
}

.site-header .dropdown-menu {
    border: 1px solid rgba(33, 37, 41, 0.08);
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.16);
    padding: 0.55rem;
    min-width: 14rem;
}

.site-header .dropdown-item {
    border-radius: 0.75rem;
    padding: 0.65rem 0.9rem;
    font-weight: 600;
}

.site-header .dropdown-item.active,
.site-header .dropdown-item:active,
.site-header .dropdown-item:focus,
.site-header .dropdown-item:hover {
    background: rgba(50, 101, 42, 0.08);
    color: var(--pc-ink);
}

.site-account-menu form .btn {
    border-radius: 0.8rem;
}

.site-mobile-nav {
    width: min(22rem, 88vw);
    background: linear-gradient(180deg, var(--pc-header) 0%, var(--pc-header-soft) 100%);
}

.site-main {
    overflow-x: clip;
}

.site-main-content {
    min-width: 0;
}

.admin-operations-path-list,
.admin-operations-path-list li {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.app-shell-grid {
    display: block;
}

.app-shell-left-rail,
.app-shell-main {
    min-width: 0;
}

.site-rail-sticky {
    position: sticky;
    top: calc(var(--pc-header-offset) + 1rem);
}

.app-rail-link-home {
    width: 3rem;
    min-height: 3rem;
    justify-content: center;
}

.app-rail-link-home .bi {
    margin: 0;
    font-size: 1.15rem;
}

.hero-card,
.content-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--pc-border);
    border-radius: 1.25rem;
    box-shadow: var(--pc-shadow-soft);
}

.hero-card {
    box-shadow: var(--pc-shadow);
}

.app-hint {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #d6e8bf;
    border-radius: 1rem;
    background: #f6faed;
    color: var(--pc-ink);
}

.app-hint[hidden],
.app-hint__dismiss[hidden] {
    display: none !important;
}

.app-hint--panel {
    padding: 1.25rem 1.4rem;
    box-shadow: var(--pc-shadow-soft);
}

.app-hint--compact {
    padding: .8rem 1rem;
}

.app-hint__content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-hint__title {
    margin: 0 0 .3rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.app-hint__body {
    margin: 0;
    font-size: .875rem;
    line-height: 1.55;
}

.app-hint__action {
    display: inline-block;
    margin-top: .65rem;
    font-size: .875rem;
    font-weight: 700;
    color: var(--pc-accent-dark);
}

.app-hint__dismiss {
    flex: 0 0 auto;
    max-width: 100%;
    padding: .2rem .35rem;
    border: 0;
    border-radius: .35rem;
    background: transparent;
    color: #32652a;
    font-size: .8125rem;
    font-weight: 700;
    cursor: pointer;
}

.app-hint__dismiss:hover,
.app-hint__dismiss:focus-visible {
    background: #e6f3ce;
    color: #254c20;
}

.app-hint__action:focus-visible,
.app-hint__dismiss:focus-visible {
    outline: 2px solid var(--pc-accent-dark);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .app-hint {
        flex-wrap: wrap;
        gap: .55rem;
    }
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--pc-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--pc-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading,
.section-heading-sm {
    color: var(--pc-accent);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.section-heading-sm {
    font-size: 1rem;
}

.section-heading-link {
    color: inherit;
    text-decoration: none;
}

.section-heading-link:hover,
.section-heading-link:focus {
    color: var(--pc-accent-dark);
}

.btn-brand {
    background-color: var(--pc-lime);
    border-color: var(--pc-lime);
    color: var(--pc-ink);
    font-weight: 700;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--pc-lime-hover);
    border-color: var(--pc-lime-hover);
    color: var(--pc-ink);
}

.text-muted-soft {
    color: var(--pc-muted);
}

.app-nav-desktop,
.app-nav-mobile {
    min-width: 0;
}

.app-rail-card,
.app-rail-profile-mobile,
.app-rail-group,
.app-rail-mobile-callout {
    border-radius: 1.2rem;
}

.app-rail-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 0.95rem;
    padding: 0.85rem 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.app-nav-desktop .app-rail-link {
    color: var(--pc-ink);
}

.app-nav-desktop .app-rail-link:hover,
.app-nav-desktop .app-rail-link:focus,
.app-nav-desktop .app-rail-link.active {
    background: rgba(215, 251, 88, 0.25);
    color: var(--pc-accent-dark);
    transform: translateX(2px);
}

.app-nav-mobile .app-rail-link {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.04);
}

.app-nav-mobile .app-rail-link:hover,
.app-nav-mobile .app-rail-link:focus,
.app-nav-mobile .app-rail-link.active {
    background: rgba(215, 251, 88, 0.12);
    color: var(--pc-lime);
}

.app-rail-link i {
    font-size: 1.05rem;
    width: 1.2rem;
    text-align: center;
}

.app-rail-profile,
.app-rail-mobile-callout {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
}

.app-nav-desktop .app-rail-profile {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(222, 226, 230, 0.92);
}

.app-rail-note {
    color: var(--pc-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.app-nav-mobile .app-rail-note,
.app-nav-mobile .section-kicker {
    color: var(--pc-lime);
}

.section-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(50, 101, 42, 0.1);
    color: var(--pc-accent);
    font-size: 1.2rem;
    font-weight: 800;
}

.section-placeholder-media {
    display: block;
    width: min(100%, 5.5rem);
    margin-inline: auto;
}

.section-placeholder-avatar {
    display: block;
    width: 4.75rem;
    height: 4.75rem;
    border: 2px solid rgba(50, 101, 42, 0.12);
    box-shadow: 0 0.6rem 1rem rgba(33, 37, 41, 0.08);
}

.home-search-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.home-search-card .form-control-lg {
    min-height: 3.5rem;
    border-radius: 0.9rem;
}

.quick-link-card {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-link-card:hover,
.quick-link-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.08);
}

.composer-teaser {
    background:
        linear-gradient(135deg, rgba(50, 101, 42, 0.08), rgba(255, 255, 255, 0.96) 48%),
        var(--pc-surface);
}

.composer-teaser-trigger {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 3.3rem;
    padding: 0.9rem 1.1rem;
    border-radius: 999px;
    background: rgba(248, 249, 250, 0.96);
    border: 1px solid rgba(222, 226, 230, 0.9);
    color: var(--pc-muted);
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    appearance: none;
}

.composer-teaser-trigger:hover,
.composer-teaser-trigger:focus {
    color: var(--pc-ink);
    background: #ffffff;
    border-color: rgba(50, 101, 42, 0.3);
}

.composer-teaser .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.composer-teaser-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
}

.home-inline-composer {
    background:
        linear-gradient(135deg, rgba(50, 101, 42, 0.08), rgba(255, 255, 255, 0.98) 48%),
        var(--pc-surface);
}

.home-inline-composer-summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
}

.home-inline-composer-summary::-webkit-details-marker {
    display: none;
}

.home-inline-composer-prompt {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.8rem 1rem;
    border: 1px solid var(--pc-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pc-muted);
}

.home-inline-composer-icon {
    color: var(--pc-accent);
    font-size: 1.2rem;
}

.home-inline-composer-body {
    padding: 0 1rem 1.25rem;
    border-top: 1px solid rgba(222, 226, 230, 0.92);
    padding-top: 1.25rem;
}

.post-form-inline {
    min-width: 0;
}

.home-social-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.home-feed-column,
.home-support-column {
    min-width: 0;
}

.home-support-rail {
    width: 100%;
}

.home-support-card {
    background:
        linear-gradient(160deg, rgba(50, 101, 42, 0.07), rgba(255, 255, 255, 0.96) 55%),
        var(--pc-surface);
}

.home-support-list .btn {
    justify-content: flex-start;
}

.home-quick-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.timeline-stack {
    width: 100%;
}

.feed-card {
    border-radius: 1.25rem;
}

.feed-card--openable {
    cursor: pointer;
}

.feed-card-summary-link {
    color: inherit;
    text-decoration: none;
}

.feed-card-summary-link:hover,
.feed-card-summary-link:focus {
    color: var(--pc-accent);
    text-decoration: underline;
}

.feed-card-title {
    line-height: 1.35;
}

.feed-card-title-link {
    color: inherit;
    text-decoration: none;
}

.feed-card-title-link:hover,
.feed-card-title-link:focus {
    color: var(--pc-accent);
}

.feed-card-copy {
    min-width: 0;
}

.feed-card-header,
.feed-preview-header {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.feed-card-avatar-link {
    flex-shrink: 0;
    display: inline-flex;
    text-decoration: none;
}

.feed-card-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid rgba(50, 101, 42, 0.1);
    object-fit: cover;
    background: #ffffff;
}

.feed-card-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.96rem;
}

.feed-card-actor-link {
    color: var(--pc-ink);
    text-decoration: none;
}

.feed-card-actor-link:hover,
.feed-card-actor-link:focus {
    color: var(--pc-accent);
}

.feed-card-summary,
.feed-preview-summary {
    line-height: 1.7;
    color: #495057;
    max-width: 70ch;
}

.feed-card-detail-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    background: rgba(248, 249, 250, 0.96);
    border: 1px solid rgba(222, 226, 230, 0.92);
    color: var(--pc-ink);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.feed-card-detail-button:hover,
.feed-card-detail-button:focus {
    color: var(--pc-accent);
    border-color: rgba(50, 101, 42, 0.25);
    background: #ffffff;
}

.feed-card-media-shell {
    position: relative;
}

.feed-card-media-button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.feed-card-media {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e9ecef;
}

.feed-card-stats {
    background: rgba(248, 249, 250, 0.9);
}

.feed-card-stat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.feed-stat-button,
.feed-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.feed-stat-pill {
    border: 1px solid var(--pc-border);
    background: #ffffff;
    color: var(--pc-ink);
}

.feed-stat-pill.is-muted {
    background: rgba(255, 255, 255, 0.8);
}

.feed-stat-button i,
.feed-stat-pill i {
    font-size: 0.95rem;
}

.feed-card-comments {
    min-width: min(100%, 24rem);
    border: 1px solid var(--pc-border);
    border-radius: 1.1rem;
    background: #ffffff;
    overflow: hidden;
}

.feed-card-comments-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
}

.feed-card-comments-summary::-webkit-details-marker {
    display: none;
}

.feed-card-comments-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--pc-ink);
}

.feed-card-comments-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--pc-border);
}

.upload-dropzone-field {
    width: 100%;
}

.post-form {
    min-width: 0;
}

.post-form-details {
    border: 1px solid rgba(222, 226, 230, 0.92);
    border-radius: 1.1rem;
    background: rgba(248, 249, 250, 0.7);
    padding: 0;
}

.post-form-details summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.1rem;
    font-weight: 700;
    color: var(--pc-ink);
}

.post-form-details summary::-webkit-details-marker {
    display: none;
}

.post-form-details[open] summary {
    border-bottom: 1px solid rgba(222, 226, 230, 0.92);
}

.post-form-details > *:not(summary) {
    padding-inline: 1.1rem;
    padding-bottom: 1rem;
}

.post-form-image-meta .post-form-details {
    background: rgba(255, 255, 255, 0.92);
}

.upload-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1.4rem 1.2rem;
    border: 2px dashed rgba(50, 101, 42, 0.28);
    border-radius: 1.15rem;
    background:
        linear-gradient(180deg, rgba(50, 101, 42, 0.05), rgba(255, 255, 255, 0.98) 48%),
        #ffffff;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-within,
.upload-dropzone.is-dragover {
    border-color: rgba(50, 101, 42, 0.58);
    box-shadow: 0 0.9rem 1.8rem rgba(50, 101, 42, 0.12);
    transform: translateY(-1px);
}

.upload-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-dropzone-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(50, 101, 42, 0.12);
    color: var(--pc-accent);
    font-size: 1.35rem;
}

.upload-dropzone-copy {
    display: grid;
    gap: 0.1rem;
}

.upload-dropzone-title {
    color: var(--pc-ink);
    font-weight: 800;
}

.upload-dropzone-hint,
.upload-dropzone-file {
    color: var(--pc-muted);
    font-size: 0.95rem;
}

.dog-form-section {
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 1rem;
    background: rgba(248, 249, 250, 0.78);
    box-shadow: inset 0 0 0 1px rgba(222, 226, 230, 0.92);
}

.dog-award-row,
.dog-award-card {
    padding: 1rem;
    border: 1px solid var(--pc-border);
    border-radius: 0.9rem;
    background: #ffffff;
}

.upload-dropzone-file {
    max-width: 100%;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.feed-card-comment-form textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.feed-card-comment-form .form-text {
    color: var(--pc-muted);
}

.feed-card-login-note {
    padding: 0.85rem 1rem;
    border: 1px solid var(--pc-border);
    border-radius: 1rem;
    background: rgba(248, 249, 250, 0.9);
}

.profile-hub-header {
    position: relative;
}

.profile-hub-cover {
    position: relative;
    min-height: clamp(8.5rem, 24vw, 12.5rem);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.68), transparent 34%),
        linear-gradient(135deg, rgba(50, 101, 42, 0.2), rgba(52, 58, 64, 0.12) 52%, rgba(255, 255, 255, 0.94) 100%);
}

.profile-hub-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-hub-header-body {
    position: relative;
    margin-top: -3.6rem;
    padding-top: 0 !important;
}

.profile-hub-avatar-wrap {
    flex-shrink: 0;
}

.profile-hub-avatar {
    width: clamp(5.75rem, 9vw, 6.75rem);
    height: clamp(5.75rem, 9vw, 6.75rem);
    border-radius: 1.35rem;
    object-fit: cover;
    background: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: 0 1rem 2rem rgba(17, 24, 32, 0.18);
}

.profile-hub-summary {
    max-width: 72ch;
    line-height: 1.7;
}

.profile-hub-actions .btn {
    border-radius: 999px;
}

.profile-hub-primary-action {
    flex: 0 0 auto;
}

.profile-private-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0.32rem 0.68rem;
    border: 1px solid rgba(50, 101, 42, 0.22);
    border-radius: 999px;
    color: #254c20;
    background: rgba(50, 101, 42, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
}

.profile-account-summary {
    min-width: 0;
    overflow-wrap: anywhere;
    background:
        linear-gradient(145deg, rgba(50, 101, 42, 0.055), rgba(255, 255, 255, 0.98) 52%),
        var(--pc-surface);
}

.profile-account-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
}

.profile-account-list dt,
.profile-account-list dd {
    margin: 0;
}

.profile-account-list dt {
    color: var(--pc-muted);
    font-weight: 600;
}

.profile-account-list dd {
    color: var(--pc-ink);
}

.profile-account-list dd + dt {
    margin-top: 0.55rem;
}

.profile-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 1rem;
}

.profile-management-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--pc-border);
    border-radius: 1rem;
    color: var(--pc-ink);
    background: var(--pc-surface);
    box-shadow: var(--pc-shadow-soft);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-management-card:hover,
.profile-management-card:focus-visible {
    border-color: rgba(50, 101, 42, 0.42);
    color: var(--pc-ink);
    box-shadow: 0 0.8rem 1.8rem rgba(17, 24, 32, 0.1);
    transform: translateY(-2px);
}

.profile-management-card span,
.profile-management-card strong,
.profile-management-card small {
    display: block;
}

.profile-management-card span {
    min-width: 0;
}

.profile-management-card small {
    margin-top: 0.2rem;
    color: var(--pc-muted);
}

.profile-management-icon {
    flex: 0 0 auto;
    color: var(--pc-accent);
    font-size: 1.25rem;
    line-height: 1.25;
}

.profile-settings-header,
.profile-settings-section,
.profile-hub-anchor-section,
#sprava {
    scroll-margin-top: calc(var(--pc-header-offset) + 1rem);
}

.profile-settings-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.profile-settings-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--pc-border);
    border-radius: 999px;
    color: var(--pc-ink);
    background: var(--pc-surface-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.profile-settings-nav-link:hover,
.profile-settings-nav-link:focus-visible {
    border-color: rgba(50, 101, 42, 0.42);
    color: var(--pc-accent);
    background: rgba(50, 101, 42, 0.07);
}

.profile-settings-form {
    display: grid;
    gap: 1.5rem;
}

.profile-settings-section,
.profile-settings-save {
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-hub-section {
    height: 100%;
}

.profile-media-panel {
    min-width: 0;
}

.profile-media-preview-wrap,
.profile-cover-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--pc-border);
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(50, 101, 42, 0.08), rgba(255, 255, 255, 0.96)),
        var(--pc-surface-soft);
}

.profile-media-preview-wrap {
    min-height: 9rem;
    padding: 1rem;
}

.profile-media-preview-avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 1.35rem;
    object-fit: cover;
    background: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: var(--pc-shadow-soft);
}

.profile-cover-preview {
    aspect-ratio: 16 / 7;
}

.profile-cover-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-cover-preview-placeholder {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.72;
}

.profile-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.profile-hub-compact-card {
    padding: 1.15rem;
    border: 1px solid rgba(222, 226, 230, 0.92);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(50, 101, 42, 0.04), rgba(255, 255, 255, 0.98) 48%),
        var(--pc-surface);
    box-shadow: var(--pc-shadow-soft);
}

.profile-hub-compact-card .btn {
    border-radius: 999px;
}

.feed-comment {
    padding: 0.9rem 1rem;
    border: 1px solid var(--pc-border);
    border-radius: 1rem;
    background: var(--pc-surface-soft);
}

.feed-preview-dialog .modal-content {
    border-radius: 1.4rem;
    box-shadow: 0 1.5rem 3rem rgba(17, 24, 32, 0.26);
    background: rgba(255, 255, 255, 0.98);
}

.feed-preview-layout {
    border-radius: 1.15rem;
    overflow: hidden;
    background: #111418;
}

.feed-preview-media-wrap {
    height: 100%;
    min-height: 24rem;
    background: #111418;
}

.feed-preview-media {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 24rem;
    object-fit: contain;
}

.feed-preview-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.1rem;
    min-height: 100%;
    padding: 1.6rem;
    background: rgba(255, 255, 255, 0.97);
}

.post-composer-dialog .modal-content {
    border-radius: 1.4rem;
    box-shadow: 0 1.5rem 3rem rgba(17, 24, 32, 0.18);
}

.post-composer-modal .modal-body {
    padding-bottom: 1.5rem;
}

.post-form-modal .form-control,
.post-form-modal .form-select {
    border-radius: 1rem;
}

.post-card {
    border-radius: 1.15rem;
}

.post-card-actions .btn {
    border-radius: 999px;
}

.post-detail-card {
    border-radius: 1.25rem;
}

.advert-gallery,
.advert-image-management {
    min-width: 0;
}

.advert-gallery-main,
.advert-gallery-thumb-media,
.advert-gallery-empty {
    overflow: hidden;
    border: 1px solid var(--pc-border);
    border-radius: 1rem;
    background: var(--pc-surface-soft);
}

.advert-gallery-main {
    aspect-ratio: 4 / 3;
}

.advert-gallery-main img,
.advert-gallery-additional img,
.advert-gallery-thumb-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advert-gallery-additional,
.advert-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.advert-gallery-additional img {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--pc-border);
    border-radius: 0.85rem;
}

.advert-gallery-thumb {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pc-border);
    border-radius: 1rem;
    background: #ffffff;
}

.advert-gallery-thumb.is-primary {
    border-color: rgba(25, 135, 84, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.08);
}

.advert-gallery-thumb-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 0;
}

.advert-image-primary-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(25, 135, 84, 0.94);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 0.35rem 0.9rem rgba(17, 24, 32, 0.16);
}

.advert-gallery-thumb-actions {
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem;
}

.advert-gallery-empty {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.advert-gallery-empty img {
    width: 5rem;
    height: 5rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.advert-marketplace-layout {
    align-items: start;
}

.advert-marketplace-main,
.advert-marketplace-sidebar-column {
    min-width: 0;
}

.advert-marketplace-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.advert-marketplace-rail,
.advert-marketplace-summary {
    background:
        linear-gradient(160deg, rgba(50, 101, 42, 0.06), rgba(255, 255, 255, 0.96) 58%),
        var(--pc-surface);
}

.advert-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: end;
}

.advert-filter-field,
.advert-filter-field .form-control,
.advert-filter-field .form-select {
    min-width: 0;
}

.advert-filter-actions,
.advert-result-controls,
.advert-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.advert-filter-actions .btn,
.advert-view-toggle .btn {
    flex: 1 1 auto;
}

.advert-marketplace-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.advert-result-controls {
    justify-content: flex-start;
}

.advert-listing-results {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.advert-empty-state {
    background:
        linear-gradient(160deg, rgba(50, 101, 42, 0.04), rgba(255, 255, 255, 0.98) 60%),
        var(--pc-surface);
}

.location-map {
    min-width: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(222, 226, 230, 0.92);
    overflow-wrap: anywhere;
}

.location-map a {
    color: var(--pc-accent);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.advert-marketplace-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(222, 226, 230, 0.92);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--pc-ink);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.advert-marketplace-link span,
.advert-marketplace-link small {
    display: block;
}

.advert-marketplace-link span {
    font-weight: 800;
}

.advert-marketplace-link small {
    color: var(--pc-muted);
    text-align: right;
}

.advert-marketplace-link:hover,
.advert-marketplace-link:focus,
.advert-marketplace-link.is-active {
    color: var(--pc-ink);
    border-color: rgba(50, 101, 42, 0.28);
    background: rgba(50, 101, 42, 0.06);
    box-shadow: 0 0.8rem 1.5rem rgba(33, 37, 41, 0.06);
    transform: translateY(-1px);
}

.advert-marketplace-link.is-active span {
    color: var(--pc-accent);
}

.advert-marketplace-link.is-static {
    cursor: default;
}

.advert-listing-stack {
    display: grid;
    gap: 1rem;
}

.advert-listing-item {
    min-width: 0;
}

.advert-listing-card,
.advert-manage-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.advert-listing-card:hover,
.advert-listing-card:has(.advert-card-title-link:focus-visible),
.advert-manage-card:hover,
.advert-manage-card:has(.advert-card-title-link:focus-visible) {
    transform: translateY(-2px);
    border-color: rgba(50, 101, 42, 0.22);
    box-shadow: 0 1rem 2rem rgba(33, 37, 41, 0.1);
}

.advert-card-title-link {
    color: inherit;
    text-decoration: none;
}

.advert-card-title-link:hover,
.advert-card-title-link:focus {
    color: var(--pc-accent);
}

.advert-listing-card-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100%;
}

.advert-listing-card-media-wrap {
    position: relative;
    min-height: 15rem;
    background: #e9ecef;
}

.advert-listing-card-media {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.advert-listing-card-media-overlay {
    position: absolute;
    inset: 1rem 1rem auto 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    pointer-events: none;
}

.advert-listing-card-category,
.advert-listing-card-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 0.55rem 1rem rgba(17, 24, 32, 0.12);
    backdrop-filter: blur(8px);
}

.advert-listing-card-category {
    background: rgba(255, 255, 255, 0.92);
    color: var(--pc-ink);
}

.advert-listing-card-chip {
    background: var(--pc-accent);
    color: #ffffff;
}

.advert-listing-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: 1.25rem;
}

.advert-listing-card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.advert-listing-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.advert-listing-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.2rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(222, 226, 230, 0.92);
    border-radius: 999px;
    background: rgba(248, 249, 250, 0.95);
    color: var(--pc-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.advert-listing-card-disclosure {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pc-accent);
    font-size: 0.92rem;
    font-weight: 800;
}

.advert-listing-card-title {
    line-height: 1.28;
    max-width: 26ch;
}

.advert-listing-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    color: var(--pc-muted);
    font-size: 0.95rem;
}

.advert-listing-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.advert-listing-card-excerpt {
    max-width: 68ch;
    color: #495057;
    line-height: 1.68;
}

.advert-listing-card-litter {
    padding: 1rem;
    border: 1px solid rgba(222, 226, 230, 0.92);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(50, 101, 42, 0.05), rgba(255, 255, 255, 0.98) 52%),
        var(--pc-surface);
}

.advert-listing-card-litter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    color: #495057;
    font-size: 0.94rem;
}

.advert-listing-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(222, 226, 230, 0.92);
}

.advert-listing-card-owner {
    display: grid;
    gap: 0.2rem;
}

.advert-listing-card-owner-label {
    color: var(--pc-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.advert-listing-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: flex-end;
}

.advert-card-action-layer,
.advert-card-action-row {
    position: relative;
    z-index: 1;
}

.advert-listing-card .btn,
.advert-manage-card .btn {
    border-radius: 999px;
}

.search-guide-card {
    background:
        linear-gradient(160deg, rgba(50, 101, 42, 0.06), rgba(255, 255, 255, 0.96) 58%),
        var(--pc-surface);
}

.search-guide-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--pc-muted);
    display: grid;
    gap: 0.65rem;
}

.search-summary-card,
.search-empty-card,
.search-group-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 250, 0.94)),
        var(--pc-surface);
}

.search-result-stack {
    display: grid;
    gap: 1rem;
}

.search-result-card {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1rem;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.search-result-card:hover,
.search-result-card:focus-within {
    border-color: rgba(15, 23, 42, 0.22);
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.search-result-card-inner {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.search-result-card-media-wrap {
    flex: 0 0 132px;
    max-width: 132px;
}

.search-result-card-media {
    width: 132px;
    height: 104px;
    object-fit: cover;
    border-radius: 0.85rem;
    display: block;
    background: #f8f9fa;
}

.search-result-card-body {
    min-width: 0;
    flex: 1 1 auto;
}

.search-result-card-link {
    color: inherit;
    text-decoration: none;
}

.search-result-card-link:hover,
.search-result-card-link:focus {
    color: var(--pc-accent);
}

.search-result-card-link::after {
    border-radius: 1rem;
}

.dog-directory-main,
.dog-directory-sidebar,
.dog-card-body {
    min-width: 0;
}

.dog-directory-layout,
.dog-card,
.dog-profile-header,
.dog-profile-details {
    overflow-wrap: anywhere;
}

.dog-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dog-card-clickable:hover,
.dog-card-clickable:focus-within {
    border-color: var(--pc-accent);
    box-shadow: var(--pc-shadow);
}

.dog-card-media {
    overflow: hidden;
    border-radius: 1.2rem 1.2rem 0 0;
    background: var(--pc-surface-soft);
}

.dog-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 18rem;
    object-fit: cover;
}

.dog-card-image-placeholder {
    object-fit: contain;
}

.dog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.dog-card-title-link {
    color: inherit;
    text-decoration: none;
}

.dog-card-title-link:hover,
.dog-card-title-link:focus {
    color: var(--pc-accent);
}

.dog-card-title-link::after {
    border-radius: 1.25rem;
}

.dog-card-title-link:focus-visible::after {
    outline: 2px solid var(--pc-accent);
    outline-offset: 3px;
}

.dog-card-action {
    position: relative;
    z-index: 2;
}

.dog-profile-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
}

.dog-profile-cover {
    position: relative;
    min-height: clamp(8.5rem, 24vw, 14rem);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.68), transparent 34%),
        linear-gradient(135deg, rgba(50, 101, 42, 0.2), rgba(52, 58, 64, 0.12) 52%, rgba(255, 255, 255, 0.94) 100%);
}

.dog-profile-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-profile-shell .dog-profile-header,
.breeder-profile-shell .dog-profile-header {
    position: relative;
    margin-top: -3.6rem;
    padding-top: 0 !important;
}

.dog-profile-media {
    width: 100%;
    max-width: 20rem;
}

.dog-profile-image {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--pc-surface-soft);
    border: 4px solid #ffffff;
    box-shadow: 0 1rem 2rem rgba(17, 24, 32, 0.18);
}

.dog-profile-image-placeholder,
.dog-media-preview-placeholder {
    object-fit: contain;
}

.dog-profile-copy {
    line-height: 1.75;
}

.dog-media-panel {
    min-width: 0;
}

.dog-media-preview-wrap,
.dog-cover-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--pc-border);
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(50, 101, 42, 0.08), rgba(255, 255, 255, 0.96)),
        var(--pc-surface-soft);
}

.dog-media-preview-wrap {
    aspect-ratio: 4 / 3;
}

.dog-media-preview-image,
.dog-cover-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-cover-preview {
    aspect-ratio: 16 / 7;
}

.dog-cover-preview-placeholder {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.72;
}

.breeder-media-panel,
.breeder-profile-shell {
    min-width: 0;
    overflow-wrap: anywhere;
}

.breeder-logo-preview,
.breeder-cover-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--pc-border);
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(50, 101, 42, 0.08), rgba(255, 255, 255, 0.96)),
        var(--pc-surface-soft);
}

.breeder-logo-preview {
    aspect-ratio: 4 / 3;
}

.breeder-cover-preview {
    aspect-ratio: 16 / 7;
}

.breeder-logo-preview-image,
.breeder-cover-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breeder-cover-preview-empty {
    padding: 1.5rem;
    text-align: center;
}

.breeder-edit-summary-logo,
.breeder-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--pc-border);
    border-radius: 1rem;
    background: var(--pc-surface-soft);
}

.breeder-profile-shell {
    overflow: hidden;
}

.breeder-profile-cover {
    position: relative;
    min-height: clamp(9rem, 25vw, 15rem);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.68), transparent 34%),
        linear-gradient(135deg, rgba(50, 101, 42, 0.2), rgba(52, 58, 64, 0.12) 52%, rgba(255, 255, 255, 0.94) 100%);
}

.breeder-profile-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breeder-profile-main {
    position: relative;
    margin-top: -3.6rem;
}

.breeder-profile-logo-wrap {
    width: min(100%, 18rem);
    aspect-ratio: 1;
    margin-inline: auto;
}

.breeder-profile-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #ffffff;
    border-radius: 1.4rem;
    background: var(--pc-surface-soft);
    box-shadow: 0 1rem 2rem rgba(17, 24, 32, 0.18);
}

.breeder-image-placeholder {
    object-fit: contain;
    padding: 1rem;
    background: #ffffff;
}

.event-cover-panel {
    min-width: 0;
}

.event-cover-preview,
.event-profile-cover {
    overflow: hidden;
    border: 1px solid var(--pc-border);
    border-radius: 1rem;
    background: var(--pc-surface-soft);
}

.event-cover-preview {
    aspect-ratio: 16 / 9;
}

.event-profile-cover {
    aspect-ratio: 16 / 9;
    max-height: 26rem;
}

.event-cover-preview-image,
.event-profile-cover-image,
.event-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-image {
    aspect-ratio: 4 / 3;
}

.event-cover-image-placeholder {
    object-fit: contain;
    padding: clamp(1rem, 5vw, 2.5rem);
}

.event-directory,
.event-detail-layout,
.event-card,
.event-card-body,
.event-detail-main,
.event-detail-aside {
    min-width: 0;
}

.event-browse-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.event-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr);
}

.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-card-media {
    position: relative;
    background: var(--pc-surface-soft);
}

.event-card-image {
    aspect-ratio: 16 / 9;
}

.event-date-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    min-height: 3.6rem;
    padding: .3rem;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .96);
    color: var(--pc-text, #26332d);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    line-height: 1.1;
}

.event-date-badge strong { font-size: 1.45rem; }
.event-date-badge span { font-size: .7rem; font-weight: 700; }

.event-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow-wrap: anywhere;
}

.event-card-action {
    position: relative;
    z-index: 2;
}

.event-card-meta,
.event-price,
.event-detail-summary { overflow-wrap: anywhere; }

.event-price { font-weight: 600; }

.event-detail-layout { display: grid; gap: 1.5rem; }
.event-detail-main { max-width: 52rem; }
.event-description { overflow-wrap: anywhere; }
.event-location-block,
.event-online-block { overflow-wrap: anywhere; }
.event-online-block .btn { max-width: 100%; white-space: normal; }
.event-organizer-avatar { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; flex: none; }

@media (min-width: 768px) {
    .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .event-detail-layout { grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem); align-items: start; }
}

@media (min-width: 768px) {
    .dog-directory-main .dog-card {
        display: grid;
        grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
    }

    .dog-directory-main .dog-card-media {
        border-radius: 1.2rem 0 0 1.2rem;
    }

    .dog-directory-main .dog-card-image {
        height: 100%;
        max-height: none;
        aspect-ratio: auto;
    }

    .dog-profile-header {
        grid-template-columns: minmax(10rem, 28%) minmax(0, 1fr);
    }

    .dog-profile-header > .min-w-0 {
        padding-top: 4.25rem;
    }
}

.footer-note {
    border-top: 1px solid var(--pc-border);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

@media (min-width: 1200px) {
    .app-shell-grid {
        display: grid;
        grid-template-columns: minmax(16.5rem, 18.75rem) minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
    }

    .home-social-layout {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 21.5rem);
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .advert-gallery-additional,
    .advert-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .advert-listing-card-shell {
        grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
    }

    .advert-listing-card-media {
        aspect-ratio: auto;
    }

    .advert-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advert-filter-location,
    .advert-filter-actions {
        grid-column: span 2;
    }

    .advert-marketplace-results {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .advert-result-controls {
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .advert-listing-results.is-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advert-listing-card--grid .advert-listing-card-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .advert-listing-card--grid .advert-listing-card-media {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .advert-listing-card--grid .advert-listing-card-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 1400px) {
    .home-support-rail {
        position: sticky;
        top: calc(var(--pc-header-offset) + 1rem);
    }
}

@media (max-width: 1199.98px) {
    :root {
        --pc-header-offset: 5.75rem;
    }

    .site-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .site-topbar-start { grid-column: 1; grid-row: 1; }
    .site-topbar-actions { grid-column: 2; grid-row: 1; }
    .header-search-shell { grid-column: 1 / -1; grid-row: 2; padding-top: .25rem; }

    .home-support-rail {
        position: static;
    }

    .advert-marketplace-sidebar.site-rail-sticky,
    .advert-marketplace-rail.site-rail-sticky {
        position: static;
        top: auto;
    }
}

@media (max-width: 991.98px) {
    :root {
        --pc-header-offset: 5.75rem;
    }

    .site-topbar {
        gap: 0.85rem;
    }

    .site-brand-title {
        font-size: 0.95rem;
    }

    .header-search-group {
        border-radius: 1rem;
    }

    .header-search-input {
        min-height: 3rem;
    }

    .header-search-button {
        min-width: 3.5rem;
    }

    .profile-hub-header-body {
        margin-top: -2.75rem;
    }
}

@media (max-width: 767.98px) {
    .site-topbar-start,
    .site-topbar-actions {
        gap: 0.5rem;
    }

    .site-topbar-button,
    .site-menu-toggle {
        padding-inline: 0.8rem;
    }

    .composer-teaser-trigger {
        min-height: 3rem;
    }

    .feed-card-detail-button {
        width: 100%;
        justify-content: center;
    }

    .feed-card-comments {
        width: 100%;
        min-width: 100%;
    }

    .feed-card-comments-summary {
        align-items: flex-start;
    }

    .feed-preview-media-wrap,
    .feed-preview-media {
        min-height: 16rem;
    }

    .advert-marketplace-link {
        align-items: flex-start;
        flex-direction: column;
    }

    .advert-marketplace-link small {
        text-align: left;
    }

    .advert-listing-card-topline,
    .advert-listing-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .advert-listing-card-links {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .site-brand-copy { display: none; }
}

@media (max-width: 575.98px) {
    .site-brand-title {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .site-brand {
        gap: 0.65rem;
    }

    .navbar-brand-logo {
        width: 2.45rem;
        height: 2.45rem;
    }

    .site-topbar-button,
    .site-menu-toggle {
        min-height: 2.5rem;
    }

    .site-account-toggle {
        padding-inline: 0.45rem 0.7rem;
    }

    .site-account-avatar,
    .composer-teaser-avatar {
        width: 2.25rem;
        height: 2.25rem;
    }

    .feed-card,
    .hero-card,
    .content-card {
        border-radius: 1rem;
    }

    .upload-dropzone {
        padding: 1.2rem 1rem;
    }

    .profile-settings-nav {
        gap: 0.5rem;
    }

    .search-result-card-inner {
        display: block;
    }

    .search-result-card-media-wrap {
        max-width: none;
        margin-bottom: 0.85rem;
    }

    .search-result-card-media {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }
}
.gallery-section {
    min-width: 0;
}

.gallery-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.gallery-upload-panel {
    padding: 1rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 1rem;
    background: #f8f9fa;
    margin-bottom: 1.5rem;
}

.gallery-upload-fields {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.gallery-upload-fields .form-control {
    flex: 1 1 14rem;
    min-width: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
}

.gallery-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 1rem;
    background: #fff;
}

.gallery-image-link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    padding: .75rem .85rem 0;
    overflow-wrap: anywhere;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .75rem .85rem;
}

.gallery-tag {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #eef1ed;
    font-size: .75rem;
}

.gallery-owner-controls {
    display: grid;
    gap: .75rem;
    padding: .85rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.gallery-owner-controls .form-control {
    min-width: 0;
}

.gallery-empty-state {
    overflow-wrap: anywhere;
    color: #66706b;
}

@media (max-width: 575.98px) {
    .gallery-upload-fields .btn,
    .gallery-owner-controls .btn {
        width: 100%;
    }
}
.post-tag-badge,
.tag-archive-title,
.post-body-text {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

/* PRESA-UX-REFRESH-20260925-BEGIN */
:root{--pc-side-rail-width:18.75rem}
.site-header{background:var(--pc-header)}
.site-brand{gap:1rem;margin-right:clamp(1rem,2vw,2.25rem)}
.navbar-brand-logo{width:3.15rem;height:3.15rem}.site-brand-title{font-size:1.08rem}
.header-search-group{border-radius:999px;background:#fff;overflow:hidden;box-shadow:0 .45rem 1.3rem rgba(0,0,0,.13)}.header-search-icon{border-radius:999px 0 0 999px}.header-search-button{border-radius:0 999px 999px 0}
.site-account-toggle{background:#fff;border-color:#fff;color:#212529}.site-account-toggle:hover,.site-account-toggle:focus,.site-account-toggle.active,.site-account-toggle.show{background:#f8f9fa;border-color:#f8f9fa;color:#212529}
.app-flash-stack{display:grid;gap:.75rem}.app-flash{--flash-accent:#32652a;position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.85rem;overflow:hidden;padding:1rem 1rem 1.1rem;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:1rem;box-shadow:0 .8rem 2rem rgba(15,23,42,.1);transition:opacity .2s ease,transform .2s ease}.app-flash--success{--flash-accent:#198754}.app-flash--error{--flash-accent:#dc3545}.app-flash--warning{--flash-accent:#d68a00}.app-flash--info{--flash-accent:#32652a}.app-flash.is-closing{opacity:0;transform:translateY(-6px)}.app-flash__icon{display:grid;place-items:center;width:2.2rem;height:2.2rem;border-radius:50%;background:#f1f3f5;color:var(--flash-accent)}.app-flash__body{min-width:0;font-weight:650;overflow-wrap:anywhere}.app-flash__close{display:grid;place-items:center;width:2rem;height:2rem;border:0;border-radius:50%;background:transparent;color:#6c757d}.app-flash__close:hover,.app-flash__close:focus-visible{background:#f1f3f5;color:#212529}.app-flash__progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--flash-accent);transform-origin:left;animation:pc-flash-progress 5s linear forwards}@keyframes pc-flash-progress{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.composer-teaser-guest{background:#fff;border-color:rgba(15,23,42,.08);box-shadow:var(--pc-shadow-soft)}
.feed-engagement-actions{display:flex;align-items:center;gap:.55rem}.feed-card-comments-panel{width:100%;padding-top:1rem;border-top:1px solid rgba(222,226,230,.9)}
.feed-open-modal-button,.section-edit-button,.profile-edit-fab{display:inline-grid;place-items:center;width:2.45rem;height:2.45rem;padding:0;border:1px solid rgba(15,23,42,.12);border-radius:50%;background:rgba(255,255,255,.96);color:#343a40;box-shadow:0 .35rem .9rem rgba(15,23,42,.09)}.profile-edit-fab{position:absolute;z-index:3}.profile-edit-fab--cover{top:1rem;right:1rem}.profile-edit-fab--avatar{right:.7rem;bottom:.7rem}.section-title-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}

/* SOCIAL-PROFILE-UX-002A: common profile-cover and avatar proportions. */
.profile-hub-cover,.dog-profile-cover,.breeder-profile-cover{min-height:clamp(8.5rem,24vw,14rem)}
.profile-hub-avatar,.dog-profile-image{width:clamp(7rem,14vw,10rem);height:clamp(7rem,14vw,10rem);aspect-ratio:1;object-fit:cover;border-radius:1.25rem}
.dog-profile-media{width:clamp(7rem,14vw,10rem);max-width:none}
@media(min-width:992px){.dog-profile-header{grid-template-columns:10rem minmax(0,1fr)}}

/* SOCIAL-PROFILE-UX-002B: advert primary photograph uses the event cover width. */
.advert-detail-cover{height:clamp(14rem,38vw,27rem);background:var(--pc-surface-soft);overflow:hidden}
.advert-detail-cover img{display:block;width:100%;height:100%;object-fit:cover}
.advert-gallery-additional{display:grid;grid-template-columns:repeat(auto-fill,minmax(9rem,1fr));gap:.75rem}
.advert-gallery-additional img{width:100%;height:10rem;object-fit:cover;border-radius:.75rem}
.feed-preview-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(18rem,.75fr);min-height:min(72vh,48rem)}.feed-preview-layout--text-only{display:block;min-height:0}.feed-preview-layout--text-only .feed-preview-sidebar{max-width:52rem;margin-inline:auto}.feed-preview-sidebar{min-width:0;padding:1.25rem;overflow-y:auto}.feed-preview-media-wrap{min-height:26rem;background:#111}.feed-preview-media{width:100%;height:100%;max-height:74vh;object-fit:contain}
.dog-card-clickable,.breeder-directory-card{position:relative;border-color:rgba(15,23,42,.08);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.dog-card-clickable:hover,.dog-card-clickable:focus-within,.breeder-directory-card:hover,.breeder-directory-card:focus-within{transform:translateY(-2px);border-color:rgba(15,23,42,.14);box-shadow:0 .9rem 2rem rgba(15,23,42,.09)}.dog-card-media{position:relative}.dog-card-own-badge{position:absolute;top:.8rem;left:.8rem;display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .7rem;border-radius:999px;background:rgba(22,21,21,.88);color:#fff;font-size:.78rem;font-weight:800}.dog-card-actions,.breeder-card-actions{position:relative;z-index:2}.breeder-card-title{color:inherit;text-decoration:none}.dog-directory-layout{display:grid;gap:1.5rem}
.profile-owner-note{display:flex;align-items:center;gap:.7rem;padding:.85rem 1rem;background:#fff;border:1px solid rgba(15,23,42,.09);border-radius:.9rem;box-shadow:var(--pc-shadow-soft)}.profile-definition-grid{display:grid;grid-template-columns:minmax(8rem,.75fr) minmax(0,1fr);gap:.65rem 1rem}.profile-definition-grid dt{color:#6c757d;font-weight:700}.profile-definition-grid dd{margin:0}.empty-state-clean{display:flex;justify-content:center;align-items:center;gap:.8rem;min-height:6rem;color:#6c757d;text-align:center}
.pedigree-tree{position:relative;display:grid;justify-items:center}.pedigree-node{position:relative;z-index:2;display:flex;align-items:center;gap:.85rem;width:min(100%,20rem);padding:.85rem;background:#fff;border:1px solid rgba(15,23,42,.1);border-radius:1rem;box-shadow:0 .45rem 1.2rem rgba(15,23,42,.07)}.pedigree-node--empty{display:block;min-height:5.5rem;color:#6c757d}.pedigree-node__media{flex:0 0 3.6rem;width:3.6rem;height:3.6rem;overflow:hidden;border-radius:.85rem}.pedigree-node__media img{width:100%;height:100%;object-fit:cover}.pedigree-node__copy{min-width:0}.pedigree-node__name{font-weight:800;overflow-wrap:anywhere}.pedigree-tree__stem{width:2px;height:1.35rem;background:#ced4da}.pedigree-tree__parents{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:1.25rem;padding-top:1.35rem}.pedigree-tree__parents:before{content:"";position:absolute;top:0;left:25%;right:25%;height:2px;background:#ced4da}.pedigree-tree__branch{position:relative;min-width:0}.pedigree-tree__branch:before{content:"";position:absolute;top:-1.35rem;left:50%;width:2px;height:1.35rem;background:#ced4da}
.award-timeline{position:relative;display:grid;gap:1.25rem}.award-timeline:before{content:"";position:absolute;top:0;bottom:0;left:1rem;width:2px;background:#dee2e6}.award-timeline__item{position:relative;padding-left:2.6rem}.award-timeline__dot{position:absolute;top:1.35rem;left:.63rem;width:.78rem;height:.78rem;border:3px solid #fff;border-radius:50%;background:#212529;box-shadow:0 0 0 2px #ced4da}.award-card{overflow:hidden}.award-card__image{display:block;width:calc(100% + 2rem);max-height:18rem;margin:-1rem -1rem 1rem;object-fit:cover}
.location-map__heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap}.location-map__canvas{position:relative;overflow:hidden;width:100%;min-height:18rem;background:#f1f3f5;border:1px solid rgba(15,23,42,.1);border-radius:1rem}.location-map__canvas iframe{display:block;width:100%;height:clamp(18rem,40vw,28rem);border:0}.location-map__loading{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:.6rem;color:#6c757d}.share-copy-only{display:inline-flex}
@media(min-width:992px){.award-timeline:before{left:50%;transform:translateX(-1px)}.award-timeline__item{width:50%;padding:0}.award-timeline__item--left{padding-right:2rem;justify-self:start}.award-timeline__item--right{padding-left:2rem;justify-self:end}.award-timeline__item--left .award-timeline__dot{left:auto;right:-.39rem}.award-timeline__item--right .award-timeline__dot{left:-.39rem}}
@media(min-width:1200px){.app-shell-grid{grid-template-columns:var(--pc-side-rail-width) minmax(0,1fr)}.home-social-layout,.dog-directory-layout,.event-detail-layout{grid-template-columns:minmax(0,1fr) var(--pc-side-rail-width)}}
@media(max-width:991.98px){.feed-preview-layout{display:block;min-height:0}.feed-preview-media-wrap{min-height:16rem}}
@media(max-width:767.98px){.pedigree-tree__parents{grid-template-columns:1fr}.pedigree-tree__parents:before,.pedigree-tree__branch:before{display:none}.site-brand{margin-right:.25rem}}
/* PRESA-UX-REFRESH-20260925-END */
.location-picker__map{height:15rem;border-radius:.75rem;border:1px solid #dee2e6;z-index:0}
.location-picker[data-location-picker] .leaflet-container{font:inherit}

/* A single contained photo viewer for detail images and entity galleries. */
.photo-viewer-trigger{cursor:zoom-in}
.cover-focus-edit{position:absolute;right:1rem;bottom:1rem;z-index:4;display:inline-flex;align-items:center;gap:.4rem;border-radius:999px;box-shadow:0 .3rem 1rem rgba(0,0,0,.2)}
.profile-hub-cover,.event-profile-cover,.advert-detail-cover{position:relative}
.cover-focus-preview{height:clamp(12rem,33vw,22rem);overflow:hidden;border-radius:1rem;background:var(--pc-surface-soft);cursor:crosshair;touch-action:none;user-select:none}
.cover-focus-preview img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.photo-viewer-trigger:focus-visible{outline:3px solid var(--pc-accent);outline-offset:2px}
.photo-viewer-cover-link{position:absolute;inset:0;display:block}
.photo-viewer-avatar-link{display:inline-block;line-height:0}
.photo-viewer-event-link{display:block;width:100%;height:100%}
.photo-viewer-post-link{display:block}
.photo-viewer-award-link{display:block}
.advert-cover-trigger{display:block;width:100%;height:100%}
.advert-gallery-trigger{display:block;overflow:hidden;border-radius:.75rem}
.advert-gallery-trigger img{display:block;width:100%;height:10rem;object-fit:cover}
.photo-viewer-content{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.photo-viewer-header,.photo-viewer-footer{flex:0 0 auto;min-width:0}
.photo-viewer-heading{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.photo-viewer-body{position:relative;display:flex;flex:1 1 auto;min-height:0;min-width:0;padding:0;overflow:hidden}
.photo-viewer-stage{display:flex;flex:1 1 auto;min-width:0;min-height:0;padding:1rem clamp(3.25rem,7vw,5rem);overflow:hidden;align-items:center;justify-content:center}
.photo-viewer-image{display:block;width:100%;height:100%;object-fit:contain}
.photo-viewer-nav{position:absolute;top:50%;z-index:2;display:grid;place-items:center;transform:translateY(-50%);width:2.75rem;height:2.75rem;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(0,0,0,.65);color:#fff}
.photo-viewer-nav:hover,.photo-viewer-nav:focus-visible{background:#fff;color:#212529}
.photo-viewer-nav[hidden]{display:none!important}
.photo-viewer-nav-prev{left:.6rem}
.photo-viewer-nav-next{right:.6rem}
.photo-viewer-caption{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-viewer-counter{flex:0 0 auto;margin-left:auto}
@media(max-width:575.98px){.photo-viewer-stage{padding:.5rem 2.85rem}.photo-viewer-nav{width:2.4rem;height:2.4rem}.photo-viewer-nav-prev{left:.2rem}.photo-viewer-nav-next{right:.2rem}}

/* ADVERT-UX-004: compact browse rail, simple cards and a photo-led detail page. */
.advert-marketplace-link { min-height: 2.75rem; padding: .55rem .75rem; border-radius: .7rem; }
.advert-marketplace-link .advert-category-count { margin-left: auto; color: var(--pc-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.advert-marketplace-link.is-active .advert-category-count { color: var(--pc-accent); }
.advert-marketplace-sidebar .advert-filter-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.advert-marketplace-sidebar .advert-filter-location,
.advert-marketplace-sidebar .advert-filter-sort,
.advert-marketplace-sidebar .advert-filter-actions { grid-column: 1 / -1; }
.advert-marketplace-sidebar .advert-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
.advert-view-toggle { flex-wrap: nowrap; gap: .35rem; }
.advert-view-toggle .btn { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center; padding: 0; font-size: 1.15rem; }
.advert-listing-card-body { gap: .55rem; justify-content: center; padding: 1.1rem 1.3rem; }
.advert-listing-card-title { max-width: none; font-size: 1.1rem; }
.advert-listing-card-facts { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: baseline; }
.advert-listing-card-price { font-size: 1.15rem; font-weight: 800; color: var(--pc-ink); }
.advert-listing-card-location { color: var(--pc-muted); font-size: .91rem; }
.advert-listing-card-excerpt { font-size: .94rem; line-height: 1.45; }
.advert-listing-results.is-grid .advert-listing-card-excerpt { display: none; }
.advert-listing-results.is-grid .advert-listing-card-body { justify-content: flex-start; }
.advert-listing-results.is-grid .advert-listing-card-facts { display: grid; gap: .2rem; }
.advert-detail-heading h1 { max-width: 32ch; }
.advert-detail-description { line-height: 1.75; overflow-wrap: anywhere; }
.profile-hub-cover, .dog-profile-cover, .breeder-profile-cover { aspect-ratio: 3 / 1; min-height: 0; }
.advert-detail-cover { height: auto; aspect-ratio: 16 / 9; }
.advert-detail-facts dl { display: grid; grid-template-columns: 6rem minmax(0,1fr); gap: .6rem .9rem; margin: 0; }
.advert-detail-facts dt { color: var(--pc-muted); font-weight: 600; }
.advert-detail-facts dd { margin: 0; overflow-wrap: anywhere; }
.advert-detail-price { font-size: clamp(1.7rem,3vw,2.3rem); font-weight: 800; line-height: 1.1; }
@media (min-width: 992px) { .advert-detail-sidebar { align-self: start; position: sticky; top: calc(var(--pc-header-offset) + 1rem); } }
@media (max-width: 575.98px) {
    .advert-marketplace-link { flex-direction: row; align-items: center; }
    .advert-marketplace-link .advert-category-count { text-align: right; }
}

/* The selected file stays local while the owner previews its framing. */
.image-adjust-dialog { width: min(94vw, 820px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 1rem; box-shadow: 0 2rem 5rem rgba(0,0,0,.3); overflow: auto; }
.image-adjust-dialog::backdrop { background: rgba(9,20,30,.76); }
.image-adjust-panel { background: #fff; }
.image-adjust-heading, .image-adjust-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.image-adjust-heading { border-bottom: 1px solid #dee2e6; }
.image-adjust-actions { justify-content: flex-end; border-top: 1px solid #dee2e6; }
.image-adjust-stage { position: relative; height: min(54vh, 520px); min-height: 210px; margin: 0 1rem; overflow: hidden; background: #20252a; cursor: move; touch-action: none; user-select: none; }
.image-adjust-stage img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; display: block; }
.image-adjust-frame { position: absolute; z-index: 1; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.58), 0 0 .7rem rgba(0,0,0,.5); pointer-events: none; }
.image-adjust-controls { padding: 1rem 1.25rem; }
@media (max-width: 575.98px) { .image-adjust-dialog { width: 98vw; } .image-adjust-stage { height: min(46vh,390px); min-height: 190px; } }

/* THEME-012: member activity follows the same desktop column as the home feed. */
.upload-image-previews { display:grid;grid-template-columns:repeat(auto-fill,minmax(7rem,1fr));gap:.7rem;margin-top:.75rem }
.upload-image-previews:empty { display:none }
.upload-image-preview { min-width:0;border:1px solid var(--pc-border);border-radius:.7rem;padding:.35rem;background:var(--pc-surface-soft);font-size:.75rem;overflow:hidden }
.upload-image-preview img { display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:.4rem;background:#20252a }
.upload-image-preview span { display:block;margin-top:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }
.saved-image-editor [data-image-frame="avatar"] { width:min(100%,15rem);height:auto;aspect-ratio:1;margin-inline:auto }
.saved-image-editor [data-image-frame="gallery"] { width:min(100%,22rem);height:auto;aspect-ratio:4/3;margin-inline:auto }
.saved-image-editor [data-image-frame="cover"] { aspect-ratio:3/1;height:auto }
.saved-image-editor [data-image-frame="event-cover"] { aspect-ratio:16/9;height:auto }
.photo-viewer-avatar-link { overflow:hidden;border-radius:1rem }
.post-photo-frame .photo-viewer-post-link,.feed-card-media-button { overflow:hidden;border-radius:1rem }
.cover-focus-preview img { transform-origin:center; }
.image-adjust-dialog { z-index:2000 }
.member-profile-feed-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.member-profile-feed-main { min-width: 0; }
@media (min-width: 1200px) {
    .member-profile-feed-layout { grid-template-columns: minmax(0, 1fr) var(--pc-side-rail-width); gap: 1.5rem; }
}

/* All profile and archive timelines use the home feed's main column width. */
.feed-column-width { min-width: 0; width: 100%; }
@media (min-width: 1200px) {
    .feed-column-width { width: calc(100% - var(--pc-side-rail-width) - 1.5rem); }
}

/* Keep the dog's head visible in cropped owner and kennel card thumbnails. */
.profile-hub-grid .dog-card-image,
.breeder-linked-dogs .dog-card-image { object-position: center top; }
/* The lime belongs on dark surfaces; green headings remain legible on white cards. */
.site-header .site-brand-title { color: var(--pc-lime); }
.app-nav-mobile .section-kicker { color: var(--pc-lime); }
.site-topbar-action-toggle.active,
.site-topbar-action-toggle.show { background: var(--pc-lime); border-color: var(--pc-lime); color: var(--pc-ink); }
.site-header .dropdown-item.active,
.site-header .dropdown-item:active,
.site-header .dropdown-item:focus,
.site-header .dropdown-item:hover { background: rgba(215, 251, 88, .25); color: var(--pc-ink); }

/* DIRECTORY-LAYOUT-013: matching list/grid controls for dog and kennel catalogues. */
.dog-catalog-results.is-grid .dog-card { display: flex; flex-direction: column; }
.dog-catalog-results.is-grid .dog-card-media { border-radius: 1.2rem 1.2rem 0 0; }
.dog-catalog-results.is-grid .dog-card-image { height: auto; aspect-ratio: 4 / 3; max-height: 18rem; }
.breeder-catalog-results .breeder-directory-card-body { min-width: 0; }
@media (min-width: 768px) {
    .breeder-catalog-results.is-list .breeder-directory-card { display: grid; grid-template-columns: minmax(0, 35%) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
    .breeder-catalog-results.is-list .breeder-card-image { height: 100%; max-height: 15rem; aspect-ratio: auto; margin-bottom: 0 !important; }
}

/* MOBILE-MESSAGES-PROFILE-014: full-height navigation and focused scroll panes. */
.site-mobile-nav { height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; z-index: 1050; }
.site-mobile-nav .offcanvas-body { overflow-y: auto; overscroll-behavior: contain; }
.message-thread-scroll { max-height: min(68vh, 43rem); max-height: min(68dvh, 43rem); overflow-y: auto; overscroll-behavior: contain; padding: .15rem; }
.message-history { max-height: min(65vh, 42rem); max-height: min(65dvh, 42rem); overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; }
.message-thread-card { display: flex; align-items: flex-start; gap: .8rem; min-width: 0; padding: .9rem; border: 1px solid var(--pc-border); border-radius: 1rem; background: var(--pc-surface-soft); color: var(--pc-ink); text-decoration: none; }
.message-thread-card:hover, .message-thread-card:focus-visible, .message-thread-card.is-active { border-color: var(--pc-accent); background: #fff; color: var(--pc-ink); }
.message-thread-card-content { display: block; flex: 1; min-width: 0; }
.message-thread-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-avatar { width: 2.8rem; height: 2.8rem; flex: 0 0 2.8rem; border-radius: 50%; object-fit: cover; background: var(--pc-surface-soft); }
.message-avatar-small { width: 2rem; height: 2rem; flex-basis: 2rem; }
.message-bubble { max-width: min(100%, 42rem); min-width: 0; overflow-wrap: anywhere; }
.message-report-toggle { width: 2rem; height: 2rem; display: inline-grid; place-items: center; padding: 0; }
.profile-hub-header .dog-profile-header { min-width: 0; }
.profile-hub-header .dog-profile-media { width: clamp(7rem, 14vw, 10rem); }
@media (max-width: 575.98px) { .message-avatar-small { width: 1.75rem; height: 1.75rem; flex-basis: 1.75rem; } }


.emoji-picker-trigger { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; margin-top: .45rem; padding: 0; border: 1px solid var(--pc-border); border-radius: .6rem; background: var(--pc-surface); font-size: 1.15rem; cursor: pointer; }
.emoji-picker-trigger:hover, .emoji-picker-trigger:focus-visible, .emoji-picker-option:hover, .emoji-picker-option:focus-visible { border-color: var(--pc-accent); background: var(--pc-surface-soft); outline: 2px solid var(--pc-accent); outline-offset: 1px; }
.emoji-picker-heading { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid var(--pc-border); }
.emoji-picker-content { max-height: min(27rem, calc(100dvh - 9rem)); overflow-y: auto; padding: .75rem 1rem 1rem; }
.emoji-picker-group-title { margin: .7rem 0 .35rem; font-size: .82rem; font-weight: 700; color: var(--pc-muted); }
.emoji-picker-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.emoji-picker-option { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 2.6rem; padding: 0; border: 1px solid transparent; border-radius: .45rem; background: transparent; font-size: 1.45rem; cursor: pointer; }
@media (max-width: 380px) { .emoji-picker-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Dates, comments and the nonmodal emoji picker. */
.event-date-badge { width: auto; min-width: 9.5rem; min-height: 2.5rem; padding: .5rem .65rem; }
.event-date-badge strong { font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed-comment-history { max-height: min(24rem, 48dvh); overflow-y: auto; overscroll-behavior: contain; padding: .15rem .25rem .15rem 0; }
.feed-comment-author { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; overflow-wrap: anywhere; }
.feed-comment-avatar { width: 2rem; height: 2rem; flex: 0 0 2rem; border-radius: 50%; object-fit: cover; background: var(--pc-surface-soft); }
.feed-comment-body { overflow-wrap: anywhere; }
.emoji-inline { display: inline-block; font-size: 1.25em; line-height: 1; vertical-align: -.09em; }
.emoji-picker-trigger { font-size: 1.45rem; }
.emoji-picker-popover { position: fixed; z-index: 2100; display: flex; flex-direction: column; width: min(22rem, calc(100vw - 1rem)); max-height: min(28rem, calc(100dvh - 1rem)); border: 1px solid var(--pc-border); border-radius: .85rem; color: var(--pc-ink); background: var(--pc-surface); box-shadow: var(--pc-shadow); }
.emoji-picker-popover[hidden] { display: none !important; }
.emoji-picker-popover .emoji-picker-heading { flex: 0 0 auto; padding: .7rem .85rem; }
.emoji-picker-popover .emoji-picker-content { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; padding: .4rem .75rem .75rem; }
.emoji-picker-popover .emoji-picker-option { font-size: 1.8rem; min-height: 2.75rem; }
.emoji-picker-popover .emoji-picker-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Full original with a movable framed area for every saved image. */
.saved-image-editor [data-image-frame] { width: 100%; height: min(54vh, 440px); min-height: 210px; aspect-ratio: auto; margin-inline: 0; }
.saved-image-editor .cover-focus-preview { position: relative; overflow: hidden; background: #20252a; cursor: move; touch-action: none; user-select: none; }
.saved-image-editor .cover-focus-preview img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; transform: none !important; pointer-events: none; }
.saved-image-editor .cover-focus-preview .image-adjust-frame { visibility: hidden; }
.saved-image-editor .cover-focus-preview.is-ready .image-adjust-frame { visibility: visible; }
.saved-image-editor .cover-focus-preview:focus-visible { outline: 3px solid var(--pc-accent); outline-offset: 2px; }
@media (max-width: 575.98px) { .saved-image-editor [data-image-frame] { height: min(44dvh, 360px); min-height: 190px; } }

/* Video drafts are compact; published players sit in the feed itself. */
.video-draft-preview { display: flex; align-items: center; gap: .75rem; width: min(100%, 22rem); min-height: 4.5rem; margin-top: .6rem; padding: .45rem; border: 1px solid var(--pc-border); border-radius: .7rem; background: var(--pc-surface-soft); }
.video-draft-preview[hidden] { display: none !important; }
.video-draft-preview img { width: 6.5rem; height: 4rem; object-fit: cover; border-radius: .45rem; }
.video-draft-preview-frame { width: 6.5rem; height: 9.5rem; flex: 0 0 6.5rem; border: 0; border-radius: .45rem; background: #111418; }
.video-draft-preview strong, .video-draft-preview a { display: block; font-size: .85rem; }
.feed-video-embed { width: 100%; max-width: 42rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .8rem; background: #111418; }
.feed-video-embed--portrait { max-width: 20rem; aspect-ratio: 9 / 16; }
.feed-video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.feed-video-link { padding: .6rem .85rem; border: 1px solid var(--pc-border); border-radius: .65rem; background: var(--pc-surface-soft); }

/* Owner actions sit over the image in shared and advert gallery grids. */
.gallery-item, .advert-gallery-thumb { position: relative; }
.gallery-owner-controls, .advert-gallery-thumb-actions {
    position: absolute;
    z-index: 3;
    right: .6rem;
    bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: 0;
    border: 0;
    background: transparent;
}
.gallery-owner-controls form, .advert-gallery-thumb-actions form { display: flex; margin: 0; }
.gallery-owner-controls .btn, .advert-gallery-thumb-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(20, 32, 46, .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 .15rem .55rem rgba(0, 0, 0, .24);
    line-height: 1;
}
.gallery-owner-controls .btn:not(.btn-outline-danger), .advert-gallery-thumb-actions .btn:not(.btn-outline-danger) { color: #1c2b39; }
.gallery-owner-controls .btn-outline-danger, .advert-gallery-thumb-actions .btn-outline-danger { color: #b52638; }
.gallery-owner-controls .btn:hover, .gallery-owner-controls .btn:focus-visible,
.advert-gallery-thumb-actions .btn:hover, .advert-gallery-thumb-actions .btn:focus-visible {
    background: #fff;
    border-color: #1c2b39;
    box-shadow: 0 .2rem .7rem rgba(0, 0, 0, .34);
}
@media (max-width: 575.98px) {
    .gallery-owner-controls .btn, .advert-gallery-thumb-actions .btn { width: 2.25rem; }
}

/* The full Unicode picker uses a wide, scrollable palette on desktop. */
.emoji-picker-popover { width: min(46rem, calc(100vw - 1rem)); max-height: min(21rem, calc(100dvh - 1rem)); }
.emoji-picker-popover .emoji-picker-content { overflow-y: auto; overscroll-behavior: contain; }
.emoji-picker-popover .emoji-picker-grid { grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); }

.post-media-toolbar { display: flex; align-items: center; gap: .45rem; min-height: 2.4rem; }
.post-media-toolbar .emoji-picker-trigger { margin-top: 0; }
.post-media-picker { position: relative; }
.post-media-picker > summary { list-style: none; }
.post-media-picker > summary::-webkit-details-marker { display: none; }
.post-media-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--pc-border); border-radius: .6rem; background: var(--pc-surface); color: var(--pc-ink); cursor: pointer; font-size: 1.35rem; }
.post-media-icon:hover, .post-media-icon:focus-visible, .post-media-picker[open] > .post-media-icon { border-color: var(--pc-accent); background: var(--pc-surface-soft); outline-offset: 1px; }
.post-media-icon:focus-visible { outline: 2px solid var(--pc-accent); }
.post-media-picker-content { position: absolute; z-index: 40; top: calc(100% + .5rem); left: 0; width: min(24rem, calc(100vw - 2rem)); max-height: min(28rem, calc(100dvh - 7rem)); overflow-y: auto; padding: 1rem; border: 1px solid var(--pc-border); border-radius: .85rem; background: var(--pc-surface); box-shadow: var(--pc-shadow); }
.post-media-picker-content .form-text { line-height: 1.4; }
