:root {
    --bg: #20272f;
    --panel: #27313b;
    --panel-soft: #303b46;
    --card-soft: #36414d;
    --text: #edf3f7;
    --muted: #aab6c0;
    --primary: #1b8d4b;
    --primary-dark: #156e3a;
    --border: #43515c;
    --chip: #2b3640;
    --chip-smart: #29404f;
    --header-height: 64px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at 20% 0%, #546371 0%, #36424d 44%, #20262d 100%);
    color: var(--text);
    padding-top: var(--header-height);
}

html[lang^="vi"] body,
html[lang^="vi"] input,
html[lang^="vi"] textarea,
html[lang^="vi"] select,
html[lang^="vi"] button {
    font-family: "Segoe UI", Arial, Tahoma, sans-serif;
}

.container {
    width: min(1050px, 92vw);
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(90deg, #2a3540 0%, #31404d 55%, #212b35 100%);
    border-bottom: 1px solid #4d5b67;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    margin: 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    min-height: var(--header-height);
    gap: 1.5rem;
}

.brand {
    color: #f8fff9;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    letter-spacing: 0.08em;
    flex: 0 0 auto;
    padding-right: 0.35rem;
}

.brand-mark {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 7px rgba(31, 167, 92, 0.24));
}

.brand-text {
    font-family: "Michroma", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fbfff9 0%, #e9fff0 24%, #85e0ac 58%, #25a55e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[lang^="vi"] .brand-text {
    font-family: "Segoe UI", Arial, Tahoma, sans-serif;
}

.brand-text-image {
    width: 188px;
    height: 18px;
    object-fit: contain;
    display: block;
}

nav,
.site-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    flex: 1 1 auto;
}

nav a,
.site-nav a {
    color: #8fe3af;
    text-decoration: none;
    font-size: 0.92rem;
    min-height: 38px;
    padding: 0 0.55rem;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-link-messages,
.nav-link-search {
    gap: 0.2rem;
}

.nav-link-messages .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(-0.02em);
}

.nav-logout-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-logout-link {
    background: transparent;
    border: 1px solid #3f6a52;
    color: #b8eccc;
    padding: 0.35rem 0.62rem;
    border-radius: 6px;
    min-height: 34px;
}

.nav-logout-link:hover {
    background: rgba(24, 58, 40, 0.42);
    border-color: #5b9b76;
    color: #e8fff1;
}

.nav-persona-link {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav .nav-persona-link {
    color: #2f8a55;
}

.site-nav .nav-persona-link:hover {
    color: #63bf82;
}


.nav-icon {
    margin-right: 0.25rem;
}

.nav-unread-indicator {
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.15rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(27, 141, 75, 0.32);
    flex: 0 0 auto;
}

nav a:hover {
    color: #f6fff8;
}

a {
    color: #72cf92;
}

a:hover {
    color: #eafff0;
}



.language-switcher {
    margin: 0 0 0 0.25rem;
    display: inline-flex;
    align-items: center;
    align-self: center;
    flex: 0 0 auto;
    min-height: 38px;
}

.language-select {
    width: 7.4rem;
    min-width: 7.4rem;
    height: 34px;
    padding: 0 1.55rem 0 0.52rem;
    border-radius: 6px;
    background: #212b35;
    border-color: #4c5c6d;
    color: #d7e0ea;
    font-size: 0.82rem;
    line-height: 1.2;
    vertical-align: middle;
}

.language-switcher,
.language-select {
    position: relative;
    top: 0;
}

.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;
}

.nav-persona-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    flex: 0 0 auto;
}

.nav-persona-switcher-toggle {
    cursor: pointer;
    border: 1px solid #3f6a52;
    background: rgba(24, 58, 40, 0.24);
    color: #b8eccc;
    border-radius: 6px;
    padding: 0;
    white-space: nowrap;
    width: 30px;
    height: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
}

.nav-persona-switcher-toggle::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.nav-persona-switcher.is-open .nav-persona-switcher-toggle {
    background: rgba(24, 58, 40, 0.48);
    border-color: #5b9b76;
    color: #e8fff1;
}

.nav-persona-switcher-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    display: flex;
    min-width: 190px;
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch;
    padding: 0.65rem;
    border: 1px solid #4b5c6d;
    border-radius: 7px;
    background: #202a34;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

.nav-persona-switcher-menu[hidden] {
    display: none;
}

.nav-persona-menu-title {
    color: #aab6c0;
    font-size: 0.78rem;
    line-height: 1;
    padding: 0 0.15rem 0.15rem;
}

.nav-persona-menu-item {
    min-height: 34px;
    padding: 0.45rem 0.62rem;
    text-align: left;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #e8fff1;
}

.nav-persona-menu-item:hover,
.nav-persona-menu-item:focus {
    border-color: #5b9b76;
    background: rgba(24, 58, 40, 0.42);
}

main {
    padding: 1.5rem 0 3rem;
}

main > :first-child {
    margin-top: 0;
}

.hero {
    background: radial-gradient(circle at top right, #5c6b79 0%, #404c59 45%, #28323b 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1rem;
    min-height: 240px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero::after {
    content: none;
}

.hero h1,
.hero p,
.hero form {
    position: relative;
    z-index: 1;
}

.hero-lamp {
    position: absolute;
    top: -52px;
    right: -40px;
    width: clamp(78px, 10vw, 112px);
    height: auto;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(-4px 5px 5px rgba(0, 0, 0, 0.28));
    transform: rotate(11deg) scale(.9);
 
}

.hero h1 {
    margin-top: 0;
}

.search-page-hero h1 {
    font-size: 1.75rem;
}

.hero-links {
    margin-top: 0.9rem;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.panel.narrow,
.narrow {
    max-width: 520px;
}

.auth-card {
    margin-left: auto;
    margin-right: auto;
}

.verification-action-row {
    display: flex;
    justify-content: center;
    margin-top: 1.35rem;
}

.policy-page {
    margin: 0 auto;
    padding: 0.8rem 0 1rem;
}

.policy-page h1 {
    text-align: center;
}

.policy-page h2 {
    margin-top: 1.25rem;
    font-size: 1.08rem;
}

.panel.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.search-form {
    position: relative;
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    align-items: center;
}

.search-form > input[type="search"] {
    flex: 1 1 0;
    min-width: 0;
}

.location-field {
    position: relative;
    flex: 0.4 1 0;
    min-width: 220px;
}

.location-field input[type="search"] {
    padding-left: 2.4rem;
}

.location-toggle {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.location-toggle input {
    width: 0.95rem;
    height: 0.95rem;
    margin: 0;
    accent-color: #1b8d4b;
}

input.location-disabled {
    opacity: 0.55;
    cursor: pointer;
}

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

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    background: #1a232d;
    color: var(--text);
}

button,
.button-link {
    border: none;
    background: var(--primary);
    color: #fafffb;
    border-radius: 6px;
    padding: 0.65rem 0.95rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.search-form button {
    position: relative;
    isolation: isolate;
    box-shadow: none;
}


.search-form button::before {
    content: none;
}


button:hover,
.button-link:hover {
    background: var(--primary-dark);
}

.search-form button:hover::before {
    content: none;
}

.search-loading {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: auto;
    left: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: max-content;
    max-width: 100%;
    margin-top: 0;
    pointer-events: none;
    color: var(--muted);
    font-size: 0.9rem;
}

.search-loading[hidden] {
    display: none;
}

.search-loading-spinner {
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid rgba(191, 233, 255, 0.35);
    border-top-color: #bfe9ff;
    border-radius: 50%;
    animation: search-spinner 0.8s linear infinite;
}

@keyframes search-spinner {
    to {
        transform: rotate(360deg);
    }
}


.button-link.secondary {
    background: #0f2416;
    border: 1px solid #25533a;
}

.button-link.secondary:hover {
    background: #14301d;
}

.stacked-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.contact-form button {
    align-self: flex-start;
}

.message-compose-form > button {
    align-self: flex-start;
    width: 200px;
    min-width: 0;
    padding-inline: 0.85rem;
}

.stacked-form ul {
    margin: 0;
    padding-left: 1rem;
    color: #ff7aa2;
}

.hint {
    color: var(--muted);
    font-size: 0.9rem;
}

.search-spelling-suggestion a {
    color: #bfe9ff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.search-spelling-suggestion a:hover {
    color: #e6f7ff;
}

.messages {
    margin-bottom: 0.75rem;
}

.message {
    background: #2f533c;
    border: 1px solid #77d99b;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(31, 167, 92, 0.18);
    color: #f3fff7;
    padding: 0.65rem 0.8rem;
}

.promise-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    font-size: 0.76rem;
    border: 1px solid #58427f;
    background: rgba(82, 60, 122, 0.28);
    color: #e3d8ff;
    white-space: nowrap;
}

.promise-status-accepted {
    border-color: #5f7fb3;
    background: rgba(73, 112, 169, 0.18);
    color: #d7e8ff;
}

.promise-status-fulfilled {
    border-color: #2f8f62;
    background: rgba(47, 143, 98, 0.18);
    color: #ccffe4;
}

.promise-status-failed {
    border-color: #9f4d64;
    background: rgba(159, 77, 100, 0.16);
    color: #ffd8e5;
}

.promise-status-declined {
    border-color: #72608e;
    background: rgba(89, 76, 120, 0.16);
    color: #ddd4ff;
}

.promise-actions {
    display: inline-flex;
    margin-right: 0.5rem;
}

.promise-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.promise-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #345248;
    background: rgba(17, 31, 26, 0.68);
    color: #e8fff0;
}

.promise-toggle input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #199857;
}

.promise-info {
    position: relative;
}

.promise-info summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid #5b806f;
    border-radius: 50%;
    color: #b9efd0;
    cursor: pointer;
    font-size: 0.78rem;
    line-height: 1;
    list-style: none;
}

.promise-info summary::-webkit-details-marker {
    display: none;
}

.promise-info span {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.45rem);
    z-index: 4;
    width: min(17rem, 78vw);
    transform: translateX(-50%);
    padding: 0.6rem 0.7rem;
    border: 1px solid #44685a;
    border-radius: 6px;
    background: #14221c;
    color: #e8fff0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.promise-info:not([open]) span {
    display: none;
}

.promise-help-text {
    font-size: 0.86rem;
}

.message-promise-flair {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.promise-inline-note {
    display: flex;
    gap: 0.45rem;
    align-items: baseline;
    padding: 0.65rem 0.8rem;
    border-radius: 6px;
    background: rgba(33, 24, 58, 0.88);
    border: 1px solid #3b2f5d;
    color: #dcd2ff;
}

.premium-banner {
    margin-top: 0.9rem;
    padding: 0.75rem 0.85rem;
    border-radius: 7px;
    border: 1px solid #6f4fd6;
    background: linear-gradient(90deg, rgba(108, 79, 214, 0.18), rgba(255, 90, 138, 0.12));
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.premium-banner > div {
    min-width: 0;
}

.premium-banner strong {
    display: block;
}

.premium-banner span {
    display: block;
    margin-top: 0.18rem;
    color: #e0d9ff;
    font-size: 0.9rem;
    line-height: 1.45;
}

.premium-banner a,
.premium-banner button {
    color: #fff0ff;
    text-decoration: none;
    white-space: nowrap;
}

.premium-banner-strong {
    padding: 0.95rem;
    border-color: #7c68dd;
    background:
        radial-gradient(circle at top left, rgba(47, 143, 98, 0.22), transparent 36%),
        linear-gradient(90deg, rgba(69, 55, 143, 0.34), rgba(35, 57, 78, 0.34));
}

.saved-upgrade-banner {
    gap: 1.35rem;
}

.profile-edit-premium-banner {
    margin-bottom: 1.25rem;
}

.premium-cta-button,
.premium-profile-upgrade {
    border: 1px solid #66d7c5;
    background: linear-gradient(180deg, #1aa98e, #116c80);
    color: #effffd;
    box-shadow: 0 8px 20px rgba(26, 169, 142, 0.2);
    font-weight: 700;
    padding-inline: 1.1rem;
    text-decoration: none;
}

.premium-profile-upgrade {
    outline: 1px solid rgba(102, 215, 197, 0.42);
    outline-offset: 4px;
}

.premium-cta-button:hover,
.premium-profile-upgrade:hover {
    background: linear-gradient(180deg, #22bfa1, #0f5d73);
    color: #ffffff;
    text-decoration: none;
}

.premium-cta-lowkey {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.38rem 0.68rem;
    border: 1px solid #66d7c5;
    border-radius: 6px;
    background: transparent;
    color: #9feee2;
    box-shadow: none;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.premium-cta-lowkey:hover {
    border-color: #9feee2;
    background: rgba(26, 169, 142, 0.12);
    color: #effffd;
}

.small-premium-cta {
    padding: 0.48rem 0.72rem;
    font-size: 0.84rem;
}

.premium-text-cta {
    width: fit-content;
    padding: 0.34rem 0.62rem;
    border: 1px solid #66d7c5;
    border-radius: 6px;
    background: rgba(26, 169, 142, 0.08);
    color: #9feee2;
    font-weight: 700;
    text-decoration: none;
    white-space: normal;
}

.premium-text-cta:hover {
    border-color: #9feee2;
    background: rgba(26, 169, 142, 0.14);
    color: #e9fffb;
}

.premium-promo-strip,
.premium-results-promo,
.premium-empty-state {
    border: 1px solid #566877;
    border-radius: 7px;
    background:
        radial-gradient(circle at top right, rgba(32, 191, 161, 0.14), transparent 42%),
        #25313b;
}

.premium-promo-strip {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
}

.premium-promo-strip p,
.premium-results-promo p,
.premium-empty-state p {
    margin: 0.22rem 0 0;
    color: #cfd9e2;
    line-height: 1.48;
}

.premium-results-promo {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem;
    margin: 0.85rem 0 1rem;
}

.premium-promo-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    gap: 0.4rem;
    min-width: 190px;
}

.premium-promo-points span {
    display: inline-flex;
    padding: 0.24rem 0.5rem;
    border: 1px solid #526b83;
    border-radius: 6px;
    background: rgba(24, 38, 52, 0.72);
    color: #dbeeff;
    font-size: 0.78rem;
}

.premium-empty-state {
    padding: 0.95rem;
}

.saved-upgrade-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.saved-upgrade-card p {
    margin-bottom: 0.15rem;
}

.compact-banner {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.profile-account-actions-panel {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.profile-password-details,
.profile-danger-details {
    display: inline-block;
    width: 100%;
}

.password-change-summary {
    display: inline-flex;
    list-style: none;
}

.password-change-summary::-webkit-details-marker {
    display: none;
}

.profile-password-details[open] .password-change-summary {
    margin-bottom: 0.9rem;
}

.profile-danger-details[open] summary {
    margin-bottom: 0.9rem;
}

.password-change-form,
.profile-danger-form {
    max-width: 760px;
}

.password-change-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.8rem;
}

.danger-button {
    border: 1px solid #b75f73;
    background: rgba(105, 34, 52, 0.18);
    color: #ffccd6;
}

.danger-button:hover {
    background: rgba(139, 42, 66, 0.28);
    color: #ffe9ee;
}

.profile-grid,
.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

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

.browse-fields-panel {
    background: #34414d;
    border-color: #5f7080;
}

.field-card {
    border: 1px solid #4a5c6b;
    border-radius: 7px;
    padding: 1rem;
    background:
        radial-gradient(circle at top right, rgba(81, 128, 108, 0.18), transparent 40%),
        #2f3b46;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.field-card p {
    margin: 0;
    color: #d3dce5;
    line-height: 1.5;
}

.feed-post-edit {
    margin-top: 0.85rem;
}

.feed-post-edit summary {
    width: fit-content;
    list-style: none;
}

.feed-post-edit summary::-webkit-details-marker {
    display: none;
}

.feed-post-edit-form {
    margin-top: 0.75rem;
}

.feed-post-actions,
.feed-post-delete-form {
    display: flex;
    justify-content: flex-start;
}

.feed-post-delete-form {
    margin: 0.65rem 0 0;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0.75rem 0 0;
    width: 100%;
}

.message-list-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.18s ease;
    min-width: 0;
    width: 100%;
}

.message-list-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.message-list-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 0.75rem 0.95rem 0;
    color: inherit;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.message-delete-form {
    margin: 0;
    flex: 0 0 auto;
    padding-right: 0;
}

.message-delete-button {
    min-height: 34px;
    padding: 0.35rem 0.62rem;
    border-radius: 6px;
    border: 1px solid #b75f73;
    background: transparent;
    color: #ffb8c8;
    font-size: 0.78rem;
}

.message-delete-button:hover {
    background: rgba(105, 34, 52, 0.12);
    border-color: #e08196;
}

.message-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #2d3a45, #202a34);
    border: 1px solid #4b5b6d;
    color: #eff6f4;
    font-weight: 700;
    font-size: 0.95rem;
}

.message-list-main {
    min-width: 0;
    flex: 1;
}

.message-list-heading {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
}

.message-list-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #edf3f7;
}

.message-title-date {
    display: none;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.25;
    margin-top: -0.08rem;
}

.message-list-preview {
    margin: 0;
    color: #c7d2dc;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-list-meta {
    min-width: 118px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.22rem;
    text-align: right;
}

.message-meta-time,
.message-read-state,
.message-unread-count {
    font-size: 0.76rem;
    white-space: nowrap;
}

.message-meta-time,
.message-read-state {
    color: var(--muted);
}

.message-unread-count {
    color: #b8eccc;
    font-weight: 600;
}

.message-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #8fe3af;
    box-shadow: 0 0 12px rgba(143, 227, 175, 0.45);
}

.profile-card,
.result-card {
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0.85rem;
    background: #212b35;
}

.result-top,
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.result-identity {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.persona-subtitle,
.persona-inline {
    color: #c8d2dc;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

.tag-list,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.chip {
    background: var(--chip);
    border: 1px solid #3b2f5c;
    color: #d4dde7;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    text-decoration: none;
    font-size: 0.86rem;
}

.compact-tag-list {
    gap: 0.3rem;
}

.compact-chip {
    padding: 0.16rem 0.42rem;
    font-size: 0.72rem;
    line-height: 1.1;
}

.chip.smart {
    background: var(--chip-smart);
    border-color: #2f4473;
    color: #b9d5ff;
}

.chip span {
    opacity: 0.7;
    margin-left: 0.25rem;
}

.score {
    color: var(--muted);
    font-size: 0.9rem;
}

.heat-meter {
    width: 92px;
    height: 8px;
    background: #26313c;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #516172;
    flex-shrink: 0;
}

.match-meter-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.match-meter-label {
    display: none;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.compact-match-meter-group {
    justify-content: flex-end;
}

.compact-heat {
    width: 82px;
}

.heat-fill {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: hsl(calc(5 + (var(--heat-percent, 0) * 1.15)), 88%, 54%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.bio {
    line-height: 1.6;
}

.quick-links,
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bubble {
    border: 1px solid #3a2e5b;
    border-radius: 7px;
    padding: 0.7rem;
    max-width: 80%;
}

.bubble.bubble-promise {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bubble.bubble-promise-pending {
    border-color: #5c8e73;
    background-image: linear-gradient(180deg, rgba(29, 55, 41, 0.18), rgba(0, 0, 0, 0));
}

.bubble.bubble-promise-accepted {
    border-color: #4d6890;
    background-image: linear-gradient(180deg, rgba(32, 57, 96, 0.24), rgba(0, 0, 0, 0));
}

.bubble.bubble-promise-fulfilled {
    border-color: #2f8f62;
    background-image: linear-gradient(180deg, rgba(36, 94, 66, 0.32), rgba(0, 0, 0, 0));
    box-shadow: 0 0 0 1px rgba(47, 143, 98, 0.2), 0 0 24px rgba(47, 143, 98, 0.18);
}

.bubble.bubble-promise-failed {
    border-color: #9f4d64;
    background-image: linear-gradient(180deg, rgba(108, 34, 57, 0.22), rgba(0, 0, 0, 0));
}

.bubble.bubble-promise-declined {
    border-color: #5b4e74;
    background-image: linear-gradient(180deg, rgba(62, 49, 88, 0.18), rgba(0, 0, 0, 0));
}

.bubble.mine {
    margin-left: auto;
    background: #24303b;
    border-color: #4b3a78;
}

.bubble.theirs {
    background: #202d38;
}

.meta {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

.results-panel {
    background: var(--panel-soft);
    border-color: #4a5a6a;
}

.results-column-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.85rem;
    margin-bottom: 0.35rem;
    padding: 0 0.25rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.post-date-meta {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.2;
}

.profile-location-inline {
    margin: 0;
}

.profile-display-name {
    color: #b8f2d6;
}

.result-reliability {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.35rem;
    margin: 0.45rem 0 0.55rem;
    color: #d7e1ea;
    font-size: 0.82rem;
    line-height: 1.35;
}

.result-reliability span {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.result-reliability strong {
    color: #aebbc8;
    font-size: 0.76rem;
    letter-spacing: 0;
    text-transform: none;
}

.compact-result-reliability {
    margin: 0.35rem 0 0.45rem;
    gap: 0.38rem 1rem;
}

.profile-characteristics {
    margin-top: 0.65rem;
    margin-bottom: 0.85rem;
}

.sort-results-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0.9rem 0 0.35rem;
}

.sort-results-form label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sort-results-form select {
    width: auto;
    min-width: 150px;
    height: 36px;
    padding: 0.35rem 0.55rem;
}

.featured-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.featured-result-card {
    background: var(--card-soft);
    border-color: #536477;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.compact-results {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.compact-result-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.8rem 0.9rem;
    border: 1px solid #4d5d6e;
    border-radius: 7px;
    background: #28333e;
}

.compact-result-main {
    min-width: 0;
    flex: 1;
}

.compact-result-main h3,
.featured-result-card h3 {
    margin: 0 0 0.2rem;
}

.compact-result-copy {
    margin: 0.35rem 0 0;
    color: #d3dce5;
}

.compact-result-side {
    width: 150px;
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

.compact-tag-stack {
    justify-content: flex-end;
}

.result-gallery-thumbs {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    width: 108px;
    min-height: 32px;
    flex: 0 0 108px;
}

.result-gallery-thumb-link {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}

.result-gallery-thumb {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 1px solid #667585;
    border-radius: 5px;
    background: #1b2530;
}

.compact-gallery-thumbs {
    flex-wrap: wrap;
}

.profile-message-panel {
    background: #24303a;
    border-color: #506172;
}

.profile-message-locked {
    border-color: #46525f;
    background: rgba(35, 43, 51, 0.72);
    color: #c5ced7;
}

.profile-message-locked .button-link {
    margin-top: 0.85rem;
}

.inbox-panel {
    padding-top: 0.55rem;
    padding-bottom: 0.35rem;
}

.messages-page .panel:first-child h1 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.profile-message-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.bio-ideas {
    border: 1px solid #4d5d6e;
    border-radius: 7px;
    padding: 0.85rem;
    background: rgba(37, 47, 58, 0.68);
}

.bio-ideas h2 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.bio-suggestion-modal-panel {
    width: min(500px, 92vw);
}

.bio-suggestion-modal-panel input {
    width: 100%;
}

.bio-suggestion-modal-panel [data-bio-suggestion-preview] {
    padding: 0.65rem 0.75rem;
    border: 1px solid #46596a;
    border-radius: 6px;
    background: rgba(27, 38, 49, 0.72);
    color: #dbe7ef;
}

.readonly-account-field {
    color: #aab6c0;
    background: #222b34;
    border-color: #3d4a55;
    opacity: 0.78;
    cursor: not-allowed;
}

.bio-suggestion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.bio-suggestion-button {
    padding: 0.42rem 0.7rem;
    border: 1px solid #3d5f4f;
    background: rgba(19, 35, 28, 0.72);
    color: #ddffea;
    border-radius: 6px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
    gap: 2rem;
}

.pricing-card {
    position: relative;
    height: 100%;
    border: 1px solid #4b5b6d;
    border-radius: 7px;
    padding: 0 1rem 1rem;
    background: #232d37;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-card-featured {
    background:
        radial-gradient(circle at top right, rgba(62, 165, 98, 0.22), transparent 42%),
        linear-gradient(180deg, rgba(37, 62, 51, 0.98), rgba(20, 35, 29, 0.98));
    border-color: #5ba67a;
    box-shadow: 0 16px 34px rgba(19, 45, 30, 0.35);
}

.pricing-plan-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 -1rem 1rem;
    padding: 0.62rem 1rem;
    border-bottom: 1px solid #4b5b6d;
    color: #edf3f7;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-plan-bar-free {
    background: #2b3540;
    color: #cfd9e2;
}

.pricing-plan-bar-premium {
    border-color: rgba(102, 215, 197, 0.58);
    background:
        linear-gradient(90deg, rgba(26, 169, 142, 0.86), rgba(22, 105, 128, 0.86)),
        #1f6f70;
    color: #effffd;
}

.pricing-card-heading {
    min-height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.price-line {
    color: #e3eaf1;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-align: center;
}

.pricing-list {
    margin: 0.25rem 0 1rem;
    padding-left: 1.15rem;
    color: #cdd7e0;
}

.pricing-list li + li {
    margin-top: 0.35rem;
}

.billing-note {
    color: #d0d9e2;
    line-height: 1.55;
}

.pricing-upgrade-form {
    align-items: center;
    margin-top: auto;
}

.pricing-upgrade-button {
    align-self: center;
    justify-content: center;
    min-width: min(100%, 240px);
}

.pricing-card-featured .pricing-upgrade-button {
    width: fit-content;
    min-width: 220px;
    max-width: 100%;
    min-height: 48px;
    padding: 0.78rem 1.55rem;
    border: 1px solid rgba(184, 255, 239, 0.72);
    border-radius: 999px;
    outline: none;
    background:
        linear-gradient(180deg, rgba(32, 196, 157, 0.98), rgba(14, 101, 119, 0.98));
    box-shadow:
        0 10px 24px rgba(13, 155, 127, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    text-decoration: none;
    white-space: nowrap;
}

.pricing-card-featured .pricing-upgrade-button:hover {
    background:
        linear-gradient(180deg, rgba(43, 215, 177, 1), rgba(16, 116, 132, 1));
    box-shadow:
        0 12px 28px rgba(13, 155, 127, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    text-decoration: none;
}

.billing-success-panel {
    max-width: 720px;
}

.billing-success-header {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.billing-success-header h1 {
    margin: 0.1rem 0 0.45rem;
}

.billing-status-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #6a7b8d;
    background: #2d3944;
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.04);
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.billing-status-mark.is-success {
    border-color: #66d7c5;
    background:
        radial-gradient(circle at center, #dffff9 0 22%, transparent 24%),
        linear-gradient(135deg, #1aa98e, #116c80);
    box-shadow: 0 0 24px rgba(26, 169, 142, 0.22);
}

.billing-status-mark.is-pending {
    border-color: #83a2bd;
    background:
        radial-gradient(circle at center, #dbeeff 0 16%, transparent 18%),
        linear-gradient(135deg, #496c8b, #2f4c63);
}

.billing-receipt {
    margin-top: 1.1rem;
    border: 1px solid #4d5d6e;
    border-radius: 7px;
    background: #202a33;
    overflow: hidden;
}

.billing-receipt-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid #40505f;
    background: rgba(34, 47, 59, 0.82);
}

.billing-receipt-heading h2 {
    margin: 0;
    font-size: 1rem;
}

.billing-receipt-heading span {
    color: var(--muted);
    font-size: 0.84rem;
}

.billing-detail-list {
    margin: 0;
}

.billing-detail-list div {
    display: grid;
    grid-template-columns: minmax(130px, 0.45fr) 1fr;
    gap: 1rem;
    padding: 0.72rem 0.95rem;
    border-top: 1px solid rgba(77, 93, 110, 0.62);
}

.billing-detail-list div:first-child {
    border-top: 0;
}

.billing-detail-list dt {
    color: var(--muted);
}

.billing-detail-list dd {
    margin: 0;
    color: #edf3f7;
}

.compact-billing-detail-list {
    margin-top: 0.9rem;
    border: 1px solid rgba(77, 93, 110, 0.62);
    border-radius: 7px;
    overflow: hidden;
}

.compact-billing-detail-list div {
    grid-template-columns: minmax(105px, 0.35fr) 1fr;
    padding: 0.58rem 0.75rem;
}

.billing-profile-panel .profile-header {
    align-items: center;
}

.billing-pending-note {
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #546f84;
    border-radius: 7px;
    background: rgba(37, 54, 68, 0.72);
}

.billing-pending-note strong,
.billing-pending-note span {
    display: block;
}

.billing-pending-note span {
    margin-top: 0.22rem;
    color: #cfd9e2;
    line-height: 1.45;
}

.billing-success-actions {
    margin-top: 1rem;
}

.site-footer {
    margin-top: 2.5rem;
    padding: 1.4rem 0 1.7rem;
    border-top: 1px solid #3b4755;
    background: rgba(8, 9, 15, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.25rem;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 0.6rem;
    font-size: 0.96rem;
    color: #f3fff6;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    display: block;
    margin: 0 0 0.45rem;
}

.site-footer .footer-premium-link {
    display: inline-flex;
    width: fit-content;
    padding: 0.38rem 0.68rem;
    border: 1px solid #66d7c5;
    border-radius: 6px;
    color: #9feee2;
    text-decoration: none;
    font-weight: 700;
}

.site-footer .footer-premium-link:hover {
    color: #effffd;
    border-color: #9feee2;
    background: rgba(26, 169, 142, 0.12);
}

.sitemap-link-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
}

.sitemap-link-list a {
    padding: 0.55rem 0.65rem;
    border: 1px solid #425161;
    border-radius: 7px;
    background: rgba(29, 39, 49, 0.72);
    text-decoration: none;
}

.sitemap-link-list a:hover {
    border-color: #6ebf9c;
    background: rgba(38, 59, 54, 0.82);
}

.footer-muted {
    margin-top: 0.35rem;
    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 720px) {
    body {
        padding-top: 0;
    }

    .site-header {
        position: sticky;
    }

    .panel.split {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form > input[type="search"],
    .location-field {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        min-height: 0;
        padding: 0.7rem 0;
    }

    .brand {
        padding-right: 0;
    }

    nav,
    .site-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.45rem 0.5rem;
    }

    .nav-persona-link {
        order: 4;
        max-width: 100%;
    }

    .nav-logout-link {
        order: 5;
    }

    .nav-persona-switcher {
        order: 6;
    }

    .language-switcher {
        order: 7;
    }

    nav a,
    .site-nav a,
    .nav-persona-switcher-toggle,
    .language-select {
        min-height: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    nav a,
    .site-nav a {
        padding: 0 0.48rem;
    }

    .language-switcher {
        margin-left: 0;
        width: auto;
    }

    .language-select {
        width: auto;
        min-width: 6.4rem;
        max-width: 7.2rem;
        padding: 0 1.35rem 0 0.45rem;
    }

    .bubble {
        max-width: 100%;
    }

    .hero {
        padding: 1.2rem;
    }

    .hero h1 {
        font-size: clamp(1.42rem, 10vw, 2.37rem);
    }

    .hero-lamp {
        width: 76px;
        top: -34px;
        right: -24px;
    }

    .compact-result-row,
    .profile-message-heading,
    .message-list-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .message-list-row {
        align-items: flex-start;
    }

    .message-list-link {
        flex-direction: row;
        align-items: flex-start;
    }

    .compact-result-side {
        width: 100%;
        min-width: 0;
        flex: 0 1 auto;
        align-items: flex-end;
    }

    .message-list-meta {
        min-width: 0;
        align-items: flex-start;
        text-align: left;
    }

    .message-title-date {
        display: block;
    }

    .message-list-meta .message-meta-time {
        display: none;
    }

    .compact-tag-stack {
        justify-content: flex-start;
    }

    .premium-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .premium-promo-strip,
    .premium-results-promo {
        flex-direction: column;
        align-items: flex-start;
    }

    .premium-promo-points {
        justify-content: flex-start;
        min-width: 0;
    }

    .billing-success-header,
    .billing-receipt-heading,
    .billing-detail-list div {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-card {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .persona-switch-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-persona-switcher {
        width: auto;
    }

    .nav-persona-switcher-toggle {
        width: auto;
        min-height: 32px;
        padding: 0.25rem 0.55rem;
        font-size: 0.8rem;
    }

    .nav-persona-switcher-menu {
        position: static;
        margin-top: 0.45rem;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .profile-header {
        align-items: flex-start;
    }

    .profile-header > div:first-child {
        min-width: 0;
    }

    .quick-links {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
        gap: 0.4rem;
    }

    .profile-header .quick-links .button-link,
    .profile-header .quick-links .premium-cta-button,
    .availability-summary .button-link,
    .profile-account-actions-panel .button-link,
    .profile-message-panel .button-link,
    .profile-message-panel button,
    .feed-post-actions .button-link,
    .feed-post-delete-form .button-link {
        min-height: 32px;
        padding: 0.32rem 0.52rem;
        font-size: 0.78rem;
        line-height: 1.1;
        text-align: center;
        white-space: nowrap;
    }

    .profile-header .quick-links .button-link,
    .profile-header .quick-links .premium-cta-button,
    .availability-summary .button-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 7.25rem;
    }

    .promise-toggle {
        gap: 0.38rem;
        padding: 0.38rem 0.5rem;
        font-size: 0.78rem;
        max-width: 100%;
    }

    .promise-toggle input {
        width: 0.9rem;
        height: 0.9rem;
    }

    .promise-help-text {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .promise-info summary {
        width: 1rem;
        height: 1rem;
        font-size: 0.7rem;
    }

    .message-profile-shortcut {
        align-self: flex-start;
    }

    .availability-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .availability-summary .button-link {
        align-self: flex-start;
    }
}



.no-margin {
    margin: 0;
}

.save-inline-form {
    display: inline-flex;
    margin: 0;
}

.save-inline-form.is-saving {
    opacity: 0.72;
}

.small-button {
    padding: 0.4rem 0.68rem;
    font-size: 0.82rem;
}

.tiny-button {
    min-height: 30px;
    padding: 0.26rem 0.48rem;
    font-size: 0.76rem;
}

.result-actions-top,
.save-action-row,
.saved-item-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.result-actions-top {
    justify-content: flex-end;
}

.result-card .result-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.85rem;
}

.clickable-result-card {
    cursor: pointer;
}

.clickable-result-card:focus-visible {
    outline: 2px solid #8fe3af;
    outline-offset: 3px;
}

.result-contact-link {
    display: inline-flex;
    margin-left: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    vertical-align: middle;
}

.message-profile-shortcut {
    align-self: center;
    color: #8fe3af;
    font-size: 0.82rem;
    text-decoration: none;
    padding: 0.35rem 0.45rem;
    border-radius: 5px;
}

.message-profile-shortcut:hover {
    background: rgba(143, 227, 175, 0.08);
}

.result-card .result-actions-top {
    max-width: 270px;
}

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.85rem 0 1rem;
}

.save-search-form {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.save-search-form.is-saving {
    opacity: 0.72;
}

.inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.inline-checkbox input {
    width: auto;
    margin: 0;
}

.saved-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #3d6d53;
    background: rgba(18, 52, 33, 0.6);
    color: #dfffe9;
    font-size: 0.76rem;
    white-space: nowrap;
}

.saved-active-button {
    border-color: #39a98f;
    background: rgba(35, 169, 143, 0.18);
    color: #dffff8;
    box-shadow: 0 0 0 1px rgba(57, 169, 143, 0.16), 0 8px 20px rgba(3, 39, 33, 0.22);
}

.saved-tag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.28rem;
    color: #73e6c9;
    font-size: 0.82em;
    line-height: 1;
}

.availability-summary {
    margin: 1rem 0;
    padding: 0.85rem 0.95rem;
    border-radius: 7px;
    border: 1px solid #486170;
    background: rgba(26, 39, 48, 0.72);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.availability-summary-main {
    min-width: 0;
}

.availability-summary h2 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.availability-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}
.availability-editor-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.availability-editor-section h3 {
    margin: 0;
    font-size: 0.95rem;
}

.availability-date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

.availability-summary-copy {
    max-width: 620px;
}

.availability-summary-notes {
    max-width: 620px;
    margin-top: 0.7rem;
}

.availability-summary-dates {
    margin-top: 0.7rem;
    margin-bottom: 0;
}

.availability-summary-days {
    margin-top: 0.55rem;
}

.weekday-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

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

.weekday-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.weekday-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #4c5d6d;
    background: #202b34;
    color: #dbe5ef;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.availability-modal-panel {
    width: min(620px, 94vw);
    max-height: calc(100vh - 1rem);
    overflow: hidden;
    padding: 0.75rem;
}

.availability-modal-panel .modal-header {
    margin-bottom: 0.55rem;
}

.availability-modal-panel .availability-editor-section {
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.availability-modal-panel .availability-editor-section:first-of-type {
    margin-top: 0;
}

.availability-modal-panel .availability-date-grid {
    gap: 0.5rem;
}

.availability-modal-panel .weekday-picker {
    gap: 0.3rem;
}

.availability-modal-panel .weekday-pill span {
    min-width: 0;
    padding: 0.36rem 0.5rem;
    border-radius: 3px;
    font-size: 0.84rem;
}

.availability-modal-panel .availability-modal-actions {
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.availability-modal-panel .availability-modal-actions button,
.availability-modal-panel .modal-header button {
    padding: 0.45rem 0.65rem;
    border-radius: 3px;
    font-size: 0.84rem;
}

.availability-modal-panel .modal-close-icon {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    padding: 0;
    line-height: 1;
}

.weekday-pill input:checked + span {
    background: #1b8d4b;
    border-color: #1b8d4b;
    color: #f8fff9;
}

.weekday-pill:hover span {
    border-color: #5d7386;
}

.weekday-display-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.weekday-display-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    border: 1px solid #4c5d6d;
    background: #202b34;
    color: #dbe5ef;
    font-size: 0.84rem;
}

.availability-repeat-block {
    margin-bottom: 0.85rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1rem;
}

.availability-feedback {
    margin: 0.25rem 0 0;
}

.availability-feedback-success {
    color: #a9d9bc;
}

.availability-feedback-error {
    color: #ffb7c6;
}

.media-upload-form {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px dashed #356247;
    border-radius: 7px;
    background: rgba(14, 28, 19, 0.42);
}

.media-upload-form > button[type="submit"] {
    align-self: flex-start;
    width: auto;
    min-width: 0;
    padding-inline: 0.85rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 400px));
    gap: 0.9rem;
    margin-top: 1rem;
    justify-content: start;
}

.media-card {
    border: 1px solid #465564;
    border-radius: 7px;
    overflow: hidden;
    background: #1d2630;
    width: 100%;
    max-width: 400px;
}

.media-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #08060f;
}

.media-preview-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.media-preview-button:focus-visible {
    outline: 2px solid #93dfb4;
    outline-offset: 2px;
}

.media-thumb-image {
    aspect-ratio: 1 / 1;
    max-height: 400px;
    object-fit: cover;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.8rem;
}

.media-caption {
    margin: 0 0 0.25rem;
    color: #e3ebf2;
}

.saved-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.saved-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem;
    border: 1px solid #465564;
    border-radius: 7px;
    background: #202a33;
}

.saved-state.match-found {
    border-color: rgba(102, 215, 197, 0.64);
    background: rgba(22, 105, 128, 0.26);
    color: #bff7ed;
}

.saved-state.no-match {
    border-color: #465564;
    background: rgba(33, 42, 51, 0.72);
    color: #aeb8c1;
}

.saved-alert-unread {
    border-color: rgba(102, 215, 197, 0.62);
    background:
        linear-gradient(180deg, rgba(31, 88, 83, 0.28), rgba(32, 42, 51, 0.98)),
        #202a33;
}

.saved-item h3 {
    margin: 0 0 0.25rem;
}

.saved-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.modal-open {
    overflow: hidden;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(3, 4, 9, 0.78);
}

.modal-panel {
    width: min(560px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #48596a;
    background: #202933;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.media-viewer-panel {
    width: min(900px, 96vw);
}

.media-viewer-image {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #0b1016;
    border: 1px solid #42505d;
    border-radius: 7px;
}

.media-viewer-caption {
    margin: 0.75rem 0 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.modal-header h2 {
    margin: 0;
}

.compact-actions {
    justify-content: flex-end;
}

@media (max-width: 720px) {
    .availability-summary,
    .results-toolbar,
    .saved-item,
    .media-meta,
    .result-actions-top,
    .save-action-row,
    .saved-item-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-panel {
        width: 100%;
    }

    .results-column-labels {
        display: none;
    }

    .match-meter-label {
        display: inline-flex;
    }

    .result-actions-top {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
    }

    .result-reliability {
        flex-direction: column;
        gap: 0.28rem;
    }

    .compact-actions {
        align-items: center;
        justify-content: flex-end;
    }

    .compact-match-meter-group {
        justify-content: flex-start;
    }

    .result-gallery-thumbs {
        justify-content: flex-start;
        width: auto;
        max-width: 100%;
        flex: 0 1 auto;
    }

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

    .result-card .result-actions-top {
        max-width: 100%;
    }
}





