:root {
    color-scheme: light;
    --canvas: #f7f6f2;
    --surface: #fffefa;
    --surface-soft: #eaf0e9;
    --ink: #28382f;
    --muted: #606d64;
    --line: #d7ded5;
    --green: #365e48;
    --green-strong: #264a36;
    --on-green: #ffffff;
    --focus: #916423;
    --danger: #a0332b;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #19211c;
    --surface: #202b24;
    --surface-soft: #2b3930;
    --ink: #eeeFe8;
    --muted: #b9c5ba;
    --line: #435247;
    --green: #b1d0b5;
    --green-strong: #c6e0c8;
    --on-green: #192b20;
    --focus: #e4be7e;
    --danger: #ffaaa0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--green); text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; overflow-wrap: anywhere; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(36px, 4.5vw, 60px); letter-spacing: -1.3px; }
h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.5px; }
h3 { font-size: 20px; }
p, strong, time { overflow-wrap: anywhere; }
img { max-width: 100%; }
form { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; padding: 12px 20px; background: var(--surface); }
.skip-link:focus { top: 12px; }
.topbar { display: flex; align-items: center; gap: 24px; min-height: 92px; padding: 16px max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; line-height: 1.35; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--green); color: var(--on-green); border-radius: 8px; font: 24px Georgia, serif; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: 1.6px; }
.topbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.topbar nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.topbar nav a:hover, .topbar nav .nav-active { background: var(--surface-soft); color: var(--green); }
.theme-toggle, .admin-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; }
.theme-toggle { flex-shrink: 0; }
.theme-toggle:hover, .admin-action:hover { border-color: var(--green); background: var(--surface-soft); }
.send, .sign-in { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; min-height: 48px; padding: 11px 20px; border: 1px solid transparent; border-radius: 6px; background: var(--green); color: var(--on-green); font-size: 15px; font-weight: 650; line-height: 1.5; text-decoration: none; cursor: pointer; }
.send:hover, .sign-in:hover { background: var(--green-strong); }
.sign-in { flex-shrink: 0; }
.account, .account-profile-link { display: flex; align-items: center; gap: 10px; }
.account-profile-link { min-height: 44px; color: var(--ink); text-decoration: none; }
.account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--surface-soft); color: var(--green); font-size: 16px; font-weight: 700; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.text-button { min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { margin-bottom: 12px; color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: 1.6px; line-height: 1.6; }
.public-layout, .layout, .profile-layout { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.public-intro { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr); gap: 80px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.public-intro h1 { max-width: 720px; margin-bottom: 24px; white-space: pre-line; }
.public-intro>div>p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 18px; }
.hero-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; font-weight: 650; }
.community-index { padding: 26px 0 26px 32px; border-left: 1px solid var(--line); }
.community-index h2 { font-size: 26px; margin-bottom: 16px; }
.community-index a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 650; }
.community-index a span { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 3px; }
.home-content { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 56px; align-items: start; padding-top: 48px; }
.home-content>.public-section { padding-top: 0; }
.participate { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
.member-callout, .publish-card { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.member-callout { background: var(--surface-soft); }
.member-callout h2, .publish-card h2 { margin-bottom: 12px; font-size: 26px; }
.member-callout p, .submission-note { color: var(--muted); font-size: 14px; }
.member-callout .send { margin-top: 8px; }
.publish-card { display: flex; flex-direction: column; gap: 12px; }
.publish-card p { margin-bottom: 0; }
.publish-card .send { margin-top: 8px; }
label { display: block; color: var(--ink); font-size: 14px; font-weight: 650; }
label span { color: var(--muted); font-weight: 400; }
input:not([type=hidden]), textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.5; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[readonly] { background: var(--surface-soft); color: var(--muted); }
input[type=file] { padding: 10px; font-size: 14px; }
input::file-selector-button { min-height: 36px; margin-right: 10px; padding: 6px 12px; border: 0; border-radius: 4px; background: var(--surface-soft); color: var(--green); font: inherit; cursor: pointer; }
.public-section { padding-top: 56px; }
.section-title, .feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title h2, .feed-heading h2 { margin: 0; }
.section-title .eyebrow { margin-bottom: 8px; }
.section-title>span, .feed-heading>span { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.blog-card { padding: 28px 0; border-top: 1px solid var(--line); }
.blog-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 13px; }
.blog-meta span { font-weight: 650; }
.blog-card h3 { margin: 14px 0; font: 400 28px/1.25 Georgia, serif; }
.blog-card>p, .post-body { margin-bottom: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.85; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.activity-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.activity-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--surface-soft); }
.activity-copy { padding: 22px; }
.activity-copy h3 { margin-bottom: 10px; }
.activity-copy p:not(.eyebrow) { color: var(--muted); white-space: pre-line; }
.activity-copy small { color: var(--muted); font-size: 13px; }
.public-empty, .empty, .admin-empty { padding: 32px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 4px; background: var(--surface); }
.public-empty h3, .empty h3 { margin-bottom: 10px; font: 400 24px Georgia, serif; }
.public-empty p, .empty p, .admin-empty { color: var(--muted); }
.public-empty p, .empty p { margin: 0; }
.pagination { margin: 24px 0; font-size: 14px; }
.pagination:empty { display: none; }
.pagination nav>div:first-child { display: flex; justify-content: space-between; gap: 16px; }
.pagination nav>div+div { display: none; }
.pagination a, .pagination nav>div>span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.pagination svg { width: 20px; height: 20px; }
.public-footer { margin-top: 64px; padding: 26px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.notice { padding: 16px 20px; margin: 24px 0; border: 1px solid var(--green); border-radius: 6px; background: var(--surface); color: var(--green); }
.notice.error { color: var(--danger); border-color: var(--danger); }
/* Conversation: wide reading column, compact community guide. */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px 48px; margin-top: 48px; margin-bottom: 64px; align-items: start; }
.welcome { grid-column: 1 / -1; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.welcome h1 { max-width: 800px; margin-bottom: 16px; font-size: clamp(34px, 4vw, 48px); }
.welcome h1 em { color: var(--green); font-style: normal; }
.welcome .intro { margin: 0; max-width: 650px; color: var(--muted); font-size: 18px; }
.feed { min-width: 0; }
.composer, .post { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.composer-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-weight: 600; }
.composer>label { margin: 16px 0 6px; }
.composer-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-top: 20px; }
.attachment-field { flex: 1 1 220px; min-width: 0; }
.attachment-field label { margin-bottom: 6px; }
.image-note { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.feed-heading { margin-top: 40px; }
.post { margin-bottom: 20px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-head strong, .reply strong { font-size: 15px; }
.post-head time, .reply time { display: block; color: var(--muted); font-size: 13px; }
.post h3 { margin: 24px 0 12px; font-size: 23px; }
.post-image { display: block; max-height: 520px; margin-top: 20px; border-radius: 5px; object-fit: contain; }
.reply-count { margin-top: 24px; padding: 16px 0 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.reply { display: flex; gap: 12px; padding: 16px 0; }
.reply>div { min-width: 0; }
.avatar-small { width: 32px; height: 32px; font-size: 13px; }
.reply p { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.reply-form { display: flex; gap: 8px; margin-top: 20px; }
.reply-form button { flex: none; width: 48px; border: 0; border-radius: 5px; background: var(--green); color: var(--on-green); font-size: 22px; }
.sidebar { position: sticky; top: 24px; }
.about-card { padding: 26px; border-radius: 6px; background: var(--surface-soft); }
.about-card h2 { font-size: 28px; }
.about-card p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.about-card hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.community-rule { margin-bottom: 0; }
.community-rule strong { color: var(--ink); }
.footer-note { margin-top: 24px; color: var(--muted); font-size: 13px; }
.join-note { padding: 24px; background: var(--surface-soft); }
.mobile-foot { padding: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
/* Profile: identity and guidance beside grouped account fields. */
.profile-layout { margin-top: 48px; margin-bottom: 64px; }
.profile-top { margin-bottom: 32px; }
.profile-top h1 { font-size: 44px; margin-bottom: 12px; }
.profile-top>p:last-child { color: var(--muted); }
.profile-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.profile-aside { padding: 32px; background: var(--surface-soft); }
.profile-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.profile-avatar { width: 80px; height: 80px; background: var(--surface); font-size: 28px; }
.profile-identity strong { font-size: 20px; }
.profile-identity p { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.profile-security { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.profile-fields { padding: 32px; }
.profile-fields h2 { font-size: 27px; margin-bottom: 24px; }
.profile-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.profile-field small { color: var(--muted); font-size: 13px; }
.profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.profile-cancel { display: inline-flex; align-items: center; min-height: 44px; }
/* Curation: anchor navigation and clearly separated work queues. */
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; width: min(1240px, calc(100% - 64px)); margin: 40px auto 64px; align-items: start; }
.admin-rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 4px; }
.admin-rail>a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 5px; color: var(--muted); text-decoration: none; font-size: 14px; }
.admin-rail>a:hover, .admin-nav-active { background: var(--surface-soft); color: var(--green); }
.admin-rail-note { padding: 20px 14px; margin-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.admin-main { min-width: 0; }
.admin-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-bottom: 32px; }
.admin-heading h1 { font-size: 40px; margin-bottom: 12px; }
.admin-heading p:last-child { max-width: 600px; margin: 0; color: var(--muted); }
.admin-heading>.send { flex-shrink: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.admin-stats article { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px; border: 1px solid var(--line); }
.admin-stats span { color: var(--muted); font-size: 14px; }
.admin-stats strong { color: var(--green); font: 36px Georgia, serif; }
.admin-panel { display: none; }
.admin-panel.is-active { display: block; }
.admin-panel[hidden] { display: none !important; }
.admin-section { padding-top: 0; }
.admin-panel.is-active { padding-top: 8px; }
.admin-panel.is-active:first-of-type { padding-top: 0; }
.admin-section .section-title h2 { font-size: 29px; }
.admin-section .section-title>a { font-size: 14px; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); }
.admin-row:last-of-type { border-bottom: 1px solid var(--line); }
.admin-row-copy { flex: 1 1 240px; min-width: 0; }
.admin-row-copy h3 { margin: 8px 0; font-size: 18px; }
.admin-row-copy>p { margin: 0; color: var(--muted); font-size: 14px; }
.admin-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.admin-row-meta strong { color: var(--ink); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-action.danger { color: var(--danger); }
.status-chip { display: inline-flex; padding: 3px 10px; border-radius: 4px; background: var(--surface-soft); color: var(--green); font-size: 12px; font-weight: 650; }
.admin-thumb { width: 88px; height: 72px; border-radius: 4px; object-fit: cover; }
.admin-story-row { align-items: start; }
.admin-story-details { margin-top: 12px; }
.admin-story-details summary { width: fit-content; min-height: 44px; padding-block: 10px; color: var(--green); font-size: 14px; font-weight: 650; }
.admin-story-details p { margin: 12px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.settings-form { max-width: 760px; padding: 28px; }
.settings-form label { margin-top: 8px; }
.album-list-title { margin-top: 32px; }
@media (max-width: 1120px) {
    .topbar { flex-wrap: wrap; gap: 12px 20px; }
    .topbar nav { order: 3; width: 100%; }
    .brand { margin-right: auto; }
    .home-content { gap: 32px; }
    .admin-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; }
    .admin-heading { flex-direction: column; }
}
@media (max-width: 800px) {
    .public-layout, .layout, .profile-layout, .admin-layout { width: calc(100% - 40px); }
    .public-intro { gap: 32px; padding: 40px 0; grid-template-columns: minmax(0, 1fr); }
    .community-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; padding: 0; border-left: 0; }
    .community-index>.eyebrow, .community-index>h2 { grid-column: 1 / -1; }
    .community-index>h2 { margin-bottom: 0; }
    .home-content { grid-template-columns: 1fr; padding-top: 32px; }
    .participate { grid-column: 1; grid-row: 2; position: static; }
    .layout { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
    .sidebar { position: static; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-card { grid-template-columns: 1fr; }
    .profile-identity { flex-direction: row; align-items: center; }
    .profile-security { margin-top: 20px; padding-top: 20px; }
    .admin-layout { grid-template-columns: 1fr; margin-top: 24px; }
    .admin-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding-bottom: 20px; }
    .admin-rail .eyebrow { grid-column: 1 / -1; }
    .admin-rail-note { display: none; }
}
@media (max-width: 520px) {
    .topbar { padding: 16px 16px 8px; gap: 12px 8px; }
    .brand { gap: 8px; font-size: 16px; }
    .brand-mark { width: 36px; height: 40px; }
    .brand small { font-size: 8px; letter-spacing: 1px; }
    .theme-toggle { width: 44px; padding: 8px; }
    .theme-toggle [data-theme-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .sign-in { min-height: 44px; padding: 9px 12px; font-size: 13px; }
    .sign-in>span { display: none; }
    .topbar nav { gap: 2px; }
    .topbar nav a { padding-inline: 9px; font-size: 13px; }
    .account-name { display: none; }
    .account { gap: 2px; }
    .account .avatar { width: 34px; height: 34px; }
    .text-button { font-size: 13px; padding: 6px; }
    .public-layout, .layout, .profile-layout, .admin-layout { width: calc(100% - 32px); }
    .public-intro { padding: 32px 0; }
    .public-intro h1 { font-size: 38px; }
    .public-intro>div>p:not(.eyebrow), .welcome .intro { font-size: 16px; }
    .community-index { gap: 0 16px; }
    .community-index a { font-size: 15px; }
    .community-index a span { font-size: 13px; }
    .section-title { flex-wrap: wrap; gap: 10px; }
    .public-section { padding-top: 40px; }
    .blog-card h3 { font-size: 25px; }
    .photo-grid { grid-template-columns: 1fr; }
    .public-empty, .empty, .member-callout, .publish-card, .composer, .post, .about-card { padding: 22px; }
    .composer-actions>.send { width: 100%; }
    .feed-heading h2 { font-size: 28px; }
    .profile-top h1 { font-size: 36px; }
    .profile-aside, .profile-fields { padding: 24px; }
    .profile-actions { justify-content: space-between; gap: 12px; }
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-stats article { padding: 18px; }
    .admin-heading h1 { font-size: 34px; }
    .admin-row { padding: 20px; gap: 12px; }
    .admin-row-copy { flex-basis: 180px; }
    .admin-rail>a { padding: 8px; font-size: 13px; }
    .public-footer { margin-top: 40px; }
}
/* Live conversation and published-story responses. */
.chat-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.chat-heading .eyebrow, .chat-heading h2 { margin-bottom: 0; }
.chat-heading h2 { font-size: 28px; }
.chat-connection { flex: none; color: var(--green); font-size: 13px; font-weight: 650; }
.chat-connection.is-error, .chat-form-status.error { color: var(--danger); }
.chat-transcript { height: min(52vh, 520px); min-height: 320px; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; scroll-behavior: smooth; }
.chat-state { padding: 32px 0; color: var(--muted); text-align: center; }
.chat-message { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.chat-message:last-child { border-bottom: 0; }
.chat-message>div { min-width: 0; }
.chat-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.chat-message-meta strong { font-size: 14px; }
.chat-message-meta time { color: var(--muted); font-size: 12px; }
.chat-message p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-retry { min-height: 44px; margin: 12px 24px; padding: 8px 14px; border: 1px solid var(--danger); border-radius: 5px; background: transparent; color: var(--danger); }
.chat-composer { padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.chat-composer label { margin-bottom: 6px; }
.chat-composer-row { display: flex; align-items: end; gap: 12px; }
.chat-composer textarea { min-height: 48px; max-height: 144px; background: var(--surface); }
.chat-composer .send { flex: none; }
.chat-form-status { min-height: 20px; margin: 6px 0 0; color: var(--green); font-size: 13px; }
.send:disabled { cursor: wait; opacity: .65; }
.story-comments { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.story-comments h4 { margin: 0 0 12px; font-size: 16px; }
.story-comments h4 span { color: var(--muted); font-weight: 400; }
.story-comment { display: flex; gap: 12px; padding: 12px 0; }
.story-comment>div { min-width: 0; }
.story-comment-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.story-comment-meta strong { font-size: 14px; }
.story-comment-meta time { color: var(--muted); font-size: 12px; }
.story-comment p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-empty, .comment-login { margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.comment-form { padding-top: 12px; }
.comment-form label { margin-bottom: 6px; }
.comment-form>div { display: flex; align-items: end; gap: 12px; }
.comment-form textarea { min-height: 48px; }
.comment-form .send { flex: none; }
@media (max-width: 520px) {
    .chat-heading, .chat-transcript, .chat-composer { padding-inline: 16px; }
    .chat-transcript { min-height: 280px; }
    .chat-composer-row, .comment-form>div { align-items: stretch; flex-direction: column; }
    .chat-composer .send, .comment-form .send { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html, .chat-transcript { scroll-behavior: auto; }
}

/* Video embed (iframe) — responsif dan rapi dalam konten. */
.video-embed { position: relative; margin-top: 20px; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 5px; background: var(--surface-soft); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blog-card .video-embed { margin-top: 18px; }
.admin-story-video .video-embed { margin-top: 16px; }
.post .video-embed { max-width: 640px; }
@media (max-width: 720px) {
    .video-embed { padding-bottom: 56.25%; }
}
.comment-count-notice { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }
.comment-delete-form { margin-top: 4px; }
.comment-delete { min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--danger); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
