:root {
    color-scheme: light;
    --forest-950: #13261d;
    --forest-900: #1b3729;
    --forest-700: #355d45;
    --forest-500: #5d8568;
    --moss-300: #b8c8aa;
    --sand-100: #f5efe2;
    --sand-200: #ede5d6;
    --sand-300: #e4dbc9;
    --paper: rgba(250, 245, 236, 0.82);
    --paper-strong: rgba(255, 250, 242, 0.94);
    --accent: #c8742f;
    --accent-soft: #eeb16d;
    --line: rgba(19, 38, 29, 0.12);
    --text: #1b221c;
    --muted: #566158;
    --shadow: 0 24px 60px rgba(21, 34, 24, 0.16);
    --shadow-soft: 0 14px 34px rgba(21, 34, 24, 0.08);
    --radius-xl: 2rem;
    --radius-lg: 1.4rem;
    --radius-md: 1rem;
    --radius-sm: 0.85rem;
    --max-width: 72rem;
    --surface-color: rgba(255, 255, 255, 0.62);
    --surface-hover: rgba(255, 255, 255, 0.76);
    --border-color: rgba(19, 38, 29, 0.12);
    --text-color: var(--text);
    --text-muted: var(--muted);
    --primary-color: var(--forest-700);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 1rem 1rem 2.5rem;
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(238, 177, 109, 0.34), transparent 32%),
        radial-gradient(circle at top right, rgba(93, 133, 104, 0.2), transparent 28%),
        linear-gradient(180deg, #f4eddf 0%, #efe7d8 44%, #e3d7c2 100%);
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    z-index: 0;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(28px);
}

body::before {
    width: 15rem;
    height: 15rem;
    top: 4rem;
    right: -4rem;
    background: rgba(93, 133, 104, 0.18);
}

body::after {
    width: 18rem;
    height: 18rem;
    bottom: -5rem;
    left: -6rem;
    background: rgba(200, 116, 47, 0.14);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.page-shell > * {
    position: relative;
    z-index: 1;
}

.page-shell {
    --page-frame-width: 58rem;
}

.page-shell.page-home,
body[data-page="my-map"] {
    --page-frame-width: var(--max-width);
}

.site-header,
.content-main {
    width: min(100%, var(--page-frame-width));
    margin: 0 auto;
}

.site-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 0.25rem;
    z-index: 1100;
}

.brand-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: auto;
    width: auto;
    text-decoration: none;
    background: linear-gradient(145deg, rgba(255, 250, 242, 0.92), rgba(244, 236, 223, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    padding: 0.05rem;
    border-radius: 1.2rem;
}

.brand-mark {
    width: 3.45rem;
    height: 3.45rem;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(19, 38, 29, 0.18));
}

.brand-copy {
    display: none;
}

.brand-eyebrow,
.section-label,
.feature-tag,
.hero-kicker {
    color: var(--forest-700);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.header-actions {
    position: relative;
    z-index: 1101;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem;
    border-radius: 1.35rem;
    background: rgba(255, 249, 240, 0.58);
    border: 1px solid rgba(19, 38, 29, 0.08);
    box-shadow: var(--shadow-soft);
}

.content-main {
    display: grid;
    gap: 1.1rem;
    margin-top: 1.15rem;
}

.content-main-narrow {
    width: min(100%, 58rem);
}

.card,
.hero-card,
.feature-card,
.cta-card {
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-card {
    display: grid;
    gap: 1rem;
    overflow: hidden;
    padding: 1.1rem;
}

.hero-copy {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.hero-copy h1,
.page-intro h1,
.reauth-card h1,
.cta-card h2,
.feature-card h2,
.profile-top-copy h2,
.about-head h2 {
    margin: 0;
    color: var(--forest-950);
}

.hero-copy h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 15vw, 4.8rem);
    line-height: 0.94;
    max-width: 8ch;
}

.hero-lead,
.feature-card p,
.cta-card p,
.page-intro p,
.profile-top-copy p,
.help-panel p,
.reauth-card p,
.muted-copy {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.hero-actions,
.action-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion {
    margin-bottom: 0.1rem;
    padding: 0;
    overflow: hidden;
}

.accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    list-style: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(244, 237, 223, 0.9)),
        radial-gradient(circle at top right, rgba(238, 177, 109, 0.22), transparent 45%);
}

.accordion-summary::-webkit-details-marker {
    display: none;
}

.accordion-summary::after {
    content: "▾";
    font-size: 1.1rem;
    color: var(--muted);
    transition: transform 0.2s ease;
    transform: rotate(-90deg);
    margin-top: 0.2rem;
}

.accordion[open] .accordion-summary::after {
    transform: rotate(0deg);
}

.accordion-title {
    margin: 0;
    color: var(--forest-950);
    font-size: 1rem;
    font-weight: 700;
}

.accordion-body {
    display: grid;
    gap: 1rem;
    padding: 0 1.4rem 1.4rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.2rem;
    padding: 0.85rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 2px solid rgba(27, 55, 41, 0.28);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--forest-900), var(--forest-700));
    color: #f8f2e7;
    box-shadow: 0 16px 32px rgba(19, 38, 29, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(27, 55, 41, 0.12);
    color: var(--forest-950);
}

.btn-danger {
    background: linear-gradient(135deg, #8f2b2b, #6d1e1e);
    color: #fff7f2;
    box-shadow: 0 14px 28px rgba(110, 27, 27, 0.18);
}

.btn-large {
    min-height: 3.5rem;
    font-size: 1rem;
}

.cta-card,
.page-intro,
.profile-shell,
.about-shell,
.reauth-card {
    padding: 1.25rem;
}

.btn-icon {
    min-width: 3.1rem;
    padding-inline: 0.8rem;
    justify-content: center;
}

.btn-icon-labeled {
    gap: 0.6rem;
    justify-content: flex-start;
}

.btn-icon-label {
    white-space: nowrap;
}

.btn-icon-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-glyph svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

.btn-icon-glyph img {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    object-fit: cover;
}

.header-emoji-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.42rem;
    line-height: 1;
    transform: translateY(-0.03em);
}

.header-menu {
    position: static;
}

.header-menu summary {
    list-style: none;
    position: relative;
    z-index: 1000;
}

.header-menu summary::-webkit-details-marker {
    display: none;
}

.header-control-button {
    min-width: 2.9rem;
    min-height: 2.9rem;
    padding: 0.68rem;
    border-radius: 1rem;
    box-shadow: none;
}

.header-control-button.btn-icon-labeled {
    padding-inline: 0.9rem;
}

.header-control-button .btn-icon-glyph svg {
    width: 1.25rem;
    height: 1.25rem;
}

.header-control-button .btn-icon-glyph img {
    width: 1.5rem;
    height: 1.5rem;
}

.header-control-button .header-emoji-icon {
    font-size: 1.5rem;
}

.header-menu[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(12, 20, 16, 0.26);
    backdrop-filter: blur(2px);
    z-index: 998;
}

.header-menu-panel {
    position: fixed;
    top: 4.0rem;
    right: 0.75rem;
    width: min(21rem, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 4.7rem);
    padding: 0.42rem;
    border-radius: 1.25rem;
    background:
        linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(244, 236, 222, 0.96)),
        radial-gradient(circle at top right, rgba(93, 133, 104, 0.14), transparent 42%);
    border: 1px solid rgba(19, 38, 29, 0.1);
    box-shadow: 0 26px 60px rgba(19, 38, 29, 0.22);
    display: grid;
    gap: 0.25rem;
    overflow: auto;
    z-index: 999;
    opacity: 0;
    transform: translateX(1.2rem);
    pointer-events: none;
    transition: opacity 500ms ease, transform 500ms ease;
}

.header-menu[open] .header-menu-panel {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.header-menu-tabs {
    display: flex;
    gap: 0.2rem;
    padding: 0.18rem;
    background: rgba(19, 38, 29, 0.04);
    border-radius: 0.9rem;
    margin-bottom: 0.28rem;
}

.header-menu-tab-btn {
    flex: 1;
    appearance: none;
    border: none;
    background: transparent;
    padding: 0.42rem 0.18rem;
    border-radius: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest-800);
    cursor: pointer;
    text-align: center;
    transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.header-menu-tab-btn.is-active {
    background: #fff;
    color: var(--forest-950);
    box-shadow: 0 2px 4px rgba(19, 38, 29, 0.06);
}

.header-menu-tab-btn img {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    object-fit: cover;
}

.header-menu-tab-content {
    display: none;
    grid-template-columns: 1fr;
    gap: 0.22rem;
}

.header-menu-tab-content.is-active {
    display: grid;
}

.header-menu-lead {
    display: grid;
    gap: 0.38rem;
    padding: 0.62rem 0.72rem 0.68rem;
    margin-bottom: 0.04rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(53, 93, 69, 0.12), rgba(200, 116, 47, 0.12));
    border: 1px solid rgba(19, 38, 29, 0.08);
}

.header-menu-lead strong {
    font-size: 1.05rem;
    color: var(--forest-950);
}

.header-menu-lead p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}

.header-menu-lead.is-link-only {
    padding: 0;
    margin-bottom: 0.2rem;
    background: none;
    border: none;
}

.header-menu-lead-link {
    background: linear-gradient(135deg, rgba(53, 93, 69, 0.12), rgba(200, 116, 47, 0.12));
    border-color: rgba(19, 38, 29, 0.08);
    align-items: center;
}

.header-menu-lead-link strong {
    font-size: 1rem;
    color: var(--forest-950);
}

.header-menu-lead-link .header-menu-item-copy {
    align-self: center;
    gap: 0;
}

.header-menu-lead-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.header-menu-lead-metrics {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-left: auto;
}

.header-menu-lead-metric {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    min-height: 2.4rem;
    padding: 0.22rem;
    border-radius: 0.9rem;
    text-decoration: none;
    color: var(--forest-950);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(19, 38, 29, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.header-menu-lead-metric:hover,
.header-menu-lead-metric:focus-visible {
    background: rgba(255, 255, 255, 0.78);
    transform: translateY(-1px);
}

.header-menu-lead-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1.15rem;
    line-height: 1;
}

.header-menu-lead-metric-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.header-menu-lead-metric.is-houbicky {
    min-width: 2.7rem;
}

.header-menu-lead-metric.is-messages {
    margin-left: 0.1rem;
}

.header-menu-lead-metric-badge {
    position: absolute;
    top: 0.14rem;
    right: 0.14rem;
    min-width: 1.1rem;
    padding: 0.08rem 0.22rem;
    border-radius: 999px;
    background: #366f4a;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.header-menu-lead-metric.is-houbicky .header-menu-lead-metric-badge {
    background: #f5c451;
    color: #4a3410;
}

.header-menu-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.56rem;
    padding: 0.62rem 0.72rem;
    border-radius: 0.88rem;
    text-decoration: none;
    color: var(--forest-950);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid transparent;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.header-menu-item-copy {
    min-width: 0;
    display: grid;
    gap: 0.08rem;
}

.header-menu-label-with-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.header-menu-unread-badge {
    min-width: 1.45rem;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: #366f4a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.header-menu-unread-badge[hidden] {
    display: none;
}

.header-menu-icon {
    width: 1.82rem;
    height: 1.82rem;
    border-radius: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
    line-height: 1;
    background: linear-gradient(135deg, rgba(53, 93, 69, 0.14), rgba(200, 116, 47, 0.16));
    box-shadow: inset 0 0 0 1px rgba(19, 38, 29, 0.08);
}

.header-menu-icon img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.header-menu-item:hover,
.header-menu-item:focus-visible {
    background: rgba(24, 93, 41, 0.08);
    border-color: rgba(24, 93, 41, 0.08);
    transform: translateX(-2px);
}

.header-menu-note {
    display: block;
    margin-top: 0.08rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.25;
}

.header-menu-action {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 0.56rem;
    margin-top: 0;
    padding: 0.62rem 0.72rem;
    text-align: left;
    box-shadow: none;
}

.header-menu-action span:last-child {
    min-width: 0;
    text-align: left;
}

.header-menu-action:hover,
.header-menu-action:focus-visible {
    transform: translateX(-2px);
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
}

.author-link:hover .feed-author,
.author-link:hover .comment-author,
.author-link:hover .gallery-item-author,
.author-link:focus-visible .feed-author,
.author-link:focus-visible .comment-author,
.author-link:focus-visible .gallery-item-author {
    text-decoration: underline;
}

.public-profile-card,
.form-grid {
    display: grid;
    gap: 1rem;
}

.field-block {
    display: grid;
    gap: 0.35rem;
}

label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--forest-950);
}

input[type="text"],
input[type="email"],
input[type="datetime-local"],
textarea {
    width: 100%;
    border: 1px solid rgba(19, 38, 29, 0.12);
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    font: inherit;
    box-shadow: inset 0 1px 2px rgba(19, 38, 29, 0.04);
}

input[readonly] {
    color: var(--forest-950);
}

textarea {
    min-height: 9.5rem;
    resize: vertical;
}

.field-row {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.status-badge {
    width: fit-content;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(93, 133, 104, 0.12);
    color: var(--forest-950);
}

.status-badge.verified {
    background: rgba(93, 133, 104, 0.18);
    color: #214a31;
}

.status-badge.unverified {
    background: rgba(200, 116, 47, 0.14);
    color: #7a3a14;
}

.status-badge.review-pending {
    background: rgba(224, 184, 96, 0.22);
    color: #8a5b16;
}

.status-badge.review-error {
    background: rgba(210, 94, 67, 0.16);
    color: #a2462c;
}

.capture-access-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 22px rgba(19, 38, 29, 0.16);
}

.gallery-item-image > .capture-access-badge,
.feed-photo-frame > .capture-access-badge,
.viewed-capture-media > .capture-access-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    pointer-events: none;
}

.capture-access-badge-free {
    background: rgba(79, 152, 94, 0.86);
    color: #f6fff7;
}

.capture-access-badge-paid {
    background: rgba(200, 116, 47, 0.9);
    color: #fff7ef;
}

.capture-access-badge-map {
    background: rgba(19, 38, 29, 0.82);
    color: #f7f2e8;
}

.capture-access-badge-guest {
    background: rgba(61, 95, 147, 0.88);
    color: #f5f9ff;
}

.help-panel {
    padding: 1rem;
    border-radius: 1.2rem;
    background: rgba(255, 250, 242, 0.72);
    border: 1px solid rgba(19, 38, 29, 0.08);
}

.help-panel a {
    color: var(--forest-900);
    font-weight: 700;
}

.site-footer-legal {
    width: min(100%, var(--page-frame-width));
    margin: 0.25rem auto 0;
    padding: 1rem 0 0.6rem;
    border-top: 1px solid rgba(19, 38, 29, 0.12);
    font-size: 0.95rem;
    color: var(--muted);
}

.site-footer-legal nav {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.site-footer-legal a {
    color: var(--forest-700);
    text-decoration: none;
}

.site-footer-legal a:hover,
.site-footer-legal a:focus-visible {
    text-decoration: underline;
}

.footer-note {
    margin: 0.5rem 0 0;
    max-width: 78ch;
}

.register-legal-box {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(19, 38, 29, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.check-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0 0 0.9rem;
}

.check-row input {
    margin-top: 0.25rem;
}

.register-legal-help {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.public-warning-card {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 4px solid var(--forest-700);
    background: rgba(238, 245, 238, 0.96);
    border-radius: 0.9rem;
    color: var(--forest-950);
}

.status-message {
    min-height: 1.4rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.status-message.is-success {
    color: #245238;
}

.status-message.is-error {
    color: #8b3b1f;
}

.toast-stack {
    position: fixed;
    left: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.8rem);
    z-index: 3200;
    display: grid;
    gap: 0.5rem;
    width: min(calc(100vw - 1.2rem), 24rem);
    transform: translateX(-50%);
    pointer-events: none;
}

.toast {
    padding: 0.78rem 0.92rem;
    border-radius: 1rem;
    background: rgba(19, 38, 29, 0.94);
    color: #fff8f0;
    box-shadow: 0 18px 36px rgba(19, 38, 29, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(0.35rem);
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.is-success {
    background: rgba(36, 82, 56, 0.96);
}

.toast.is-error {
    background: rgba(139, 59, 31, 0.96);
}

.map-popup-content {
    text-align: center;
    display: grid;
    gap: 0.2rem;
    justify-items: center;
}

@media (max-width: 700px) {
    .public-capture-result-card {
        grid-template-columns: 1fr;
    }

    .map-page-card {
        gap: 0.7rem;
        padding: 0.85rem;
    }

    .page-intro-spaced.map-page-card {
        margin-bottom: 1rem;
    }

    .map-filter-summary {
        padding: 0.82rem 0.9rem;
    }

    .map-filter-body {
        padding: 0 0.9rem 0.9rem;
        gap: 0.75rem;
    }

    .map-filter-body .action-row {
        gap: 0.5rem;
    }

    #global-map {
        height: clamp(20rem, calc(100dvh - 14rem), 34rem);
    }

    body[data-page="create-post"] .create-post-card {
        padding: 0.9rem;
        gap: 0.75rem;
    }

    body[data-page="create-post"] .post-form {
        gap: 0.8rem;
        margin-top: 0.2rem;
    }

    body[data-page="create-post"] .post-textarea {
        min-height: 128px;
        padding: 0.85rem 0.9rem;
    }

    body[data-page="create-post"] .post-captures-selector {
        padding: 0.8rem;
    }

    body[data-page="create-post"] .post-captures-grid {
        gap: 0.7rem;
        margin-top: 0.75rem;
        grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    }

    body[data-page="create-post"] .post-selector-actions,
    body[data-page="create-post"] .post-form-actions {
        margin-top: 0.75rem;
    }
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1220;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(7, 12, 9, 0.92);
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    z-index: 1221;
    background: none;
    border: none;
}

.lightbox-content {
    max-width: 90%;
    max-height: 76%;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    padding: 1rem;
    z-index: 1221;
    background: none;
    border: none;
}

.lightbox-prev {
    left: 0.5rem;
}

.lightbox-next {
    right: 0.5rem;
}

.lightbox-map-btn {
    margin-top: 0.9rem;
    z-index: 1221;
}

.lightbox-own-map-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.9rem;
    z-index: 1221;
}

.lightbox-own-map-actions[hidden] {
    display: none;
}

.lightbox-own-free-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff7f2;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.lightbox-own-free-toggle input {
    accent-color: #3b814e;
}

.lightbox-own-action-btn {
    min-width: min(16rem, 80vw);
}

.lightbox-note {
    min-height: 1.4rem;
    margin: 0.6rem 0 0;
    padding: 0 1rem;
    color: rgba(247, 242, 232, 0.88);
    text-align: center;
    z-index: 1221;
}

.lightbox-note.is-success {
    color: #bdeabf;
}

.lightbox-note.is-error {
    color: #f7b5a2;
}

.lightbox-map-container {
    width: min(90%, 38rem);
    height: 12.5rem;
    margin-top: 0.75rem;
    display: none;
    border-radius: 0.75rem;
    overflow: hidden;
    z-index: 1221;
}

.capture-map-viewer {
    position: fixed;
    inset: 0;
    z-index: 1210;
    display: none;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

.capture-map-viewer.active {
    display: flex;
}

.capture-map-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 9, 0.82);
}

.capture-map-viewer-dialog {
    position: relative;
    width: 100vw;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.9rem 0.9rem 1rem;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(245, 239, 229, 0.96));
    box-shadow: none;
    z-index: 1;
}

.capture-map-viewer-head h2 {
    margin: 0.1rem 0 0;
}

.capture-map-viewer-note {
    margin: 0;
}

.capture-map-viewer-map {
    min-height: 0;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(19, 38, 29, 0.08);
}

.capture-map-viewer-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(19, 38, 29, 0.08);
    color: var(--forest-950);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 700px) {
    .capture-map-viewer-dialog {
        width: 100%;
        height: 100dvh;
        padding: calc(0.7rem + env(safe-area-inset-top, 0rem)) 0.75rem calc(0.8rem + env(safe-area-inset-bottom, 0rem));
    }

    .gallery-moderation-modal {
        padding: 0;
    }

    .gallery-moderation-modal-dialog {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding: calc(0.85rem + env(safe-area-inset-top, 0rem)) 0.8rem calc(0.8rem + env(safe-area-inset-bottom, 0rem));
    }

    .gallery-moderation-modal-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .gallery-moderation-modal-head {
        gap: 0.75rem;
    }

    .gallery-moderation-modal-head h2 {
        font-size: 1.05rem;
    }

    .gallery-moderation-meta {
        font-size: 0.84rem;
    }

    .gallery-moderation-preview-shell {
        display: none;
    }

    .gallery-moderation-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        position: sticky;
        top: 0;
        z-index: 2;
        padding-bottom: 0.15rem;
        background: linear-gradient(180deg, rgba(248, 241, 230, 0.98), rgba(248, 241, 230, 0.88));
    }

    .gallery-moderation-toolbar .btn {
        min-height: 2.65rem;
        padding: 0.55rem 0.65rem;
        font-size: 0.8rem;
    }

    .gallery-moderation-body {
        padding-right: 0;
    }
}

.reauth-card {
    text-align: center;
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.reauth-card > * {
    max-width: 34rem;
}

.user-greeting {
    display: inline-flex;
    align-items: center;
    min-height: 3.2rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--forest-950);
    font-weight: 700;
    border: 1px solid rgba(19, 38, 29, 0.08);
}

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

@media (min-width: 720px) {
    body {
        padding: 1.4rem 1.4rem 3rem;
    }

    .site-header {
        gap: 1rem;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .hero-card {
        grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
        align-items: stretch;
        padding: 1.35rem;
    }

    .hero-actions,
    .action-row,
    .field-row,
    .profile-topline,
    .about-head,
    .cta-card {
        grid-template-columns: unset;
        flex-direction: row;
    }

    .action-row {
        align-items: center;
    }

    .field-row {
        align-items: center;
    }

    .field-row input {
        flex: 1 1 auto;
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-block:first-child {
        grid-column: 1 / -1;
    }

    .public-profile-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .capture-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .viewed-capture-card {
        grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
        align-items: start;
    }

    .profile-activity-head {
        align-items: flex-start;
    }
}

@media (max-width: 719px) {
    .comment-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-activity-strip-item {
        min-width: 7rem;
    }
}

@media (max-width: 719px) {
    :root {
        --radius-xl: 1.35rem;
        --radius-lg: 1rem;
        --radius-md: 0.88rem;
        --radius-sm: 0.72rem;
    }

    body {
        padding: 0.55rem 0.55rem 1.25rem;
    }

    body::before {
        width: 11rem;
        height: 11rem;
        top: 2.5rem;
        right: -4.5rem;
    }

    body::after {
        width: 13rem;
        height: 13rem;
        bottom: -5.5rem;
        left: -5.5rem;
    }

    .site-header {
        gap: 0.55rem;
        margin-top: 0;
    }

    .brand-link {
        padding: 0.22rem;
        border-radius: 1rem;
    }

    .brand-mark {
        width: 2.7rem;
        height: 2.7rem;
    }

    .header-actions {
        gap: 0.24rem;
        padding: 0.18rem;
        border-radius: 1rem;
    }

    .header-control-button,
    .btn-icon {
        min-width: 2.55rem;
        min-height: 2.55rem;
        padding: 0.5rem;
    }

    .header-menu-panel {
        top: 4.0rem;
        right: 0.4rem;
        width: min(18rem, calc(100vw - 0.8rem));
        max-height: calc(100dvh - 4.5rem);
        padding: 0.32rem;
        border-radius: 1rem;
    }

    .header-menu-lead {
        padding: 0.54rem 0.62rem 0.58rem;
        border-radius: 0.88rem;
    }

    .header-menu-lead-top {
        gap: 0.45rem;
    }

    .header-menu-lead-metrics {
        gap: 0.42rem;
    }

    .header-menu-lead-metric {
        min-width: 2.45rem;
        min-height: 2.2rem;
    }

    .header-menu-lead-metric.is-houbicky {
        min-width: 2.75rem;
    }

    .header-menu-lead-metric-badge {
        top: 0.12rem;
        right: 0.12rem;
        font-size: 0.62rem;
    }

    .header-menu-item {
        padding: 0.54rem 0.6rem;
        border-radius: 0.82rem;
    }

    .header-menu-action {
        padding: 0.54rem 0.6rem;
    }

    .header-menu-note {
        display: none;
    }

    .content-main {
        gap: 0.7rem;
        margin-top: 0.72rem;
    }

    .map-page-card,
    body[data-page="create-post"] .create-post-card {
        padding: 0.72rem;
        gap: 0.65rem;
    }

    .page-intro-spaced.map-page-card {
        margin-bottom: 0.85rem;
    }

    .map-filter-summary {
        padding: 0.72rem 0.78rem;
    }

    .map-filter-body {
        padding: 0 0.78rem 0.78rem;
        gap: 0.65rem;
    }

    .hero-card,
    .feature-card,
    .cta-card,
    .page-intro,
    .profile-shell,
    .about-shell,
    .reauth-card,
    .dashboard-card,
    .public-profile-card,
    .create-post-card,
    .capture-card,
    .capture-gallery,
    .account-card,
    .help-panel,
    .houbicka-panel,
    .viewed-capture-empty,
    .viewed-capture-card,
    .profile-activity-map-shell,
    .capture-empty,
    .public-capture-result-card {
        padding: 0.78rem;
    }

    .hero-card,
    .feature-card,
    .cta-card,
    .dashboard-card,
    .public-profile-card,
    .create-post-card,
    .capture-card,
    .capture-gallery,
    .profile-activity-card,
    .profile-activity-map-shell,
    .viewed-capture-card {
        gap: 0.7rem;
    }

    .feature-grid,
    .dashboard-grid,
    .feed-list,
    .public-posts-list,
    .viewed-captures-list {
        gap: 0.8rem;
    }

    .comments-panel {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .page-intro-spaced {
        margin-bottom: 0.85rem;
    }

    .section-spaced,
    .post-management-row,
    .post-selector-actions,
    .post-form-actions,
    .public-posts-list {
        margin-top: 0.75rem;
    }

    .load-more-row {
        margin: 1rem 0;
    }

    .hero-copy,
    .hero-actions,
    .action-row,
    .field-row,
    .comment-form,
    .comment-edit-form,
    .post-form,
    .capture-grid,
    .public-capture-filter-form,
    .form-grid {
        gap: 0.7rem;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 12vw, 3.2rem);
        max-width: 7ch;
    }

    .hero-lead,
    .feature-card p,
    .cta-card p,
    .page-intro p,
    .profile-top-copy p,
    .help-panel p,
    .reauth-card p,
    .muted-copy {
        font-size: 0.94rem;
        line-height: 1.5;
    }

    .btn {
        min-height: 2.85rem;
        padding: 0.7rem 0.92rem;
    }

    .btn-large {
        min-height: 3rem;
    }

    .metric-grid,
    .public-capture-filter-grid,
    .post-captures-grid {
        gap: 0.65rem;
    }

    .metric-tile {
        padding: 0.75rem;
        border-radius: 0.95rem;
    }

    .account-overview {
        grid-template-columns: 4.3rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .profile-picture-compact,
    .profile-picture {
        width: 4.3rem;
        height: 4.3rem;
    }

    .profile-picture-large {
        width: 5rem;
        height: 5rem;
    }

    .server-status-button {
        padding: 0.58rem 0.78rem;
        min-height: 2.45rem;
    }

    .server-status-toggle {
        padding: 0.2rem;
    }

    .feed-card {
        padding: 0.85rem;
    }

    .feed-header,
    .feed-content {
        margin-bottom: 0.75rem;
    }

    .feed-header {
        gap: 0.75rem;
    }

    .feed-actions {
        margin-top: 0.75rem;
        gap: 0.65rem;
        padding-top: 0.75rem;
    }

    .comment-item {
        gap: 0.6rem;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
    }

    .comment-body {
        padding: 0.62rem 0.72rem;
    }

    .comment-input,
    .post-textarea,
    input[type="text"],
    input[type="email"],
    input[type="datetime-local"],
    textarea,
    .public-capture-filter-field input,
    .public-capture-filter-field select,
    .server-date-input {
        min-height: 2.7rem;
        padding: 0.72rem 0.82rem;
        border-radius: 0.82rem;
    }

    textarea,
    .post-textarea,
    .comment-input {
        min-height: 7.5rem;
    }

    .post-captures-selector {
        padding: 0.75rem;
    }

    .post-captures-grid {
        margin-top: 0.7rem;
        grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    }

    body[data-page="create-post"] .post-form {
        gap: 0.7rem;
        margin-top: 0.12rem;
    }

    body[data-page="create-post"] .post-textarea {
        min-height: 7.3rem;
        padding: 0.72rem 0.82rem;
    }

    body[data-page="create-post"] .post-captures-selector {
        padding: 0.72rem;
    }

    body[data-page="create-post"] .post-captures-grid {
        gap: 0.6rem;
        margin-top: 0.65rem;
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    }

    body[data-page="create-post"] .post-selector-actions,
    body[data-page="create-post"] .post-form-actions {
        margin-top: 0.7rem;
    }

    .capture-toolbar,
    .capture-actions,
    .server-filter-row,
    .server-bulk-bar,
    .server-pagination,
    .server-summary,
    .server-date-form,
    .server-bulk-actions {
        gap: 0.55rem;
    }

    .public-capture-filter-form,
    .public-capture-results-grid {
        margin-top: 0.8rem;
    }

    .public-capture-result-card {
        gap: 0.75rem;
    }

    .gallery-item-copy {
        gap: 0.25rem;
        padding: 0.62rem 0.28rem 2.2rem 0.62rem;
    }

    .gallery-item--moderator .gallery-item-copy {
        padding-left: 2.9rem;
    }

    .gallery-species-trigger,
    .gallery-moderation-trigger {
        width: 1.9rem;
        height: 1.9rem;
    }

    .toast-stack {
        width: min(calc(100vw - 0.9rem), 22rem);
        bottom: max(0.72rem, env(safe-area-inset-bottom, 0px) + 0.52rem);
        gap: 0.42rem;
    }

    .toast {
        padding: 0.68rem 0.8rem;
        border-radius: 0.9rem;
        font-size: 0.84rem;
    }

    .capture-map-viewer-dialog {
        gap: 0.55rem;
        padding: calc(0.65rem + env(safe-area-inset-top, 0rem)) 0.7rem calc(0.75rem + env(safe-area-inset-bottom, 0rem));
    }

    .capture-map-viewer-close {
        top: 0.55rem;
        right: 0.55rem;
        width: 2.2rem;
        height: 2.2rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.55rem;
    }

    .lightbox-nav {
        padding: 0.45rem;
        font-size: 2.4rem;
    }
}

.site-assistant {
    position: fixed;
    inset: 0;
    z-index: 1700;
    pointer-events: none;
}

.site-assistant > * {
    pointer-events: auto;
}

.site-assistant-backdrop[hidden],
.site-assistant-panel[hidden] {
    display: none !important;
}

.site-assistant-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(19, 38, 29, 0.12);
    cursor: default;
}

.site-assistant-launcher-wrap {
    position: absolute;
    right: max(1rem, env(safe-area-inset-right, 0px) + 0.8rem);
    bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.8rem);
    z-index: 2;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.38rem;
    max-width: calc(100vw - 1rem);
}

.site-assistant-launcher-wrap[hidden] {
    display: none !important;
}

.site-assistant-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    width: 4rem;
    height: 4rem;
    padding: 0;
    border: 0;
    border-radius: 1.4rem;
    background: linear-gradient(145deg, rgba(27, 55, 41, 0.96), rgba(44, 85, 61, 0.92));
    color: #f6f1e7;
    box-shadow: 0 20px 44px rgba(19, 38, 29, 0.28);
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.site-assistant-launcher-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    margin-top: -0.15rem;
    border: 0;
    border-radius: 999px;
    background: rgba(27, 55, 41, 0.92);
    color: rgba(246, 241, 231, 0.94);
    box-shadow: 0 14px 26px rgba(19, 38, 29, 0.24);
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.site-assistant-launcher:hover,
.site-assistant-launcher:focus-visible,
.site-assistant-launcher-dismiss:hover,
.site-assistant-launcher-dismiss:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 24px 52px rgba(19, 38, 29, 0.32);
}

.site-assistant-launcher-dismiss:hover,
.site-assistant-launcher-dismiss:focus-visible {
    background: rgba(44, 85, 61, 0.96);
}

.site-assistant-launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    flex: 0 0 auto;
}

.site-assistant-launcher-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.site-assistant-panel {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px) + 0.8rem);
    bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px) + 0.8rem) + 4.6rem);
    z-index: 3;
    width: min(27rem, calc(100vw - 1.5rem));
    height: min(35rem, 62dvh);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    gap: 0.58rem;
    padding: 0.88rem;
    border-radius: 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background:
        radial-gradient(circle at top right, rgba(238, 177, 109, 0.2), transparent 28%),
        linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(244, 236, 223, 0.94));
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 70px rgba(19, 38, 29, 0.24);
    transform-origin: bottom right;
}

.site-assistant-panel.is-intro-only {
    height: auto;
    max-height: min(30rem, 72dvh);
}

.site-assistant-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
    min-width: 0;
}

.site-assistant-panel-head h2 {
    margin: 0.1rem 0 0;
    font-size: 1.2rem;
    color: var(--forest-950);
}

.site-assistant-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.site-assistant-head-btn {
    min-height: 2.3rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
}

.site-assistant-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(19, 38, 29, 0.08);
    color: var(--forest-900);
    font-size: 1.35rem;
    cursor: pointer;
}

.site-assistant-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.42;
}

.site-assistant-messages {
    display: grid;
    align-content: start;
    gap: 0.58rem;
    min-height: 0;
    padding-right: 0.15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(53, 93, 69, 0.45) rgba(19, 38, 29, 0.08);
}

.site-assistant-panel.is-intro-only .site-assistant-messages {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.site-assistant-messages::-webkit-scrollbar {
    width: 0.45rem;
}

.site-assistant-messages::-webkit-scrollbar-track {
    background: rgba(19, 38, 29, 0.08);
    border-radius: 999px;
}

.site-assistant-messages::-webkit-scrollbar-thumb {
    background: rgba(53, 93, 69, 0.45);
    border-radius: 999px;
}

.site-assistant-message {
    display: grid;
    gap: 0.3rem;
}

.site-assistant-message.is-user {
    justify-items: end;
}

.site-assistant-message-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(27, 55, 41, 0.65);
}

.site-assistant-message-bubble {
    max-width: min(100%, 21rem);
    min-width: 0;
    padding: 0.78rem 0.88rem;
    border-radius: 1rem;
    font-size: 0.93rem;
    line-height: 1.5;
    color: var(--text);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(19, 38, 29, 0.08);
    box-shadow: 0 10px 24px rgba(21, 34, 24, 0.06);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.site-assistant-message.is-user .site-assistant-message-bubble {
    color: #f7f3ea;
    background: linear-gradient(145deg, rgba(27, 55, 41, 0.96), rgba(53, 93, 69, 0.94));
    border-color: rgba(27, 55, 41, 0.35);
}

.site-assistant-message.is-pending .site-assistant-message-bubble {
    color: var(--muted);
    font-style: italic;
}

.site-assistant-message-tools {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.site-assistant-feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(19, 38, 29, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    cursor: pointer;
    font-size: 0.95rem;
}

.site-assistant-feedback-btn.is-active {
    border-color: rgba(200, 116, 47, 0.42);
    background: rgba(238, 177, 109, 0.28);
}

.site-assistant-empty {
    margin-top: -0.2rem;
}

.site-assistant-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.site-assistant-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-assistant-suggestion {
    border: 1px solid rgba(19, 38, 29, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--forest-900);
    padding: 0.58rem 0.8rem;
    font-size: 0.82rem;
    line-height: 1.25;
    cursor: pointer;
}

.site-assistant-suggestion:hover,
.site-assistant-suggestion:focus-visible {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(53, 93, 69, 0.24);
}

.site-assistant-form {
    display: grid;
    gap: 0.42rem;
}

.site-assistant-input {
    width: 100%;
    min-height: 3rem;
    max-height: 9rem;
    resize: none;
    border: 1px solid rgba(19, 38, 29, 0.12);
    border-radius: 1rem;
    padding: 0.78rem 0.92rem;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.site-assistant-input:focus {
    outline: 2px solid rgba(200, 116, 47, 0.22);
    border-color: rgba(200, 116, 47, 0.42);
}

.site-assistant-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.site-assistant-status {
    margin: 0;
    min-height: 1.25rem;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.site-assistant-status[data-tone="error"] {
    color: #9f332b;
}

.site-assistant-status[data-tone="info"] {
    color: var(--forest-700);
}

.site-assistant-submit {
    min-width: 6.5rem;
}

@media (max-width: 720px) {
    .site-assistant {
        inset: 0;
    }

    .site-assistant-backdrop {
        background: rgba(19, 38, 29, 0.16);
    }

    .site-assistant-launcher {
        width: 3.7rem;
        height: 3.7rem;
    }

    .site-assistant-launcher-wrap {
        right: max(0.5rem, env(safe-area-inset-right, 0px) + 0.35rem);
        bottom: max(0.5rem, env(safe-area-inset-bottom, 0px) + 0.35rem);
        gap: 0.3rem;
        max-width: calc(100vw - 0.5rem);
    }

    .site-assistant-launcher-dismiss {
        width: 1.75rem;
        height: 1.75rem;
        margin-top: -0.08rem;
        font-size: 0.98rem;
    }

    .site-assistant-panel {
        right: max(0.5rem, env(safe-area-inset-right, 0px) + 0.35rem);
        left: max(0.5rem, env(safe-area-inset-left, 0px) + 0.35rem);
        width: auto;
        height: min(60dvh, calc(100dvh - 0.75rem));
        max-height: calc(100dvh - 0.75rem);
        bottom: calc(max(0.5rem, env(safe-area-inset-bottom, 0px) + 0.35rem) + 4.15rem);
        gap: 0.52rem;
        padding: 0.74rem;
        border-radius: 1.25rem;
    }

    .site-assistant-panel.is-intro-only {
        height: auto;
        max-height: min(26rem, 68dvh);
    }

    .site-assistant-panel-head h2 {
        font-size: 1.08rem;
    }

    .site-assistant-head-btn {
        min-height: 2.1rem;
        padding: 0.48rem 0.68rem;
    }

    .site-assistant-close {
        width: 2.1rem;
        height: 2.1rem;
    }

    .site-assistant-message-bubble {
        max-width: 100%;
        padding: 0.72rem 0.78rem;
        font-size: 0.9rem;
    }

    .site-assistant-suggestions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-assistant-suggestion {
        width: 100%;
        text-align: left;
        border-radius: 0.95rem;
        padding: 0.68rem 0.78rem;
    }

    .site-assistant-form-foot {
        align-items: end;
    }

    .site-assistant-submit {
        min-width: 5.85rem;
    }
}

/* Like Button Styles */
.like-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.like-btn:hover {
    background-color: var(--surface-hover);
    color: var(--text-color);
}

.like-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-btn.active {
    color: #e91e63;
}

.like-btn.active svg {
    fill: #e91e63;
    stroke: #e91e63;
    transform: scale(1.1);
}

.like-btn:active svg {
    transform: scale(0.8);
}

.like-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}
