:root {
    --bg: #f8efe5;
    --bg-strong: #f1e2d2;
    --surface: rgba(255, 250, 245, 0.9);
    --surface-strong: #fff9f2;
    --ink: #2f221b;
    --ink-soft: #665347;
    --line: rgba(90, 63, 46, 0.14);
    --brand: #ba542e;
    --brand-dark: #8f3d22;
    --accent: #d7a34b;
    --mint: #5a786f;
    --shadow: 0 18px 48px rgba(64, 39, 24, 0.12);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(215, 163, 75, 0.18), transparent 25%),
        radial-gradient(circle at top right, rgba(90, 120, 111, 0.14), transparent 22%),
        linear-gradient(180deg, #fcf8f3 0%, #f8efe5 42%, #f4e7d9 100%);
}

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

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

[hidden] {
    display: none !important;
}

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

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px 16px;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 0%, rgba(136, 184, 199, 0.16), transparent 26%),
        radial-gradient(circle at 80% 8%, rgba(239, 198, 163, 0.24), transparent 22%);
}

.container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(248, 239, 229, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.nav-row,
.footer-grid,
.hero-grid,
.two-col,
.dashboard-grid,
.form-grid,
.cards-grid,
.message-grid {
    display: grid;
    gap: 24px;
}

.nav-row {
    grid-template-columns: auto minmax(0, 1fr) minmax(280px, 360px) auto;
    align-items: center;
    padding: 18px 0;
}

.logo {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.logo strong {
    display: block;
    font-size: 18px;
    line-height: 1.05;
}

.logo small {
    display: block;
    color: var(--ink-soft);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 11px;
}

.logo-mark {
    width: 72px;
    height: 48px;
    flex: 0 0 72px;
    display: inline-block;
    color: transparent;
    font-size: 0;
    overflow: hidden;
    background: center / contain no-repeat url("/assets/brand/logo-mark.svg");
}

.logo-mark::after {
    content: none;
}

.nav-links,
.nav-actions,
.tag-row,
.badge-row,
.action-row,
.checks,
.photo-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu summary {
    list-style: none;
}

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

.mobile-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(280px, calc(100vw - 32px));
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 250, 245, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.mobile-menu-panel a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.nav-links {
    justify-content: center;
    color: var(--ink-soft);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.nav-search input {
    min-width: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.88);
}

.nav-search-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.nav-search-navlink {
    justify-content: flex-end;
}

.nav-notification-button {
    position: relative;
    gap: 10px;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.nav-links a:hover,
.footer-links a:hover {
    color: var(--brand-dark);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(64, 39, 24, 0.08);
}

.button-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(143, 61, 34, 0.25);
}

.button-secondary {
    background: rgba(255, 251, 245, 0.9);
}

.button-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--brand-dark);
    box-shadow: none;
    padding-inline: 10px;
}

.button-ghost:hover {
    box-shadow: none;
    background: rgba(186, 84, 46, 0.06);
}

.page-shell {
    padding: 46px 0 88px;
}

.hero-grid,
.two-col,
.dashboard-grid,
.cards-grid,
.message-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
}

.dashboard-grid {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 32px;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 32px;
}

.security-grid {
    align-items: start;
}

.legal-prose {
    max-width: 880px;
}

.legal-prose h3,
.legal-prose p {
    margin: 0;
}

.legal-prose p {
    line-height: 1.7;
}

.auth-layout {
    align-items: stretch;
}

.auth-primary-card,
.auth-support-card {
    min-height: 100%;
}

.auth-primary-card {
    gap: 18px;
    align-content: start;
    grid-auto-rows: max-content;
}

.auth-support-card {
    gap: 18px;
    align-content: start;
    grid-auto-rows: max-content;
    justify-content: start;
}

.auth-header,
.auth-copy-stack,
.auth-form-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
    gap: 12px;
}

.auth-layout .auth-header,
.auth-layout .auth-copy-stack,
.auth-layout .auth-form-stack {
    margin: 0;
}

.auth-layout .auth-copy-stack > :first-child,
.auth-layout .auth-form-stack > :first-child {
    margin-top: 0;
}

.auth-header .tag-row {
    gap: 8px;
}

.auth-header .tag {
    font-size: 11px;
}

@media (min-width: 981px) {
    .auth-layout .auth-support-card .eyebrow {
        align-self: start;
        min-width: 252px;
        justify-content: center;
        text-align: center;
    }

    .auth-layout .auth-support-card .tag-row .tag {
        min-width: 214px;
        justify-content: center;
        text-align: center;
    }
}

.auth-actions {
    display: grid;
    gap: 10px;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    min-height: 54px;
    font-size: 16px;
}

.auth-secondary-link {
    width: 100%;
    justify-content: center;
}

.tag-verified {
    background: rgba(222, 245, 233, 0.92);
    border-color: rgba(122, 170, 138, 0.28);
    color: #276443;
}

.tag-warning {
    background: rgba(255, 242, 219, 0.94);
    border-color: rgba(208, 150, 48, 0.28);
    color: #8a5c0a;
}

.tag-danger {
    background: rgba(255, 232, 228, 0.94);
    border-color: rgba(188, 77, 59, 0.3);
    color: #9b2f20;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    align-items: start;
    gap: 28px;
}

.hero-copy {
    grid-column: span 7;
    max-width: 720px;
}

.hero-card {
    grid-column: span 5;
}

.two-col > * {
    grid-column: auto;
}

.two-col > .hero-copy {
    grid-column: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    justify-self: start;
    max-width: max-content;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 249, 242, 0.86);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.display-title,
h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(36px, 5vw, 62px);
    margin: 18px 0;
    line-height: 1;
}

h2 {
    font-size: clamp(30px, 3vw, 40px);
    margin: 0 0 14px;
}

h3 {
    font-size: 24px;
    margin: 0 0 10px;
}

p {
    line-height: 1.7;
}

.lead {
    color: var(--ink-soft);
    font-size: 18px;
    max-width: 66ch;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.profile-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card-action {
    position: relative;
    z-index: 2;
}

.profile-decision-guide {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 9px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(186, 84, 46, 0.14);
    background:
        radial-gradient(circle at 10% 12%, rgba(186, 84, 46, 0.12), transparent 32%),
        rgba(255, 251, 246, 0.9);
}

.profile-decision-guide small {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.profile-decision-guide strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
}

.profile-decision-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.profile-decision-options span {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(90, 63, 46, 0.1);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.field-error input,
.field-error select,
.field-error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18);
}

.field-error-text {
    color: #b91c1c;
    font-weight: 700;
}

.range-field {
    gap: 12px;
}

.range-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.range-heading strong {
    font-size: 14px;
    color: var(--brand-dark);
}

.range-field input[type="range"] {
    accent-color: var(--brand);
}

.range-field small {
    display: grid;
    gap: 4px;
}

.range-reading {
    color: var(--brand-dark);
    font-weight: 700;
}

.error-summary ul {
    margin: 8px 0 0;
}

.error-summary a {
    text-decoration: underline;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(64, 39, 24, 0.14);
    border-color: rgba(186, 84, 46, 0.18);
}

.profile-card .photo-panel {
    min-height: 0;
    height: clamp(210px, 20vw, 238px);
    aspect-ratio: auto;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.home-trust-grid,
.register-promise-grid,
.detail-preview-grid {
    margin-top: 18px;
}

.auth-helper-row {
    margin-top: -2px;
}

.stat strong {
    display: block;
    font-size: 32px;
}

.muted {
    color: var(--ink-soft);
}

.flash {
    padding: 15px 18px;
    border-radius: 20px;
    margin-bottom: 18px;
    border: 1px solid rgba(64, 39, 24, 0.08);
    box-shadow: 0 16px 30px rgba(64, 39, 24, 0.08);
    font-weight: 700;
    line-height: 1.45;
}

.flash-success {
    background: linear-gradient(135deg, rgba(90, 120, 111, 0.17), rgba(255, 250, 244, 0.92));
    border-color: rgba(90, 120, 111, 0.18);
    color: #355249;
}

.flash-error {
    background: linear-gradient(135deg, rgba(186, 84, 46, 0.14), rgba(255, 250, 244, 0.94));
    border-color: rgba(186, 84, 46, 0.2);
    color: var(--brand-dark);
}

.profile-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: start;
}

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

.profile-card-body {
    display: grid;
    gap: 15px;
    padding: 20px 22px 22px;
    flex: 1;
}

.profile-card-details {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 250, 244, 0.88);
    border: 1px solid rgba(90, 63, 46, 0.1);
}

.profile-card-details summary {
    cursor: pointer;
    list-style: none;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.profile-card-details-body {
    display: grid;
    gap: 14px;
}

.profile-heading-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.profile-meta {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.profile-meta h3 {
    margin: 0;
    font-size: clamp(20px, 1.9vw, 28px);
    line-height: 1.05;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #182028;
}

.gradient-amber { background: linear-gradient(135deg, #f0c16c, #f8dec0); }
.gradient-sky { background: linear-gradient(135deg, #9fd2de, #d5ecf2); }
.gradient-mint { background: linear-gradient(135deg, #99c4b8, #dff0eb); }
.gradient-rose { background: linear-gradient(135deg, #e7b1a0, #f7dfd8); }
.gradient-indigo { background: linear-gradient(135deg, #bcc8ef, #e0e7fb); }

.headline {
    color: var(--ink-soft);
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    max-width: 34ch;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.score-pill {
    border-radius: 22px;
    background: var(--brand);
    color: #fff;
    padding: 16px 18px;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 14px 28px rgba(143, 61, 34, 0.22);
}

.score-pill span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.score-pill strong {
    display: block;
    font-size: 28px;
}

.score-pill-compact {
    min-width: 108px;
    padding: 12px 14px;
    border-radius: 20px;
    flex-shrink: 0;
}

.score-pill-compact strong {
    font-size: 24px;
}

.score-pill-plan strong {
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: 0.08em;
}

.bio {
    margin: 0;
    color: var(--ink-soft);
}

.profile-card .bio {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.profile-card-media {
    position: relative;
}

.profile-media-overlay {
    position: absolute;
    inset: 16px 16px auto 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    pointer-events: none;
}

.media-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 251, 247, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(47, 34, 27, 0.12);
}

.media-chip-score {
    background: rgba(186, 84, 46, 0.94);
    color: #fff;
    border-color: transparent;
}

.meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--ink-soft);
    font-size: 12px;
}

.meta-inline span {
    position: relative;
}

.meta-inline span:not(:first-child)::before {
    content: "•";
    position: absolute;
    left: -10px;
    color: rgba(102, 83, 71, 0.5);
}

.compatibility-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(90, 63, 46, 0.08);
}

.compatibility-item {
    display: grid;
    gap: 8px;
}

.compatibility-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-soft);
}

.compatibility-label strong {
    color: var(--ink);
}

.compatibility-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(102, 83, 71, 0.12);
    overflow: hidden;
}

.compatibility-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d7a34b, #ba542e);
}

.tag-row-emphasis .tag {
    background: rgba(255, 248, 240, 0.96);
}

.prompt-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 800;
}

.profile-card .action-row {
    margin-top: auto;
    padding-top: 6px;
}

.profile-location {
    font-size: 14px;
}

.tag,
.badge {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
}

.tag {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.tag-accent {
    background: rgba(186, 84, 46, 0.12);
    border-color: rgba(186, 84, 46, 0.28);
    color: var(--brand-dark);
}

.tag-muted {
    background: rgba(255, 251, 246, 0.9);
    border-color: rgba(186, 84, 46, 0.16);
    color: var(--ink-soft);
}

.badge {
    background: rgba(215, 163, 75, 0.18);
    color: var(--brand-dark);
}

.badge-muted {
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink-soft);
}

.prompt-box {
    margin-top: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
    padding: 16px;
}

.prompt-box strong {
    display: block;
    margin-bottom: 8px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.photo-grid {
    align-items: stretch;
}

.photo-grid-profile {
    margin-bottom: 24px;
}

.photo-panel {
    width: 100%;
    min-height: 144px;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.photo-panel-image-fallback {
    display: none;
    width: 100%;
    min-height: 100%;
    position: absolute;
    inset: 0;
    padding: 16px;
    align-items: stretch;
    justify-content: stretch;
    isolation: isolate;
}

.photo-panel-image-failed .photo-panel-image-fallback {
    display: flex;
}

.photo-panel-image-failed img {
    display: none;
}

.photo-panel img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center 24%;
    display: block;
}

.photo-panel-large {
    flex: 1 1 220px;
    min-height: 220px;
    aspect-ratio: 16 / 9;
}

.photo-grid-secondary .photo-panel-large {
    min-height: 180px;
}

.photo-panel-large img {
    min-height: 100%;
}

.photo-panel-fallback {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 16px;
    isolation: isolate;
}

.photo-panel[data-photo-panel] {
    position: relative;
}

.photo-panel-glow {
    position: absolute;
    inset: 0;
    opacity: 0.9;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.55), transparent 20%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.42), transparent 24%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    z-index: 0;
}

.photo-panel-copy {
    position: relative;
    z-index: 1;
    align-self: end;
    display: inline-grid;
    gap: 5px;
    max-width: min(82%, 260px);
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    box-shadow: 0 14px 30px rgba(47, 34, 27, 0.1);
}

.photo-panel-copy small {
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 700;
}

.photo-panel-copy strong {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-family: Georgia, "Times New Roman", serif;
}

.photo-panel-copy span {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.4;
}

.prompt-box p {
    margin-bottom: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cards-grid > * {
    grid-column: auto;
}

.browse-results {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.sidebar {
    grid-column: auto;
}

.main-column {
    grid-column: auto;
}

.scene-alpine {
    background:
        linear-gradient(180deg, rgba(216, 239, 235, 0.94), rgba(170, 210, 199, 0.95)),
        linear-gradient(135deg, #cde8e1, #8fb7ad);
}

.scene-alpine::before,
.scene-alpine::after,
.scene-city::before,
.scene-city::after,
.scene-cafe::before,
.scene-cafe::after,
.scene-sunset::before,
.scene-sunset::after,
.scene-desert::before,
.scene-desert::after,
.scene-soda::before,
.scene-soda::after,
.scene-paper::before,
.scene-paper::after {
    content: "";
    position: absolute;
    z-index: 0;
}

.scene-alpine::before {
    left: -6%;
    right: 34%;
    bottom: -10%;
    height: 58%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(61, 104, 93, 0.16));
    clip-path: polygon(0 100%, 18% 66%, 34% 88%, 51% 44%, 70% 83%, 100% 24%, 100% 100%);
}

.scene-alpine::after {
    left: 26%;
    right: -8%;
    bottom: -4%;
    height: 54%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(44, 90, 79, 0.22));
    clip-path: polygon(0 100%, 23% 52%, 45% 82%, 63% 35%, 83% 74%, 100% 42%, 100% 100%);
}

.scene-cafe {
    background:
        linear-gradient(180deg, rgba(247, 226, 206, 0.96), rgba(220, 179, 146, 0.96)),
        linear-gradient(135deg, #f7dec9, #d8ab81);
}

.scene-cafe::before {
    width: 144px;
    height: 144px;
    right: 18px;
    top: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 24%, rgba(125, 76, 42, 0.18) 25% 48%, rgba(255, 255, 255, 0) 49%);
}

.scene-cafe::after {
    right: 42px;
    top: 48px;
    width: 76px;
    height: 48px;
    border-radius: 0 0 18px 18px;
    border: 4px solid rgba(105, 65, 38, 0.22);
    border-top-width: 8px;
    background: rgba(255, 255, 255, 0.28);
}

.scene-city {
    background:
        linear-gradient(180deg, rgba(223, 229, 252, 0.96), rgba(175, 185, 232, 0.95)),
        linear-gradient(135deg, #dce4fb, #9aa9df);
}

.scene-city::before {
    inset: auto 0 0 0;
    height: 52%;
    background:
        linear-gradient(90deg, rgba(45, 60, 112, 0.2) 0 8%, transparent 8% 12%, rgba(45, 60, 112, 0.22) 12% 20%, transparent 20% 24%, rgba(45, 60, 112, 0.14) 24% 32%, transparent 32% 36%, rgba(45, 60, 112, 0.24) 36% 46%, transparent 46% 50%, rgba(45, 60, 112, 0.18) 50% 60%, transparent 60% 64%, rgba(45, 60, 112, 0.22) 64% 76%, transparent 76% 80%, rgba(45, 60, 112, 0.18) 80% 92%, transparent 92% 100%);
}

.scene-city::after {
    left: 0;
    right: 0;
    bottom: 30%;
    height: 2px;
    background: rgba(255, 255, 255, 0.34);
}

.scene-sunset {
    background:
        linear-gradient(180deg, rgba(255, 220, 190, 0.98), rgba(235, 138, 104, 0.92)),
        linear-gradient(135deg, #ffd7ba, #ef8d6f);
}

.scene-sunset::before {
    width: 124px;
    height: 124px;
    top: 18px;
    right: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(255, 241, 197, 0.56) 48%, rgba(255, 255, 255, 0) 64%);
}

.scene-sunset::after {
    left: -8%;
    right: -4%;
    bottom: -6%;
    height: 42%;
    background: linear-gradient(180deg, rgba(116, 64, 49, 0), rgba(116, 64, 49, 0.18));
    clip-path: polygon(0 100%, 0 54%, 16% 72%, 33% 62%, 50% 76%, 68% 60%, 83% 68%, 100% 50%, 100% 100%);
}

.scene-desert {
    background:
        linear-gradient(180deg, rgba(255, 232, 201, 0.98), rgba(230, 190, 138, 0.96)),
        linear-gradient(135deg, #ffe5c8, #debb85);
}

.scene-desert::before {
    left: -4%;
    right: 18%;
    bottom: -8%;
    height: 38%;
    background: rgba(176, 123, 64, 0.2);
    clip-path: polygon(0 100%, 0 52%, 28% 38%, 52% 58%, 78% 26%, 100% 44%, 100% 100%);
}

.scene-desert::after {
    width: 96px;
    height: 96px;
    right: 24px;
    top: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.68), rgba(255, 248, 220, 0.36) 52%, rgba(255, 255, 255, 0) 64%);
}

.scene-soda {
    background:
        linear-gradient(180deg, rgba(255, 220, 226, 0.98), rgba(236, 152, 176, 0.94)),
        linear-gradient(135deg, #ffd6df, #e68da9);
}

.scene-soda::before {
    width: 112px;
    height: 112px;
    top: 20px;
    right: 26px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.84) 0 18%, rgba(255, 255, 255, 0) 19%), radial-gradient(circle at 28% 34%, rgba(255, 255, 255, 0.66) 0 12%, rgba(255, 255, 255, 0) 13%), radial-gradient(circle at 72% 60%, rgba(255, 255, 255, 0.56) 0 10%, rgba(255, 255, 255, 0) 11%);
}

.scene-soda::after {
    inset: auto 18px 16px auto;
    width: 88px;
    height: 120px;
    border-radius: 30px 30px 18px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(188, 74, 104, 0.26));
    border: 3px solid rgba(255, 255, 255, 0.35);
}

.scene-paper {
    background:
        linear-gradient(180deg, rgba(246, 235, 212, 0.98), rgba(233, 212, 173, 0.94)),
        linear-gradient(135deg, #f8ebd6, #dcc18b);
}

.scene-paper::before {
    top: 22px;
    right: 20px;
    width: 118px;
    height: 150px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18));
    box-shadow: -12px 12px 0 rgba(169, 136, 86, 0.12);
}

.scene-paper::after {
    top: 42px;
    right: 40px;
    width: 78px;
    height: 2px;
    background: rgba(145, 111, 67, 0.22);
    box-shadow: 0 18px 0 rgba(145, 111, 67, 0.18), 0 36px 0 rgba(145, 111, 67, 0.16), 0 54px 0 rgba(145, 111, 67, 0.14);
}

.filter-list {
    display: grid;
    gap: 14px;
}

.browse-shell {
    gap: 30px;
}

.onboarding-banner {
    display: grid;
    gap: 22px;
    padding: 26px 28px;
    background:
        radial-gradient(circle at top right, rgba(215, 163, 75, 0.22), transparent 26%),
        linear-gradient(135deg, rgba(255, 251, 245, 0.98), rgba(255, 245, 237, 0.92));
}

.onboarding-banner-copy {
    display: grid;
    gap: 12px;
}

.onboarding-banner-copy h3,
.onboarding-banner-copy p {
    margin: 0;
}

.onboarding-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.onboarding-step-card {
    gap: 14px;
    min-height: 100%;
}

.onboarding-persona-details {
    margin-top: 2px;
}

.persona-lane-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.persona-lane-grid-compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.persona-lane-card {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid rgba(90, 63, 46, 0.1);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(215, 163, 75, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.72);
}

.persona-lane-card small {
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.persona-lane-card strong {
    color: var(--ink);
    font-size: 15px;
}

.persona-lane-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

.tag-success {
    background: rgba(90, 120, 111, 0.16);
    color: #355249;
    border-color: rgba(53, 82, 73, 0.14);
}

.browse-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 20px 24px;
    align-items: start;
    padding: 26px;
}

.browse-hero-copy {
    display: grid;
    gap: 12px;
}

.browse-hero-copy .lead {
    max-width: 40ch;
}

.browse-hero-note {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid var(--line);
}

.browse-hero-note .muted {
    margin: 0;
    max-width: 62ch;
}

.browse-hero-note .nav-actions {
    align-items: center;
}

.browse-hero-actions {
    align-items: center;
}

.browse-member-search {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1.1fr);
    gap: 16px 20px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.browse-member-search-copy {
    display: grid;
    gap: 6px;
}

.browse-member-search-copy label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.browse-member-search-copy .muted {
    margin: 0;
}

.browse-member-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.browse-member-search-controls input {
    min-width: 0;
}

.search-history-row {
    margin-top: 2px;
}

.tag-link {
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tag-link:hover {
    transform: translateY(-1px);
    border-color: rgba(186, 84, 46, 0.24);
    background: rgba(255, 247, 240, 0.92);
}

.browse-hero-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.browse-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
}

.browse-kpi {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.browse-kpi strong {
    font-size: 28px;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
}

.browse-kpi span {
    color: var(--ink-soft);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.quick-explore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.quick-explore-card {
    display: grid;
    gap: 10px;
    min-height: 100%;
    background:
        radial-gradient(circle at top right, rgba(215, 163, 75, 0.2), transparent 28%),
        rgba(255, 250, 245, 0.88);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    position: relative;
    overflow: hidden;
}

.quick-explore-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(64, 39, 24, 0.1);
    border-color: rgba(186, 84, 46, 0.18);
}

.quick-explore-card::after {
    content: ">";
    position: absolute;
    right: 24px;
    top: 24px;
    color: rgba(186, 84, 46, 0.4);
    font-size: 22px;
    font-weight: 700;
}

.quick-explore-card strong,
.quick-explore-card span,
.quick-explore-card small,
.quick-explore-card em {
    margin: 0;
}

.quick-explore-card small {
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 800;
}

.quick-explore-card span {
    color: var(--ink-soft);
    line-height: 1.55;
}

.quick-explore-card em {
    color: var(--brand-dark);
    font-style: normal;
    font-weight: 700;
}

.quick-explore-card-active {
    border-color: rgba(186, 84, 46, 0.24);
    box-shadow: 0 18px 38px rgba(186, 84, 46, 0.14);
}

.browse-layout {
    align-items: start;
}

.browse-focus-shell {
    gap: 14px;
    padding: 18px 20px;
}

.browse-focus-shell .ticket-section-heading strong,
.browse-focus-shell .ticket-section-heading p {
    margin: 0;
}

.browse-focus-details {
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 251, 246, 0.8);
}

.browse-sidebar {
    position: sticky;
    top: 96px;
}

.browse-sidebar-intro {
    gap: 14px;
    padding: 22px 24px;
}

.browse-sidebar-intro h3,
.browse-sidebar-intro p {
    margin: 0;
}

.saved-search-stack {
    gap: 12px;
}

.saved-search-card {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 251, 246, 0.88);
    border: 1px solid var(--line);
}

.saved-search-card p {
    margin: 4px 0 0;
    color: var(--ink-soft);
}

.saved-search-insight-details {
    gap: 8px;
    margin-top: 2px;
}

.saved-search-insight-details summary {
    font-size: 13px;
}

.saved-search-shell {
    gap: 14px;
}

.saved-search-details,
.shortlist-note-details,
.timeline-history-card,
.utility-details {
    display: grid;
    gap: 12px;
}

.saved-search-details summary,
.shortlist-note-details summary,
.timeline-history-card summary,
.utility-details summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--brand-dark);
    font-weight: 700;
    list-style: none;
}

.saved-search-details summary::-webkit-details-marker,
.shortlist-note-details summary::-webkit-details-marker,
.timeline-history-card summary::-webkit-details-marker,
.utility-details summary::-webkit-details-marker {
    display: none;
}

.saved-search-details[open] summary,
.shortlist-note-details[open] summary,
.timeline-history-card[open] summary,
.utility-details[open] summary {
    margin-bottom: 2px;
}

.hero-audience-row,
.auth-return-row,
.register-signal-row,
.shortlist-helper-row,
.safety-quick-actions {
    margin-top: 4px;
}

.browse-focus-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.section-jump-row {
    margin-top: 4px;
}

.utility-details summary .tag {
    pointer-events: none;
}

.utility-inline-details {
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 251, 246, 0.88);
}

.utility-inline-details > :not(summary) {
    margin-top: 2px;
}

.utility-details-stack {
    display: grid;
    gap: 14px;
}

.utility-support-card {
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 251, 246, 0.84);
    border: 1px solid rgba(90, 63, 46, 0.1);
    box-shadow: 0 12px 24px rgba(64, 39, 24, 0.04);
}

.match-sidecar-details > .muted,
.utility-tools-details > .muted,
.safety-history-details > .muted {
    margin: 0;
}

.saved-search-edit-form {
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(186, 84, 46, 0.12);
}

.saved-search-edit-form .field {
    margin: 0;
}

.saved-search-edit-form .field span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.saved-search-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.saved-search-edit-form .muted {
    margin: 0;
    font-size: 13px;
}

.saved-search-card-active {
    border-color: rgba(186, 84, 46, 0.24);
    box-shadow: 0 14px 28px rgba(186, 84, 46, 0.08);
}

.saved-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shortlist-layout {
    align-items: start;
}

.shortlist-empty-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.shortlist-empty-primary {
    grid-column: span 2;
    background:
        radial-gradient(circle at 14% 18%, rgba(186, 84, 46, 0.12), transparent 32%),
        linear-gradient(135deg, rgba(255, 251, 246, 0.98), rgba(247, 239, 229, 0.88));
}

.shortlist-mission-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-color: rgba(90, 120, 111, 0.18);
    background:
        radial-gradient(circle at 12% 18%, rgba(90, 120, 111, 0.12), transparent 32%),
        linear-gradient(135deg, rgba(255, 251, 246, 0.96), rgba(247, 239, 229, 0.9));
}

.shortlist-mission-card small {
    display: block;
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.shortlist-mission-card strong {
    display: block;
    color: var(--ink);
    font-size: 22px;
}

.shortlist-mission-card p {
    max-width: 72ch;
    margin: 6px 0 0;
    color: var(--ink-soft);
    line-height: 1.5;
}

.shortlist-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.shortlist-progress span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(90, 63, 46, 0.14);
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink-soft);
    font-weight: 900;
}

.shortlist-progress span.is-filled {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 14px 28px rgba(186, 84, 46, 0.22);
}

.shortlist-checklist {
    counter-reset: shortlist-step;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shortlist-checklist li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(90, 63, 46, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

.shortlist-checklist li::before {
    counter-increment: shortlist-step;
    content: counter(shortlist-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-row: span 2;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(186, 84, 46, 0.12);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
}

.shortlist-checklist strong,
.shortlist-checklist span {
    margin: 0;
}

.shortlist-checklist span {
    color: var(--ink-soft);
    line-height: 1.45;
}

.shortlist-manage-card {
    gap: 16px;
}

.shortlist-context-details {
    padding-top: 4px;
}

.shortlist-manage-list {
    display: grid;
    gap: 10px;
}

.shortlist-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shortlist-manage-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 249, 242, 0.86);
    border: 1px solid var(--line);
}

.shortlist-manage-row input[type="checkbox"] {
    inline-size: 18px;
    block-size: 18px;
}

.shortlist-manage-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shortlist-manage-copy {
    display: grid;
    gap: 4px;
}

.shortlist-manage-copy strong,
.shortlist-manage-copy span {
    margin: 0;
}

.shortlist-manage-tags {
    gap: 8px;
}

.shortlist-manage-tags .tag {
    padding: 6px 10px;
}

.shortlist-manage-copy span {
    color: var(--ink-soft);
    font-size: 14px;
}

.shortlist-manage-copy small {
    color: var(--brand-dark);
    font-size: 12px;
    line-height: 1.45;
}

.saved-search-top-note {
    margin-top: 8px;
}

.saved-search-cue-note {
    color: var(--brand-dark);
}

.shortlist-note-stack {
    gap: 12px;
}

.shortlist-note-details {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.92);
    border: 1px solid var(--line);
}

.shortlist-action-stack {
    display: grid;
    gap: 8px;
    justify-items: stretch;
}

.shortlist-inline-action {
    margin: 0;
}

.shortlist-inline-action .button {
    width: 100%;
}

.shortlist-note-card {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.92);
    border: 1px solid var(--line);
}

.shortlist-note-card textarea {
    min-height: 90px;
    resize: vertical;
}

.shortlist-decision-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shortlist-decision-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.shortlist-decision-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.shortlist-decision-pill span {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink-soft);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.shortlist-decision-pill input:checked + span {
    background: rgba(186, 84, 46, 0.14);
    border-color: rgba(186, 84, 46, 0.28);
    color: var(--brand-dark);
    box-shadow: 0 10px 18px rgba(186, 84, 46, 0.1);
}

.shortlist-compare-card {
    gap: 18px;
}

.shortlist-compare-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.shortlist-compare-panel {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
}

.shortlist-compare-panel p {
    margin: 0;
}

.shortlist-compare-actions {
    flex-wrap: wrap;
}

.shortlist-compare-tags {
    gap: 8px;
}

.shortlist-note-tags {
    margin-bottom: 4px;
}

.active-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.active-filter-chip {
    background: rgba(186, 84, 46, 0.09);
    border-color: rgba(186, 84, 46, 0.18);
    color: var(--brand-dark);
}

.results-toolbar-tight {
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.filter-list-layered {
    gap: 16px;
}

.member-search-field {
    gap: 8px;
}

.member-search-field input {
    padding-right: 18px;
}

.feed-settings-row {
    padding-bottom: 4px;
}

.feed-settings-row .check {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 249, 242, 0.82);
}

.feed-settings-row .check span {
    font-weight: 700;
}

.filter-group {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
    overflow: hidden;
}

.filter-group summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    font-weight: 800;
}

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

.filter-group summary::after {
    content: "+";
    float: right;
    color: var(--brand-dark);
    font-size: 18px;
    line-height: 1;
}

.filter-group[open] summary::after {
    content: "-";
}

.filter-group-body {
    display: grid;
    gap: 14px;
    padding: 0 20px 20px;
}

.browse-results-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px 22px;
}

.browse-results-toolbar .muted {
    max-width: 60ch;
}

.browse-results-toolbar .tag-row {
    justify-content: flex-start;
}

.browse-action-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-color: rgba(90, 120, 111, 0.18);
    background:
        radial-gradient(circle at 12% 20%, rgba(90, 120, 111, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 251, 246, 0.96), rgba(247, 239, 229, 0.9));
}

.browse-action-status small {
    display: block;
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.browse-action-status strong {
    display: block;
    color: var(--ink);
    font-size: 20px;
}

.browse-action-status p {
    margin: 4px 0 0;
    color: var(--ink-soft);
    line-height: 1.5;
}

.browse-action-status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.browse-action-status-actions form {
    margin: 0;
}

.shortlist-action-status {
    border-color: rgba(186, 84, 46, 0.18);
    background:
        radial-gradient(circle at 12% 20%, rgba(186, 84, 46, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 251, 246, 0.97), rgba(247, 239, 229, 0.9));
}

.results-count {
    margin-top: 10px;
}

.compact-search-card {
    padding: 18px 20px;
    border-color: rgba(90, 63, 46, 0.1);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(255, 255, 255, 0.8));
    box-shadow: 0 16px 30px rgba(64, 39, 24, 0.05);
}

.section-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.section-search-form input {
    min-width: 0;
    min-height: 50px;
}

.section-search-form .button {
    min-height: 50px;
}

.section-search-form-tight {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.thread-state-row,
.admin-pattern-switch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.conversion-scope-row {
    margin-top: -2px;
}

.thread-state-row .button,
.admin-pattern-switch-row .button {
    min-height: 42px;
}

.drilldown-candidate-list {
    display: grid;
    gap: 12px;
}

.thread-management-strip {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.message-inbox-mission {
    display: grid;
    gap: 14px;
    overflow: hidden;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(186, 84, 46, 0.16);
    background:
        radial-gradient(circle at 10% 10%, rgba(186, 84, 46, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 248, 239, 0.96), rgba(255, 255, 255, 0.76));
    box-shadow: 0 18px 34px rgba(64, 39, 24, 0.06);
}

.message-inbox-mission > div:first-child {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.message-inbox-mission small,
.thread-next-move small,
.message-next-move-card small,
.composer-writing-brief small {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.message-inbox-mission strong,
.message-next-move-card strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
}

.message-inbox-mission p,
.message-next-move-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.55;
}

.message-inbox-mission-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.message-inbox-mission-stats span {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(90, 63, 46, 0.1);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.message-inbox-mission > .button {
    width: 100%;
}

.message-inbox-mission-stats strong {
    color: var(--brand-dark);
    font-size: 20px;
}

.thread-bulk-strip,
.notification-digest-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.thread-management-card {
    gap: 10px;
    padding: 14px 14px 12px;
    background: rgba(255, 251, 246, 0.88);
    border: 1px solid rgba(90, 63, 46, 0.12);
    box-shadow: 0 14px 28px rgba(64, 39, 24, 0.05);
}

.thread-bulk-card,
.notification-digest-card {
    align-content: start;
}

.notification-status-card {
    align-content: start;
}

.notification-lanes-card {
    background:
        radial-gradient(circle at 14% 8%, rgba(215, 163, 75, 0.16), transparent 34%),
        rgba(255, 251, 246, 0.88);
}

.notification-lanes-card .support-item {
    padding: 13px 14px;
}

.notification-mission-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.8fr);
    gap: 18px;
    align-items: stretch;
    border-color: rgba(186, 84, 46, 0.16);
    background:
        radial-gradient(circle at 12% 18%, rgba(215, 163, 75, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(255, 248, 239, 0.96), rgba(255, 255, 255, 0.78));
    box-shadow: 0 18px 36px rgba(64, 39, 24, 0.07);
}

.notification-mission-card > div:first-child,
.notification-action-card {
    display: grid;
    gap: 9px;
    align-content: start;
}

.notification-mission-card small,
.notification-action-card small {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.notification-mission-card strong {
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 0.98;
}

.notification-mission-card p,
.notification-action-card p {
    margin: 0;
    color: var(--ink-soft);
}

.notification-mission-actions {
    display: grid;
    gap: 10px;
}

.notification-mission-actions span {
    display: grid;
    gap: 3px;
    align-content: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(90, 63, 46, 0.1);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
}

.notification-mission-actions strong {
    color: var(--brand-dark);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.1;
}

.notification-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.notification-action-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 251, 246, 0.78));
    border-color: rgba(90, 63, 46, 0.1);
}

.notification-action-card strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.2;
}

.notification-action-card .button {
    width: 100%;
    margin-top: 4px;
}

.compact-status-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px 18px;
}

.notification-utility-details,
.profile-photo-details {
    gap: 10px;
}

.notification-utility-details summary,
.profile-photo-details summary {
    padding-bottom: 2px;
}

.shortlist-empty-guide {
    align-content: start;
}

.shortlist-empty-guide .button {
    width: 100%;
}

.thread-management-card .nav-actions {
    gap: 8px;
}

.thread-management-card .button {
    min-height: 42px;
}

.notification-summary-grid,
.safety-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-summary-card {
    min-height: 100%;
}

.notification-filter-row {
    margin-bottom: 4px;
}

.timeline-history-card > .support-item {
    margin-top: 4px;
}

.profile-housekeeping-card {
    padding: 16px 18px;
}

.safety-status-card .tag-row {
    margin: 0;
}

.safety-status-card p {
    margin: 0;
}

.safety-mission-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr) auto;
    gap: 18px;
    align-items: center;
    border-color: rgba(186, 84, 46, 0.16);
    background:
        radial-gradient(circle at 10% 14%, rgba(215, 163, 75, 0.15), transparent 32%),
        linear-gradient(135deg, rgba(255, 248, 239, 0.96), rgba(255, 255, 255, 0.76));
    box-shadow: 0 18px 36px rgba(64, 39, 24, 0.07);
}

.safety-mission-card > div:first-child,
.safety-next-step-card {
    display: grid;
    gap: 8px;
}

.safety-mission-card small,
.safety-next-step-card small {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.safety-mission-card strong,
.safety-next-step-card strong {
    color: var(--ink);
    font-size: 20px;
    line-height: 1.25;
}

.safety-mission-card p,
.safety-next-step-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.55;
}

.safety-mission-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.safety-mission-steps span {
    display: grid;
    gap: 3px;
    padding: 11px;
    border-radius: 18px;
    border: 1px solid rgba(90, 63, 46, 0.1);
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.safety-mission-steps span.is-complete {
    border-color: rgba(90, 120, 111, 0.18);
    background: rgba(90, 120, 111, 0.1);
    color: #355249;
}

.safety-mission-steps strong {
    color: var(--brand-dark);
    font-size: 22px;
}

.safety-next-step-card {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(186, 84, 46, 0.14);
    background:
        radial-gradient(circle at top right, rgba(186, 84, 46, 0.1), transparent 34%),
        rgba(255, 251, 246, 0.92);
}

.safety-report-promise {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.safety-report-promise span {
    padding: 9px 10px;
    border-radius: 999px;
    border: 1px solid rgba(90, 63, 46, 0.1);
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.safety-inbox-card {
    border-color: rgba(186, 84, 46, 0.14);
}

.safety-report-help {
    margin-top: 2px;
}

.search-reason-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 249, 242, 0.82);
    border: 1px solid rgba(186, 84, 46, 0.14);
}

.search-reason-card small {
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 800;
}

.search-reason-card p {
    margin: 0;
    color: var(--ink);
    line-height: 1.55;
}

.behavior-reason-card p {
    color: var(--ink-soft);
}

.touchpoint-cue-row {
    margin-top: -2px;
}

.touchpoint-cue-detail {
    font-size: 13px;
}

.shortlist-note-callout {
    background: rgba(255, 247, 236, 0.92);
    border-color: rgba(186, 84, 46, 0.2);
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
}

.pagination-summary {
    display: grid;
    gap: 4px;
}

.pagination-summary strong {
    font-size: 18px;
}

.pagination-summary span {
    color: var(--ink-soft);
    font-size: 14px;
}

.pagination-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pagination-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(64, 39, 24, 0.08);
    border-color: rgba(186, 84, 46, 0.18);
}

.pagination-link.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(143, 61, 34, 0.2);
}

.thread-search-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.thread-search-reasons-compact {
    margin-top: 6px;
}

.thread-search-reasons-compact .tag {
    white-space: nowrap;
}

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

.field span {
    font-size: 14px;
    font-weight: 700;
}

.field small {
    color: var(--ink-soft);
}

.check {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
}

.check input {
    width: auto;
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

.form-sections {
    display: grid;
    gap: 18px;
}

.wizard-shell,
.wizard-finish-grid,
.register-sidebar-steps,
.register-sidebar-step {
    display: grid;
    gap: 18px;
}

.register-page-full {
    width: 100%;
    gap: 18px;
}

.register-page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 4px 2px 0;
}

.register-page-header h2,
.register-page-header .lead,
.register-inline-note {
    margin: 0;
}

.register-page-header h2 {
    max-width: 17ch;
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 0.94;
    letter-spacing: -0.03em;
}

.register-page-header .lead {
    max-width: 58ch;
    font-size: 16px;
    line-height: 1.48;
}

.register-inline-note {
    max-width: 36ch;
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
}

.register-page-form {
    display: grid;
    gap: 14px;
}

.register-status-card,
.safety-helper-card {
    gap: 12px;
}

.register-helper-details {
    gap: 14px;
}

.register-promise-grid .compact-card,
.home-trust-grid .compact-card,
.detail-preview-grid .compact-card {
    min-height: 100%;
}

.register-wizard {
    display: grid;
    gap: 22px;
}

.wizard-progress {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(252, 245, 233, 0.94));
    border: 1px solid rgba(223, 206, 184, 0.92);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 14px 34px -22px rgba(120, 80, 30, 0.4);
}

.wizard-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(223, 206, 184, 0.96);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 239, 223, 0.96));
    color: var(--brand);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    white-space: nowrap;
}

.wizard-step-pills {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.wizard-step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.wizard-step-pill:hover,
.wizard-step-pill:focus-visible {
    transform: translateY(-1px);
    background: rgba(186, 84, 46, 0.06);
    border-color: rgba(186, 84, 46, 0.12);
}

.wizard-step-pill.active {
    background: linear-gradient(180deg, rgba(253, 243, 225, 0.98), rgba(250, 235, 207, 0.96));
    border-color: rgba(224, 189, 138, 0.96);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset, 0 12px 22px -18px rgba(164, 99, 31, 0.9);
}

.wizard-step-pill.is-locked {
    opacity: 0.55;
    cursor: default;
}

.wizard-step-pill.is-locked:hover,
.wizard-step-pill.is-locked:focus-visible {
    transform: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.wizard-step-pill-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.wizard-step-kicker,
.wizard-step-check {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 800;
    white-space: nowrap;
}

.wizard-step-check {
    display: none;
    font-size: 12px;
    letter-spacing: 0;
}

.wizard-step-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
}

.wizard-step-pill.active .wizard-step-name {
    color: var(--ink);
    font-weight: 700;
}

.wizard-step-pill.is-done .wizard-step-kicker {
    display: none;
}

.wizard-step-pill.is-done .wizard-step-check {
    display: inline;
}

.wizard-step-pill.is-done .wizard-step-name {
    color: var(--ink-soft);
}

.wizard-progress-track {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.wizard-progress-track strong {
    color: var(--brand);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.wizard-progress-bar {
    width: 132px;
    height: 9px;
    border-radius: 999px;
    background: rgba(121, 93, 66, 0.14);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(120, 80, 30, 0.14);
}

.wizard-progress-bar span {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d7a34b, #ba542e);
    transition: width 180ms ease;
}

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

.register-panel {
    background: rgba(255, 253, 249, 0.98);
    border: 1px solid rgba(239, 228, 210, 0.96);
    border-radius: 24px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 60px -40px rgba(120, 80, 30, 0.55);
    overflow: hidden;
}

.register-panel-head {
    display: grid;
    gap: 10px;
    padding: 30px 34px 22px;
    border-bottom: 1px solid rgba(241, 231, 214, 0.96);
}

.register-panel-head h2,
.register-panel-head p {
    margin: 0;
}

.register-panel-head h2 {
    font-size: clamp(36px, 4vw, 52px);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.register-panel-subtitle {
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.52;
}

.register-panel-note {
    max-width: 64ch;
    font-size: 14px;
    line-height: 1.5;
}

.register-panel-body {
    padding: 28px 34px 8px;
}

.register-wizard .form-section {
    display: grid;
    gap: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.register-wizard .wizard-step {
    transition: opacity 160ms ease, transform 160ms ease;
}

.register-wizard .wizard-step[hidden] {
    display: none !important;
}

.register-panel-foot {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 20px 34px 28px;
    border-top: 1px solid rgba(241, 231, 214, 0.96);
}

.wizard-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wizard-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(102, 83, 71, 0.16);
    transition: transform 160ms ease, background 160ms ease;
}

.wizard-dot.on {
    background: var(--brand);
    transform: scale(1.08);
}

.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.wizard-footer .button {
    min-height: 54px;
    padding-inline: 24px;
}

.wizard-primary-action {
    min-width: 212px;
    font-size: 17px;
    font-weight: 700;
}

.register-pane-photo-callout {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(223, 206, 184, 0.96);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(250, 239, 214, 0.88), rgba(255, 249, 240, 0.9));
}

.register-photo-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 1px solid rgba(223, 206, 184, 0.96);
    background: repeating-linear-gradient(45deg, rgba(246, 236, 217, 0.96) 0 8px, rgba(241, 228, 205, 0.96) 8px 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-align: center;
}

.register-inline-label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.register-step-hint {
    margin: -6px 0 0;
}

.wizard-note-card,
.wizard-checklist-card {
    background: rgba(255, 255, 255, 0.68);
}

.register-done-state {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.done-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(215, 163, 75, 0.18), rgba(186, 84, 46, 0.18));
    color: var(--brand);
    font-size: 18px;
    font-weight: 800;
}

.register-done-state h3,
.register-done-state p {
    margin: 0;
}

.register-review-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.register-review-row {
    padding: 14px 16px;
    border: 1px solid rgba(223, 206, 184, 0.86);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.register-review-row .k,
.register-review-row .v {
    margin: 0;
}

.register-review-row .k {
    margin-bottom: 4px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.register-review-row .v {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 1120px) {
    .register-page-header {
        align-items: start;
        flex-direction: column;
    }

    .register-inline-note {
        max-width: 62ch;
        text-align: left;
    }

    .wizard-progress {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .wizard-step-pills {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-top: 12px;
        border-top: 1px solid rgba(241, 231, 214, 0.96);
    }
}

@media (max-width: 840px) {
    .register-panel-head,
    .register-panel-body,
    .register-panel-foot {
        padding-left: 24px;
        padding-right: 24px;
    }

    .wizard-step-pills,
    .register-review-grid,
    .upload-dropzone-grid,
    .wizard-slider-grid,
    .checks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .register-panel-foot {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .wizard-footer {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-footer .button,
    .wizard-primary-action {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .wizard-progress,
    .wizard-progress-track,
    .wizard-step-pills,
    .register-review-grid,
    .upload-dropzone-grid,
    .wizard-slider-grid,
    .checks-grid {
        grid-template-columns: 1fr;
    }

    .wizard-progress {
        gap: 10px;
    }

    .wizard-step-pill {
        justify-content: flex-start;
    }

    .register-pane-photo-callout {
        align-items: start;
        flex-direction: column;
    }

    .register-panel-head h2,
    .register-page-header h2 {
        max-width: none;
    }

    .persona-lane-grid,
    .persona-lane-grid-compact {
        grid-template-columns: 1fr;
    }
}

.upload-dropzone-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.upload-requirements-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(90, 63, 46, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(circle at 10% 0%, rgba(215, 163, 75, 0.16), transparent 34%),
        rgba(255, 250, 244, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.upload-requirements-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 17px;
}

.upload-requirements-card p {
    margin: 0;
}

.upload-requirements-list {
    display: grid;
    gap: 9px;
}

.upload-requirements-list span {
    display: block;
    padding: 10px 12px;
    border: 1px solid rgba(90, 63, 46, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.upload-dropzone-field {
    display: grid;
    gap: 10px;
}

.upload-dropzone {
    position: relative;
    gap: 10px;
    padding: 0;
    overflow: hidden;
    min-height: 168px;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-within,
.upload-dropzone.is-dragging {
    transform: translateY(-1px);
    border-color: rgba(186, 84, 46, 0.24);
    box-shadow: 0 16px 30px rgba(64, 39, 24, 0.08);
    background: rgba(255, 250, 245, 0.86);
}

.upload-dropzone.field-error {
    border-color: rgba(186, 46, 46, 0.34);
}

.upload-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-dropzone-body {
    display: grid;
    gap: 12px;
    padding: 16px;
    min-height: 168px;
    align-content: start;
}

.upload-dropzone-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1.45 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(215, 163, 75, 0.12), rgba(186, 84, 46, 0.14));
    border: 1px dashed rgba(186, 84, 46, 0.2);
    color: var(--brand-dark);
    font-size: 34px;
    font-weight: 700;
}

.upload-dropzone-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-dropzone-copy {
    display: grid;
    gap: 4px;
}

.upload-dropzone-copy strong {
    font-size: 16px;
}

.upload-dropzone-copy small,
.upload-dropzone-meta {
    color: var(--ink-soft);
    line-height: 1.45;
}

.upload-dropzone-meta {
    font-size: 13px;
}

.upload-dropzone-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upload-dropzone-tools .button {
    min-height: 40px;
}

.upload-crop-editor {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 252, 247, 0.92);
    border: 1px solid rgba(186, 84, 46, 0.14);
}

.upload-crop-preview {
    display: flex;
    justify-content: center;
}

.upload-crop-preview canvas {
    width: min(100%, 240px);
    height: auto;
    aspect-ratio: 4 / 5;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(64, 39, 24, 0.08);
    box-shadow: 0 14px 28px rgba(64, 39, 24, 0.08);
    background: linear-gradient(135deg, rgba(215, 163, 75, 0.1), rgba(186, 84, 46, 0.14));
}

.upload-crop-controls {
    display: grid;
    gap: 10px;
}

.upload-crop-control {
    display: grid;
    gap: 6px;
}

.upload-crop-control span {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
}

.upload-crop-control input[type="range"] {
    width: 100%;
}

.upload-crop-note {
    margin: 0;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.45;
}

.form-section {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--line);
}

.form-section-header {
    display: grid;
    gap: 8px;
}

.form-section-header h3,
.form-section-header p,
.form-page-header h2,
.form-page-header h3,
.form-page-header p {
    margin: 0;
}

.form-section-header small {
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 800;
}

.wizard-step {
    transition: opacity 160ms ease, transform 160ms ease;
}

.wizard-step[hidden] {
    display: none !important;
}

.wizard-section-header {
    gap: 10px;
}

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

.inset-panel {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid var(--line);
}

.section-stack {
    display: grid;
    gap: 24px;
}

.auth-primary-card,
.auth-support-card {
    display: grid;
    gap: 18px;
    align-content: start;
}

.auth-copy-stack,
.auth-form-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
    gap: 12px;
}

.auth-copy-stack > div,
.auth-form-stack > div,
.auth-form-stack .field,
.auth-form-stack .field input,
.auth-form-stack .field select,
.auth-form-stack .field textarea {
    width: 100%;
}

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

.checks-grid .check {
    width: 100%;
    justify-content: space-between;
}

.wizard-optional-card {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(90, 63, 46, 0.1);
}

.wizard-optional-card strong,
.wizard-optional-card p {
    margin: 0;
}

.wizard-details {
    display: grid;
    gap: 14px;
}

.wizard-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--brand-dark);
}

.wizard-details[open] summary {
    margin-bottom: 14px;
}

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

.wizard-footer {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.wizard-primary-action {
    width: 100%;
    min-height: 58px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.wizard-footer [data-wizard-next],
.wizard-footer [data-wizard-submit] {
    grid-column: 2 / -1;
}

.wizard-footer .button:last-child {
    justify-self: end;
}

.profile-editor-layout {
    grid-template-columns: minmax(236px, 268px) minmax(0, 1fr);
    gap: 18px;
}

.profile-editor-layout .sidebar {
    min-width: 0;
}

.profile-summary-card {
    overflow: hidden;
    gap: 14px;
    padding: 18px;
}

.profile-summary-card .photo-grid-profile {
    margin-bottom: 2px;
}

.profile-summary-card .photo-panel-large {
    min-height: 124px;
    max-height: 124px;
}

.profile-summary-card .photo-panel-copy {
    display: none;
}

.profile-summary-card .photo-panel-copy strong {
    font-size: clamp(14px, 1.4vw, 20px);
    line-height: 1.02;
}

.profile-summary-card .photo-panel-copy span {
    font-size: 11px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.profile-summary-header {
    display: grid;
    gap: 10px;
}

.profile-summary-card .profile-top {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.profile-summary-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.profile-summary-plan {
    min-width: 0;
    width: auto;
    max-width: 100%;
    justify-self: start;
    padding: 10px 13px;
}

.profile-summary-card h2 {
    font-size: clamp(24px, 2vw, 30px);
    line-height: 0.96;
    margin: 0;
    word-break: break-word;
}

.profile-summary-card .headline,
.profile-summary-card .bio {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.profile-summary-card .headline {
    -webkit-line-clamp: 1;
    font-size: 14px;
}

.profile-summary-card .bio {
    -webkit-line-clamp: 4;
    font-size: 14px;
    line-height: 1.55;
}

.profile-summary-card .tag-row {
    gap: 6px;
}

.profile-summary-card .tag {
    font-size: 11px;
    padding: 6px 9px;
}

.profile-editor-photo-empty {
    display: grid;
    gap: 12px;
    align-items: center;
    grid-template-columns: 60px minmax(0, 1fr);
    min-height: 124px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 251, 245, 0.98), rgba(255, 245, 237, 0.92));
    border: 1px dashed rgba(186, 84, 46, 0.22);
}

.profile-editor-photo-empty strong,
.profile-editor-photo-empty p {
    margin: 0;
}

.profile-editor-photo-empty-mark {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-dark);
    background: linear-gradient(135deg, rgba(215, 163, 75, 0.2), rgba(186, 84, 46, 0.18));
}

.profile-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-summary-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(90, 63, 46, 0.1);
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.35;
}

.register-sidebar-steps {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(90, 63, 46, 0.08);
}

.register-sidebar-step {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(90, 63, 46, 0.08);
}

.register-sidebar-step:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.onboarding-layout,
.profile-editor-layout,
.profile-layout {
    align-items: start;
}

.onboarding-layout,
.profile-editor-layout {
    grid-template-columns: minmax(236px, 268px) minmax(0, 1fr);
}

.profile-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.profile-side-stack,
.onboarding-layout .sidebar,
.profile-editor-layout .sidebar {
    position: sticky;
    top: 96px;
}

.profile-editor-layout .sidebar {
    gap: 16px;
}

.profile-editor-layout .sidebar .card {
    padding: 18px;
}

/* Desktop: independent sidebar scroll with softer visual treatment */
@media (min-width: 981px) {
    .onboarding-layout .sidebar,
    .browse-sidebar,
    .profile-editor-layout > .sidebar,
    .profile-side-stack,
    .message-grid .sidebar {
        max-height: calc(100vh - 116px);
        overflow-y: scroll;
        overflow-x: visible;
        overscroll-behavior: contain;
        scrollbar-gutter: stable both-edges;
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
    }

    .onboarding-layout .sidebar::-webkit-scrollbar,
    .browse-sidebar::-webkit-scrollbar,
    .profile-editor-layout > .sidebar::-webkit-scrollbar,
    .profile-side-stack::-webkit-scrollbar,
    .message-grid .sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .onboarding-layout .sidebar::-webkit-scrollbar-track,
    .browse-sidebar::-webkit-scrollbar-track,
    .profile-editor-layout > .sidebar::-webkit-scrollbar-track,
    .profile-side-stack::-webkit-scrollbar-track,
    .message-grid .sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .onboarding-layout .sidebar:hover,
    .browse-sidebar:hover,
    .profile-editor-layout > .sidebar:hover,
    .profile-side-stack:hover,
    .message-grid .sidebar:hover {
        scrollbar-width: thin;
        scrollbar-color: rgba(90, 63, 46, 0.24) transparent;
    }

    .onboarding-layout .sidebar::-webkit-scrollbar-thumb,
    .browse-sidebar::-webkit-scrollbar-thumb,
    .profile-editor-layout > .sidebar::-webkit-scrollbar-thumb,
    .profile-side-stack::-webkit-scrollbar-thumb,
    .message-grid .sidebar::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 999px;
    }

    .onboarding-layout .sidebar:hover::-webkit-scrollbar-thumb,
    .browse-sidebar:hover::-webkit-scrollbar-thumb,
    .profile-editor-layout > .sidebar:hover::-webkit-scrollbar-thumb,
    .profile-side-stack:hover::-webkit-scrollbar-thumb,
    .message-grid .sidebar:hover::-webkit-scrollbar-thumb {
        background: rgba(90, 63, 46, 0.24);
        border-radius: 999px;
    }
}

.form-page-header {
    display: grid;
    gap: 10px;
}

.rich-profile-details .form-page-header p.muted + p.muted {
    display: none;
}

.message-grid .sidebar {
    grid-column: span 5;
}

.message-grid .main-column {
    grid-column: span 7;
}

.thread-list {
    display: grid;
    gap: 12px;
}

.ticket-list {
    display: grid;
    gap: 12px;
}

.ticket-list-item {
    display: grid;
    gap: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
    padding: 18px;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ticket-list-item:hover,
.ticket-list-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(186, 84, 46, 0.24);
    box-shadow: 0 12px 30px rgba(64, 39, 24, 0.08);
    background: rgba(255, 251, 246, 0.9);
}

.ticket-list-item.active {
    border-color: rgba(186, 84, 46, 0.35);
    background: rgba(255, 247, 239, 0.96);
    box-shadow: 0 16px 34px rgba(64, 39, 24, 0.1);
}

.ticket-list-topline,
.ticket-list-meta,
.ticket-section-heading,
.ticket-header-row,
.ticket-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ticket-list-item strong,
.ticket-list-item p {
    margin: 0;
}

.ticket-list-subline,
.ticket-list-preview,
.ticket-list-meta {
    color: var(--ink-soft);
}

.ticket-list-subline {
    font-size: 13px;
}

.ticket-list-preview {
    font-size: 14px;
    line-height: 1.55;
}

.ticket-list-tags {
    gap: 8px;
}

.ticket-list-tags .tag {
    font-size: 11px;
}

.ticket-list-meta {
    font-size: 12px;
    flex-wrap: wrap;
}

.ticket-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ticket-stat {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(90, 63, 46, 0.08);
}

.ticket-stat strong {
    font-size: 28px;
    line-height: 1;
}

.ticket-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ticket-status-open {
    background: rgba(186, 84, 46, 0.12);
    color: var(--brand-dark);
}

.ticket-status-reviewing {
    background: rgba(215, 163, 75, 0.18);
    color: #7a5312;
}

.ticket-status-resolved {
    background: rgba(90, 120, 111, 0.16);
    color: #355249;
}

.thread-item {
    display: block;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(90, 63, 46, 0.1);
    padding: 18px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.thread-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(64, 39, 24, 0.08);
    border-color: rgba(186, 84, 46, 0.18);
    background: rgba(255, 251, 246, 0.92);
}

.thread-item.active {
    border-color: rgba(186, 84, 46, 0.35);
    background: rgba(255, 247, 239, 0.92);
    box-shadow: 0 16px 32px rgba(64, 39, 24, 0.1);
}

.thread-item strong,
.thread-item p {
    margin: 0;
}

.thread-item-header,
.thread-person,
.message-header-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.thread-person {
    justify-content: flex-start;
    min-width: 0;
}

.thread-person > div:last-child {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.thread-time {
    color: var(--ink-soft);
    font-size: 12px;
    white-space: nowrap;
}

.thread-time-stack {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.thread-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    color: var(--ink-soft);
    font-size: 12px;
}

.thread-inline-meta span {
    position: relative;
}

.thread-inline-meta span + span::before {
    content: "•";
}

.thread-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.thread-kicker {
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.thread-momentum-note {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
}

.thread-inline-meta span + span::before {
    content: "•";
    margin-right: 10px;
    color: rgba(90, 63, 46, 0.32);
}

.thread-inline-meta span + span::before {
    content: "•";
    margin-right: 10px;
    color: rgba(90, 63, 46, 0.32);
}

.thread-inline-meta span + span::before {
    content: "\2022";
    margin-right: 10px;
    color: rgba(90, 63, 46, 0.32);
}

.thread-next-move {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    margin-top: 4px;
    padding: 9px 11px;
    border-radius: 16px;
    background: rgba(255, 248, 239, 0.86);
    border: 1px solid rgba(186, 84, 46, 0.12);
}

.thread-next-move strong {
    color: var(--brand-dark);
    font-size: 13px;
    line-height: 1.3;
}

.avatar-thread {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 18px;
}

.thread-person-large {
    align-items: center;
}

.messages {
    display: grid;
    gap: 14px;
    margin: 0;
}

.messages-card {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 251, 246, 0.82), rgba(255, 255, 255, 0.72));
    border-color: rgba(90, 63, 46, 0.1);
    box-shadow: 0 18px 34px rgba(64, 39, 24, 0.05);
}

.message-row {
    display: flex;
    justify-content: flex-start;
}

.message-row.me {
    justify-content: flex-end;
}

.message {
    max-width: min(78%, 680px);
    border-radius: 22px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(90, 63, 46, 0.1);
    box-shadow: 0 14px 28px rgba(64, 39, 24, 0.06);
}

.message.me {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 34px rgba(143, 61, 34, 0.18);
}

.message p,
.message small {
    margin: 0;
}

.message p {
    line-height: 1.65;
}

.message-header-card,
.composer-card,
.profile-showcase-card {
    padding: 24px;
    border-color: rgba(90, 63, 46, 0.1);
    box-shadow: 0 18px 34px rgba(64, 39, 24, 0.05);
}

.profile-summary-card {
    padding: 18px;
    border-color: rgba(90, 63, 46, 0.1);
    box-shadow: 0 18px 34px rgba(64, 39, 24, 0.05);
}

.profile-quick-read-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.profile-quick-read-card,
.profile-next-move-brief {
    display: grid;
    gap: 7px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(186, 84, 46, 0.13);
    background:
        radial-gradient(circle at 12% 14%, rgba(186, 84, 46, 0.1), transparent 34%),
        rgba(255, 251, 246, 0.9);
}

.profile-quick-read-card small,
.profile-next-move-brief small {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.profile-quick-read-card strong,
.profile-next-move-brief strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
}

.profile-quick-read-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

.profile-next-move-card {
    border-color: rgba(186, 84, 46, 0.16);
    background:
        radial-gradient(circle at top right, rgba(215, 163, 75, 0.13), transparent 32%),
        rgba(255, 251, 246, 0.94);
}

.profile-next-move-card h3 {
    margin-bottom: 0;
}

.public-preview-guide {
    background:
        radial-gradient(circle at top right, rgba(215, 163, 75, 0.12), transparent 28%),
        rgba(255, 251, 246, 0.94);
}

.message-header-row {
    align-items: center;
}

.message-header-person {
    min-width: 0;
}

.message-header-actions {
    align-items: flex-start;
}

.message-thread-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tag-emphasis {
    background: rgba(186, 84, 46, 0.1);
    border-color: rgba(186, 84, 46, 0.18);
    color: var(--brand-dark);
}

.message-next-move-card {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-color: rgba(186, 84, 46, 0.16);
    background:
        radial-gradient(circle at 12% 16%, rgba(215, 163, 75, 0.16), transparent 32%),
        rgba(255, 251, 246, 0.94);
    box-shadow: 0 18px 34px rgba(64, 39, 24, 0.06);
}

.message-next-move-card > div:first-child {
    display: grid;
    gap: 7px;
}

.message-next-move-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.ticket-header-row {
    align-items: flex-start;
}

.ticket-header-row > * {
    min-width: 0;
}

.ticket-status-form {
    display: grid;
    gap: 12px;
    width: min(100%, 250px);
    flex: 0 0 250px;
}

.ticket-thread-heading {
    display: grid;
    gap: 6px;
}

.ticket-thread-heading h3,
.ticket-thread-heading p {
    margin: 0;
}

.ticket-thread {
    min-height: 280px;
}

.ticket-message {
    display: grid;
    gap: 10px;
}

.ticket-message p {
    line-height: 1.6;
}

.ticket-message-meta {
    align-items: baseline;
}

.ticket-message-meta strong,
.ticket-message-meta small {
    margin: 0;
}

.ticket-message-meta small {
    opacity: 0.72;
}

.nav-actions-column {
    display: grid;
    gap: 12px;
}

.nav-actions-column > * {
    width: 100%;
}

.message-preview-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 252, 247, 0.76);
    border: 1px solid rgba(90, 63, 46, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.message-preview-card small,
.message-preview-card span {
    color: var(--ink-soft);
    font-size: 12px;
}

.message-preview-card p,
.mini-fact-list strong,
.mini-fact-list span {
    margin: 0;
}

.message-preview-card-tight {
    gap: 5px;
    padding: 14px 16px;
}

.message-preview-card-tight p {
    font-size: 14px;
    line-height: 1.5;
}

.match-note-card {
    background: rgba(255, 251, 246, 0.9);
}

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

.match-card-status-copy {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}

.match-card-actions {
    align-items: stretch;
}

.match-card-actions .button {
    min-width: 160px;
}

.match-context-details,
.profile-detail-details {
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 251, 246, 0.86);
    border: 1px solid rgba(90, 63, 46, 0.1);
    box-shadow: 0 14px 28px rgba(64, 39, 24, 0.05);
}

.match-context-details summary,
.profile-detail-details summary {
    align-items: center;
}

.match-context-details .search-reason-card,
.match-context-details .message-preview-card,
.profile-detail-details .message-preview-card {
    background: rgba(255, 255, 255, 0.78);
}

.match-outcome-card .nav-actions {
    gap: 8px;
}

.profile-detail-details .cards-grid {
    align-items: start;
}

.profile-detail-details .prompt-grid {
    margin-top: 2px;
}

.message-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
    opacity: 0.8;
    font-size: 12px;
}

.message.me .message-meta-row {
    opacity: 0.9;
}

.reaction-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.reaction-form {
    margin: 0;
}

.reaction-button {
    min-width: 0;
    padding: 9px 13px;
    border-radius: 999px;
    border-color: rgba(90, 63, 46, 0.16);
    background: rgba(255, 250, 245, 0.9);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.reaction-button:hover {
    border-color: rgba(186, 84, 46, 0.24);
    background: rgba(255, 244, 235, 0.96);
}

.message-gif {
    display: block;
    width: min(100%, 320px);
    border-radius: 16px;
    margin-bottom: 12px;
}

.message-audio {
    width: min(100%, 320px);
    margin-bottom: 12px;
}

.message-composer-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.message-composer-header h3,
.message-composer-header p {
    margin: 0;
}

.message-tool-grid {
    align-items: start;
}

.composer-writing-brief {
    display: grid;
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 248, 239, 0.88);
    border: 1px solid rgba(186, 84, 46, 0.12);
}

.composer-writing-brief span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(90, 63, 46, 0.1);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.composer-helper-tags {
    margin-top: -4px;
}

.suggestion-panel {
    background: rgba(255, 250, 245, 0.84);
}

.utility-tools-details,
.suggestion-panel {
    box-shadow: 0 18px 34px rgba(64, 39, 24, 0.05);
}

.soft-card {
    background: rgba(255, 251, 246, 0.82);
}

.archived-thread-list {
    margin-top: 16px;
}

.thread-item-archived {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.badge-alert {
    background: rgba(186, 84, 46, 0.12);
    color: var(--brand-dark);
    border-color: rgba(186, 84, 46, 0.18);
}

.privacy-note-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px dashed var(--line);
}

.privacy-note-card small {
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 800;
}

.privacy-note-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.privacy-note-card-large {
    padding: 20px 22px;
}

.not-found-actions {
    flex-wrap: wrap;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.suggestion-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.suggestion-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(64, 39, 24, 0.08);
    border-color: rgba(186, 84, 46, 0.18);
}

.suggestion-card small {
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 800;
}

.suggestion-card strong {
    font-size: 16px;
    line-height: 1.5;
}

.suggestion-card-form button {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.match-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.match-summary-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    background:
        radial-gradient(circle at top right, rgba(215, 163, 75, 0.16), transparent 30%),
        rgba(255, 250, 245, 0.86);
    border-color: rgba(90, 63, 46, 0.1);
    box-shadow: 0 18px 34px rgba(64, 39, 24, 0.05);
}

.match-summary-card small {
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 800;
}

.match-summary-card strong,
.match-summary-card p {
    margin: 0;
}

.match-summary-card strong {
    font-size: clamp(28px, 2vw, 36px);
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
}

.match-card {
    overflow: hidden;
    display: grid;
    gap: 0;
    padding: 0;
    border-color: rgba(90, 63, 46, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 248, 242, 0.92));
    box-shadow: 0 18px 34px rgba(64, 39, 24, 0.06);
}

.match-card-media .photo-panel {
    border-radius: 0;
    border: 0;
    box-shadow: none;
    min-height: 0;
    height: 220px;
}

.match-card-body {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.match-card-tags {
    gap: 8px;
}

.match-opener-card {
    background: rgba(255, 252, 247, 0.92);
}

.match-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.prompt-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-editor-form {
    gap: 20px;
}

.editor-subsection-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.editor-subsection-card {
    min-height: 100%;
    align-content: start;
}

.editor-subsection-card h4,
.editor-subsection-card p {
    margin: 0;
}

.profile-editor-form .form-section {
    gap: 16px;
}

.profile-editor-form .form-section-header p + p {
    margin-top: -2px;
}

.editor-note-card {
    gap: 8px;
    padding: 16px 18px;
}

.editor-advanced-card summary {
    font-size: 15px;
}

.editor-checklist-card {
    gap: 16px;
}

.prompt-card {
    display: grid;
    gap: 10px;
    min-height: 100%;
}

.profile-signal-list {
    display: grid;
    gap: 10px;
}

.profile-signal-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--line);
}

.profile-signal-item small {
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 800;
}

.profile-signal-item strong {
    font-size: 15px;
    line-height: 1.5;
}

.compact-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.mini-fact-list {
    display: grid;
    gap: 12px;
}

.mini-fact-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.mini-fact-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mini-fact-list strong {
    color: var(--ink);
}

.mini-fact-list span {
    color: var(--ink-soft);
    text-align: right;
}

.bio-large {
    font-size: 18px;
    line-height: 1.8;
}

.profile-side-stack .wizard-details {
    margin-top: 4px;
}

.compatibility-strip-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px 20px;
}

.support-list,
.perk-list {
    display: grid;
    gap: 14px;
}

.premium-summary-grid {
    align-items: stretch;
}

.premium-summary-card,
.premium-status-card,
.premium-note-card {
    background: rgba(255, 251, 246, 0.88);
}

.premium-action-stack {
    gap: 12px;
}

.premium-decision-card {
    display: grid;
    gap: 16px;
    border-color: rgba(186, 84, 46, 0.16);
    background:
        radial-gradient(circle at 12% 14%, rgba(215, 163, 75, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(255, 248, 239, 0.96), rgba(255, 255, 255, 0.78));
    box-shadow: 0 18px 36px rgba(64, 39, 24, 0.07);
}

.premium-decision-card > div:first-child {
    display: grid;
    gap: 8px;
}

.premium-decision-card small,
.premium-button-brief strong,
.premium-compare-card .premium-compare-head span {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.premium-decision-card > div:first-child > strong {
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1;
}

.premium-decision-card p,
.premium-button-brief span {
    margin: 0;
    color: var(--ink-soft);
}

.premium-decision-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.premium-decision-grid > div {
    display: grid;
    gap: 7px;
    align-content: start;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(90, 63, 46, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.premium-decision-grid span {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.premium-decision-grid strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.25;
}

.premium-button-brief {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px dashed rgba(186, 84, 46, 0.22);
    background: rgba(255, 251, 246, 0.78);
}

.premium-action-stack form,
.premium-action-stack .button {
    width: 100%;
}

.premium-compare-card {
    gap: 14px;
    background: rgba(255, 251, 246, 0.86);
}

.premium-compare-table {
    display: grid;
    gap: 8px;
}

.premium-compare-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.65fr) minmax(110px, 0.65fr);
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(90, 63, 46, 0.08);
}

.premium-compare-row strong {
    color: var(--ink);
    line-height: 1.25;
}

.premium-compare-row span {
    color: var(--ink-soft);
    font-weight: 800;
}

.premium-compare-row span:last-child {
    color: var(--brand-dark);
}

.compact-support-list {
    gap: 10px;
}

.support-item,
.perk-item {
    display: grid;
    gap: 8px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid var(--line);
}

.support-item strong,
.perk-item strong,
.article-card h3,
.results-toolbar h3,
.results-toolbar p {
    margin: 0;
}

.support-item p,
.perk-item p,
.article-card p {
    margin: 0;
}

.support-item-inline {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px 14px;
}

.support-item-inline strong {
    min-width: 48px;
}

.results-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 20px 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.9), rgba(255, 255, 255, 0.78));
    border: 1px solid rgba(90, 63, 46, 0.1);
    box-shadow: 0 18px 34px rgba(64, 39, 24, 0.05);
}

.results-toolbar .tag-row {
    justify-content: flex-end;
}

.article-card {
    display: grid;
    gap: 14px;
    align-content: start;
    min-height: 100%;
}

.article-meta {
    color: var(--ink-soft);
}

.article-footer {
    margin-top: auto;
}

.footer-grid {
    grid-template-columns: 1.3fr 0.7fr;
    padding: 36px 0 54px;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 249, 242, 0.72);
}

.empty {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px dashed var(--line);
    color: var(--ink-soft);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--ink-soft);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.18em;
}

.table .nav-actions form,
.action-row form,
.nav-actions form {
    margin: 0;
}

.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    min-width: 260px;
}

.admin-user-actions form {
    margin: 0;
}

.admin-user-actions > .button,
.admin-user-actions > form > .button {
    min-height: 40px;
}

.notification-list,
.likes-grid {
    display: grid;
    gap: 16px;
}

.admin-review-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.moderation-guidance-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 18px 0 8px;
}

.moderation-guidance-grid .support-item {
    padding: 14px 16px;
}

.moderation-action-panel {
    width: 100%;
    min-width: 240px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 251, 246, 0.86);
    box-shadow: 0 12px 24px rgba(64, 39, 24, 0.05);
}

.moderation-action-panel summary {
    cursor: pointer;
    padding: 10px 14px;
    color: var(--rust);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.moderation-action-panel summary::-webkit-details-marker {
    display: none;
}

.moderation-action-list {
    display: grid;
    gap: 10px;
    padding: 0 10px 10px;
}

.moderation-action-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(90, 63, 46, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.moderation-action-card p {
    margin: 0;
}

.moderation-action-card .button {
    width: 100%;
    min-height: 40px;
}

.compact-field {
    display: grid;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.compact-field input {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.comparison-board-grid {
    align-items: start;
}

.comparison-board-card {
    gap: 14px;
}

.comparison-row-card {
    gap: 10px;
}

.queue-filter-form {
    gap: 14px;
}

.queue-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.photo-grid-single {
    display: grid;
}

.review-card textarea,
.review-card input,
.ticket-status-form input,
.ticket-status-form select {
    width: 100%;
}

.review-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.coach-card {
    gap: 14px;
}

.coach-card .support-item {
    padding: 14px 16px;
}

.notification-card {
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(215, 163, 75, 0.1), transparent 32%),
        rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(90, 63, 46, 0.1);
    box-shadow: 0 14px 30px rgba(64, 39, 24, 0.05);
}

.notification-card.unread {
    border-color: rgba(190, 94, 48, 0.34);
    box-shadow: 0 16px 34px rgba(190, 94, 48, 0.08);
}

.notification-why {
    margin-top: -4px;
    padding-top: 10px;
    border-top: 1px dashed rgba(90, 63, 46, 0.12);
}

.notification-empty-guide {
    display: grid;
    gap: 8px;
    text-align: left;
}

.notification-empty-guide strong {
    color: var(--ink);
    font-size: 18px;
}

.notification-empty-guide span {
    display: block;
}

.notification-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.completion-meter {
    background: rgba(86, 96, 103, 0.12);
}

.editor-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(90, 63, 46, 0.08);
}

.editor-save-hint {
    margin: 0;
}

.editor-save-status {
    display: grid;
    gap: 4px;
}

.editor-save-status strong {
    font-size: 15px;
}

.editor-save-bar .nav-actions {
    margin-top: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.security-grid .nav-actions {
    align-items: stretch;
}

@media (max-width: 860px) {
    .editor-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-save-bar .nav-actions {
        width: 100%;
    }
}

.profile-video {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.poll-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--line);
}

.poll-option-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(140px, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.poll-option-button {
    justify-content: flex-start;
}

.poll-meter {
    min-width: 0;
}

.reaction-form:nth-child(1) .reaction-button,
.reaction-form:nth-child(2) .reaction-button,
.reaction-form:nth-child(3) .reaction-button,
.reaction-form:nth-child(4) .reaction-button {
    font-size: 0;
}

.reaction-form:nth-child(1) .reaction-button::before,
.reaction-form:nth-child(2) .reaction-button::before,
.reaction-form:nth-child(3) .reaction-button::before,
.reaction-form:nth-child(4) .reaction-button::before {
    font-size: 18px;
    line-height: 1;
}

.reaction-form:nth-child(1) .reaction-button::before {
    content: "👍";
}

.reaction-form:nth-child(2) .reaction-button::before {
    content: "😂";
}

.reaction-form:nth-child(3) .reaction-button::before {
    content: "🥤";
}

.reaction-form:nth-child(4) .reaction-button::before {
    content: "🔥";
}

.reaction-form:nth-child(1) .reaction-button::before {
    content: "Like";
}

.reaction-form:nth-child(2) .reaction-button::before {
    content: "Haha";
}

.reaction-form:nth-child(3) .reaction-button::before {
    content: "Soda";
}

.reaction-form:nth-child(4) .reaction-button::before {
    content: "Fire";
}

.reaction-button {
    font-size: 13px !important;
}

.reaction-button::before {
    content: none !important;
}

.action-row-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.action-row-card > * {
    min-width: 0;
}

.action-row-card .button {
    width: 100%;
}

.action-row-card-single {
    grid-template-columns: minmax(0, 1fr);
}

.feature-empty-card {
    background:
        radial-gradient(circle at top right, rgba(215, 163, 75, 0.12), transparent 28%),
        rgba(255, 251, 246, 0.92);
}

.safety-empty-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

@media (max-width: 980px) {
    .nav-row,
    .hero-grid,
    .dashboard-grid,
    .message-grid,
    .two-col,
    .footer-grid,
    .browse-hero {
        grid-template-columns: 1fr;
    }

    .notification-summary-grid,
    .safety-summary-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-card,
    .sidebar,
    .main-column,
    .message-grid .sidebar,
    .message-grid .main-column,
    .cards-grid > * {
        grid-column: auto;
    }

    .stats-grid,
    .form-grid,
    .cards-grid,
    .compact-grid,
    .results-toolbar,
    .browse-kpis,
    .quick-explore-grid,
    .compatibility-strip,
    .pagination-bar,
    .onboarding-banner-grid,
    .match-summary-grid,
    .upload-dropzone-grid,
    .wizard-slider-grid {
        grid-template-columns: 1fr;
    }

    .message-inbox-mission-stats,
    .composer-writing-brief,
    .notification-mission-card,
    .notification-action-grid,
    .premium-decision-grid,
    .premium-compare-row,
    .safety-mission-card,
    .safety-mission-steps,
    .safety-report-promise {
        grid-template-columns: 1fr;
    }

    .message-next-move-card {
        align-items: stretch;
        flex-direction: column;
    }

    .message-next-move-actions {
        justify-content: stretch;
    }

    .message-next-move-actions .button {
        width: 100%;
    }

    .upload-requirements-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

    .nav-links {
        display: none;
    }

    .nav-search {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu {
        display: block;
        justify-self: end;
    }

    .browse-sidebar {
        position: static;
    }

    .pagination-bar {
        display: grid;
    }

    .browse-member-search,
    .browse-member-search-controls {
        grid-template-columns: 1fr;
    }

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

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

    .shortlist-manage-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .shortlist-manage-row .button {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .shortlist-empty-primary {
        grid-column: auto;
    }

    .shortlist-mission-card {
        display: grid;
        justify-items: start;
    }

    .shortlist-progress {
        width: 100%;
        justify-content: space-between;
    }

    .section-search-form {
        grid-template-columns: 1fr;
    }

    .pagination-links {
        justify-content: flex-start;
    }

    .ticket-stat-grid {
        grid-template-columns: 1fr;
    }

    .ticket-header-row,
    .ticket-section-heading,
    .ticket-list-topline,
    .ticket-message-meta,
    .notification-topline,
    .message-header-row,
    .message-composer-header,
    .thread-item-archived {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-status-form {
        width: 100%;
        flex-basis: auto;
    }

    .poll-option-row {
        grid-template-columns: 1fr;
    }

    .thread-time-stack {
        justify-items: start;
    }

    .browse-layout > .main-column,
    .shortlist-layout > .main-column,
    .profile-editor-layout > .main-column,
    .message-grid > .main-column,
    .two-col:not(.auth-layout) > .main-column {
        order: 1;
    }

    .browse-layout > .sidebar,
    .shortlist-layout > .sidebar,
    .profile-editor-layout > .sidebar,
    .message-grid > .sidebar,
    .two-col:not(.auth-layout) > .sidebar {
        order: 2;
    }

    .profile-card-body,
    .messages-card,
    .message-header-card,
    .composer-card,
    .profile-showcase-card {
        padding: 18px;
    }

    .support-item,
    .perk-item,
    .profile-card-details,
    .profile-signal-item {
        padding: 16px;
    }

    .browse-results,
    .notification-list,
    .suggestion-grid,
    .shortlist-manage-list,
    .support-list {
        gap: 12px;
    }

    .results-toolbar {
        padding: 18px;
    }

    .shortlist-helper-row,
    .hero-audience-row,
    .auth-return-row,
    .register-signal-row,
    .safety-quick-actions {
        gap: 8px;
    }
}

@media (max-width: 560px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 15px;
    }

    .container {
        width: min(var(--max), calc(100% - 24px));
    }

    .page-shell {
        padding-top: 18px;
        padding-bottom: 42px;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 30;
        background: rgba(248, 239, 229, 0.96);
        backdrop-filter: blur(16px);
    }

    .nav-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 0;
    }

    .nav-row > .nav-actions {
        display: none;
    }

    .logo strong {
        font-size: 18px;
    }

    .logo span:last-child {
        min-width: 0;
    }

    .nav-row > * {
        min-width: 0;
    }

    .logo small,
    .logo span:last-child span {
        display: none;
    }

    .mobile-menu-panel {
        right: 0;
        left: auto;
        width: min(86vw, 320px);
        max-height: calc(100vh - 86px);
        overflow-y: auto;
    }

    .card,
    .hero-copy,
    .hero-card,
    .auth-primary-card,
    .auth-support-card,
    .profile-showcase-card,
    .register-panel,
    .onboarding-banner {
        border-radius: 24px;
    }

    .card,
    .auth-primary-card,
    .auth-support-card,
    .profile-showcase-card,
    .messages-card,
    .message-header-card,
    .composer-card,
    .register-panel-head,
    .register-panel-body,
    .register-panel-foot {
        padding: 18px;
    }

    .auth-layout {
        gap: 16px;
    }

    .auth-layout h1,
    .auth-layout h2,
    .register-page-header h1,
    .register-page-header h2,
    .form-page-header h1,
    .form-page-header h2,
    .profile-showcase-card h1,
    .profile-showcase-card h2,
    .browse-hero h1,
    .browse-hero h2 {
        font-size: clamp(34px, 12vw, 46px);
        line-height: 0.96;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .page-shell h1,
    .page-shell h2 {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .auth-helper-row,
    .tag-row,
    .profile-summary-meta,
    .meta-inline,
    .nav-actions,
    .browse-hero-actions {
        gap: 8px;
    }

    .tag-row,
    .badge-row,
    .action-row {
        flex-wrap: wrap;
    }

    .tag,
    .badge,
    .eyebrow {
        max-width: 100%;
        white-space: normal;
    }

    .auth-primary-card > *,
    .auth-support-card > *,
    .register-panel > *,
    .profile-showcase-card > *,
    .browse-hero > *,
    .card > * {
        max-width: 100%;
    }

    .button,
    button,
    input,
    select,
    textarea {
        min-height: 48px;
        font-size: 16px;
    }

    .button,
    .auth-submit,
    .auth-secondary-link,
    .wizard-primary-action,
    .editor-save-bar .button,
    .message-composer-actions .button,
    .admin-user-actions .button {
        width: 100%;
        justify-content: center;
    }

    .card .nav-actions,
    .browse-hero-note .nav-actions,
    .thread-management-card .nav-actions,
    .match-outcome-card .nav-actions,
    .editor-save-bar .nav-actions,
    .security-grid .nav-actions {
        display: flex;
    }

    .nav-actions,
    .auth-actions,
    .wizard-footer,
    .admin-user-actions,
    .browse-hero-actions,
    .message-composer-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .register-page-header,
    .ticket-section-heading,
    .message-header-row,
    .message-composer-header,
    .browse-hero,
    .profile-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .register-inline-note {
        max-width: none;
        text-align: left;
    }

    .wizard-progress {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .wizard-step-pills {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
    }

    .wizard-step-pill {
        min-width: 150px;
        scroll-snap-align: start;
    }

    .register-panel-head h2 {
        font-size: clamp(34px, 13vw, 48px);
    }

    .persona-lane-grid,
    .persona-lane-grid-compact {
        grid-template-columns: 1fr;
    }

    .persona-lane-card,
    .upload-requirements-list span {
        border-radius: 18px;
    }

    .photo-grid,
    .photo-grid-profile,
    .photo-grid-secondary,
    .admin-review-grid,
    .safety-empty-grid,
    .ticket-stat-grid {
        grid-template-columns: 1fr;
    }

    .photo-panel,
    .photo-panel-large {
        min-height: 210px;
        aspect-ratio: 4 / 3;
    }

    .profile-card {
        overflow: hidden;
    }

    .profile-card-body,
    .profile-card-details,
    .profile-signal-item,
    .support-item,
    .review-card,
    .notification-card,
    .poll-card {
        padding: 14px;
    }

    .poll-option-row,
    .thread-state-row,
    .admin-pattern-switch-row,
    .section-search-form,
    .browse-member-search,
    .browse-member-search-controls,
    .results-toolbar {
        grid-template-columns: 1fr;
    }

    .message-row,
    .message-row.me {
        justify-content: stretch;
    }

    .message,
    .message.me {
        max-width: 100%;
    }

    .thread-item,
    .thread-card,
    .message-thread-card,
    .ticket-message {
        overflow-wrap: anywhere;
    }

    .admin-user-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .moderation-action-card,
    .admin-action-panel,
    .review-card {
        min-width: 0;
    }

    .footer-grid {
        gap: 18px;
    }
}
