:root {
    --app-bg: #f3f3f3;
    --surface: #ffffff;
    --surface-soft: #f8f9fa;
    --surface-muted: #f1f3f5;
    --line: #e5e7ea;
    --line-strong: #d7dce1;
    --text: #111111;
    --muted: #687078;
    --ink: #111111;
    --brand-red: #ff1a12;
    --brand-red-strong: #d91f17;
    --brand-teal: #1298b5;
    --brand-shadow: 0 18px 42px rgba(17, 17, 17, 0.07);
    --shadow-soft: 0 12px 26px rgba(17, 17, 17, 0.06);
    --radius-2xl: 28px;
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-pill: 999px;
    --content-width: min(1200px, calc(100% - 24px));
    --app-transition: 0.2s ease;
    --accent: var(--brand-teal);
    --accent-soft: rgba(18, 152, 181, 0.08);
    --accent-glow: rgba(18, 152, 181, 0.18);
    --accent-text: #0d7087;
}

.app-section-listings {
    --accent: #0b8b6a;
    --accent-soft: rgba(11, 139, 106, 0.08);
    --accent-glow: rgba(11, 139, 106, 0.16);
    --accent-text: #0b7559;
}

.app-section-classifieds {
    --accent: #0f8573;
    --accent-soft: rgba(15, 133, 115, 0.08);
    --accent-glow: rgba(15, 133, 115, 0.16);
    --accent-text: #0d6d5f;
}

.app-section-auth {
    --accent: #1298b5;
    --accent-soft: rgba(18, 152, 181, 0.08);
    --accent-glow: rgba(18, 152, 181, 0.18);
    --accent-text: #0d7087;
}

.app-section-emergency {
    --accent: #ff5c41;
    --accent-soft: rgba(255, 92, 65, 0.08);
    --accent-glow: rgba(255, 92, 65, 0.16);
    --accent-text: #c7422e;
}

.app-section-alerts {
    --accent: #7a55f4;
    --accent-soft: rgba(122, 85, 244, 0.08);
    --accent-glow: rgba(122, 85, 244, 0.16);
    --accent-text: #5d3fd1;
}

.app-section-messages {
    --accent: #0f80d5;
    --accent-soft: rgba(15, 128, 213, 0.08);
    --accent-glow: rgba(15, 128, 213, 0.16);
    --accent-text: #1267ab;
}

.app-section-profile {
    --accent: #ef7a1a;
    --accent-soft: rgba(239, 122, 26, 0.08);
    --accent-glow: rgba(239, 122, 26, 0.16);
    --accent-text: #c75f07;
}

.app-section-safety,
.app-section-moderation {
    --accent: #bb7a19;
    --accent-soft: rgba(187, 122, 25, 0.08);
    --accent-glow: rgba(187, 122, 25, 0.16);
    --accent-text: #98610f;
}

.app-page,
.app-page * {
    box-sizing: border-box;
    margin: 0;
}

.app-page {
    min-height: 100vh;
    max-width: none;
    padding: 0;
    color: var(--text);
    text-align: left;
    background:
        radial-gradient(circle at top left, rgba(18, 152, 181, 0.08), transparent 24%),
        linear-gradient(180deg, #fafafa 0%, var(--app-bg) 100%);
    font-family: "Segoe UI Variable Text", "Segoe UI", Tahoma, sans-serif;
}

body.app-page {
    background-color: transparent;
}

.app-page a {
    color: inherit;
    text-decoration: none;
}

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

.app-page p {
    padding: 0;
}

.app-page button,
.app-page input,
.app-page select,
.app-page textarea {
    font: inherit;
}

.app-page ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.app-page ::-webkit-scrollbar-thumb {
    background: rgba(17, 17, 17, 0.14);
    border-radius: 999px;
}

.app-frame {
    width: var(--content-width);
    margin: 0 auto;
    padding: 18px 0 40px;
}

.app-topbar,
.panel,
.feature-stat {
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    background: var(--surface);
    box-shadow: var(--brand-shadow);
}

.app-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 20px;
    padding: 22px;
}

.topbar-main {
    display: grid;
    gap: 18px;
}

.brand-stack {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-mark {
    flex: 0 0 auto;
    width: 84px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
}

.app-eyebrow,
.panel-kicker,
.chip-label {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.67rem;
    font-weight: 800;
    color: var(--accent-text);
}

.app-page-title {
    margin-top: 6px;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    line-height: 1.12;
    font-weight: 700;
}

.app-page-copy {
    margin-top: 8px;
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.58;
    font-size: 0.91rem;
}

.section-tabs,
.utility-links,
.app-summary-row,
.app-subnav,
.chip-row,
.feed-actions,
.category-cloud,
.profile-stats,
.contact-actions,
.toolbar-row,
.filter-row,
.auth-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-tab,
.utility-links a,
.summary-pill,
.chip,
.profile-stat,
.toolbar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform var(--app-transition), border-color var(--app-transition), background var(--app-transition), box-shadow var(--app-transition), color var(--app-transition);
}

.section-tab:hover,
.section-tab:focus-visible,
.utility-links a:hover,
.utility-links a:focus-visible,
.subnav-link:hover,
.subnav-link:focus-visible,
.action-link:hover,
.action-link:focus-visible,
.bottom-link:hover,
.bottom-link:focus-visible,
.category-cloud a:hover,
.category-cloud a:focus-visible,
.chip:hover,
.chip:focus-visible,
.feed-action-button:hover,
.feed-action-button:focus-visible,
.toolbar-pill:hover,
.toolbar-pill:focus-visible {
    transform: translateY(-1px);
}

.section-tab:hover,
.section-tab:focus-visible,
.utility-links a:hover,
.utility-links a:focus-visible,
.subnav-link:hover,
.subnav-link:focus-visible,
.category-cloud a:hover,
.category-cloud a:focus-visible,
.feed-action-button:hover,
.feed-action-button:focus-visible,
.toolbar-pill:hover,
.toolbar-pill:focus-visible {
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-soft);
}

.section-tab.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #111111 0%, #222a31 100%);
}

.section-tab i,
.utility-links a i,
.summary-pill i {
    font-size: 0.78rem;
}

.section-tab i,
.utility-links a i {
    color: var(--accent-text);
}

.section-tab.is-active i,
.bottom-link.is-active i {
    color: rgba(255, 255, 255, 0.96);
}

.app-user-strip {
    display: grid;
    gap: 14px;
    align-content: start;
}

.profile-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #111111 0%, #222a31 100%);
}

.profile-badge strong {
    display: block;
    font-size: 0.96rem;
}

.profile-badge div span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.84rem;
    line-height: 1.45;
}

.avatar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-strong) 100%);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.summary-pill,
.toolbar-pill {
    color: var(--accent-text);
    background: var(--accent-soft);
    border-color: var(--accent-glow);
}

.summary-pill i {
    color: inherit;
}

.app-summary-row,
.app-subnav {
    margin-top: 16px;
}

.app-page-head {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.app-page-head-main {
    display: grid;
    gap: 6px;
}

.app-page-actions {
    margin-top: 0;
}

.app-page-head .app-summary-row {
    margin-top: 0;
}

.app-subnav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.app-subnav::-webkit-scrollbar {
    display: none;
}

.subnav-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    font-size: 0.87rem;
    font-weight: 700;
    transition: transform var(--app-transition), color var(--app-transition), border-color var(--app-transition), background var(--app-transition), box-shadow var(--app-transition);
}

.subnav-link.is-active,
.bottom-link.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-strong) 100%);
}

.app-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 18px;
    margin-top: 18px;
    padding: 24px;
    border-radius: var(--radius-2xl);
    color: #ffffff;
    background: linear-gradient(135deg, #111111 0%, #1e2830 100%);
    box-shadow: 0 24px 46px rgba(17, 17, 17, 0.14);
}

.app-hero .panel-kicker {
    color: rgba(255, 255, 255, 0.68);
}

.hero-title {
    margin-top: 8px;
    max-width: 13ch;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.08;
    font-weight: 700;
}

.hero-copy,
.muted-copy,
.meta-line,
.list-note {
    color: var(--muted);
    line-height: 1.58;
    font-size: 0.9rem;
}

.app-hero .hero-copy {
    margin-top: 12px;
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.76);
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 18px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform var(--app-transition), box-shadow var(--app-transition), border-color var(--app-transition), background var(--app-transition), color var(--app-transition);
}

.action-link.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-strong) 100%);
    box-shadow: 0 16px 30px rgba(255, 26, 18, 0.18);
}

.action-link.secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.hero-grid,
.feed-stack,
.reel-grid,
.notification-list,
.profile-list,
.card-stack,
.aside-stack,
.market-card-grid,
.status-grid,
.action-grid,
.contact-grid,
.auth-feature-list {
    display: grid;
    gap: 14px;
}

.hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: end;
}

.feature-stat,
.panel {
    padding: 20px;
}

.feature-stat {
    border-radius: 24px;
    background: #ffffff;
}

.display-number {
    margin-top: 8px;
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1;
    font-weight: 700;
}

.grid-main {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(310px, 0.62fr);
    gap: 18px;
    margin-top: 18px;
}

.listing-panel-grid {
    grid-template-columns: minmax(290px, 0.66fr) minmax(0, 1.34fr);
    align-items: start;
}

.panel-dark {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #111111 0%, #212930 100%);
    box-shadow: 0 24px 46px rgba(17, 17, 17, 0.14);
}

.panel-dark .panel-kicker,
.panel-dark .chip-label,
.panel-dark .meta-line,
.panel-dark .muted-copy,
.panel-dark .compact-text,
.panel-dark .notice-body {
    color: rgba(255, 255, 255, 0.74);
}

.panel-dark .chip,
.panel-dark .contact-actions a,
.panel-dark .contact-actions span,
.panel-dark .toolbar-pill {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.panel-dark .compact-card,
.panel-dark .notice-card,
.panel-dark .profile-list-item,
.panel-dark .contact-card,
.panel-dark .action-card {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
}

.panel-title {
    margin-top: 6px;
    font-size: 1.08rem;
    line-height: 1.22;
    font-weight: 700;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--accent-text);
    font-size: 0.8rem;
    font-weight: 700;
    transition: transform var(--app-transition), border-color var(--app-transition), box-shadow var(--app-transition), background var(--app-transition);
}

.panel-link:hover,
.panel-link:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-soft);
}

.alert-card {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    line-height: 1.55;
}

.alert-card.is-success {
    color: #0c7a52;
    border-color: rgba(12, 122, 82, 0.12);
    background: rgba(12, 122, 82, 0.08);
}

.alert-card.is-error {
    color: #b23a29;
    border-color: rgba(178, 58, 41, 0.12);
    background: rgba(178, 58, 41, 0.08);
}

.composer-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface-soft);
}

.composer-box textarea,
.composer-box input,
.composer-box select,
.auth-field input,
.auth-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    color: var(--text);
    background: #ffffff;
    transition: border-color var(--app-transition), box-shadow var(--app-transition);
}

.composer-box textarea,
.auth-field textarea {
    min-height: 112px;
    padding: 14px;
    resize: vertical;
}

.composer-box textarea:focus,
.composer-box input:focus,
.composer-box select:focus,
.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.composer-row,
.auth-two-column,
.auth-captcha-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.form-grid-two,
.dynamic-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field-block {
    display: grid;
    gap: 8px;
}

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

.field-block span {
    color: var(--accent-text);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.listing-api-form input,
.listing-api-form select,
.listing-api-form textarea,
.dynamic-field-grid input,
.dynamic-field-grid select,
.dynamic-field-grid textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    color: var(--text);
    background: #ffffff;
    transition: border-color var(--app-transition), box-shadow var(--app-transition);
}

.listing-api-form textarea,
.dynamic-field-grid textarea {
    min-height: 112px;
    padding: 14px;
    resize: vertical;
}

.listing-api-form input:focus,
.listing-api-form select:focus,
.listing-api-form textarea:focus,
.dynamic-field-grid input:focus,
.dynamic-field-grid select:focus,
.dynamic-field-grid textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.listing-api-form {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.listing-center-layout {
    align-items: start;
}

.form-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.api-result-card {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #10171d 0%, #18222b 100%);
}

.api-result-pre {
    margin-top: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 300px;
    overflow: auto;
    font-size: 0.82rem;
    line-height: 1.58;
}

.feed-card,
.compact-card,
.reel-card,
.notice-card,
.profile-list-item,
.contact-card,
.market-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.feed-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
}

.feed-card.is-text-only {
    grid-template-columns: 1fr;
}

.feed-body,
.compact-card,
.notice-card,
.profile-list-item,
.contact-card,
.market-copy {
    padding: 18px;
}

.feed-visual,
.market-visual {
    min-height: 100%;
    background: linear-gradient(180deg, rgba(18, 152, 181, 0.08) 0%, #f3f7f8 100%);
}

.feed-visual img,
.reel-card img,
.market-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.market-card {
    display: grid;
    grid-template-rows: 184px 1fr;
}

.status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.status-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.status-card strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.status-card p {
    color: var(--muted);
    line-height: 1.56;
    font-size: 0.88rem;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 800;
}

.status-badge.is-ready {
    color: #0c7a52;
    background: rgba(12, 122, 82, 0.12);
}

.status-badge.is-pending {
    color: #9a5b18;
    background: rgba(182, 108, 29, 0.14);
}

.action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.action-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform var(--app-transition), border-color var(--app-transition), box-shadow var(--app-transition);
}

.action-card strong {
    font-size: 0.94rem;
    font-weight: 700;
}

.action-card span {
    color: var(--muted);
    line-height: 1.52;
    font-size: 0.86rem;
}

.feed-title,
.compact-title,
.reel-title,
.notice-title {
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.32;
    font-weight: 700;
}

.feed-text,
.compact-text,
.notice-body {
    margin-top: 8px;
    color: #56606a;
    line-height: 1.58;
    font-size: 0.9rem;
}

.chip {
    min-height: 32px;
    padding: 0 12px;
    color: var(--accent-text);
    border-color: var(--accent-glow);
    background: var(--accent-soft);
    font-size: 0.8rem;
}

.app-hero .chip {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
}

.feed-actions span,
.feed-action-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
}

.feed-actions span {
    background: var(--surface-soft);
}

.feed-action-button {
    border: 1px solid var(--line);
    color: var(--text);
    background: #ffffff;
    cursor: pointer;
    transition: transform var(--app-transition), border-color var(--app-transition), background var(--app-transition), color var(--app-transition), box-shadow var(--app-transition);
}

.feed-action-button.is-done {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-strong) 100%);
}

.profile-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.category-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform var(--app-transition), border-color var(--app-transition), box-shadow var(--app-transition);
}

.secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

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

.reel-card {
    position: relative;
    min-height: 360px;
    color: #ffffff;
    background: #111111;
}

.reel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 10%, rgba(10, 20, 28, 0.84) 100%);
}

.reel-card img {
    position: absolute;
    inset: 0;
}

.reel-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    padding: 18px;
}

.notice-card.is-unread {
    border-color: var(--accent-glow);
    background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 100%);
}

.profile-hero {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-strong) 100%);
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(255, 26, 18, 0.18);
}

.profile-stat {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
}

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

.contact-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
}

.contact-actions a,
.contact-actions span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.empty-state,
.form-message {
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    line-height: 1.58;
    font-size: 0.9rem;
}

.empty-state {
    border: 1px dashed var(--accent-glow);
    color: var(--accent-text);
    background: var(--accent-soft);
}

.form-message {
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.form-message.is-error {
    color: #b03a2c;
    border-color: rgba(255, 92, 65, 0.18);
    background: rgba(255, 92, 65, 0.08);
}

.form-message.is-success {
    color: #0c7a52;
    border-color: rgba(12, 122, 82, 0.18);
    background: rgba(12, 122, 82, 0.08);
}

.panel-dark .empty-state {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.toolbar-row {
    margin-top: 16px;
}

.contact-grid,
.notification-list,
.profile-list {
    margin-top: 16px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    gap: 18px;
    margin-top: 18px;
}

.auth-hero-card,
.auth-form-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    box-shadow: var(--brand-shadow);
}

.auth-hero-card {
    padding: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #111111 0%, #1e2830 100%);
}

.auth-logo-card {
    display: inline-flex;
    width: 88px;
    padding: 12px;
    border-radius: 26px;
    background: #ffffff;
}

.auth-hero-card h1 {
    margin-top: 18px;
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    line-height: 1.08;
    font-weight: 700;
}

.auth-hero-card p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.6;
    font-size: 0.92rem;
}

.auth-feature {
    display: grid;
    gap: 4px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-feature strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.auth-feature span {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.55;
    font-size: 0.86rem;
}

.auth-form-card {
    padding: 24px;
    background: #ffffff;
}

.auth-form-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.auth-form-header p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.58;
    font-size: 0.9rem;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    color: #3d474f;
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-captcha-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 6px 8px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    background: #ffffff;
}

.auth-captcha-card img {
    width: auto;
    max-width: 100%;
    max-height: 34px;
}

.auth-helper-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-soft);
}

.auth-helper-card strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-helper-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.86rem;
}

.auth-submit {
    justify-content: center;
}

.auth-link-row {
    margin-top: 16px;
}

.auth-link-row a {
    color: var(--accent-text);
    font-size: 0.84rem;
    font-weight: 700;
}

.social-feed-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 300px;
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.social-side,
.social-center-column,
.post-stack {
    display: grid;
    gap: 14px;
}

.social-side {
    position: sticky;
    top: 18px;
}

.social-side-left {
    order: 1;
}

.social-center-column {
    order: 2;
}

.social-side-right {
    order: 3;
}

.social-profile-card .muted-copy {
    color: rgba(255, 255, 255, 0.74);
}

.social-count-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.social-count-card {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.panel-dark .social-count-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
}

.social-count-card strong {
    font-size: 1rem;
    font-weight: 700;
}

.social-count-card span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.panel-dark .social-count-card span {
    color: rgba(255, 255, 255, 0.74);
}

.shortcut-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.shortcut-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform var(--app-transition), border-color var(--app-transition), box-shadow var(--app-transition), background var(--app-transition);
}

.shortcut-item:hover,
.shortcut-item:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-soft);
}

.shortcut-item.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-strong) 100%);
}

.shortcut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: var(--accent-text);
    background: rgba(18, 152, 181, 0.1);
    font-size: 0.95rem;
}

.shortcut-item.is-active .shortcut-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.composer-card {
    gap: 14px;
}

.composer-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.composer-prompt {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 0.95rem;
    line-height: 1.55;
    transition: border-color var(--app-transition), box-shadow var(--app-transition), background var(--app-transition);
}

.composer-prompt:hover,
.composer-prompt:focus-visible {
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-soft);
}

.composer-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.composer-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform var(--app-transition), border-color var(--app-transition), box-shadow var(--app-transition);
}

.composer-tool:hover,
.composer-tool:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-soft);
}

.story-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.story-card {
    display: grid;
    gap: 8px;
    min-height: 130px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(160deg, #111111 0%, #20313b 100%);
    box-shadow: var(--shadow-soft);
    transition: transform var(--app-transition), box-shadow var(--app-transition);
}

.story-card:hover,
.story-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(17, 17, 17, 0.14);
}

.story-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-strong) 100%);
    font-size: 0.84rem;
    font-weight: 800;
}

.story-card strong {
    font-size: 0.94rem;
    line-height: 1.3;
    font-weight: 700;
}

.story-card span:last-child {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    line-height: 1.45;
}

.post-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.post-head,
.post-author,
.follow-card-head,
.post-stats,
.post-actions,
.post-comment-row {
    display: flex;
    align-items: center;
}

.post-head,
.post-stats,
.post-actions,
.post-comment-row,
.post-tag-row,
.post-body {
    padding-left: 18px;
    padding-right: 18px;
}

.post-head {
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
}

.post-author {
    gap: 12px;
}

.post-author strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

.post-body {
    display: grid;
    gap: 8px;
}

.post-title {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
}

.post-copy {
    color: #46515a;
    line-height: 1.7;
    font-size: 0.92rem;
}

.post-tag-row {
    padding-bottom: 2px;
}

.post-media {
    overflow: hidden;
    background: #eef2f4;
}

.post-media img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

.post-stats {
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
    padding-bottom: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 700;
}

.post-actions {
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-top: 1px solid var(--line);
}

.social-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #46515a;
    background: var(--surface-soft);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform var(--app-transition), border-color var(--app-transition), box-shadow var(--app-transition), background var(--app-transition), color var(--app-transition);
}

.social-action-button:hover,
.social-action-button:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-soft);
}

.social-action-button.is-liked,
.social-action-button.is-link {
    color: var(--accent-text);
}

.social-action-button.is-done {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-strong) 100%);
}

.post-comment-row {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 18px;
    border-top: 1px solid var(--line);
}

.post-comment-row input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface-soft);
}

.post-comment-row input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.follow-card-head {
    justify-content: space-between;
    gap: 12px;
}

.app-bottom-nav {
    display: none;
}

@media (max-width: 1100px) {
    .app-topbar,
    .app-hero,
    .grid-main,
    .listing-panel-grid,
    .listing-center-layout,
    .reel-grid,
    .secondary-grid,
    .status-grid,
    .action-grid,
    .contact-grid,
    .auth-shell,
    .hero-grid,
    .social-feed-shell,
    .composer-tools,
    .story-row {
        grid-template-columns: 1fr;
    }

    .social-side {
        position: static;
    }

    .social-center-column {
        order: 1;
    }

    .social-side-left {
        order: 2;
    }

    .social-side-right {
        order: 3;
    }
}

@media (max-width: 860px) {
    .app-frame {
        width: min(100% - 18px, 1200px);
    }

    .app-topbar,
    .panel,
    .feature-stat,
    .app-hero,
    .auth-hero-card,
    .auth-form-card {
        border-radius: 22px;
    }

    .feed-card,
    .market-card-grid {
        grid-template-columns: 1fr;
    }

    .feed-card {
        grid-template-columns: 1fr;
    }

    .feed-visual {
        min-height: 220px;
        max-height: 220px;
        order: -1;
    }

    .post-media img {
        max-height: 320px;
    }

    .app-summary-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .app-summary-row::-webkit-scrollbar {
        display: none;
    }

    .summary-pill {
        flex: 0 0 auto;
    }
}

@media (max-width: 680px) {
    .app-frame {
        padding-top: 12px;
        padding-bottom: 92px;
    }

    .app-topbar,
    .app-hero,
    .panel,
    .feature-stat,
    .auth-hero-card,
    .auth-form-card {
        padding: 18px;
    }

    .brand-stack,
    .profile-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-mark {
        width: 72px;
    }

    .app-page-title {
        font-size: 1.4rem;
    }

    .hero-title {
        max-width: none;
        font-size: 1.7rem;
    }

    .composer-row,
    .form-grid-two,
    .dynamic-field-grid,
    .profile-hero,
    .market-card,
    .auth-two-column,
    .auth-captcha-row,
    .social-count-grid {
        grid-template-columns: 1fr;
    }

    .market-card {
        grid-template-rows: 176px 1fr;
    }

    .post-stats,
    .post-actions,
    .follow-card-head,
    .post-head,
    .post-author,
    .post-comment-row {
        flex-wrap: wrap;
    }

    .profile-avatar {
        width: 94px;
        height: 94px;
        font-size: 1.65rem;
    }

    .app-bottom-nav {
        position: fixed;
        left: 50%;
        bottom: 10px;
        z-index: 20;
        display: flex;
        gap: 6px;
        width: min(100% - 14px, 640px);
        padding: 7px;
        transform: translateX(-50%);
        border-radius: 20px;
        background: rgba(17, 17, 17, 0.94);
        box-shadow: 0 18px 40px rgba(17, 17, 17, 0.22);
        backdrop-filter: blur(18px);
    }

    .bottom-link {
        flex: 1 1 0;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 52px;
        border-radius: 14px;
        color: rgba(255, 255, 255, 0.74);
        font-size: 0.71rem;
        font-weight: 700;
        transition: transform var(--app-transition), background var(--app-transition), color var(--app-transition);
    }
}

@media (max-width: 520px) {
    .section-tabs,
    .utility-links,
    .chip-row,
    .category-cloud,
    .auth-link-row,
    .toolbar-row,
    .post-actions {
        gap: 8px;
    }

    .section-tab,
    .utility-links a,
    .summary-pill,
    .chip,
    .profile-stat,
    .category-cloud a,
    .toolbar-pill {
        min-height: 34px;
        padding: 0 12px;
        font-size: 0.79rem;
    }
}

.app-mode-social_feed {
    background:
        radial-gradient(circle at top left, rgba(18, 152, 181, 0.07), transparent 28%),
        linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
}

.app-mode-social_feed .app-frame {
    width: min(1320px, calc(100% - 36px));
    padding-top: 14px;
}

.social-shell-topbar {
    position: sticky;
    top: 12px;
    z-index: 16;
    display: grid;
    grid-template-columns: 220px minmax(260px, 420px) 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 34px rgba(17, 17, 17, 0.08);
    backdrop-filter: blur(18px);
}

.social-shell-brand,
.social-shell-user,
.social-shell-link,
.feed-filter-chip {
    transition: transform var(--app-transition), border-color var(--app-transition), box-shadow var(--app-transition), background var(--app-transition), color var(--app-transition);
}

.social-shell-brand,
.social-shell-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.social-shell-brand img {
    width: 48px;
    height: 48px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    object-fit: contain;
}

.social-shell-brand strong,
.social-shell-user strong {
    display: block;
    font-size: 0.96rem;
    line-height: 1.15;
    font-weight: 800;
}

.social-shell-brand span,
.social-shell-user span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.79rem;
    line-height: 1.35;
}

.social-shell-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
}

.social-shell-search i {
    color: #7d8791;
    font-size: 0.86rem;
}

.social-shell-search input {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.9rem;
}

.social-shell-search input:focus {
    outline: none;
}

.social-shell-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.social-shell-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #4f5a66;
    background: transparent;
    font-size: 0.84rem;
    font-weight: 800;
}

.social-shell-link i,
.bottom-link i {
    font-size: 0.88rem;
}

.social-shell-link:hover,
.social-shell-link:focus-visible,
.feed-filter-chip:hover,
.feed-filter-chip:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent-glow);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.social-shell-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-strong) 100%);
    box-shadow: 0 14px 28px rgba(255, 26, 18, 0.16);
}

.feed-workbench {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(300px, 336px);
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.feed-primary,
.feed-rail,
.feed-post-list,
.feed-people-list {
    display: grid;
    gap: 16px;
}

.feed-rail {
    position: sticky;
    top: 94px;
}

.feed-stream-head {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
}

.feed-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feed-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: #495460;
    font-size: 0.81rem;
    font-weight: 800;
}

.feed-filter-chip.is-active {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, #111111 0%, #2b343d 100%);
}

.feed-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
    gap: 18px;
    padding: 22px;
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, #111111 0%, #1e2730 100%);
    box-shadow: 0 24px 46px rgba(17, 17, 17, 0.14);
}

.feed-hero-panel .muted-copy,
.feed-hero-panel .panel-kicker {
    color: rgba(255, 255, 255, 0.74);
}

.feed-heading {
    margin-top: 6px;
    font-size: clamp(1.34rem, 2vw, 1.7rem);
    line-height: 1.16;
    font-weight: 700;
}

.feed-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.feed-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

.feed-stat-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.feed-stat-card span {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.feed-stat-card strong {
    font-size: 1.18rem;
    line-height: 1.1;
    font-weight: 700;
}

.feed-composer-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.feed-composer-head,
.feed-author-block,
.feed-post-header,
.feed-post-meta,
.feed-post-actions,
.feed-inline-reply,
.feed-mini-stats,
.feed-route-list,
.feed-post-statline {
    display: flex;
    align-items: center;
}

.feed-composer-head,
.feed-post-header,
.feed-post-meta {
    justify-content: space-between;
    gap: 14px;
}

.feed-author-block {
    gap: 12px;
    min-width: 0;
}

.feed-author-block strong {
    display: block;
    font-size: 0.94rem;
    line-height: 1.2;
    font-weight: 700;
}

.feed-composer-trigger {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-soft);
    color: #51606d;
    font-size: 0.94rem;
    line-height: 1.58;
    transition: border-color var(--app-transition), box-shadow var(--app-transition), background var(--app-transition);
}

.feed-composer-trigger:hover,
.feed-composer-trigger:focus-visible {
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-soft);
}

.feed-composer-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.feed-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform var(--app-transition), border-color var(--app-transition), box-shadow var(--app-transition);
}

.feed-tool:hover,
.feed-tool:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-soft);
}

.feed-highlight-strip {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.feed-highlight-strip::-webkit-scrollbar {
    display: none;
}

.feed-highlight-card {
    display: grid;
    gap: 10px;
    flex: 0 0 152px;
    min-height: 184px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(160deg, #111111 0%, #21303a 100%);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform var(--app-transition), box-shadow var(--app-transition);
    align-content: end;
}

.feed-highlight-card:hover,
.feed-highlight-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(17, 17, 17, 0.14);
}

.feed-highlight-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-strong) 100%);
    font-size: 0.8rem;
    font-weight: 800;
}

.feed-highlight-card strong {
    font-size: 0.92rem;
    line-height: 1.3;
    font-weight: 700;
}

.feed-highlight-card span:last-child {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.79rem;
    line-height: 1.45;
}

.feed-post-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.meta-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 8px;
    border-radius: 50%;
    background: #9aa3ad;
    vertical-align: middle;
}

.feed-status-pill,
.feed-tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--accent-glow);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: 0.78rem;
    font-weight: 800;
}

.feed-post-content {
    display: grid;
    gap: 8px;
}

.feed-post-title {
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 700;
}

.feed-post-copy {
    color: #55606b;
    font-size: 0.92rem;
    line-height: 1.66;
}

.feed-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feed-post-media {
    overflow: hidden;
    margin: 0;
    border-radius: 18px;
    background: #edf1f4;
}

.feed-post-media img {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

.feed-post-meta {
    display: grid;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #eef2f5;
}

.feed-post-statline {
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: #6c7680;
    font-size: 0.82rem;
    font-weight: 700;
}

.feed-post-actions {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.feed-post-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1 1 140px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--app-transition), border-color var(--app-transition), box-shadow var(--app-transition), background var(--app-transition), color var(--app-transition);
}

.feed-post-action:hover,
.feed-post-action:focus-visible {
    transform: translateY(-1px);
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-soft);
}

.feed-post-action.is-active,
.feed-post-action.is-done {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-strong) 100%);
}

.feed-inline-reply {
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.feed-inline-reply input {
    width: 100%;
    min-height: 40px;
    padding: 0 4px;
    border: none;
    background: transparent;
    color: var(--text);
}

.feed-inline-reply input:focus {
    outline: none;
}

.feed-rail-card {
    padding: 18px;
}

.feed-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.feed-mini-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.feed-mini-card span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feed-mini-card strong {
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 800;
}

.feed-profile-card {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.feed-mini-stats,
.feed-route-list {
    gap: 8px;
    flex-wrap: wrap;
}

.feed-mini-stats span,
.feed-route-list a,
.feed-side-tags a,
.feed-person-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

.feed-side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.feed-person-card {
    display: grid;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f5;
}

.feed-person-card:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.feed-person-link {
    width: fit-content;
    color: var(--accent-text);
    border-color: var(--accent-glow);
    background: var(--accent-soft);
}

@media (max-width: 1180px) {
    .social-shell-topbar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .social-shell-search,
    .social-shell-nav {
        grid-column: 1 / -1;
    }

    .social-shell-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .social-shell-nav::-webkit-scrollbar {
        display: none;
    }

    .feed-workbench,
    .feed-hero-panel {
        grid-template-columns: 1fr;
    }

    .feed-rail {
        position: static;
    }
}

@media (max-width: 860px) {
    .app-mode-social_feed .app-frame {
        width: min(100% - 20px, 1320px);
    }

    .social-shell-topbar {
        top: 10px;
        gap: 12px;
        padding: 12px;
    }

    .social-shell-user {
        display: none;
    }

    .feed-composer-tools,
    .feed-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feed-post-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .app-mode-social_feed .app-frame {
        width: min(100% - 14px, 1320px);
        padding-top: 10px;
    }

    .social-shell-topbar {
        position: static;
        grid-template-columns: 1fr;
    }

    .social-shell-brand,
    .social-shell-search {
        width: 100%;
    }

    .social-shell-link {
        min-height: 40px;
        padding: 0 12px;
    }

    .feed-stream-head,
    .feed-hero-panel,
    .feed-post-card,
    .feed-composer-card,
    .feed-rail-card {
        padding: 16px;
    }

    .feed-composer-tools,
    .feed-mini-grid,
    .feed-hero-stats {
        grid-template-columns: 1fr;
    }

    .feed-composer-head,
    .feed-post-header,
    .feed-author-block {
        align-items: flex-start;
        flex-direction: column;
    }

    .feed-post-actions,
    .feed-post-statline,
    .feed-mini-stats,
    .feed-route-list {
        gap: 8px;
    }

    .feed-post-action,
    .feed-person-link,
    .feed-route-list a {
        width: 100%;
    }
}
