*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #F2EBE0;
    --bg2: #EDE2D5;
    --card: #FAF5EE;
    --t1: #2E1F14;
    --t2: #5C4532;
    --tm: #9E8B7A;
    --border: #D9CABC;
    --line: #C4A882;
    --shadow: rgba(46, 31, 20, 0.06);
    --shadow-md: rgba(46, 31, 20, 0.12);
    --shadow-xs: 0 1px 2px rgba(46, 31, 20, 0.08);
    --shadow-sm: 0 10px 28px rgba(46, 31, 20, 0.1);
    --shadow-soft: 0 18px 44px rgba(46, 31, 20, 0.12);
    --shadow-lg: 0 28px 72px rgba(46, 31, 20, 0.18);
    --felt: #A46E4E;
    --moved: #8C735B;
    --hopeful: #8A7B52;
    --brave: #A1773E;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --focus-ring: 0 0 0 3px rgba(139, 105, 20, 0.18);
    --focus-ring-error: 0 0 0 3px rgba(138, 98, 76, 0.16);
    --button-primary: #33302d;
    --button-primary-hover: #7A5C10;
    --button-primary-text: #FFFFFF;
    --button-secondary-bg: rgba(250, 245, 238, 0.88);
    --button-secondary-border: #D9CABC;
    --overlay-scrim: rgba(46, 31, 20, 0.38);
    --type-thought: #8B6914;
    --type-confession: #86614A;
    --type-dream: #7C6B44;
    --type-quote: #A07B46;
    --type-question: #6E4F3B;
    --notif-dot: #A77A2C;
    --success: #8A7B52;
    --success-bg: rgba(196, 168, 130, 0.18);
    --danger: #8A624C;
    --danger-bg: rgba(138, 98, 76, 0.12);
    --danger-border: rgba(138, 98, 76, 0.34);
    --danger-surface: #F4ECE4;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--t1);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.72;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color-scheme: light;
    overflow-x: hidden;
}

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

button,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

/* ─── LAYOUT ─── */
.w-wrap {
    max-width: 580px;
    margin: 0 auto;
    padding: 0 24px 120px;
}

/* ─── HEADER ─── */
.w-header {
    padding: 26px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.w-author-credit {
    justify-self: start;
    align-self: center;
    padding-top: 4px;
    padding-bottom: 2px;
    display: inline-flex;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.16em;
    color: var(--tm);
    text-decoration: none;
    position: relative;
    transition: color 0.22s var(--ease), opacity 0.22s var(--ease);
    cursor: pointer;
    line-height: 1.1;
    border-radius: 4px;
}

.w-author-name {
    color: var(--t1);
    margin-left: 3px;
}

.w-author-credit::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0.5;
    transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.w-author-credit:hover {
    color: var(--t2);
}

.w-author-credit:hover::after,
.w-author-credit:focus-visible::after {
    transform: scaleX(1);
    opacity: 0.85;
}

.w-brand-center {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.w-brand-logo {
    width: 150px;
    height: auto;
    display: block;
}

.w-logo {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 400;
    color: var(--tm);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.w-header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Notification bell */
.w-notif-btn {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--tm);
    transition: all 0.2s;
}

.w-notif-btn.visible {
    display: inline-flex;
}

.w-notif-btn:hover {
    color: var(--t2);
}

.w-notif-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

.w-notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    background: var(--notif-dot);
    border-radius: 50%;
    border: 1.5px solid var(--bg);
    display: none;
}

.w-notif-badge.show {
    display: block;
}

/* Identity button */
.w-identity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: none;
    border: none;
    border-radius: 50%;
    padding: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 300;
    color: var(--t2);
    letter-spacing: 0.04em;
    transition: all 0.2s;
}

.w-identity-btn:hover {
    color: var(--t1);
}

.w-identity-btn #headerName {
    display: none;
}

.w-identity-btn.is-signed-out {
    width: auto;
    height: 32px;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(250, 245, 238, 0.82);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.w-identity-btn.is-signed-out #headerName {
    display: inline;
}

.w-identity-btn.is-signed-out .w-avatar-dot {
    display: none;
}

.w-identity-btn.is-signed-out:hover {
    background: rgba(250, 245, 238, 0.94);
    border-color: var(--line);
}

.w-avatar-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 500;
    color: white;
    flex-shrink: 0;
}

/* ─── FEED INTRO ─── */
.w-feed-intro {
    padding: 42px 0 8px;
    text-align: center;
}

.w-feed-intro--main {
    padding: 46px 0 18px;
}

.w-feed-intro-title {
    font-family: var(--serif);
    font-size: clamp(26px, 6vw, 34px);
    font-weight: 300;
    font-style: italic;
    color: var(--t1);
    line-height: 1.15;
    margin-bottom: 6px;
}

.w-feed-intro-sub {
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 300;
    font-style: italic;
    color: var(--tm);
    line-height: 1.5;
}

.w-feed-intro--main .w-feed-intro-sub {
    max-width: 32ch;
    margin: 0 auto;
}

.w-feed-intro-mark {
    width: 14px;
    height: 14px;
    display: inline-flex;
    margin: 18px auto 0;
    border-radius: 999px;
    border: 1px solid rgba(217, 202, 188, 0.92);
    background: rgba(250, 245, 238, 0.55);
    box-shadow: inset 0 0 0 4px rgba(242, 235, 224, 0.92);
}

.w-arrival-note {
    margin: 18px auto 0;
    padding: 18px 20px;
    background: rgba(250, 245, 238, 0.72);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(46, 31, 20, 0.025);
}

.w-arrival-copy {
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
    color: var(--t2);
    line-height: 1.6;
    margin-bottom: 14px;
}

.w-arrival-ways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.w-arrival-way {
    padding: 12px 13px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.w-arrival-way-label {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tm);
}

.w-arrival-way-text {
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
    line-height: 1.55;
    color: var(--t2);
}

.w-arrival-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.w-arrival-footnote {
    flex: 1;
    min-width: 220px;
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
    color: var(--tm);
}

.w-arrival-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    color: var(--t2);
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.w-arrival-btn:hover {
    color: var(--t1);
    border-color: var(--line);
    background: var(--bg);
}

/* ─── HERO ─── */
.w-hero {
    padding: 50px 0 30px;
    text-align: center;
}

.w-hero--compact {
    padding: 36px 0 24px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
}

.w-eyebrow {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--tm);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.w-title {
    font-family: var(--serif);
    font-size: clamp(40px, 9vw, 56px);
    font-weight: 300;
    font-style: italic;
    color: var(--t1);
    line-height: 1.05;
    margin-bottom: 16px;
}

.w-title--sm {
    font-size: clamp(28px, 6vw, 36px);
}

.w-subtitle {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 300;
    font-style: italic;
    color: var(--t2);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto 24px;
}

.w-divider {
    width: 32px;
    height: 1px;
    background: var(--line);
    margin: 0 auto;
}

/* ─── FEED CONTROLS ─── */
.w-feed-controls {
    margin: 18px 0 12px;
}

.w-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(250, 245, 238, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.w-search-bar:focus-within {
    border-color: var(--t2);
    background: var(--bg);
}

.w-search-icon {
    width: 14px;
    height: 14px;
    color: var(--tm);
    flex-shrink: 0;
}

.w-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
    color: var(--t1);
    padding: 0;
}

.w-search-input::placeholder {
    color: var(--tm);
}

.w-search-clear {
    background: none;
    border: none;
    color: var(--tm);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    display: block;
    transition: color 0.2s;
}

.w-search-clear:hover {
    color: var(--t1);
}

.w-search-clear.is-hidden {
    display: none;
}

.w-filter-bar {
    display: flex;
    flex-direction: column;
}

/* ─── CATEGORY TABS ─── */
.w-category-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.w-category-tabs::-webkit-scrollbar {
    display: none;
}

.w-cat-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 14px 8px;
    margin-bottom: -1px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tm);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.18s, border-color 0.18s;
    flex-shrink: 0;
}

.w-cat-tab:hover {
    color: var(--t2);
}

.w-cat-tab.active {
    color: var(--button-primary);
    border-bottom-color: var(--button-primary);
}

.w-cat-tab.active[data-category="thought"] {
    color: var(--type-thought);
    border-bottom-color: var(--type-thought);
}

.w-cat-tab.active[data-category="confession"] {
    color: var(--type-confession);
    border-bottom-color: var(--type-confession);
}

.w-cat-tab.active[data-category="dream"] {
    color: var(--type-dream);
    border-bottom-color: var(--type-dream);
}

.w-cat-tab.active[data-category="quote"] {
    color: var(--type-quote);
    border-bottom-color: var(--type-quote);
}

.w-cat-tab.active[data-category="question"] {
    color: var(--type-question);
    border-bottom-color: var(--type-question);
}

/* ─── ACCOUNT NUDGE ─── */
.w-account-nudge {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 24px 0 6px;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(6px);
    animation: wFade 0.5s 0.4s var(--ease) forwards;
}

.w-nudge-text {
    flex: 1;
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
    color: var(--t2);
    line-height: 1.5;
}

.w-nudge-text strong {
    font-style: normal;
    font-weight: 400;
    color: var(--t1);
}

.w-nudge-btn {
    background: var(--button-primary);
    color: var(--button-primary-text);
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.08em;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.w-nudge-btn:hover {
    opacity: 0.82;
}

.w-nudge-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--tm);
    font-size: 16px;
    padding: 2px 4px;
    flex-shrink: 0;
    transition: color 0.15s;
}

.w-nudge-dismiss:hover {
    color: var(--t2);
}

/* ─── DAILY PROMPT ─── */
.w-prompt-strip {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px 18px;
    margin: 16px 0 8px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.w-prompt-strip:hover {
    box-shadow: 0 4px 16px var(--shadow-md);
}

.w-prompt-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tm);
    margin-bottom: 4px;
}

.w-prompt-text {
    font-family: var(--serif);
    font-size: 14.5px;
    font-style: italic;
    color: var(--t2);
    line-height: 1.5;
}

.w-prompt-arrow {
    margin-left: auto;
    font-size: 13px;
    color: var(--tm);
    flex-shrink: 0;
    padding-top: 2px;
    transition: transform 0.2s;
}

.w-prompt-strip:hover .w-prompt-arrow {
    transform: translateX(3px);
}

/* ─── LOAD MORE ─── */
.w-load-more-wrap {
    text-align: center;
    padding: 0 0 20px;
}

.w-load-more-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 9px 28px;
    font-family: var(--serif);
    font-size: 13.5px;
    font-style: italic;
    color: var(--t2);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all 0.2s;
}

.w-load-more-btn:hover {
    border-color: var(--line);
    color: var(--t1);
    box-shadow: 0 2px 12px var(--shadow);
}

/* ─── FILTERS ─── */
.w-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.w-filters::-webkit-scrollbar {
    display: none;
}

.w-filter-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 300;
    color: var(--t2);
    letter-spacing: 0.05em;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s;
    flex-shrink: 0;
}

.w-filter-btn:hover {
    border-color: var(--line);
    color: var(--t1);
}

.w-filter-btn.active {
    background: var(--button-primary);
    border-color: var(--button-primary);
    color: var(--button-primary-text);
}

/* ─── THREAD AREA ─── */
.w-thread-area {
    position: relative;
    padding: 8px 0;
}

.w-feed-sentinel {
    width: 100%;
    height: 1px;
}

.w-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.w-cards {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* ─── CARD SLOTS ─── */
.w-slot {
    display: flex;
    margin-bottom: 62px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.w-slot.w-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes wFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w-slot.left {
    justify-content: flex-start;
}

.w-slot.right {
    justify-content: flex-end;
}

.w-slot.w-new {
    animation: wFade 0.5s var(--ease) forwards;
}

/* ─── CARDS ─── */
.w-card {
    width: calc(100% - 40px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 24px 18px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.w-card:hover {
    box-shadow: 0 6px 22px rgba(46, 31, 20, 0.06);
    transform: translateY(-2px);
}

.w-card:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring), 0 6px 22px rgba(46, 31, 20, 0.06);
    transform: translateY(-2px);
}

.w-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 2px;
    opacity: 0.45;
}

.w-card[data-type="thought"]::before {
    background: var(--type-thought);
}

.w-card[data-type="confession"]::before {
    background: var(--type-confession);
}

.w-card[data-type="dream"]::before {
    background: var(--type-dream);
}

.w-card[data-type="quote"]::before {
    background: var(--type-quote);
}

.w-card[data-type="question"]::before {
    background: var(--type-question);
}

.w-card-type {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.72;
}

.w-card[data-type="thought"] .w-card-type {
    color: var(--type-thought);
}

.w-card[data-type="confession"] .w-card-type {
    color: var(--type-confession);
}

.w-card[data-type="dream"] .w-card-type {
    color: var(--type-dream);
}

.w-card[data-type="quote"] .w-card-type {
    color: var(--type-quote);
}

.w-card[data-type="question"] .w-card-type {
    color: var(--type-question);
}

/* Author badge for logged-in posts */
.w-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #68472EFF;
    margin-bottom: 12px;
}

.w-author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 600;
    color: white;
}

.w-author-avatar--thought {
    background: var(--type-thought);
}

.w-author-avatar--confession {
    background: var(--type-confession);
}

.w-author-avatar--dream {
    background: var(--type-dream);
}

.w-author-avatar--quote {
    background: var(--type-quote);
}

.w-author-avatar--question {
    background: var(--type-question);
}

.w-my-post-marker {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--type-thought);
    opacity: 0.5;
}

.w-quote {
    font-family: var(--serif);
    font-size: 18.5px;
    font-weight: 380;
    line-height: 1.68;
    color: var(--t1);
    margin-bottom: 12px;
}

.w-card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.w-card-tags--thread {
    margin-top: 8px;
}

.w-tag-pill {
    font-size: 10px;
    color: var(--tm);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 2px 7px;
    cursor: pointer;
    transition: all 0.15s;
}

.w-tag-pill:hover {
    color: var(--t2);
    border-color: var(--line);
}

.w-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.w-time {
    font-size: 11.5px;
    color: var(--tm);
    letter-spacing: 0.04em;
    font-weight: 500;
}

.w-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: flex-end;
}

.w-react-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 10.8px;
    color: var(--tm);
    padding: 3px 7px;
    border-radius: 4px;
    transition: all 0.18s;
    font-family: var(--sans);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    white-space: nowrap;
}

.w-react-btn:hover {
    color: var(--t2);
    background: var(--bg);
}

.w-react-btn.active-felt {
    color: var(--felt);
    background: rgba(164, 110, 78, 0.12);
}

.w-react-btn.active-moved {
    color: var(--moved);
}

.w-react-btn.active-hopeful {
    color: var(--hopeful);
}

.w-react-btn.active-brave {
    color: var(--brave);
}

.w-action-sep {
    width: 1px;
    height: 10px;
    background: var(--border);
    margin: 0 2px;
}

.w-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11.5px;
    color: var(--tm);
    padding: 3px 7px;
    border-radius: 4px;
    transition: all 0.18s;
    font-family: var(--sans);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    white-space: nowrap;
}

.w-icon-btn:hover {
    color: var(--t2);
    background: var(--bg);
}

.w-icon-btn svg {
    width: 13px;
    height: 13px;
    stroke-width: 1.5;
}

.w-icon-btn.bookmarked {
    color: var(--t1);
    background: var(--bg);
}

.w-icon-btn.bookmarked svg {
    fill: var(--t1);
    stroke: var(--t1);
}

.w-react-btn:focus-visible,
.w-icon-btn:focus-visible,
.w-report-btn:focus-visible,
.w-settings-save:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(176, 170, 160, 0.28);
}

.w-react-btn:disabled,
.w-icon-btn:disabled,
.w-report-btn:disabled,
.w-settings-save:disabled {
    cursor: wait;
}

.w-react-btn.is-pending,
.w-icon-btn.is-pending {
    background: var(--bg);
    color: var(--t2);
    animation: w-action-pulse 1.1s ease-in-out infinite;
}

.w-react-btn.is-success,
.w-icon-btn.is-success {
    background: var(--success-bg);
    color: var(--success);
}

.w-react-btn.is-error,
.w-icon-btn.is-error {
    background: var(--danger-bg);
    color: var(--danger);
}

@keyframes w-action-pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* ─── FOOTER ─── */
.w-footer {
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.w-footer-text {
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
    color: var(--tm);
    margin-top: 8px;
}

.w-site-footer {
    margin-top: 42px;
    padding: 22px 0 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.w-site-footer-copy {
    margin: 0;
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tm);
}

.w-site-footer-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
}

.w-site-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(217, 202, 188, 0.72);
    border-radius: 999px;
    text-decoration: none;
    color: var(--tm);
    background: rgba(250, 245, 238, 0.55);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.w-site-footer-link i {
    font-size: 13px;
}

.w-site-footer-link span {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.w-site-footer-link:hover,
.w-site-footer-link:focus-visible {
    color: var(--t1);
    border-color: var(--line);
    background: rgba(250, 245, 238, 0.86);
    transform: translateY(-1px);
}

/* ─── FAB ─── */
.w-fab {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(250, 245, 238, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    color: var(--t2);
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.02em;
    padding: 12px 30px;
    border-radius: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(46, 31, 20, 0.06);
    transition: all 0.28s var(--ease);
    white-space: nowrap;
}

.w-fab:hover {
    color: var(--t1);
    border-color: var(--line);
    box-shadow: 0 6px 28px rgba(46, 31, 20, 0.09);
    transform: translateX(-50%) translateY(-2px);
}

.w-fab:active {
    transform: translateX(-50%) translateY(0);
}

body.w-no-scroll .w-fab,
body.w-keyboard-open .w-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(16px);
}

/* ─── OVERLAY ─── */
.w-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--overlay-scrim);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
    padding: 20px;
}

.w-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#submitOverlay {
    z-index: 220;
}

#threadOverlay {
    z-index: 230;
}

#dashboardOverlay {
    z-index: 240;
}

#notifOverlay {
    z-index: 250;
}

#reportOverlay {
    z-index: 260;
}

#shareOverlay {
    z-index: 258;
}

#authOverlay {
    z-index: 270;
}

#ownerOverlay {
    z-index: 268;
}

/* Modal scale-in */
.w-overlay.open .w-modal,
.w-overlay.open .w-auth-modal,
.w-overlay.open .w-thread-modal,
.w-overlay.open .w-dashboard-modal,
.w-overlay.open .w-notif-modal,
.w-overlay.open .w-report-modal,
.w-overlay.open .w-share-modal {
    transform: translateY(0) scale(1);
}

/* ─── BASE MODAL STYLES ─── */
.w-modal, .w-auth-modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 30px 26px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(46, 31, 20, 0.1);
    position: relative;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.3s var(--ease);
}

.w-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--tm);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.18s;
    line-height: 1;
}

.w-modal-close:hover {
    color: var(--t2);
    background: var(--bg);
}

.w-modal-close--inline {
    position: static;
    width: 28px;
    height: 28px;
}

.w-modal-close--notif {
    position: absolute;
    top: 12px;
    right: 12px;
}

.w-modal-title {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 300;
    font-style: italic;
    color: var(--t1);
    margin-bottom: 4px;
}

.w-modal-desc {
    font-family: var(--serif);
    font-size: 13.5px;
    font-style: italic;
    color: var(--tm);
    margin-bottom: 20px;
}

.w-owner-modal {
    max-width: 460px;
}

.w-owner-intro {
    font-size: 14px;
    line-height: 1.72;
    color: var(--t2);
    margin-bottom: 18px;
}

.w-owner-footer {
    margin-top: 2px;
    padding-top: 16px;
    border-top: 1px solid rgba(217, 202, 188, 0.72);
}

.w-owner-note {
    margin: 0 0 12px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tm);
}

.w-owner-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.w-owner-icon-link {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--t2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.w-owner-icon-link:hover {
    color: var(--t1);
    border-color: var(--line);
    transform: translateY(-1px);
    background: var(--button-secondary-bg);
}

.w-owner-icon-link i {
    font-size: 17px;
    line-height: 1;
}

.w-owner-email {
    margin: 0 0 10px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--t2);
}

.w-owner-email a {
    color: inherit;
    text-decoration: none;
}

.w-owner-email a:hover,
.w-owner-email a:focus-visible {
    color: var(--t1);
}

.w-owner-copyright {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--tm);
}

.w-share-modal {
    max-width: 360px;
    padding: 28px 24px 20px;
}

.w-share-modal .w-modal-title {
    margin-bottom: 6px;
}

.w-share-modal .w-modal-desc {
    margin-bottom: 14px;
}

.w-share-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.w-share-action {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--t2);
    border-radius: 10px;
    padding: 11px 12px;
    text-align: left;
    font-family: var(--sans);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.w-share-action:hover {
    color: var(--t1);
    border-color: var(--line);
    background: var(--button-secondary-bg);
    transform: translateY(-1px);
}

.w-share-action--optional {
    color: var(--tm);
}

.w-share-link-preview {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--tm);
    overflow-wrap: anywhere;
    user-select: text;
    -webkit-user-select: text;
}

/* ─── SHARE STORY CARD TEMPLATE ─── */
.w-share-card-render-root {
    position: fixed;
    top: 0;
    left: -200vw;
    width: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
    opacity: 0;
    z-index: -1;
}

.w-share-story-card {
    width: 1080px;
    height: 1920px;
    --share-shell-padding: 94px;
    --share-inner-pad-top: 68px;
    --share-inner-pad-side: 64px;
    --share-inner-pad-bottom: 54px;
    --share-logo-width: 288px;
    --share-logo-height: 70px;
    --share-domain-size: 24px;
    --share-text-size: 76px;
    --share-text-line-height: 1.14;
    --share-text-max-width: 780px;
    --share-text-align: center;
    --share-content-align: center;
    --share-content-justify: center;
    --share-content-pad-top: 36px;
    --share-content-pad-bottom: 48px;
    --share-footer-gap: 12px;
    --share-footer-pad-top: 28px;
    --share-cta-size: 24px;
    --share-author-size: 21px;
    --share-url-size: 25px;
    --share-url-max-width: 720px;
    --share-qr-shell-size: 120px;
    --share-qr-size: 96px;
    --share-card-ink: #2E1F14;
    --share-card-ink-soft: #8B6914;
    --share-card-ink-faint: #9E8B7A;
    --share-card-line: rgba(217, 202, 188, 0.72);
    border-radius: 56px;
    padding: var(--share-shell-padding);
    background: #F2EBE0;
    border: 1px solid rgba(217, 202, 188, 0.82);
    box-shadow: 0 28px 70px rgba(46, 31, 20, 0.14);
    position: relative;
    overflow: hidden;
}

.w-share-story-card::before {
    content: none;
}

.w-share-story-card__inner {
    position: relative;
    height: 100%;
    isolation: isolate;
    border-radius: 36px;
    border: 1px solid rgba(217, 202, 188, 0.86);
    background: #FAF5EE;
    padding: var(--share-inner-pad-top) var(--share-inner-pad-side) var(--share-inner-pad-bottom);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(46, 31, 20, 0.08);
}

.w-share-story-card__inner::before {
    content: none;
}

.w-share-story-card__bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--share-inner-pad-side) * -1);
    right: calc(var(--share-inner-pad-side) * -1);
    pointer-events: none;
    z-index: 0;
    background-image: url('../assets/images/floral-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.w-share-story-card__brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.w-share-story-card__brand-row,
.w-share-story-card__content,
.w-share-story-card__footer {
    position: relative;
    z-index: 1;
}

.w-share-story-card__brand-logo {
    width: var(--share-logo-width);
    max-width: 100%;
    height: var(--share-logo-height);
    object-fit: contain;
    object-position: left center;
    display: block;
    flex: 0 0 auto;
    opacity: 0.9;
}

.w-share-story-card__domain {
    font-family: var(--sans);
    font-size: var(--share-domain-size);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--share-card-ink-soft);
}

.w-share-story-card__content {
    flex: 1;
    display: flex;
    min-height: 0;
    align-items: var(--share-content-align);
    justify-content: var(--share-content-justify);
    padding: var(--share-content-pad-top) 0 var(--share-content-pad-bottom);
    overflow: visible;
    isolation: isolate;
}

.w-share-story-card__text {
    width: 100%;
    max-width: var(--share-text-max-width);
    max-height: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-family: var(--serif);
    font-size: var(--share-text-size);
    line-height: var(--share-text-line-height);
    font-weight: 400;
    color: var(--share-card-ink);
    letter-spacing: 0.01em;
    text-align: var(--share-text-align);
    text-wrap: balance;
    white-space: pre-wrap;
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.w-share-story-card__footer {
    border-top: 1px solid var(--share-card-line);
    padding-top: var(--share-footer-pad-top);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--share-footer-gap);
}

.w-share-story-card__footer-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.w-share-story-card__footer-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    max-width: var(--share-url-max-width);
}

.w-share-story-card__cta {
    font-family: var(--sans);
    font-size: var(--share-cta-size);
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--share-card-ink-soft);
    text-align: center;
}

.w-share-story-card__author {
    width: 100%;
    font-family: var(--sans);
    font-size: var(--share-author-size);
    line-height: 1.35;
    letter-spacing: 0.04em;
    color: var(--share-card-ink-soft);
    text-align: left;
    overflow-wrap: anywhere;
}

.w-share-story-card__url {
    font-family: var(--sans);
    width: 100%;
    font-size: var(--share-url-size);
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: var(--share-card-ink-faint);
    overflow-wrap: anywhere;
    text-align: left;
}

.w-share-story-card__qr-shell {
    flex: 0 0 auto;
    width: var(--share-qr-shell-size);
    height: var(--share-qr-shell-size);
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.w-share-story-card__qr {
    width: var(--share-qr-size);
    height: var(--share-qr-size);
    color: #2E1F14;
}

.w-share-story-card__qr-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.w-share-story-card__qr-svg path {
    fill: currentColor;
}

.w-share-story-card[data-share-density="hero"] {
    --share-inner-pad-top: 78px;
    --share-logo-width: 348px;
    --share-logo-height: 84px;
    --share-domain-size: 26px;
    --share-text-size: 88px;
    --share-text-line-height: 1.08;
    --share-text-max-width: 700px;
    --share-content-pad-top: 88px;
    --share-content-pad-bottom: 82px;
}

.w-share-story-card[data-share-density="balanced"] {
    --share-logo-width: 328px;
    --share-logo-height: 80px;
    --share-domain-size: 24px;
    --share-text-size: 76px;
    --share-text-line-height: 1.14;
    --share-text-max-width: 780px;
}

.w-share-story-card[data-share-density="compact"] {
    --share-logo-width: 306px;
    --share-logo-height: 74px;
    --share-domain-size: 23px;
    --share-text-size: 66px;
    --share-text-line-height: 1.15;
    --share-text-max-width: 820px;
    --share-content-pad-top: 30px;
    --share-content-pad-bottom: 40px;
    --share-qr-shell-size: 114px;
    --share-qr-size: 90px;
}

.w-share-story-card[data-share-density="dense"] {
    --share-inner-pad-top: 60px;
    --share-inner-pad-side: 58px;
    --share-logo-width: 286px;
    --share-logo-height: 68px;
    --share-domain-size: 23px;
    --share-text-size: 56px;
    --share-text-line-height: 1.17;
    --share-text-max-width: 860px;
    --share-text-align: center;
    --share-content-align: center;
    --share-content-justify: center;
    --share-content-pad-top: 20px;
    --share-content-pad-bottom: 20px;
    --share-url-max-width: 100%;
    --share-qr-shell-size: 106px;
    --share-qr-size: 84px;
}

.w-share-story-card[data-share-density="micro"] {
    --share-inner-pad-top: 54px;
    --share-inner-pad-side: 54px;
    --share-inner-pad-bottom: 46px;
    --share-logo-width: 266px;
    --share-logo-height: 64px;
    --share-domain-size: 22px;
    --share-text-size: 48px;
    --share-text-line-height: 1.18;
    --share-text-max-width: 100%;
    --share-text-align: center;
    --share-content-align: center;
    --share-content-justify: center;
    --share-content-pad-top: 14px;
    --share-content-pad-bottom: 14px;
    --share-footer-pad-top: 24px;
    --share-cta-size: 20px;
    --share-author-size: 18px;
    --share-url-size: 22px;
    --share-url-max-width: 100%;
    --share-qr-shell-size: 98px;
    --share-qr-size: 78px;
}

.w-share-story-card[data-share-density="dense"] .w-share-story-card__text,
.w-share-story-card[data-share-density="micro"] .w-share-story-card__text {
    margin: 0 auto;
}

.w-share-story-card[data-share-density="micro"] .w-share-story-card__footer-row {
    gap: 18px;
}

/* ─── AUTH MODAL ─── */
.w-auth-modal {
    max-width: 420px;
}

.w-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.w-auth-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tm);
    padding: 10px 20px 10px 0;
    transition: color 0.18s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.w-auth-tab:hover {
    color: var(--t2);
}

.w-auth-tab.active {
    color: var(--t1);
    border-bottom-color: var(--t1);
}

.w-auth-panel {
    display: none;
}

.w-auth-panel.active {
    display: block;
}

.w-auth-field {
    margin-bottom: 20px;
}

.w-auth-label {
    display: block;
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t2);
    margin-bottom: 6px;
}

.w-auth-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 300;
    color: var(--t1);
    outline: none;
    transition: border-color 0.2s;
}

.w-auth-input:focus {
    border-color: var(--line);
}

.w-auth-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(138, 98, 76, 0.15);
}

.w-auth-input::placeholder {
    color: var(--tm);
}

.w-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.w-auth-input.w-password-input {
    padding-right: 40px;
}

.w-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--tm);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.w-password-toggle:hover {
    color: var(--t1);
}

.w-eye-icon {
    width: 16px;
    height: 16px;
}


.w-auth-error {
    font-size: 11.5px;
    color: var(--danger);
    margin-top: 5px;
    font-family: var(--serif);
    font-style: italic;
    display: none;
}

.w-auth-error.show {
    display: block;
}

.w-auth-submit {
    width: 100%;
    margin-top: 16px;
    background: var(--button-primary);
    color: var(--button-primary-text);
    border: none;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.1em;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.w-auth-submit:hover {
    opacity: 0.85;
}

.w-auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.w-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
}

.w-auth-divider::before, .w-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.w-auth-divider span {
    font-size: 11px;
    color: var(--tm);
    letter-spacing: 0.06em;
}

.w-anon-btn {
    width: 100%;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px;
    font-family: var(--serif);
    font-size: 13.5px;
    font-style: italic;
    color: var(--t2);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.w-anon-btn:hover {
    border-color: var(--line);
    color: var(--t1);
}

.w-auth-benefits {
    margin: 20px 0 0;
    padding: 16px;
    background: var(--bg2);
    border-radius: 8px;
}

.w-auth-benefits-title {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tm);
    margin-bottom: 10px;
}

.w-benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
    color: var(--t2);
    margin-bottom: 6px;
    line-height: 1.4;
}

.w-benefit-item:last-child {
    margin-bottom: 0;
}

.w-benefit-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--tm);
    flex-shrink: 0;
}

/* ─── SUBMIT MODAL ─── */
.w-type-selector {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.w-type-opt {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px 12px;
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s;
    color: var(--tm);
}

.w-type-opt:hover {
    border-color: var(--line);
    color: var(--t2);
}

.w-type-opt.active {
    color: var(--button-primary-text);
    border-color: transparent;
}

.w-type-opt.active[data-type="thought"] {
    background: var(--type-thought);
    border-color: var(--type-thought);
}

.w-type-opt.active[data-type="confession"] {
    background: var(--type-confession);
    border-color: var(--type-confession);
}

.w-type-opt.active[data-type="dream"] {
    background: var(--type-dream);
    border-color: var(--type-dream);
}

.w-type-opt.active[data-type="quote"] {
    background: var(--type-quote);
    border-color: var(--type-quote);
}

.w-type-opt.active[data-type="question"] {
    background: var(--type-question);
    border-color: var(--type-question);
}

.w-modal textarea {
    width: 100%;
    min-height: 105px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 15px;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 300;
    font-style: italic;
    color: var(--t1);
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.w-modal textarea::placeholder {
    color: var(--tm);
}

.w-modal textarea:focus {
    border-color: var(--line);
}

.w-char-count {
    font-size: 10px;
    color: var(--tm);
    text-align: right;
    margin-top: 4px;
}

.w-char-count.near {
    color: var(--felt);
}

.w-tag-input-area {
    margin-top: 12px;
}

.w-tag-input-label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tm);
    margin-bottom: 8px;
    display: block;
}

.w-tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.w-tag-opt {
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 10.5px;
    font-weight: 300;
    color: var(--tm);
    cursor: pointer;
    transition: transform 0.15s var(--ease), border-color 0.15s, color 0.15s;
    font-family: var(--sans);
    letter-spacing: 0.04em;
}

.w-tag-opt:hover {
    border-color: var(--line);
    color: var(--t2);
}

.w-tag-opt.active {
    background: var(--button-primary);
    border-color: var(--button-primary);
    color: var(--button-primary-text);
}

.w-modal-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: flex-end;
}

.w-modal input[type="text"] {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 300;
    color: var(--t1);
    outline: none;
    transition: border-color 0.2s;
}

.w-modal input[type="text"]::placeholder {
    color: var(--tm);
}

.w-modal input[type="text"]:focus {
    border-color: var(--line);
}

.w-settings-note--modal {
    margin-top: 10px;
    margin-bottom: 0;
}

/* Post-as toggle (for logged-in users) */
.w-post-as {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--bg2);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.w-post-as-label {
    font-size: 11px;
    color: var(--tm);
    letter-spacing: 0.06em;
    flex: 1;
}

.w-post-as-label strong {
    color: var(--t2);
    font-weight: 400;
}

.w-post-as-toggle {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.w-post-as-opt {
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: var(--tm);
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.w-post-as-opt.active {
    background: var(--button-primary);
    color: var(--button-primary-text);
}

.w-modal-submit {
    display: block;
    width: 100%;
    margin-top: 16px;
    background: var(--button-primary);
    color: var(--button-primary-text);
    border: none;
    font-family: var(--sans);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.18s;
}

.w-modal-submit:hover {
    opacity: 0.85;
}

.w-modal-submit:active {
    transform: scale(0.99);
}

/* ─── TOAST ─── */
.w-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 300;
    font-family: var(--serif);
    font-size: 13.5px;
    font-style: italic;
    color: var(--t2);
    padding: 11px 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(46, 31, 20, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    max-width: min(calc(100vw - 32px), 420px);
    white-space: normal;
    text-align: center;
    pointer-events: none;
}

.w-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.w-toast.w-toast--success {
    color: var(--success);
    border-color: rgba(196, 168, 130, 0.4);
    box-shadow: 0 8px 24px rgba(196, 168, 130, 0.14);
}

.w-toast.w-toast--error {
    color: var(--danger);
    border-color: rgba(138, 98, 76, 0.28);
    box-shadow: 0 8px 24px rgba(138, 98, 76, 0.12);
}

/* ─── THREAD MODAL ─── */
.w-thread-modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    max-height: 86vh;
    box-shadow: 0 20px 60px rgba(46, 31, 20, 0.1);
    position: relative;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.w-thread-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.w-thread-label {
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tm);
}

.w-thread-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 24px 6px;
    overscroll-behavior: contain;
}

.w-thread-body::-webkit-scrollbar {
    width: 3px;
}

.w-thread-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.w-thread-original {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.w-thread-original .w-author-badge--thread {
    order: -1;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 650;
    color: var(--t1);
}

.w-thread-original .w-author-badge--thread:not(.w-thread-author-primary) {
    display: none;
}

.w-thread-original .w-quote {
    order: 1;
    font-size: 21px;
    font-weight: 430;
    line-height: 1.68;
    margin-bottom: 12px;
    color: var(--t1);
}

.w-thread-original .w-card-type {
    order: 2;
}

.w-thread-original .w-card-tags--thread {
    order: 3;
}

.w-thread-original .w-thread-footer {
    order: 4;
}

.w-thread-reactions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.w-thread-reaction-pill {
    font-size: 11px;
    color: var(--tm);
}

.w-thread-reaction-empty {
    font-size: 11px;
    color: var(--tm);
    font-style: italic;
}

.w-thread-empty {
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
    color: var(--tm);
    padding: 12px 0 6px;
}

.w-thread-replies-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.w-thread-replies-label {
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tm);
    margin-bottom: 0;
}

.w-sort-toggle {
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--t2);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.w-sort-toggle:hover {
    color: var(--t1);
}

.w-reply {
    padding: 16px 18px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid transparent;
    border-left: 2px solid var(--border);
    transition: border-color 0.2s;
}

.w-reply:hover {
    border-color: var(--line);
}

.w-reply:last-child {
    border-bottom: none;
}

.w-reply-text {
    font-family: var(--serif);
    font-size: 16.5px;
    font-weight: 360;
    line-height: 1.65;
    color: var(--t1);
    margin-bottom: 10px;
}

.w-reply-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.w-reply-author {
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--t2);
}

.w-reply-time {
    font-size: 11px;
    color: var(--tm);
}

.w-thread-composer {
    padding: 14px 24px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--card);
}

.w-thread-composer textarea {
    width: 100%;
    min-height: 68px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 13px;
    font-family: var(--serif);
    font-size: 14.5px;
    font-weight: 300;
    font-style: italic;
    color: var(--t1);
    line-height: 1.55;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.w-thread-composer textarea::placeholder {
    color: var(--tm);
}

.w-thread-composer textarea:focus {
    border-color: var(--t2);
    background: var(--card);
    box-shadow: inset 0 2px 4px var(--shadow);
}

.w-thread-composer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.w-thread-composer-row--compact {
    justify-content: flex-end;
}

.w-thread-composer input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 11px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 300;
    color: var(--t1);
    outline: none;
    transition: border-color 0.2s;
}

.w-thread-composer-hint {
    margin: 8px 2px 0;
}

.w-thread-composer input::placeholder {
    color: var(--tm);
}

.w-thread-composer input:focus {
    border-color: var(--t2);
    background: var(--card);
    box-shadow: inset 0 2px 4px var(--shadow);
}

.w-thread-submit {
    background: var(--button-primary);
    color: var(--button-primary-text);
    border: none;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.w-thread-submit:hover {
    opacity: 0.85;
    transform: scale(0.98);
}

.w-thread-submit.success {
    background: var(--hopeful);
}

.w-thread-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.w-thread-meta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.w-icon-btn--thread {
    padding: 4px 8px;
}

.w-report-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tm);
    padding: 0;
    transition: color 0.18s;
}

.w-report-btn:hover {
    color: var(--danger);
}

.w-report-btn--meta {
    margin-left: auto;
}

.w-report-btn--inline {
    margin-left: auto;
    font-size: 9.5px;
}

/* ─── DASHBOARD MODAL ─── */
.w-dashboard-modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    box-shadow: 0 20px 60px rgba(46, 31, 20, 0.1);
    position: relative;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.w-dash-header {
    padding: 24px 26px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
}

.w-dash-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.w-dash-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 500;
    color: white;
    box-shadow: inset 0 2px 4px rgba(46, 31, 20, 0.1), 0 0 0 1px rgba(46, 31, 20, 0.05);
}

.w-dash-name {
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    color: var(--t1);
    margin-bottom: 2px;
}

.w-dash-since {
    font-size: 11px;
    color: var(--tm);
    letter-spacing: 0.06em;
}

.w-dash-streak {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 9px 3px 7px;
    font-size: 11px;
    color: var(--t2);
    margin-top: 6px;
}

/* Dash stats */
.w-dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    margin: 20px 26px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(46, 31, 20, 0.02);
    border: 1px solid var(--border);
    flex-shrink: 0;
    grid-auto-rows: minmax(52px, auto);
}

.w-dash-stat {
    background: var(--bg);
    padding: 12px 8px;
    text-align: center;
}

.w-dash-stat-num {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 300;
    color: var(--t1);
    display: block;
    line-height: 1.2;
}

.w-dash-stat-label {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    color: var(--tm);
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* Dash nav */
.w-dash-nav {
    display: flex;
    gap: 0;
    padding: 0 26px;
    margin-top: 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.w-dash-nav::-webkit-scrollbar {
    display: none;
}

.w-dash-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tm);
    padding: 10px 16px 10px 0;
    white-space: nowrap;
    transition: color 0.18s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.w-dash-tab:hover {
    color: var(--t2);
}

.w-dash-tab.active {
    color: var(--t1);
    border-bottom-color: var(--t1);
}

.w-dash-tab-badge {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--notif-dot);
    color: white;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    padding: 0 4px;
    margin-left: 5px;
    font-weight: 500;
    letter-spacing: 0;
}

.w-dash-tab-badge.is-visible {
    display: inline-flex;
}

/* Dash body */
.w-dash-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    overscroll-behavior: contain;
    position: relative;
}

.w-dash-body::-webkit-scrollbar {
    width: 3px;
}

.w-dash-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.w-dash-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 26px 24px;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.w-dash-status .w-inline-state {
    width: min(100%, 360px);
    padding: 28px 26px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 12px 28px rgba(46, 31, 20, 0.04);
}

.w-dash-panel {
    display: none;
    padding: 18px 26px 24px;
}

.w-dash-panel.active {
    display: block;
}

.w-panel-intro {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.w-panel-title {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
    color: var(--t1);
    margin: 0 0 4px;
}

.w-panel-desc {
    font-size: 11.5px;
    color: var(--tm);
    margin: 0;
    letter-spacing: 0.02em;
}

.w-panel-intro {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.w-panel-title {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
    color: var(--t1);
    margin: 0 0 4px;
}

.w-panel-desc {
    font-size: 11.5px;
    color: var(--tm);
    margin: 0;
    letter-spacing: 0.02em;
}

.w-dash-empty {
    text-align: center;
    padding: 32px 0 16px;
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
    color: var(--tm);
}

/* Profile overview */
.w-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.w-profile-card {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 4px 12px rgba(46, 31, 20, 0.015);
}

.w-profile-eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tm);
    margin-bottom: 10px;
}

.w-profile-value {
    font-family: var(--serif);
    font-size: 18px;
    font-style: italic;
    color: var(--t1);
    line-height: 1.35;
}

.w-profile-handle,
.w-profile-note {
    font-size: 11px;
    color: var(--tm);
    margin-top: 6px;
    letter-spacing: 0.04em;
}

.w-profile-section {
    margin-top: 20px;
}

.w-profile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.w-profile-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tm);
    transition: color 0.18s;
}

.w-profile-link:hover {
    color: var(--t2);
}

.w-profile-link:disabled,
.w-mark-all-read:disabled {
    opacity: 0.55;
    cursor: default;
}

.w-profile-link.is-pending,
.w-mark-all-read.is-pending {
    color: var(--t2);
    cursor: wait;
}

.w-profile-link.is-success,
.w-mark-all-read.is-success {
    color: var(--hopeful);
}

.w-profile-link.is-error,
.w-mark-all-read.is-error {
    color: var(--danger);
}

.w-settings-save--inline {
    margin-top: 12px;
    padding-left: 14px;
    padding-right: 14px;
}

/* Settings section */
.w-settings-section {
    margin-bottom: 24px;
}

.w-settings-label {
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tm);
    margin-bottom: 10px;
    display: block;
}

.w-settings-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 300;
    color: var(--t1);
    outline: none;
    transition: border-color 0.2s;
}

.w-settings-input:focus {
    border-color: var(--line);
}

.w-settings-input--spaced {
    margin-bottom: 8px;
}

.w-settings-save {
    margin-top: 10px;
    background: var(--button-primary);
    color: var(--button-primary-text);
    border: none;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 9px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.w-settings-save:hover {
    opacity: 0.85;
}

.w-settings-save.is-pending {
    background: var(--bg2);
    color: var(--t2);
    animation: w-action-pulse 1.1s ease-in-out infinite;
}

.w-settings-save.is-success {
    background: var(--hopeful);
    color: var(--button-primary-text);
}

.w-settings-save.is-error {
    background: var(--danger);
    color: var(--button-primary-text);
}

.w-settings-section--danger {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.w-settings-label--danger {
    color: var(--danger);
}

.w-settings-note {
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
    color: var(--tm);
    margin-bottom: 10px;
}

.w-danger-btn {
    background: none;
    border: 1px solid var(--danger-border);
    border-radius: 6px;
    padding: 8px 16px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--danger);
    cursor: pointer;
    transition: all 0.2s;
}

.w-danger-btn:hover {
    background: var(--danger-surface);
    border-color: var(--danger);
}

.w-danger-btn--compact {
    font-size: 10.5px;
    padding: 6px 12px;
}

/* Mini post items in dashboard */
.w-dash-post {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: opacity 0.15s;
}

.w-dash-post:hover {
    opacity: 0.75;
}

.w-dash-post:last-child {
    border-bottom: none;
}

.w-dash-post-text {
    font-family: var(--serif);
    font-size: 14.5px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--t1);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.w-dash-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.w-dash-post-type {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    background: var(--bg2);
    color: var(--tm);
}

.w-dash-post-type--thought {
    color: var(--type-thought);
}

.w-dash-post-type--confession {
    color: var(--type-confession);
}

.w-dash-post-type--dream {
    color: var(--type-dream);
}

.w-dash-post-type--quote {
    color: var(--type-quote);
}

.w-dash-post-type--question {
    color: var(--type-question);
}

.w-dash-context {
    font-family: var(--serif);
    font-size: 12px;
    font-style: italic;
    color: var(--tm);
    margin-bottom: 4px;
}

.w-dash-post-time {
    font-size: 10.5px;
    color: var(--tm);
}

.w-dash-post-stats {
    font-size: 10.5px;
    color: var(--tm);
    margin-left: auto;
}

.w-profile-section .w-dash-post:first-child {
    padding-top: 8px;
}

/* Notification items */
.w-notif-section + .w-notif-section {
    margin-top: 16px;
}

.w-notif-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 10px;
}

.w-notif-section-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tm);
}

.w-notif-section-count {
    font-size: 10.5px;
    color: var(--tm);
}

.w-notif-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.w-notif-item {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    color: inherit;
    font: inherit;
}

.w-notif-item.unread {
    background: rgba(250, 245, 238, 0.76);
    border-color: rgba(217, 202, 188, 0.8);
    box-shadow: 0 6px 18px rgba(46, 31, 20, 0.03);
}

.w-notif-item.unread .w-notif-text {
    color: var(--t1);
}

.w-notif-item.is-clickable {
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.w-notif-item.is-clickable:hover {
    background: var(--bg);
    border-color: var(--border);
}

.w-notif-item.is-clickable:focus-visible {
    outline: none;
    background: var(--bg);
    border-color: var(--line);
    box-shadow: 0 0 0 2px rgba(176, 170, 160, 0.24);
}

.w-notif-item--compact {
    padding: 11px 10px;
}

.w-notif-item--compact .w-notif-text {
    font-size: 13px;
}

.w-notif-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--t2);
}

.w-notif-item.unread .w-notif-icon {
    background: var(--success-bg);
    color: var(--button-primary);
}

.w-notif-content {
    flex: 1;
    min-width: 0;
}

.w-notif-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.w-notif-type {
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tm);
}

.w-notif-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.w-notif-text {
    font-family: var(--serif);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--t2);
}

.w-notif-text strong {
    font-weight: 400;
    color: var(--t1);
    font-style: italic;
}

.w-notif-time {
    font-size: 10.5px;
    color: var(--tm);
    margin-top: 3px;
}

.w-notif-dot-unread {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--notif-dot);
    margin-top: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 0 5px rgba(192, 112, 96, 0.12);
}

/* ─── NOTIFICATION PANEL MODAL ─── */
.w-notif-modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(46, 31, 20, 0.1);
    position: relative;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.w-notif-header {
    padding: 20px 58px 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.w-notif-header-title {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--t2);
}

.w-mark-all-read {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: var(--tm);
    transition: color 0.15s;
    flex-shrink: 0;
    line-height: 1.2;
}

.w-mark-all-read:hover {
    color: var(--t2);
}

.w-notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 22px 16px;
}

.w-notif-list::-webkit-scrollbar {
    width: 3px;
}

.w-notif-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* ─── REPORT MODAL ─── */
.w-report-modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(46, 31, 20, 0.1);
    position: relative;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.w-report-body {
    padding: 20px 22px 24px;
}

.w-report-textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--t1);
    outline: none;
    transition: border-color 0.2s;
}

.w-report-textarea:focus {
    border-color: var(--line);
}

.w-report-textarea::placeholder {
    color: var(--tm);
}

.w-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

/* ─── DISCOVERY SECTION ─── */
.w-discovery {
    position: relative;
}

.w-discovery-thread {
    position: absolute;
    top: 160px;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

/* ─── DEMO CARDS ─── */
.w-demo-cards {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 0 0;
}

.w-demo-slot {
    display: flex;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.w-demo-slot.w-visible {
    opacity: 1;
    transform: translateY(0);
}

.w-demo-slot.left {
    justify-content: flex-start;
}

.w-demo-slot.right {
    justify-content: flex-end;
}

.w-demo-card {
    width: calc(100% - 32px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 26px 18px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.w-demo-card:hover {
    box-shadow: 0 8px 28px rgba(46, 31, 20, 0.07);
    transform: translateY(-3px);
}

.w-demo-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 2.8px;
    border-radius: 2px;
    opacity: 0.52;
}

.w-demo-card[data-type="thought"]::before {
    background: var(--type-thought);
}

.w-demo-card[data-type="confession"]::before {
    background: var(--type-confession);
}

.w-demo-card[data-type="dream"]::before {
    background: var(--type-dream);
}

.w-demo-card[data-type="quote"]::before {
    background: var(--type-quote);
}

.w-demo-card[data-type="question"]::before {
    background: var(--type-question);
}

.w-demo-text {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.68;
    color: var(--t1);
    margin-bottom: 12px;
}

.w-demo-author {
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 650;
    color: var(--t1);
    margin-bottom: 12px;
    order: -1;
}

.w-demo-card > .w-demo-author:not(.w-demo-author-primary) {
    display: none;
}

.w-demo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.w-demo-time {
    font-size: 11px;
    color: var(--tm);
    letter-spacing: 0.03em;
}

.w-demo-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.w-demo-action {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--tm);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.18s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.w-demo-action:hover {
    color: var(--t2);
}

.w-demo-felt-count {
    font-weight: 500;
    color: var(--t2);
}

.w-demo-sep {
    width: 1px;
    height: 11px;
    background: var(--border);
}

/* ─── EXPLORE CTA ─── */
.w-explore-cta {
    text-align: center;
    padding: 12px 0 36px;
    position: relative;
    z-index: 1;
}

.w-explore-btn {
    background: var(--button-primary);
    color: var(--button-primary-text);
    border: none;
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
    letter-spacing: 0.03em;
    padding: 14px 38px;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.28s var(--ease);
    box-shadow: 0 4px 16px rgba(46, 31, 20, 0.08);
}

.w-explore-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 31, 20, 0.12);
}

.w-explore-btn:active {
    transform: translateY(0);
}

/* ─── BACK BUTTON ─── */
.w-back-btn {
    background: none;
    border: none;
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
    color: var(--tm);
    cursor: pointer;
    padding: 16px 0 8px;
    letter-spacing: 0.02em;
    transition: color 0.18s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.w-back-btn:hover {
    color: var(--t1);
}

/* ─── FULL FEED SECTION ─── */
.w-full-feed {
    animation: wSectionFadeIn 0.5s var(--ease) forwards;
}

@keyframes wSectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* POLISH OVERRIDES */
.w-modal,
.w-auth-modal,
.w-thread-modal,
.w-dashboard-modal,
.w-notif-modal,
.w-report-modal,
.w-share-modal {
    border-radius: var(--radius-lg);
    border-color: rgba(217, 202, 188, 0.92);
    box-shadow: var(--shadow-lg);
}

.w-arrival-note,
.w-account-nudge,
.w-prompt-strip,
.w-card,
.w-demo-card,
.w-profile-card,
.w-notif-item.unread,
.w-auth-benefits,
.w-post-as,
.w-search-bar,
.w-dash-status .w-inline-state {
    box-shadow: var(--shadow-sm);
}

.w-arrival-note,
.w-account-nudge,
.w-prompt-strip,
.w-card,
.w-demo-card,
.w-profile-card,
.w-auth-benefits,
.w-post-as,
.w-search-bar,
.w-notif-item,
.w-reply,
.w-dash-status .w-inline-state {
    border-radius: var(--radius-md);
}

.w-feed-intro-sub,
.w-panel-desc,
.w-settings-note,
.w-profile-note,
.w-profile-handle,
.w-time,
.w-dash-post-time,
.w-dash-post-stats,
.w-notif-time {
    font-family: var(--sans);
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.w-search-input,
.w-auth-label,
.w-settings-label,
.w-thread-label,
.w-notif-header-title,
.w-card-type,
.w-profile-eyebrow,
.w-dash-post-type,
.w-notif-type,
.w-notif-status,
.w-arrival-way-label,
.w-arrival-btn,
.w-nudge-btn,
.w-explore-btn,
.w-load-more-btn,
.w-fab {
    font-family: var(--sans);
    font-style: normal;
}

.w-search-input {
    font-size: 14px;
    line-height: 1.45;
}

.w-feed-intro-sub,
.w-panel-desc,
.w-profile-note,
.w-profile-handle,
.w-settings-note,
.w-notif-text,
.w-dash-context {
    color: var(--t2);
}

.w-quote,
.w-demo-text,
.w-thread-original .w-quote,
.w-reply-text,
.w-dash-post-text {
    line-height: 1.72;
}

.w-auth-field {
    margin-bottom: 18px;
}

.w-auth-label,
.w-settings-label,
.w-tag-input-label,
.w-post-as-label,
.w-char-count,
.w-thread-label,
.w-thread-replies-label {
    color: var(--t2);
}

.w-auth-input,
.w-modal textarea,
.w-modal input[type="text"],
.w-thread-composer textarea,
.w-thread-composer input,
.w-settings-input,
.w-report-textarea {
    border-radius: var(--radius-sm);
    border-color: var(--button-secondary-border);
    color: var(--t1);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.w-auth-input:focus,
.w-modal textarea:focus,
.w-modal input[type="text"]:focus,
.w-thread-composer textarea:focus,
.w-thread-composer input:focus,
.w-settings-input:focus,
.w-report-textarea:focus,
.w-search-bar:focus-within {
    border-color: var(--t2);
    box-shadow: var(--focus-ring);
    background: var(--card);
}

.w-modal textarea.error,
.w-modal input[type="text"].error,
.w-thread-composer textarea.error,
.w-thread-composer input.error,
.w-settings-input.error,
.w-report-textarea.error,
.w-auth-input.error {
    border-color: var(--danger);
    box-shadow: var(--focus-ring-error);
    background: var(--danger-surface);
}

.w-field-hint,
.w-form-error {
    font-family: var(--sans);
    font-size: 11px;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.w-field-hint {
    margin: 0 0 8px;
    color: var(--tm);
}

.w-form-error {
    display: none;
    margin: 0;
    color: var(--danger);
}

.w-form-error.show {
    display: block;
    margin-top: 8px;
}

.w-form-error--thread {
    margin-top: 10px;
}

.w-auth-error {
    font-family: var(--sans);
    font-style: normal;
    line-height: 1.55;
    color: var(--danger);
}

.w-type-selector,
.w-tag-options,
.w-card-tags,
.w-thread-reactions {
    gap: 10px;
    row-gap: 10px;
}

.w-type-opt,
.w-tag-opt,
.w-tag-pill,
.w-post-as-opt,
.w-filter-btn,
.w-load-more-btn,
.w-arrival-btn,
.w-anon-btn,
.w-dash-post-type {
    border-radius: var(--radius-pill);
}

.w-type-opt,
.w-tag-opt,
.w-post-as-opt,
.w-filter-btn,
.w-arrival-btn,
.w-load-more-btn,
.w-anon-btn,
.w-react-btn,
.w-icon-btn,
.w-mark-all-read,
.w-profile-link,
.w-report-btn,
.w-modal-close,
.w-share-action,
.w-search-clear,
.w-notif-btn,
.w-identity-btn,
.w-cat-tab,
.w-dash-tab {
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.w-tag-pill,
.w-tag-opt,
.w-type-opt,
.w-post-as-opt,
.w-react-btn,
.w-icon-btn,
.w-filter-btn,
.w-arrival-btn,
.w-load-more-btn,
.w-anon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
}

.w-tag-pill,
.w-tag-opt,
.w-type-opt,
.w-post-as-opt {
    appearance: none;
}

.w-tag-pill {
    background: var(--button-secondary-bg);
    border: 1px solid var(--button-secondary-border);
    padding: 5px 11px;
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--t2);
}

.w-type-opt,
.w-tag-opt,
.w-post-as-opt,
.w-filter-btn,
.w-arrival-btn,
.w-load-more-btn,
.w-anon-btn,
.w-react-btn,
.w-icon-btn,
.w-identity-btn,
.w-notif-btn,
.w-settings-save--inline,
.w-danger-btn {
    border-color: var(--button-secondary-border);
}

.w-explore-btn,
.w-auth-submit,
.w-modal-submit,
.w-settings-save,
.w-thread-submit,
.w-nudge-btn {
    background: var(--button-primary);
    color: var(--button-primary-text);
    border: 1px solid transparent;
    box-shadow: var(--shadow-xs);
}

.w-auth-submit,
.w-modal-submit,
.w-settings-save,
.w-thread-submit,
.w-nudge-btn,
.w-danger-btn {
    border-radius: var(--radius-md);
}

.w-explore-btn,
.w-fab {
    border-radius: var(--radius-pill);
}

.w-explore-btn,
.w-auth-submit,
.w-modal-submit,
.w-settings-save,
.w-thread-submit,
.w-nudge-btn,
.w-load-more-btn,
.w-arrival-btn,
.w-anon-btn,
.w-danger-btn {
    letter-spacing: 0.08em;
}

.w-explore-btn,
.w-auth-submit,
.w-modal-submit,
.w-settings-save,
.w-thread-submit,
.w-nudge-btn,
.w-load-more-btn,
.w-arrival-btn,
.w-anon-btn,
.w-danger-btn,
.w-fab {
    font-family: var(--sans);
    font-style: normal;
}

.w-danger-btn {
    background: var(--danger-surface);
    color: var(--danger);
    border-color: var(--danger-border);
}

.w-fab {
    background: var(--button-primary);
    color: var(--button-primary-text);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
}

.w-dash-post {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-align: left;
    appearance: none;
    color: inherit;
}

.w-demo-card {
    appearance: none;
    text-align: left;
    color: inherit;
}

.w-inline-state-action,
.w-profile-link,
.w-mark-all-read,
.w-report-btn {
    font-family: var(--sans);
}

.w-inline-state-action {
    border-bottom-color: rgba(217, 202, 188, 0.9);
}

.w-auth-submit:disabled,
.w-modal-submit:disabled,
.w-settings-save:disabled,
.w-thread-submit:disabled,
.w-explore-btn:disabled,
.w-load-more-btn:disabled,
.w-arrival-btn:disabled,
.w-anon-btn:disabled,
.w-danger-btn:disabled,
.w-mark-all-read:disabled,
.w-profile-link:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.w-react-btn.is-success,
.w-icon-btn.is-success,
.w-settings-save.is-success,
.w-profile-link.is-success,
.w-mark-all-read.is-success {
    box-shadow: 0 0 0 1px rgba(196, 168, 130, 0.24);
}

.w-react-btn.is-error,
.w-icon-btn.is-error,
.w-settings-save.is-error,
.w-profile-link.is-error,
.w-mark-all-read.is-error {
    box-shadow: 0 0 0 1px rgba(138, 98, 76, 0.24);
}

.w-react-btn:focus-visible,
.w-icon-btn:focus-visible,
.w-report-btn:focus-visible,
.w-settings-save:focus-visible,
.w-settings-save--inline:focus-visible,
.w-share-action:focus-visible,
.w-inline-state-action:focus-visible,
.w-arrival-btn:focus-visible,
.w-explore-btn:focus-visible,
.w-load-more-btn:focus-visible,
.w-anon-btn:focus-visible,
.w-nudge-btn:focus-visible,
.w-danger-btn:focus-visible,
.w-auth-submit:focus-visible,
.w-modal-submit:focus-visible,
.w-thread-submit:focus-visible,
.w-profile-link:focus-visible,
.w-mark-all-read:focus-visible,
.w-type-opt:focus-visible,
.w-tag-opt:focus-visible,
.w-tag-pill:focus-visible,
.w-post-as-opt:focus-visible,
.w-cat-tab:focus-visible,
.w-filter-btn:focus-visible,
.w-dash-tab:focus-visible,
.w-notif-btn:focus-visible,
.w-modal-close:focus-visible,
.w-dash-post:focus-visible,
.w-demo-card:focus-visible,
.w-author-credit:focus-visible,
.w-owner-icon-link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.w-dashboard-modal,
.w-thread-modal,
.w-notif-modal {
    background: rgba(250, 245, 238, 0.97);
}

.w-dash-status {
    background: rgba(242, 235, 224, 0.8);
    backdrop-filter: blur(8px);
}

.w-dash-post-meta,
.w-reply-meta,
.w-thread-footer,
.w-thread-meta-actions,
.w-actions {
    gap: 8px;
}

.w-dashboard-skeleton,
.w-skeleton-section,
.w-skeleton-list,
.w-skeleton-copy,
.w-skeleton-actions,
.w-skeleton-chip-row {
    display: grid;
    gap: 10px;
}

.w-skeleton-actions,
.w-skeleton-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.w-card--skeleton,
.w-demo-card--skeleton,
.w-thread-original--skeleton,
.w-reply--skeleton,
.w-dash-post--skeleton,
.w-notif-item--skeleton,
.w-profile-card--skeleton {
    pointer-events: none;
    user-select: none;
}

.w-card--skeleton::before,
.w-demo-card--skeleton::before {
    display: none;
}

.w-skeleton-line,
.w-skeleton-pill,
.w-skeleton-dot {
    display: block;
    background: linear-gradient(90deg, rgba(217, 202, 188, 0.62) 0%, rgba(250, 245, 238, 0.96) 50%, rgba(217, 202, 188, 0.62) 100%);
    background-size: 200% 100%;
    animation: wSkeletonShimmer 1.5s linear infinite;
}

.w-skeleton-line {
    width: var(--skeleton-line-width, 100%);
    height: 11px;
    border-radius: var(--radius-pill);
}

.w-skeleton-line--meta {
    height: 9px;
}

.w-skeleton-pill {
    width: var(--skeleton-pill-width, 72px);
    height: 26px;
    border-radius: var(--radius-pill);
}

.w-skeleton-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.w-dashboard-skeleton {
    gap: 18px;
}

.w-notif-item--skeleton {
    align-items: center;
}

@keyframes wSkeletonShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .w-wrap {
        padding: 0 16px calc(108px + env(safe-area-inset-bottom, 0px));
    }

    .w-header {
        padding-top: 18px;
    }

    .w-author-credit {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .w-brand-logo {
        width: 150px;
    }

    .w-logo {
        font-size: 9px;
        letter-spacing: 0.16em;
    }

    .w-header-right {
        gap: 6px;
    }

    .w-notif-btn {
        min-height: 40px;
    }

    .w-identity-btn {
        width: 32px;
        height: 32px;
        min-height: 32px;
    }

    .w-fab {
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        padding: 12px 22px;
        min-height: 44px;
        max-width: calc(100vw - 32px);
    }

    .w-overlay {
        padding: 8px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .w-modal,
    .w-auth-modal,
    .w-thread-modal,
    .w-dashboard-modal,
    .w-notif-modal,
    .w-report-modal,
    .w-share-modal {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px));
    }

    .w-modal,
    .w-auth-modal {
        padding: 22px 18px calc(20px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .w-modal-close {
        width: 38px;
        height: 38px;
        top: 10px;
        right: 10px;
    }

    .w-auth-tabs {
        margin-bottom: 18px;
    }

    .w-auth-tab {
        padding: 12px 16px 12px 0;
        min-height: 44px;
    }

    .w-auth-input,
    .w-modal textarea,
    .w-modal input[type="text"],
    .w-thread-composer textarea,
    .w-thread-composer input,
    .w-report-textarea {
        scroll-margin-block: 104px;
    }

    .w-auth-input,
    .w-modal input[type="text"],
    .w-thread-composer input,
    .w-report-textarea {
        min-height: 44px;
    }

    .w-password-toggle {
        width: 36px;
        height: 36px;
    }

    .w-auth-submit,
    .w-anon-btn,
    .w-modal-submit,
    .w-thread-submit {
        min-height: 44px;
    }

    .w-type-opt,
    .w-tag-opt,
    .w-post-as-opt,
    .w-filter-btn,
    .w-cat-tab,
    .w-react-btn,
    .w-icon-btn,
    .w-report-btn,
    .w-share-action,
    .w-back-btn,
    .w-explore-btn,
    .w-profile-link,
    .w-mark-all-read,
    .w-settings-save--inline,
    .w-danger-btn {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .w-thread-header {
        padding: 16px 18px 0;
    }

    .w-thread-body {
        padding: 14px 18px 8px;
        scroll-padding-bottom: 180px;
        -webkit-overflow-scrolling: touch;
    }

    .w-thread-original {
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .w-thread-original .w-quote {
        font-size: 19px;
        line-height: 1.6;
    }

    .w-thread-replies-header,
    .w-thread-footer,
    .w-reply-meta {
        flex-wrap: wrap;
    }

    .w-thread-replies-header {
        align-items: flex-start;
        gap: 8px;
    }

    .w-reply {
        padding: 14px 16px;
        margin-bottom: 8px;
    }

    .w-reply-meta {
        row-gap: 6px;
    }

    .w-thread-composer {
        padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .w-thread-composer-row {
        flex-direction: column;
        align-items: stretch;
    }

    .w-thread-submit {
        width: 100%;
    }

    .w-dash-header {
        padding: 18px 18px 0;
        align-items: flex-start;
    }

    .w-dash-profile {
        min-width: 0;
        gap: 12px;
    }

    .w-dash-name {
        font-size: 20px;
    }

    .w-dash-actions {
        flex-shrink: 0;
        margin-top: 0;
    }

    .w-dash-stats {
        margin: 14px 18px 0;
    }

    .w-dash-nav {
        padding: 0 18px;
        margin-top: 14px;
    }

    .w-dash-tab {
        padding: 12px 16px 12px 0;
        min-height: 40px;
    }

    .w-dash-body,
    .w-notif-list {
        -webkit-overflow-scrolling: touch;
    }

    .w-dash-status {
        padding: 16px 18px 20px;
    }

    .w-dash-panel {
        padding: 16px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .w-panel-intro {
        margin-bottom: 18px;
    }

    .w-profile-grid {
        grid-template-columns: 1fr;
    }

    .w-profile-card {
        padding: 16px;
    }

    .w-profile-section-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .w-notif-header {
        padding: 18px 56px 14px 18px;
        gap: 10px;
    }

    .w-notif-list {
        padding: 4px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .w-report-body {
        padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .w-card {
        width: calc(100% - 24px);
        padding: 20px 18px 16px;
    }

    .w-demo-card {
        width: calc(100% - 18px);
        padding: 20px 20px 16px;
    }

    .w-demo-text {
        font-size: 20px;
    }

    .w-demo-actions {
        gap: 10px;
    }

    .w-site-footer {
        margin-top: 34px;
        padding-top: 20px;
    }

    .w-site-footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .w-site-footer-link {
        justify-content: center;
    }

    .w-title {
        font-size: 40px;
    }

    .w-fab {
        bottom: 22px;
        padding: 11px 24px;
        font-size: 14px;
    }

    .w-modal, .w-auth-modal {
        padding: 26px 20px 22px;
        border-radius: 12px;
    }

    .w-thread-modal, .w-dashboard-modal, .w-notif-modal, .w-share-modal {
        border-radius: 12px;
    }

    .w-dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .w-profile-grid {
        grid-template-columns: 1fr;
    }

    .w-auth-benefits {
        display: none;
    }

    .w-explore-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .w-arrival-note {
        padding: 16px;
    }

    .w-arrival-ways {
        grid-template-columns: 1fr;
    }

    .w-arrival-footer {
        align-items: flex-start;
    }

    .w-arrival-footnote {
        min-width: 0;
    }
}

.is-hidden {
    display: none !important;
}

#discoverySection,
#backToDiscovery {
    display: none !important;
}

.w-dash-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 4px;
}

.w-feed-empty {
    text-align: center;
    padding: 48px 0 24px;
}

.w-feed-empty-text {
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
    color: var(--tm);
}

.w-dash-empty--spacious {
    padding: 24px 0 8px;
}

.w-inline-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 28px 16px;
}

.w-inline-state--compact {
    padding: 20px 8px 12px;
}

.w-inline-state--spacious {
    padding: 40px 18px 28px;
}

.w-inline-state-mark {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--border);
    opacity: 0.85;
}

.w-inline-state--loading .w-inline-state-mark {
    animation: wInlinePulse 1.4s ease-in-out infinite;
}

.w-inline-state--error .w-inline-state-mark {
    background: var(--button-primary);
}

.w-inline-state-title {
    margin: 0;
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
    color: var(--t1);
}

.w-inline-state-detail {
    margin: 0;
    max-width: 38ch;
    font-size: 11px;
    line-height: 1.65;
    letter-spacing: 0.04em;
    color: var(--tm);
}

.w-inline-state-action {
    margin-top: 2px;
    padding: 0 0 2px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t1);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.w-inline-state-action:hover {
    color: var(--t2);
    border-color: var(--line);
}

@keyframes wInlinePulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.42;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

body.w-no-scroll {
    overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
    .w-card:hover,
    .w-demo-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-soft);
    }

    .w-prompt-strip:hover,
    .w-arrival-note:hover,
    .w-account-nudge:hover,
    .w-profile-card:hover,
    .w-notif-item.is-clickable:hover,
    .w-dash-post:hover {
        box-shadow: var(--shadow-soft);
    }

    .w-dash-post:hover {
        opacity: 1;
        background: rgba(250, 245, 238, 0.72);
        border-color: rgba(217, 202, 188, 0.9);
    }

    .w-auth-submit:hover,
    .w-modal-submit:hover,
    .w-settings-save:hover,
    .w-thread-submit:hover,
    .w-nudge-btn:hover,
    .w-explore-btn:hover {
        opacity: 1;
        background: var(--button-primary-hover);
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }

    .w-arrival-btn:hover,
    .w-load-more-btn:hover,
    .w-anon-btn:hover,
    .w-filter-btn:hover,
    .w-tag-opt:hover,
    .w-tag-pill:hover,
    .w-type-opt:hover,
    .w-post-as-opt:hover,
    .w-react-btn:hover,
    .w-icon-btn:hover,
    .w-modal-close:hover,
    .w-notif-btn:hover,
    .w-identity-btn:hover,
    .w-mark-all-read:hover,
    .w-profile-link:hover,
    .w-report-btn:hover,
    .w-inline-state-action:hover {
        background: rgba(250, 245, 238, 0.86);
        border-color: var(--line);
        color: var(--t1);
    }

    .w-fab:hover {
        color: #ffffff;
        box-shadow: var(--shadow-lg);
        transform: translateX(-50%) translateY(-2px);
    }
}

@media (hover: none) and (pointer: coarse) {
    .w-card:hover,
    .w-demo-card:hover,
    .w-prompt-strip:hover,
    .w-arrival-note:hover,
    .w-account-nudge:hover,
    .w-profile-card:hover,
    .w-notif-item.is-clickable:hover,
    .w-dash-post:hover {
        transform: none;
        opacity: 1;
        box-shadow: var(--shadow-sm);
        background: transparent;
        border-color: transparent;
        color: inherit;
    }

    .w-auth-submit:hover,
    .w-modal-submit:hover,
    .w-settings-save:hover,
    .w-thread-submit:hover,
    .w-nudge-btn:hover,
    .w-explore-btn:hover {
        transform: none;
        background: var(--button-primary);
        color: var(--button-primary-text);
        box-shadow: var(--shadow-xs);
        opacity: 1;
    }

    .w-arrival-btn:hover,
    .w-load-more-btn:hover,
    .w-anon-btn:hover,
    .w-filter-btn:hover:not(.active),
    .w-tag-opt:hover:not(.active),
    .w-tag-pill:hover,
    .w-type-opt:hover:not(.active),
    .w-post-as-opt:hover:not(.active),
    .w-react-btn:hover,
    .w-icon-btn:hover,
    .w-modal-close:hover,
    .w-notif-btn:hover,
    .w-identity-btn:hover,
    .w-mark-all-read:hover,
    .w-profile-link:hover,
    .w-report-btn:hover,
    .w-inline-state-action:hover {
        transform: none;
        background: transparent;
        border-color: transparent;
        color: inherit;
        box-shadow: none;
        opacity: inherit;
    }

    .w-tag-pill:hover,
    .w-tag-opt:hover:not(.active),
    .w-type-opt:hover:not(.active),
    .w-post-as-opt:hover:not(.active),
    .w-filter-btn:hover:not(.active),
    .w-arrival-btn:hover,
    .w-load-more-btn:hover,
    .w-anon-btn:hover,
    .w-react-btn:hover,
    .w-icon-btn:hover {
        border-color: var(--button-secondary-border);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    .w-skeleton-line,
    .w-skeleton-pill,
    .w-skeleton-dot {
        animation: none;
    }
}

@media (max-height: 760px) {
    .w-overlay {
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .w-modal,
    .w-auth-modal,
    .w-thread-modal,
    .w-dashboard-modal,
    .w-notif-modal,
    .w-report-modal,
    .w-share-modal {
        max-height: calc(100dvh - 20px);
    }

  .w-modal,
  .w-auth-modal {
    padding-top: 24px;
    padding-bottom: 20px;
  }
}

#exploreFeedBtn {
  background: var(--button-primary);
  color: var(--button-primary-text);
  border-color: var(--button-primary);
}

#exploreFeedBtn:hover,
#exploreFeedBtn:active,
#exploreFeedBtn:focus-visible {
  background: var(--button-primary-hover);
  color: var(--button-primary-text);
  border-color: var(--button-primary-hover);
}

.w-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.w-fab .fa-pen-to-square {
    font-size: 0.95em;
    line-height: 1;
}

@media (max-width: 640px) {
    .w-dashboard-modal {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px));
        display: flex;
        flex-direction: column;
    }

    .w-dash-header {
        padding: 20px 16px 8px;
        gap: 10px;
        min-height: 84px;
    }

    .w-dash-profile {
        flex: 1;
        min-width: 0;
        align-items: flex-start;
        gap: 10px;
    }

    .w-dash-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .w-dash-name {
        font-size: 18px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
    }

    .w-dash-since {
        font-size: 10.5px;
        letter-spacing: 0.03em;
        line-height: 1.4;
    }

    .w-dash-actions {
        margin-left: auto;
        flex-shrink: 0;
    }

    .w-dash-actions .w-modal-close--inline {
        width: 32px;
        height: 32px;
    }

    .w-dash-stats {
        margin: 12px 16px 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(52px, auto);
        min-height: 110px;
        flex-shrink: 0;
    }

    .w-dash-stat {
        padding: 10px 8px;
    }

    .w-dash-stat-num {
        font-size: 18px;
    }

    .w-dash-stat-label {
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .w-dash-nav {
        margin-top: 14px;
        padding: 0 16px;
        flex-shrink: 0;
    }

    .w-dash-tab {
        font-size: 10px;
        padding: 10px 12px 10px 0;
        white-space: nowrap;
    }

    .w-dash-body {
        min-height: 0;
    }

    .w-dash-panel {
        padding: 14px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .w-dashboard-modal {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
    }

    .w-dash-stats {
        min-height: 104px;
    }

    .w-dash-name {
        font-size: 17px;
    }
}
