@import url("components/sidebar.css?v=201");

@import url("components/buttons.css?v=259");

@import url("components/cards.css?v=187");

@import url("components/forms.css?v=187");

@import url("components/modals.css?v=259");

@import url("components/menus.css?v=187");

@import url("components/comments.css?v=294");

@import url("components/members.css?v=294");

@import url("components/voice-levels.css?v=187");

@import url("components/voice-cards.css?v=187");

@import url("components/reports.css?v=187");

@import url("components/content-media.css?v=252");

@import url("components/reactions.css?v=187");

@import url("components/return-surfaces.css?v=187");

@import url("components/phase-panels.css?v=187");

@import url("components/design-system.css?v=187");

@import url("components/cropper.css?v=287");


* {
    box-sizing: border-box;
}

html {
    font-size: var(--root-font-size);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--font-size-2);
    line-height: var(--line-height-body);
    font-weight: var(--font-weight-regular);
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

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

[hidden] {
    display: none !important;
}

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

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: var(--font-size-xl);
    letter-spacing: 0;
    text-transform: none;
}

h1 {
    font-size: var(--font-size-body);
}

h2 {
    font-size: var(--font-size-xl);
    font-weight:var(--font-weight-medium);
}

h3 {
    font-size: var(--font-size-body);
}

h4 {
    font-size: var(--font-size-body);
}

h5 {
    font-size: var(--font-size-body);
}

h6 {
    font-size: var(--h6-size);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.us-page-title-compact {
    font-size: var(--font-size-md);
}

p,
ul,
ol,
dl,
blockquote {
    margin: 0 0 var(--space-4);
}

p {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-body);
    line-height: var(--line-height-body-text);
    color: var(--text);
}

strong {
    font-weight: 500;
    letter-spacing: -0.01em;
}

.us-shell {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.us-main {
    min-height: calc(100vh - 120px);
}

.us-main--with-sidebar {
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
}

.us-footer--with-sidebar { margin-left: var(--sidebar-width); }

.us-section {
    padding: var(--space-8) 0;
}

.us-stack {
    display: grid;
    gap: var(--space-4);
}

.us-section__head {
    display: grid;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.us-section__head--tight {
    margin-bottom: var(--space-5);
}

.us-section__head h1,
.us-section__head h2,
.us-hero h1,
.us-card h2,
.us-card h3 {
    margin: 0;
}

.us-card {
    background: var(--card-bg);
    border: var(--card-border-width) solid var(--card-border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: var(--card-padding);
}

.us-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--brand-500);
    color: var(--color-white);
    font-size: var(--font-size-1);
    font-weight: var(--font-weight-medium);
}

.us-badge--soft {
    background: var(--surface-soft);
    color: var(--text);
    border: 1px solid var(--border);
}

.us-eyebrow {
    display: inline-block;
    margin-bottom: var(--space-3);
    color: var(--brand-500);
    font-weight: var(--font-weight-medium);
}

.us-lead {
    font-size: var(--font-size-3);
    max-width: 60ch;
}

.us-text-link {
    color: var(--brand-500);
    font-weight: var(--font-weight-medium);
}

.us-form {
    display: grid;
    gap: var(--space-4);
}

.us-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.us-field {
    display: grid;
    gap: 0.625rem;
}

.us-field > span,
.us-form span {
    display: block;
    font-weight: var(--font-weight-medium);
}

.us-form input,
.us-form select,
.us-form textarea,
.us-field input,
.us-field select,
.us-field textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    color: var(--text);
    padding: 0.95rem 1rem;
}

.us-form textarea,
.us-field textarea {
    resize: vertical;
    min-height: 180px;
}

.us-field-help {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-body);
}

.us-field-help--count {
    text-align: right;
}

.us-field-error {
    color: var(--danger);
    font-size: var(--font-size-sm);
}

.us-alert {
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    margin-bottom: var(--space-4);
    border: 1px solid transparent;
}

.us-alert--success {
    background: color-mix(in srgb, var(--success) 12%, var(--surface));
    border-color: color-mix(in srgb, var(--success) 30%, var(--border));
}

.us-alert--notice {
    background: color-mix(in srgb, var(--notice) 12%, var(--surface));
    border-color: color-mix(in srgb, var(--notice) 30%, var(--border));
}

.us-alert--error {
    background: color-mix(in srgb, var(--danger) 10%, var(--surface));
    border-color: color-mix(in srgb, var(--danger) 25%, var(--border));
}

.us-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 1.5rem;
}

.us-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 80;
    min-height: var(--topbar-height);
    background: var(--member-header-bg, color-mix(in srgb, var(--surface) 94%, transparent));
    backdrop-filter: blur(18px);
    border-bottom: var(--member-header-border-width, 1px) solid var(--member-header-border-color, var(--border));
}

.us-topbar--member { left: var(--sidebar-width); }

.us-topbar__inner {
    min-height: var(--topbar-height);
    width: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.us-topbar__left,
.us-topbar__right,
.us-topbar__actions {
    display: flex;
    align-items: center;
}

.us-topbar__right,
.us-topbar__actions { justify-content: flex-end; }
.us-topbar__actions { gap: 10px; }

.us-topbar-product-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid color-mix(in srgb, var(--brand-500) 28%, var(--border));
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 0.78rem;
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.us-topbar-product-cta:hover { transform: translateY(-1px); background: var(--brand-100); border-color: var(--brand-300); }
.us-topbar-product-cta i { font-size: 0.82rem; }

.us-topbar__context { display: grid; gap: 1px; }
.us-topbar__context span { color: var(--brand-500); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.us-topbar__context strong { color: var(--text); font-size: .96rem; font-weight: 600; }

.us-sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    place-items: center;
}

.us-brand { display: inline-flex; align-items: center; min-width: 0; color: var(--text); }
.us-brand__logo { display: block; width: auto; max-width: min(290px, 44vw); height: 42px; object-fit: contain; }
.us-brand__logo--light { display: none; }
html[data-theme="light"] .us-brand__logo--dark, body[data-theme="light"] .us-brand__logo--dark { display: none; }
html[data-theme="light"] .us-brand__logo--light, body[data-theme="light"] .us-brand__logo--light { display: block; }

.us-top-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-muted);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    transition: background-color .18s ease, transform .18s ease, color .18s ease, border-color .18s ease;
}
.us-top-icon:hover, .us-profile-menu__trigger:hover { background: var(--surface-hover); border-color: color-mix(in srgb, var(--brand-500) 24%, var(--border)); color: var(--brand-600); transform: translateY(-1px); }
.us-top-icon--badge .us-top-icon__badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: .68rem; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--surface); }

.us-profile-menu {
    position: relative;
}

.us-profile-menu__trigger,
.us-profile-dropdown__avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, var(--brand-500), var(--color-gold-400));
    color: var(--color-white);
    display: grid;
    place-items: center;
    font-weight: var(--font-weight-medium);
    padding: 0;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-500) 16%, transparent);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.us-profile-menu__trigger img,
.us-profile-dropdown__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.us-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: var(--card-bg);
    border: var(--card-border-width) solid var(--card-border-color);
    border-radius: 22px;
    box-shadow: var(--card-shadow-lg);
    padding: 12px;
    overflow: hidden;
}

.us-profile-dropdown__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 8px;
}

.us-profile-dropdown__head:hover {
    background: var(--surface-soft);
}

.us-profile-dropdown__panel[hidden] {
    display: none !important;
}

.us-profile-dropdown__group {
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.us-profile-dropdown__group:first-of-type {
    border-top: none;
    padding-top: 0;
}

.us-profile-dropdown__group--panel:first-of-type {
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.us-profile-dropdown__item,
.us-profile-dropdown__group a,
.us-profile-dropdown__form button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: none;
    border: none;
    color: var(--text);
    text-align: left;
    font-weight: var(--font-weight-medium);
    transition: background-color 0.18s ease;
}

.us-profile-dropdown__item:hover,
.us-profile-dropdown__group a:hover,
.us-profile-dropdown__form button:hover {
    background: var(--surface-soft);
}

.us-profile-dropdown__group i,
.us-profile-dropdown__form i,
.us-profile-dropdown__chevron i,
.us-profile-dropdown__back i {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text-muted);
}

.us-profile-dropdown__item--drilldown {
    justify-content: flex-start;
}

.us-profile-dropdown__chevron {
    margin-left: auto;
    display: inline-flex;
}

.us-profile-dropdown__chevron i {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    background: transparent;
    border: none;
}

.us-profile-dropdown__panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 4px 12px;
}

.us-profile-dropdown__panel-head strong {
    font-size: 1.35rem;
    line-height: 1.2;
}

.us-profile-dropdown__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
}

.us-profile-dropdown__back i {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    background: transparent;
    border: none;
    color: var(--text);
}

.us-profile-dropdown__form {
    margin: 0;
}

@media (max-width: 1100px) {
    .us-topbar__inner {
        grid-template-columns: minmax(132px, 1fr) minmax(420px, 650px) minmax(132px, 1fr);
        gap: 12px;
        padding: 0 14px;
    }

    .us-primary-nav {
        gap: 6px;
    }
}

@media (max-width: 900px) {
    .us-topbar__inner {
        grid-template-columns: auto 1fr auto;
        min-height: 66px;
    }

    .us-topbar__center {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .us-topbar__center::-webkit-scrollbar {
        display: none;
    }

    .us-primary-nav {
        min-width: max-content;
        max-width: none;
        padding: 0 4px;
    }

    .us-profile-dropdown {
        width: min(360px, calc(100vw - 20px));
        right: -8px;
    }

}

@media (max-width: 640px) {
    .us-topbar__inner {
        grid-template-columns: auto auto;
        grid-template-areas:
                    'brand actions'
                    'nav nav';
        row-gap: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .us-topbar__left {
        grid-area: brand;
    }

    .us-topbar__right {
        grid-area: actions;
    }

    .us-topbar__center {
        grid-area: nav;
        justify-content: flex-start;
    }

    .us-topbar__actions {
        gap: 8px;
    }

    .us-top-icon,
    .us-profile-menu__trigger {
        width: 40px;
        height: 40px;
    }

    .us-brand__logo {
        height: 30px;
        max-width: 170px;
    }

    .us-primary-nav__link {
        min-height: 54px;
        min-width: 58px;
        padding-inline: 12px;
    }

    .us-notification-dropdown {
        right: -48px;
        width: min(400px, calc(100vw - 12px));
        min-height: min(500px, calc(100vh - 96px));
    }

    .us-notification-dropdown__menu-trigger,
    .us-notification-row__menu-trigger {
        opacity: 1;
        pointer-events: auto;
    }

    .us-notifications-card {
        padding: 14px;
        border-radius: 18px;
    }

    .us-notifications-card__head {
        flex-direction: column;
    }

    .us-modal__dialog--terms {
        width:min(calc(100% - 1rem),48rem);
        max-height:96vh;
    }

    .us-modal__dialog--terms .us-modal__body.us-terms-copy {
        padding:.25rem .95rem 1rem .95rem;
    }


    .us-modal__sheet {
        width: min(calc(100vw - 1rem), 620px);
        border-radius: 18px;
    }

    .us-private-support-modal__head,
    .us-private-support-modal__body,
    .us-private-support-modal__actions {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .us-private-support-modal__actions {
        flex-direction: column-reverse;
    }

    .us-private-support-modal__actions .us-btn {
        width: 100%;
    }

    .us-bottom-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
    }
}

.us-admin-title {
    font-size: var(--font-size-lg);
}

.us-notification-menu {
    position: relative;
}

.us-notification-dropdown[hidden],
.us-notification-dropdown__menu[hidden],
.us-notification-row__menu[hidden] {
    display: none !important;
}

.us-notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(400px, calc(100vw - 20px));
    min-height: 500px;
    max-height: min(78vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: var(--card-border-width) solid var(--card-border-color);
    border-radius: 18px;
    box-shadow: var(--card-shadow-lg);
    z-index: 60;
}

.us-notification-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--border);
}

.us-notification-dropdown__head strong {
    display: block;
    font-size: var(--font-size-4);
}

.us-notification-dropdown__head span {
    color: var(--text-muted);
    font-size: var(--font-size-1);
}

.us-notification-dropdown__head a,
.us-notifications-card__settings {
    color: var(--brand-500);
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
    flex: 0 0 auto;
}

.us-notification-dropdown__tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
}

.us-notification-dropdown__tabs button {
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: var(--font-size-1);
    font-weight: var(--font-weight-medium);
}

.us-notification-dropdown__tabs button:hover {
    background: var(--surface-soft);
}

.us-notification-dropdown__tabs .is-active {
    background: color-mix(in srgb, var(--brand-500) 10%, var(--card-bg));
    border-color: color-mix(in srgb, var(--brand-500) 35%, var(--border));
    color: var(--brand-500);
}

.us-notification-dropdown__list {
    display: grid;
    gap: 2px;
    padding: 8px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.us-notification-dropdown__item,
.us-notification-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--text);
}

.us-notification-dropdown__item:hover,
.us-notification-row:hover {
    background: var(--surface-soft);
}

.us-notification-dropdown__item.is-unread,
.us-notification-row.is-unread {
    background: color-mix(in srgb, var(--brand-500) 7%, var(--card-bg));
}

.us-notification-dropdown__main,
.us-notification-row__main {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: inherit;
}

.us-notification-dropdown__avatar,
.us-notification-row__avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface-soft);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    flex: 0 0 auto;
}

.us-notification-dropdown__avatar img,
.us-notification-row__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.us-notification-dropdown__body,
.us-notification-row__body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.us-notification-dropdown__body p,
.us-notification-row__body p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: var(--font-size-2);
}

.us-notification-dropdown__body span,
.us-notification-row__body span {
    color: var(--brand-500);
    font-size: var(--font-size-0);
    font-weight: var(--font-weight-medium);
}

.us-notification-dropdown__menu-trigger,
.us-notification-row__menu-trigger {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, color 0.18s ease, background 0.18s ease;
    flex: 0 0 auto;
}

.us-notification-dropdown__item:hover .us-notification-dropdown__menu-trigger,
.us-notification-row:hover .us-notification-row__menu-trigger,
.us-notification-dropdown__menu-trigger.is-open,
.us-notification-row__menu-trigger.is-open {
    opacity: 1;
    pointer-events: auto;
}

.us-notification-dropdown__menu,
.us-notification-row__menu {
    position: absolute;
    top: 44px;
    right: 16px;
    min-width: 190px;
    display: grid;
    gap: 2px;
    padding: 6px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow-lg);
    z-index: 4;
}

.us-notification-dropdown__menu button,
.us-notification-row__menu button {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
}

.us-notification-dropdown__menu button:hover,
.us-notification-row__menu button:hover {
    background: var(--surface-soft);
}

.us-notification-dropdown__dot,
.us-notification-row__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--brand-500);
    flex: 0 0 auto;
}

.us-notification-dropdown__item:not(.is-unread) .us-notification-dropdown__dot,
.us-notification-row:not(.is-unread) .us-notification-row__dot {
    display: none;
}

.us-notification-dropdown__empty {
    padding: 24px 16px;
    color: var(--text-muted);
    text-align: center;
}

.us-notification-dropdown__status {
    padding: 12px 8px 6px;
    color: var(--text-muted);
    text-align: center;
    font-size: var(--font-size-0);
}

.us-notification-dropdown__sentinel[hidden] {
    display: none;
}

.us-notifications-page {
    padding: 32px 0 56px;
}

.us-notifications-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--card-bg);
    border: var(--card-border-width) solid var(--card-border-color);
    border-radius: 24px;
    box-shadow: var(--card-shadow-lg);
    padding: 18px;
}

.us-notifications-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
}

.us-notifications-card__head h1 {
    margin: 0 0 4px;
}

.us-notifications-card__head p {
    margin: 0;
    color: var(--text-muted);
}

.us-notifications-feed {
    display: grid;
    gap: 8px;
}

.us-notifications-card__footer {
    padding-top: 18px;
}

.us-notifications-load-more {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    border-radius: 14px;
}

.us-notifications-card__footer[hidden] {
    display: none;
}

.us-notifications-empty {
    padding: 36px 16px;
    text-align: center;
    color: var(--text-muted);
}

#letter-comments .letter-comment-target-highlight,
#letter-comments .comment-item.letter-comment-target-highlight,
#letter-comments .reply-item.letter-comment-target-highlight,
#letter-comments [data-comment-id].letter-comment-target-highlight,
#letter-comments [data-reply-id].letter-comment-target-highlight,
#letter-comments .comment-body.letter-comment-target-highlight,
#letter-comments .reply-body.letter-comment-target-highlight,
#letter-comments .comment-content.letter-comment-target-highlight,
#letter-comments .reply-content.letter-comment-target-highlight {
    background: rgba(220, 53, 69, 0.08) !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) inset, 0 0 0 1px rgba(220, 53, 69, 0.12);
    border-radius: 14px !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.us-footer {
    border-top: 0;
    background: transparent;
}

.us-footer__inner--legal {
    padding: 18px 20px 24px;
}

.us-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: center;
}

.us-footer__nav a {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted, #6b7280);
}

.us-footer__nav a:hover {
    color: var(--text, #111827);
}

@media (max-width: 767px) {
    .us-footer__inner--legal {
        padding: 16px 16px 22px;
    }

    .us-footer__nav {
        justify-content: flex-start;
    }
}

.us-texts-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
    gap:20px;
    position:relative;
    z-index:1;
}

.us-text-card {
    position:relative;
    overflow: visible;
    display:flex;
    flex-direction:column;
    gap:14px;
    min-height:260px;
    z-index:1;
    background:var(--us-card-bg, var(--card-bg, #fff));
    border:1px solid var(--us-border, rgba(15,23,42,.08));
    box-shadow:var(--shadow-sm, 0 10px 28px rgba(15,23,42,.06));
}

.us-text-card::before,
.us-text-detail::before {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,0));
}

.us-text-card--rose,
.us-text-card--gold,
.us-text-card--sky,
.us-text-card--violet,
.us-text-card--mint,
.us-text-card--sunset,
.us-text-detail--rose,
.us-text-detail--gold,
.us-text-detail--sky,
.us-text-detail--violet,
.us-text-detail--mint,
.us-text-detail--sunset {
    background:var(--us-surface);
}

[data-theme="dark"] .us-text-card--rose,
[data-theme="dark"] .us-text-card--gold,
[data-theme="dark"] .us-text-card--sky,
[data-theme="dark"] .us-text-card--violet,
[data-theme="dark"] .us-text-card--mint,
[data-theme="dark"] .us-text-card--sunset,
[data-theme="dark"] .us-text-detail--rose,
[data-theme="dark"] .us-text-detail--gold,
[data-theme="dark"] .us-text-detail--sky,
[data-theme="dark"] .us-text-detail--violet,
[data-theme="dark"] .us-text-detail--mint,
[data-theme="dark"] .us-text-detail--sunset {
    background:var(--us-surface);
}

.us-text-card__top,
.us-text-card__footer,
.us-text-card__date,
.us-text-card__bubble,
.us-text-detail__label,
.us-text-detail__bubble {
    position:relative;
    z-index:1;
}

.us-text-card__top {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:12px;
}

.us-text-card__footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.us-text-card__identity {
    display:flex;
    align-items:flex-start;
    justify-content:flex-start;
    gap:12px;
    min-width:0;
}

.us-text-card__identity-trigger {
    display:flex;
    align-items:flex-start;
    gap:12px;
    min-width:0;
    width:100%;
    color:inherit;
    text-decoration:none;
}

.us-text-card__identity-copy {
    min-width:0;
    flex:1 1 auto;
}

.us-text-card__author {
    margin:0;
    display:block;
    font-size:1.1rem;
    font-weight:600;
    line-height:1.2;
    color:var(--us-text,#111827);
}

.us-text-card__author-link {
    display:block;
    font:inherit;
    color:inherit;
    text-decoration:none;
    white-space:nowrap;
}

.us-text-card__recipient {
    display:block;
    margin-top:3px;
    font-size:13px;
    line-height:1.35;
    color:var(--us-text,#111827);
}

.us-text-card__chip,
.us-text-detail__label {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    padding:8px 14px;
    font-size:12px;
    font-weight:600;
    line-height:1;
    white-space:nowrap;
    flex:0 0 auto;
    background:color-mix(in srgb, var(--surface) 72%, transparent);
    border:1px solid rgba(0,0,0,.06);
}

[data-theme="dark"] .us-text-card__chip,
[data-theme="dark"] .us-text-detail__label {
    background:rgba(17,24,39,.55);
    border-color:color-mix(in srgb, var(--border) 78%, transparent);
}

.us-text-card__message {
    display:block;
    width:100%;
    margin:0;
    text-align:left;
    line-height:1.6;
    white-space:pre-wrap;
}

.us-text-card .us-letter-feed-card__avatar-shell {
    position:relative;
    display:inline-flex;
    flex:0 0 46px;
}

.us-text-card .us-letter-feed-card__avatar {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    flex:0 0 46px;
    border-radius:50%;
    overflow:hidden;
    background:color-mix(in srgb, var(--surface-soft) 65%, var(--surface-mix-dark) 35%);
    border:1px solid rgba(15,23,42,.10);
}

.us-text-card .us-letter-feed-card__avatar img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.us-text-card .us-letter-feed-card__avatar-level-badge {
    position:absolute;
    right:-0.08rem;
    bottom:0.1rem;
    z-index:2;
    min-width:.92rem;
    height:.92rem;
    padding:0 .12rem;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    border:1.5px solid var(--surface-elevated, #fff);
    background:var(--accent-blue-strong, #1d4ed8);
    color:var(--text-inverse, #fff);
    font-size:.6rem;
    font-weight:700;
    line-height:1;
}

.us-text-card__bubble,
.us-text-detail__bubble {
    border-radius:22px 22px 22px 8px;
    padding:18px 18px 20px;
    background:color-mix(in srgb, var(--surface) 82%, transparent);
    font-size:18px;
    line-height:1.6;
    box-shadow:0 10px 28px rgba(15,23,42,.08);
    white-space:pre-wrap;
    text-align:left;
}

.us-text-card__bubble {
    display:flex;
    align-items:flex-start;
    justify-content:flex-start;
    background:var(--surface-raised);
}

.us-text-card__bubble--link {
    display:flex;
    color:inherit;
    text-decoration:none;
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    cursor:pointer;
}

.us-text-card__bubble--link:hover {
    transform:translateY(-1px);
    box-shadow:0 14px 30px rgba(15,23,42,.10);
}

[data-theme="dark"] .us-text-card__bubble,
[data-theme="dark"] .us-text-detail__bubble {
    background:rgba(17,24,39,.72);
    box-shadow:none;
}

.us-text-detail__bubble {
    font-size:clamp(1.5rem,1.9vw,2.1rem);
    line-height:1.45;
    padding:28px 30px;
    margin-top:2px;
    margin-bottom:18px;
}

.us-text-card__footer,
.us-text-card__date {
    font-size:13px;
    color:var(--us-text-muted);
}

.us-text-card__actions {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.us-text-card__read-btn {
    flex:0 0 auto;
}

.us-text-card__date {
    flex:0 0 auto;
    margin-left:auto;
    text-align:right;
    white-space:nowrap;
}

.us-text-detail .us-reading-letter-detail__footer {
    margin-top:18px;
    display:grid;
    gap:18px;
}

.us-text-form textarea {
    min-height:160px;
}

.us-text-accent-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(110px,1fr));
    gap:12px;
}

.us-text-accent {
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:78px;
    border-radius:18px;
    border:1px solid var(--us-border);
    cursor:pointer;
    font-weight:600;
    overflow:hidden;
}

.us-text-accent input {
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}

.us-text-accent.is-active {
    outline:2px solid var(--us-accent);
    outline-offset:2px;
}

.us-text-accent--rose {
    background:linear-gradient(180deg,#fff1f5,#ffe4ec);
}

.us-text-accent--gold {
    background:linear-gradient(180deg,#fff8e5,#ffefbf);
}

.us-text-accent--sky {
    background:linear-gradient(180deg,#eef8ff,#dcedff);
}

.us-text-accent--violet {
    background:linear-gradient(180deg,#f5efff,#e8dcff);
}

.us-text-accent--mint {
    background:linear-gradient(180deg,#ecfff8,#d7faec);
}

.us-text-accent--sunset {
    background:linear-gradient(180deg,#fff1ea,#ffdcca);
}

.us-texts-manage-grid {
    display:grid;
    gap:16px;
}

.us-text-manage-card {
    display:grid;
    gap:16px;
    align-items:start;
}

.us-text-manage-card__actions {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    flex-wrap:wrap;
    padding-top:14px;
    border-top:1px solid var(--border);
}

.us-text-manage-card__actions .us-btn {
    min-height:40px;
    padding:.5rem .9rem;
}

.us-text-show-page .us-reading-shell {
    max-width:1180px;
}

@media (max-width: 720px) {
    .us-text-detail__bubble {
        font-size:18px;
    }

    .us-text-manage-card {
        flex-direction:column;
    }

    .us-text-create-grid,
    .us-text-check-grid {
        grid-template-columns:1fr;
    }

    .us-prompt-modal {
        padding:1.25rem 1rem 1rem;
    }

    .us-modal__dialog--terms {
        width:min(calc(100% - 1rem),48rem);
    }

    .us-full-story-prompt {
        flex-direction:column;
        align-items:flex-start;
        padding:18px;
    }

    .us-full-story-prompt__copy h2 {
        font-size:22px;
    }

    .us-full-story-modal__dialog {
        width:calc(100vw - 12px);
        height:calc(100dvh - 12px);
        max-height:calc(100dvh - 12px);
    }

    .us-full-story-modal__head {
        padding:24px 20px 16px;
    }

    .us-full-story-modal__head h2 {
        font-size:26px;
    }

    .us-full-story-modal__body {
        padding:20px 20px 16px;
        font-size:17px;
    }

    .us-full-story-modal__actions {
        padding:18px 20px 20px;
    }

    .us-full-story-modal__actions-grid {
        grid-template-columns:1fr;
    }

    .us-full-story-reaction-menu {
        position:static;
        box-shadow:none;
    }
}

.us-text-card__image,
.us-text-detail__image,
.us-text-image-preview,
.us-text-manage-card__image {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    overflow: hidden;
    background:var(--surface-raised);
    border: 1px solid rgba(0,0,0,.06);
}

.us-text-card__image img,
.us-text-detail__image img,
.us-text-image-preview img,
.us-text-manage-card__image img {
    display: block;
    width: 100%;
    height: auto;
}

.us-text-card__image img {
    max-height: 240px;
    object-fit: cover;
}

.us-text-detail__image {
    margin-top:18px;
}

.us-text-detail__image img {
    max-height:640px;
    object-fit:contain;
    background: var(--surface);
}

.us-text-image-preview,
.us-text-manage-card__image {
    margin-top: 10px;
}

.us-text-image-preview img,
.us-text-manage-card__image img {
    max-height: 180px;
    object-fit: cover;
}

.us-prompt-modal {
    width:min(calc(100% - (var(--space-4) * 2)),44rem);
    padding:1.5rem 1.5rem 1.25rem;
    display: grid;
    gap: 1rem;
    position:relative;
    max-width:44rem;
    border-radius:24px;
    overflow:visible;
}

.us-prompt-modal__body {
    display: grid;
    gap: .75rem;
}

.us-prompt-modal__body h2 {
    margin: 0;
}

.us-prompt-modal__body p {
    margin: 0;
}

.us-prompt-modal__actions {
    display: flex;
    justify-content: flex-start;
    gap: .75rem;
    flex-wrap: wrap;
    padding-top:.25rem;
}

.us-prompt-modal .us-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.us-modal__dialog--terms {
    max-height:min(88vh,900px);
    width:min(820px,calc(100vw - 24px));
    overflow:hidden;
    display:flex;
    flex-direction:column;
}

.us-modal__body.us-terms-copy {
    max-height:none;
    overflow:auto;
    padding-right:.75rem;
    padding-top:var(--space-4);
}

.us-text-create-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.us-text-check-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.us-check--card {
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:14px 16px;
    border:1px solid var(--us-border);
    border-radius:18px;
    background:var(--us-card-bg,#fff);
}

.us-check--card input {
    margin-top:4px;
}

.us-check--card span {
    display:grid;
    gap:4px;
}

.us-check--card small {
    display:block;
    color:var(--us-text-muted);
}

.us-text-card,
.us-texts-grid,
.us-texts-feed-page .us-shell,
.us-text-show-page .us-reading-card {
    overflow:visible;
}

.us-text-card:hover {
    z-index:8;
}

.us-member-hovercard {
    z-index:30;
}

.us-member-hovercard__panel {
    z-index:40;
}

.us-text-card__context,
.us-text-detail__context {
    position:relative;
    z-index:1;
    font-size:13px;
    line-height:1.5;
    color:var(--us-text-muted);
    padding:0 2px;
    margin-top:-2px;
}

.us-text-card__tags,
.us-text-detail__labels {
    position:relative;
    z-index:1;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}

.us-text-card__meta-chip {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 12px;
    border-radius:999px;
    background:color-mix(in srgb, var(--surface) 68%, transparent);
    border:1px solid rgba(0,0,0,.06);
    font-size:12px;
    font-weight:600;
    line-height:1;
    white-space:nowrap;
    flex:0 0 auto;
    max-width:none;
}

[data-theme="dark"] .us-text-card__meta-chip {
    background:rgba(17,24,39,.55);
    border-color:color-mix(in srgb, var(--border) 78%, transparent);
}

.us-modal__dialog--terms .us-modal__head {
    position:sticky;
    top:0;
    background:var(--us-surface);
    z-index:2;
    padding-bottom:var(--space-3);
    margin-bottom:0;
    flex:0 0 auto;
    border-bottom:1px solid var(--us-border);
}

.us-text-image-preview.is-hidden {
    display:none;
}

.us-text-image-preview {
    margin-top:.85rem;
    border-radius:20px;
    border:1px solid var(--us-border);
    background:var(--card-bg-soft);
    padding:.85rem;
    max-width:min(100%,30rem);
}

.us-text-image-preview img {
    display:block;
    width:100%;
    height:auto;
    max-height:28rem;
    object-fit:contain;
    border-radius:14px;
    box-shadow:var(--card-shadow-sm);
    background:var(--surface-0);
}

.us-modal[data-terms-modal] {
    padding-block:clamp(.75rem,2vh,1.5rem);
    align-items:center;
}

.us-modal__dialog--terms .us-modal__body.us-terms-copy {
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow:auto;
    padding:.25rem 1.1rem 1.25rem 1.1rem;
    -webkit-overflow-scrolling:touch;
}

.us-modal__dialog--terms .us-terms-copy ul {
    margin:0;
    padding-left:1.3rem;
}

.us-texts-feed-page .us-shell {
    max-width:1180px;
}

.us-texts-grid--feed {
    grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
    align-items:start;
}

.us-letters-filters__clear--inline {
    align-self:end;
    justify-content:flex-start;
}

.us-letters-filters__clear--inline .us-btn {
    min-width:0;
}

.us-text-show-page .us-reading-main {
    display:grid;
    gap:24px;
    grid-template-columns:minmax(0,1fr);
}

.us-reading-card--text {
    padding:24px 28px;
}

.us-text-detail .us-reading-letter-detail__head {
    align-items:flex-start;
}

.us-text-detail .us-reading-letter-detail__stats {
    justify-content:flex-start;
    gap:32px;
}

@media (max-width:1080px) {
    .us-texts-grid--feed {
        grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    }
}

@media (max-width:720px) {
    .us-texts-grid--feed {
        grid-template-columns:1fr;
    }

    .us-reading-card--text {
        padding:18px;
    }

    .us-text-detail__bubble {
        padding:18px;
        font-size:1.3rem;
    }
}

.us-reading-letter-detail__meta-line--spaced {
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:6px;
    align-items:center;
    row-gap:6px;
}

.us-text-detail__labels {
    margin-top:12px;
    margin-bottom:10px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:14px 0 12px;
}

.us-text-detail__context {
    margin-top:8px;
    margin-bottom:10px;
    margin:0 0 16px;
    color:var(--us-text-muted);
    font-size:15px;
}

.us-text-show-page .us-reading-card {
    padding:28px;
}

.us-text-show-page .us-reading-letter-detail__footer {
    margin-top:22px;
    gap:18px;
}

.us-letters-filters .us-form-actions,
.us-letters-filters .us-filter-actions,
.us-letters-filters__clear--inline {
    display:flex;
    align-items:flex-end;
    justify-content:flex-end;
}

.us-letters-filters .us-btn {
    white-space:nowrap;
}

.us-modal__dialog--terms .us-modal__body {
    overflow:auto;
    padding-right:8px;
}

.us-text-upload-keep {
    margin-top:10px;
}

.us-text-poster-wrap {
    margin:24px 0 22px;
}

.us-text-poster-head {
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-end;
    margin-bottom:14px;
    flex-wrap:wrap;
}

.us-text-poster-head h2 {
    margin:4px 0 0;
}

.us-text-poster-head p:last-child {
    margin:0;
    color:var(--us-text-muted);
}

.us-text-poster {
    background:transparent;
    border-radius:24px;
    padding:0;
    box-shadow:none;
}

.us-text-poster__frame {
    background:var(--text-poster-display-background);
    border-radius:22px;
    padding:22px 24px 16px;
    border:1px solid color-mix(in srgb, var(--text-poster-display-accent) 34%, var(--text-poster-divider));
    color:var(--text-poster-display-ink);
    overflow:hidden;
}

.us-text-poster__topline {
    display:grid;
    grid-template-columns:minmax(0,1fr) 220px;
    gap:18px;
    padding-bottom:18px;
    border-bottom:1px solid var(--text-poster-divider);
    align-items:stretch;
}

.us-text-poster__to {
    display:flex;
    align-items:center;
    gap:14px;
    font-family:var(--us-text-poster-recipient-font, 'Playfair Display', serif);
    font-size:var(--us-text-poster-recipient-size,38px);
    color:var(--text-poster-display-ink);
}

.us-text-poster__to-label {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--text-poster-display-accent);
    color:#fff;
    padding:9px 13px;
    font:700 16px/1 var(--us-text-poster-status-font, 'Poppins', sans-serif);
    letter-spacing:.12em;
}

.us-text-poster__to-value {
    font-size:clamp(24px,2.8vw,var(--us-text-poster-recipient-size,38px));
    line-height:1.06;
    font-family:var(--us-text-poster-recipient-font, 'Playfair Display', serif);
}

.us-text-poster__status {
    padding-left:18px;
    border-left:1px solid var(--text-poster-divider);
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:left;
    position:relative;
    padding-right:48px;
}

.us-text-poster__status span {
    font-size:13px;
    letter-spacing:.12em;
    font-weight:700;
    text-transform:uppercase;
    color:var(--text-poster-display-accent);
    font-family:var(--us-text-poster-status-font, 'Poppins', sans-serif);
}

.us-text-poster__status strong {
    font:700 clamp(22px,2.3vw,var(--us-text-poster-status-size,32px))/1 var(--us-text-poster-status-font, 'Poppins', sans-serif);
    letter-spacing:.05em;
    margin-top:5px;
}

.us-text-poster__message {
    padding:24px 2px 26px;
    font-family:var(--us-text-poster-message-font, 'Playfair Display', serif);
    font-size:clamp(36px,4.2vw,var(--us-text-poster-message-size,72px));
    line-height:1.08;
    border-bottom:1px solid var(--text-poster-divider);
    word-break:break-word;
}

.us-text-poster__meta {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:0;
    border-bottom:1px dashed var(--text-poster-divider);
}

.us-text-poster__meta-item {
    padding:16px 12px 16px 0;
    border-right:1px solid var(--text-poster-divider);
    min-height:74px;
}

.us-text-poster__meta-item:last-child {
    border-right:0;
    padding-right:0;
}

.us-text-poster__meta-item span {
    display:block;
    font-size:var(--us-text-poster-meta-label-size,12px);
    letter-spacing:.12em;
    text-transform:uppercase;
    font-weight:700;
    margin-bottom:7px;
    color:color-mix(in srgb, var(--text-poster-display-accent) 82%, var(--text-poster-display-ink) 18%);
    font-family:var(--us-text-poster-meta-font, 'Poppins', sans-serif);
}

.us-text-poster__meta-item strong {
    display:block;
    font-size:var(--us-text-poster-meta-value-size,18px);
    line-height:1.18;
    font-weight:600;
    font-family:var(--us-text-poster-meta-font, 'Poppins', sans-serif);
}

.us-text-poster__footer {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(220px,320px);
    gap:18px;
    align-items:end;
    padding:18px 0 10px;
}

.us-text-poster__brand {
    font:700 clamp(28px,2.8vw,var(--us-text-poster-brand-size,42px))/1 var(--us-text-poster-brand-font, 'Playfair Display', serif);
    margin-bottom:8px;
}

.us-text-poster__tag {
    font-size:var(--us-text-poster-meta-label-size,12px);
    letter-spacing:.13em;
    text-transform:uppercase;
    max-width:320px;
    font-family:var(--us-text-poster-meta-font, 'Poppins', sans-serif);
}

.us-text-poster__line {
    font:600 italic clamp(18px,2vw,var(--us-text-poster-quote-size,26px))/1.2 var(--us-text-poster-quote-font, 'Playfair Display', serif);
    text-align:center;
    border-left:1px solid var(--text-poster-divider);
    padding-left:18px;
}

.us-text-poster__bar {
    margin:0 -24px -16px;
    padding:12px 24px;
    background:var(--text-poster-display-footer-background);
    color:#f8fafc;
    font-size:var(--us-text-poster-bar-size,12px);
    letter-spacing:.16em;
    text-transform:uppercase;
    display:flex;
    justify-content:space-between;
    gap:18px;
    flex-wrap:wrap;
    font-family:var(--us-text-poster-bar-font, 'Poppins', sans-serif);
}

.us-text-poster__bar span {
    font-weight:700;
}

.us-text-detail--posterized {
    padding:24px;
    background:var(--surface);
}

.us-reading-letter-detail__head--poster {
    margin-bottom:10px;
}

.us-text-poster-notes {
    display:grid;
    gap:16px;
    margin-top:8px;
}

.us-text-detail__labels--poster {
    padding-top:0;
}

.us-text-detail__context--poster {
    max-width:860px;
}

.us-text-detail__image--poster img {
    border-radius:20px;
    max-height:560px;
    object-fit:contain;
    background:var(--surface-subtle);
}

.us-reading-letter-detail__footer--poster {
    margin-top:22px;
    padding-top:22px;
    border-top:1px solid rgba(15,23,42,.08);
}

.us-text-poster__status::after {
    content:"🔒";
    position:absolute;
    right:4px;
    top:50%;
    transform:translateY(-50%);
    font-size:28px;
    color:var(--text-poster-display-ink);
    opacity:.9;
}

.us-text-poster__meta-item span i {
    margin-right:8px;
}

@media (max-width: 900px) {
    .us-text-poster__topline { grid-template-columns:1fr; }
    .us-text-poster__status {
        border-left:0;
        border-top:1px solid var(--text-poster-divider);
        padding:16px 0 0;
    }
    .us-text-poster__meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .us-text-poster__meta-item:nth-child(2) { border-right:0; padding-right:0; }
    .us-text-poster__meta-item:nth-child(n+3) { border-top:1px solid var(--text-poster-divider); }
    .us-text-poster__footer { grid-template-columns:1fr; }
    .us-text-poster__line {
        border-left:0;
        border-top:1px solid var(--text-poster-divider);
        padding-left:0;
        padding-top:16px;
    }
}

@media (max-width: 640px) {
    .us-text-poster { padding:0; border-radius:20px; }
    .us-text-poster__frame { padding:16px 16px 14px; border-radius:16px; }
    .us-text-poster__to { gap:10px; align-items:flex-start; }
    .us-text-poster__to-value { font-size:clamp(20px,7vw,var(--us-text-poster-recipient-size,38px)); }
    .us-text-poster__to-label { font-size:12px; padding:8px 10px; }
    .us-text-poster__status strong { font-size:clamp(18px,7vw,var(--us-text-poster-status-size,32px)); }
    .us-text-poster__message { padding:20px 0 22px; font-size:clamp(28px,7.5vw,var(--us-text-poster-message-size,72px)); }
    .us-text-poster__meta { grid-template-columns:1fr; }
    .us-text-poster__meta-item { border-right:0!important; padding-right:0; border-top:1px solid var(--text-poster-divider); }
    .us-text-poster__meta-item:first-child { border-top:0; }
    .us-text-poster__meta-item strong { font-size:var(--us-text-poster-meta-value-size,18px); }
    .us-text-poster__bar { margin:0 -16px -14px; padding:11px 16px; font-size:var(--us-text-poster-bar-size,12px); letter-spacing:.1em; }
    .us-text-detail--posterized { padding:18px; }
    .us-reading-letter-detail__head--poster { align-items:flex-start; }
    .us-reading-letter-detail__head--poster .us-letter-menu { margin-left:auto; }
}

.us-check--card-wide {
    display:flex;
    align-items:flex-start;
    gap:14px;
}

.us-full-story-fields {
    display:grid;
    gap:14px;
    margin-top:6px;
}

.us-full-story-fields__panel {
    display:grid;
    gap:14px;
    padding:18px;
    border:1px solid rgba(15,23,42,.08);
    border-radius:18px;
    background:var(--surface-soft);
}

[data-theme="dark"] .us-full-story-fields__panel {
    background:var(--surface-soft);
    border-color:color-mix(in srgb, var(--border) 78%, transparent);
}

.us-full-story-prompt {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin:24px 0 6px;
    padding:20px 22px;
    border:1px solid rgba(15,23,42,.08);
    border-radius:22px;
    background:linear-gradient(135deg,var(--surface),var(--surface-soft));
}

.us-full-story-prompt__copy {
    display:grid;
    gap:6px;
    max-width:700px;
}

.us-full-story-prompt__copy h2 {
    margin:0;
    font-size:24px;
    line-height:1.1;
}

.us-full-story-prompt__copy p:last-child {
    margin:0;
    color:var(--text-muted);
}

.us-full-story-prompt__button {
    white-space:nowrap;
}

.us-full-story-modal__dialog {
    width:min(760px,calc(100vw - 28px));
    height:calc(100dvh - 24px);
    max-height:calc(100dvh - 24px);
    overflow:hidden;
    padding:0;
    display:flex;
    flex-direction:column;
}

.us-full-story-modal__head {
    padding:28px 28px 18px;
    border-bottom:1px solid rgba(15,23,42,.08);
    display:grid;
    gap:8px;
}

.us-full-story-modal__head h2 {
    margin:0;
    font-size:30px;
    line-height:1.1;
}

.us-full-story-modal__body {
    padding:24px 28px 18px;
    overflow:auto;
    flex:1 1 auto;
    font-size:18px;
    line-height:1.75;
    white-space:normal;
}

.us-full-story-modal__actions {
    padding:20px 28px 28px;
    border-top:1px solid rgba(15,23,42,.08);
    display:grid;
    gap:14px;
    background:var(--surface-soft);
}

.us-full-story-modal__actions-title {
    margin:0;
    font-size:14px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:var(--text-muted);
}

.us-full-story-modal__actions-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.us-full-story-action {
    justify-content:center;
    gap:10px;
    text-align:center;
}

.us-full-story-reaction-picker {
    position:relative;
}

.us-full-story-reaction-trigger {
    width:100%;
}

.us-full-story-reaction-trigger__chevron {
    font-size:12px;
    opacity:.72;
}

.us-full-story-reaction-menu {
    position:absolute;
    left:0;
    right:0;
    bottom:calc(100% + 10px);
    z-index:40;
    padding:14px;
    border:1px solid rgba(15,23,42,.08);
    border-radius:18px;
    background:var(--surface);
    box-shadow:0 18px 48px rgba(15,23,42,.16);
    display:grid;
    gap:12px;
}

.us-full-story-reaction-menu__title {
    margin:0;
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--text-muted);
}

.us-full-story-reaction-menu__list {
    display:grid;
    gap:10px;
}

.us-full-story-reaction-option {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    padding:12px 14px;
    border:1px solid rgba(15,23,42,.08);
    border-radius:14px;
    background:var(--surface);
    color:inherit;
    font:inherit;
    text-align:left;
    cursor:pointer;
    transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}

.us-full-story-reaction-option:hover,
.us-full-story-reaction-option:focus-visible {
    border-color:rgba(17,24,39,.22);
    transform:translateY(-1px);
    box-shadow:0 10px 24px rgba(15,23,42,.08);
    outline:none;
}

.us-full-story-reaction-option.is-active {
    border-color:rgba(185,28,28,.24);
    background:rgba(185,28,28,.04);
}

.us-full-story-reaction-option .us-letter-reaction__count {
    margin-left:auto;
}

.us-full-story-reaction-menu__empty {
    margin:0;
    color:var(--text-muted);
    font-size:14px;
}

[data-theme="dark"] .us-full-story-reaction-menu {
    background:var(--surface-menu);
    border-color:color-mix(in srgb, var(--border) 78%, transparent);
    box-shadow:0 18px 48px rgba(0,0,0,.45);
}

[data-theme="dark"] .us-full-story-reaction-menu__title,
[data-theme="dark"] .us-full-story-reaction-menu__empty {
    color:var(--text-muted);
}

[data-theme="dark"] .us-full-story-reaction-option {
    background:var(--surface-soft);
    border-color:color-mix(in srgb, var(--border) 78%, transparent);
}

[data-theme="dark"] .us-full-story-reaction-option:hover,
[data-theme="dark"] .us-full-story-reaction-option:focus-visible {
    border-color:color-mix(in srgb, var(--brand-500) 46%, var(--border));
    box-shadow:0 10px 24px rgba(0,0,0,.35);
}

[data-theme="dark"] .us-full-story-reaction-option.is-active {
    background:rgba(185,28,28,.12);
    border-color:rgba(248,113,113,.3);
}

[data-theme="dark"] .us-full-story-prompt {
    background:linear-gradient(135deg,var(--surface-soft),var(--surface-strong));
    border-color:color-mix(in srgb, var(--border) 78%, transparent);
}

[data-theme="dark"] .us-full-story-prompt__copy p:last-child,
[data-theme="dark"] .us-full-story-modal__actions-title {
    color:var(--text-muted);
}

[data-theme="dark"] .us-full-story-modal__actions {
    background:var(--surface-soft);
    border-top-color:color-mix(in srgb, var(--border) 78%, transparent);
}

.us-full-story-chip {
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:10px;
    padding:7px 12px;
    border-radius:999px;
    background:color-mix(in srgb, var(--surface-strong) 42%, transparent);
    font-size:12px;
    line-height:1;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:var(--text);
}

.us-full-story-chip--text {
    margin-bottom:0;
}

[data-theme="dark"] .us-full-story-chip {
    background:rgba(255,255,255,.1);
    color:var(--text);
}

.us-full-story-reaction-menu[hidden] {
    display:none !important;
}

[data-theme="dark"] .us-text-card {
    background:var(--us-card-bg, var(--surface-soft));
    border-color:color-mix(in srgb, var(--border) 78%, transparent);
    box-shadow:0 12px 30px rgba(0,0,0,.28);
}

.us-text-card::before {
    background:linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0));
}

[data-theme="dark"] .us-text-card::before {
    background:linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}

[data-theme="dark"] .us-text-card__bubble {
    background:var(--surface-soft);
}

[data-theme="dark"] .us-text-card__image,
[data-theme="dark"] .us-text-detail__image,
[data-theme="dark"] .us-text-image-preview,
[data-theme="dark"] .us-text-manage-card__image {
    background:var(--surface-soft);
    border-color:color-mix(in srgb, var(--border) 78%, transparent);
}

.us-text-card .us-member-hovercard__panel {
    z-index:1200;
}

.us-text-card .us-member-hovercard__surface {
    background:var(--surface-raised);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    opacity:1;
}

[data-theme="dark"] .us-text-card .us-member-hovercard__surface {
    background:var(--surface-soft);
    border-color:color-mix(in srgb, var(--border) 78%, transparent);
}

.us-text-card .us-letter-feed-card__avatar,
.us-text-card .us-member-hovercard__trigger .us-letter-feed-card__avatar {
    background:var(--surface-raised);
    opacity:1;
}

[data-theme="dark"] .us-text-card .us-letter-feed-card__avatar,
[data-theme="dark"] .us-text-card .us-member-hovercard__trigger .us-letter-feed-card__avatar {
    background:var(--surface-strong);
}

.us-modal__sheet {
    position: relative;
    width: min(calc(100vw - 1.5rem), 620px);
    max-height: min(86vh, 760px);
    overflow: hidden;
    margin: 0;
    z-index: 1;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
}

.us-private-support-modal__sheet {
    display: flex;
    flex-direction: column;
}

.us-private-support-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.15rem 0.95rem;
    border-bottom: 1px solid var(--border);
}

.us-private-support-modal__head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.us-private-support-modal__head p {
    margin: 0;
    color: var(--text-muted);
}

.us-private-support-modal__body {
    display: grid;
    gap: 0.9rem;
    padding: 1rem 1.15rem 1.15rem;
}

.us-private-support-modal__body textarea {
    width: 100%;
    min-height: 160px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.95rem 1rem;
    font: inherit;
    line-height: 1.5;
}

.us-private-support-modal__body textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(180, 42, 56, 0.14);
}

.us-private-support-modal__body label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.us-private-support-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0 1.15rem 1.15rem;
}

.us-private-support-success .us-private-support-modal__actions {
    padding-top: 1rem;
}

.us-bottom-toast {
    position: fixed;
    left: 24px;
    bottom: 24px;
    transform: translateY(16px);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.96);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

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


@media (max-width: 980px) {
    .us-topbar--member { left: 0; }
    .us-main--with-sidebar, .us-footer--with-sidebar { margin-left: 0; }
    .us-sidebar-toggle { display: grid; }
    .us-topbar__inner { padding: 0 16px; }
}

@media (max-width: 640px) {
    .us-topbar__context span { display: none; }
    .us-topbar__context strong { font-size: .86rem; max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .us-topbar__actions { gap: 7px; }
    .us-topbar-product-cta { width: 42px; padding: 0; justify-content: center; border-radius: 14px; }
    .us-topbar-product-cta span { display: none; }
    .us-top-icon, .us-profile-menu__trigger { width: 39px; height: 39px; border-radius: 12px; }
}

/* Dashboard daily prompt: intentionally compact so guidance stays calm. */
.us-sanctuary-prompt {
  display: grid;
  gap: var(--space-3);
}

.us-sanctuary-prompt h2,
.us-sanctuary-prompt p {
  margin: 0;
}

.us-sanctuary-prompt .us-btn {
  justify-self: start;
}


/* ==========================================================
   UNSENTLY PHONE APP SHELL — v403 CLEAN CORE INTEGRATION
   One app-only mobile block inside the core stylesheet.
   ========================================================== */
.us-pwa-topbar-brand,
.us-pwa-bottom-nav { display:none; }

@media (max-width:980px) {
  html.us-pwa-app body.us-has-sidebar { --topbar-height:calc(58px + env(safe-area-inset-top)); padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
  html.us-pwa-app .us-topbar { min-height:var(--topbar-height); padding-top:env(safe-area-inset-top); }
  html.us-pwa-app .us-main--with-sidebar { padding-top:var(--topbar-height); }
  html.us-pwa-app { scroll-padding-top:var(--topbar-height); }
  html.us-pwa-app .us-topbar__inner { position:relative; min-height:58px; padding:0 11px; gap:6px; }
  html.us-pwa-app .us-topbar__context,
  html.us-pwa-app .us-topbar-product-cta,
  html.us-pwa-app .us-message-menu { display:none !important; }
  html.us-pwa-app .us-pwa-topbar-brand { position:absolute; left:50%; top:50%; display:flex; align-items:center; gap:6px; transform:translate(-50%,-50%); color:var(--text); font-weight:800; text-decoration:none; }
  html.us-pwa-app .us-pwa-topbar-brand img { width:25px; height:25px; border-radius:8px; }
  html.us-pwa-app .us-top-icon, html.us-pwa-app .us-profile-menu__trigger { width:37px; height:37px; border-radius:12px; }
  html.us-pwa-app .us-footer, html.us-pwa-app .fr-messenger-dock { display:none !important; }
  html.us-pwa-app .us-pwa-bottom-nav { position:fixed; left:0; right:0; bottom:0; z-index:170; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); min-height:calc(66px + env(safe-area-inset-bottom)); padding:6px 4px calc(5px + env(safe-area-inset-bottom)); border-top:1px solid var(--border); background:var(--surface); box-shadow:0 -8px 22px rgba(31,22,45,.07); }
  html.us-pwa-app .us-pwa-bottom-nav__item { display:grid; justify-items:center; gap:4px; min-width:0; padding:4px 1px; color:var(--text-muted); font-size:.62rem; font-weight:700; text-decoration:none; }
  html.us-pwa-app .us-pwa-bottom-nav__icon { position:relative; width:31px; height:27px; display:grid; place-items:center; border-radius:11px; font-size:.98rem; }
  html.us-pwa-app .us-pwa-bottom-nav__item.is-active { color:var(--brand-600); }
  html.us-pwa-app .us-pwa-bottom-nav__item.is-primary .us-pwa-bottom-nav__icon { width:43px; height:43px; margin-top:-15px; border:3px solid var(--surface); border-radius:15px; background:linear-gradient(135deg,var(--brand-500),var(--brand-700)); color:#fff; }
  html.us-pwa-app .us-pwa-bottom-nav__icon b { position:absolute; right:-7px; top:-5px; min-width:16px; height:16px; display:grid; place-items:center; padding:0 3px; border-radius:999px; background:var(--brand-600); color:#fff; font-size:.53rem; }
}
