html,
body {
    height: 100%;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --bg: #ffffff;
    --bg-new: #edeef0;
    --bg-accent: #ffffff;
    --bg-panel: #dcece3;
    --surface: #ffffff;
    --surface-alt: #f7fbf8;
    --text: #0f172a;
    --muted: #5b6474;
    --bg-muted: #eaf3ed;
    --accent: #4ca82c;
    --accent-soft: #e6f4dc;
    --accent-strong: #3a8f1f;
    --accent-dark: #2a7016;
    --accent-gradient: linear-gradient(90deg, #4ca82c 0%, #56d5e6 100%);
    --accent-strong-gradient: linear-gradient(90deg, #3a8f1f 0%, #56d5e6 100%);
    --event-accent: #1ab0ba;
    --event-accent-strong: #108c95;
    --event-accent-dark: #0b6f77;
    --event-accent-soft: #d9f1f4;
    --team-accent: #f29b38;
    --team-accent-soft: #fff1dc;
    --team-accent-strong: #d66a00;
    --company-accent: #5f27ff;
    --company-accent-strong: #4b17e0;
    --company-accent-dark: #3610a8;
    --company-accent-soft: #e6ddff;
    --group-accent: var(--event-accent);
    --group-accent-soft: var(--event-accent-soft);
    --profile-accent: var(--accent);
    --profile-accent-soft: var(--accent-soft);
    --danger: #e75b4a;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-panel: 1rem;
    --layout-navbar-height: clamp(3.25rem, 7vw, 4.5rem);
    --layout-footer-height: clamp(3.25rem, 7vw, 4.5rem);
    --page-padding: 0;
    --page-block-padding: 1rem 1.15rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.leaflet-container .leaflet-tile {
    max-width: none !important;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 1em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-rounded--filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

body {
    margin: 0;
    background: var(--bg-new);
    color: var(--text);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: var(--page-padding);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    min-width: 320px;
}

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

.layout {
    display: flex;
    align-items: stretch;
    width: calc(100% - (var(--page-padding) * 2));
    max-width: 1600px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 0;
    border: none;
    box-shadow: none;
    min-height: 100vh;
}

.layout__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-new);
    padding: 0;
    gap: clamp(0.5rem, 1vw, 1rem);
}

.body--chat {
    padding: var(--page-padding);
}

.body--chat .layout {
    min-height: 100vh;
    width: 100%;
    border-radius: clamp(0rem, 0.5vw, 12px);
    box-shadow: none;
    border: none;
}

.body--chat .layout__main {
    padding: 0;
    min-height: 0;
    gap: 0;
}

.body--404 .layout {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f7f2 0%, #e6f4ff 100%);
}

.body--404 .layout__main {
    padding: 0;
}

.body--404 .sidebar {
    display: none;
}

.main--404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 3.5rem);
}

.body--chat .main--chat {
    height: 100%;
    min-height: 0;
}

@media (min-width: 901px) {
    .body--chat .layout,
    .body--chat .layout__main {
        height: 100vh;
    }
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-dark);
}

.container {
    width: min(1400px, 100%);
    margin: 0 auto;
}

.container--page {
    padding: var(--page-block-padding);
    box-sizing: border-box;
    background-color: var(--bg-new);
}

.page-header {
    display: grid;
    gap: 0.75rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.page-subtitle {
    margin: 0;
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.not-found {
    width: min(960px, 100%);
    margin: 0 auto;
    text-align: center;
}

.not-found__eyebrow {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    font-weight: 700;
}

.not-found__title {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    letter-spacing: -0.01em;
}

.not-found__text {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.not-found__plain {
    display: grid;
    gap: 0.9rem;
    padding: clamp(2.25rem, 5vw, 3.5rem);
    border-radius: var(--radius-panel);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(8px);
    width: min(640px, 100%);
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.card__title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.card__description {
    margin: 0 0 0.75rem;
    color: var(--muted);
    line-height: 1.55;
}

.card__details {
    margin: 0;
    font-weight: 600;
    color: var(--accent-dark);
}

.sidebar {
    flex-shrink: 0;
    width: 255px;
    background: var(--bg-new);
    border-right: #c9dfd3;
    display: flex;
    padding: var(--page-block-padding);
}

.sidebar__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

.sidebar-search {
    position: relative;
    padding: 0;
}

.sidebar-search__input {
    width: 100%;
    padding: 0.65rem 2.5rem 0.65rem 0.9rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-sm);
    background: #f3f5f8;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sidebar-search__input:focus {
    outline: none;
    border-color: rgba(36, 176, 112, 0.4);
    box-shadow: 0 0 0 3px rgba(36, 176, 112, 0.15);
    background: #ffffff;
}

.sidebar-search__button {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.sidebar-search__button:hover,
.sidebar-search__button:focus-visible {
    color: var(--accent);
    outline: none;
}

.sidebar-search__button .material-symbols-rounded {
    font-size: 1.1rem;
}

.sidebar__brand {
    padding: 0;
}

.sidebar__brand .logo {
    border-radius: var(--radius-sm);
    color: var(--accent-strong);
    font-size: 1.1rem;
    font-weight: 700;
}

.sidebar__top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.sidebar__collapsible {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.sidebar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    margin-left: auto;
    border: 1px solid var(--bg-panel);
    border-radius: 14px;
    background: var(--surface-alt);
    color: inherit;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.sidebar__toggle:hover,
.sidebar__toggle:focus-visible {
    border-color: rgba(36, 176, 112, 0.35);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
    background: #f4f7fb;
    outline: none;
    transform: translateY(-1px);
}

.sidebar__toggle-box {
    position: relative;
    width: 22px;
    height: 16px;
    display: inline-flex;
}

.sidebar__toggle-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sidebar__toggle-line--top {
    top: 0;
}

.sidebar__toggle-line--middle {
    top: 50%;
    transform: translateY(-50%);
}

.sidebar__toggle-line--bottom {
    bottom: 0;
}

.sidebar--menu-open .sidebar__toggle-line--top {
    transform: translateY(7px) rotate(45deg);
}

.sidebar--menu-open .sidebar__toggle-line--middle {
    opacity: 0;
}

.sidebar--menu-open .sidebar__toggle-line--bottom {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--bg-panel);
    box-shadow: 0 18px 40px rgba(142, 234, 63, 0.08);
}

.navbar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}

.logo__image {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo__text {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .logo__text {
        display: none;
    }
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu--primary {
    align-items: stretch;
}

.menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
    background: rgba(36, 176, 112, 0.12);
    color: var(--accent-strong);
    border-color: rgba(36, 176, 112, 0.25);
    outline: none;
    transform: translateY(-1px);
}

.menu--sidebar a {
    width: 100%;
}

.menu__icon {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 20px;
    align-self: flex-start;
    color: inherit;
    transition: color 0.2s ease;
    color: var(--accent);
}

.menu__icon .material-symbols-rounded {
    font-size: 1.4rem;
}

.menu a:hover .menu__icon,
.menu a:focus-visible .menu__icon {
    color: var(--accent-strong);
}

.menu__link-text {
    position: relative;
    z-index: 1;
}

.menu__link--with-badge {
    padding-right: 3.5rem;
}

.menu__badge {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    min-width: 1.75rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1;
    color: #ffffff;
    background: #0f172a;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.menu__badge:empty {
    display: none;
}

.menu--sidebar .menu__link--with-badge {
    padding-right: 3.5rem;
}

.menu--sidebar .menu__badge {
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
}

.menu__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    background: var(--accent-gradient);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 18px rgba(36, 176, 112, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.menu__button--full {
    width: 100%;
}

.menu__button:hover,
.menu__button:focus-visible {
    background: var(--accent-strong-gradient);
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(36, 176, 112, 0.25);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--bg-panel);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    width: 100%;
}

.sidebar-user:hover,
.sidebar-user:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(36, 176, 112, 0.3);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.15);
}

.sidebar-user__avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: 0 10px 25px rgba(36, 176, 112, 0.3);
    --avatar-size: 48px;
    --avatar-badge-size: calc(var(--avatar-size) * 0.45);
}

.sidebar-user__avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.sidebar-user__avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: calc(42px * 0.36);
    line-height: 1;
    letter-spacing: 0.08em;
}

.sidebar-user__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding-left: 0.4rem;
}

.sidebar-user__info--single {
    justify-content: center;
}

.sidebar-user__name-link {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.sidebar-user__name-link:hover,
.sidebar-user__name-link:focus-visible {
    text-decoration: underline;
}

.sidebar-user__meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.sidebar__actions {
    margin-top: auto;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bg-panel);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar__action-form {
    margin: 0;
}

.sidebar__action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    width: 100%;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
}

.sidebar__action:focus-visible {
    outline: none;
}

.sidebar__action:hover,
.sidebar__action:focus-visible {
    background: rgba(36, 176, 112, 0.08);
    color: var(--accent-strong);
    border-color: rgba(36, 176, 112, 0.2);
}

.sidebar__action-text {
    font-weight: 600;
}

.sidebar__action--settings {
    color: var(--muted);
}

.sidebar__action--logout {
    color: var(--danger);
}

.sidebar__action--logout:hover,
.sidebar__action--logout:focus-visible {
    background: rgba(231, 91, 74, 0.08);
    border-color: rgba(231, 91, 74, 0.25);
    color: var(--danger);
}

.sidebar__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}

.main {
    flex: 1;
}

.main--discovery {
    padding: 0;
    display: flex;
    min-height: 0;
    height: 100%;
    align-items: stretch;
    overflow: hidden;
    background: var(--surface);
}

.discovery-layout {
    width: 100%;
    max-width: min(1180px, 100%);
    margin: 0 auto;
    padding: var(--page-block-padding);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.discovery-layout .messages {
    width: min(1280px, 96vw);
    margin: 1.5rem auto 0;
}

.footer {
    border-top: 1px solid var(--bg-panel);
    background: var(--surface);
    padding: clamp(1.5rem, 4vw, 2.25rem) 0;
    backdrop-filter: blur(6px);
}

.footer__content {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.main--landing {
    min-height: 100vh;
    background: #f6faf7;
    padding: 0;
}

.main--landing .container--page {
    background-color: transparent;
}

.landing {
    width: min(1180px, calc(100% - 2rem));
    padding: 0;
    background: transparent;
}

.landing__steps {
    display: none;
}

.landing__features {
    display: grid;
    gap: 1.5rem;
    padding: 2rem 0 0;
}

.landing__features-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 1.5rem;
    align-items: end;
}

.landing__features-copy {
    display: grid;
    gap: 0.85rem;
}

.landing__eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(76, 157, 29, 0.2);
    color: var(--accent-dark);
    background: #f1f8ee;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    border-radius: 999px;
}

.landing__features h1 {
    max-width: 720px;
    margin: 0;
    color: var(--text);
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.landing__features-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.landing__metrics {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.landing__metrics div {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid #dfe9dd;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(30, 45, 36, 0.07);
    border-radius: 8px;
}

.landing__metrics dt {
    margin: 0 0 0.35rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.landing__metrics dd {
    margin: 0;
    color: var(--text);
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1;
}

.landing__showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 1rem;
    align-items: stretch;
}

.landing__screen {
    min-width: 0;
    display: grid;
    gap: 0.9rem;
    align-content: start;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #dde7dc;
    box-shadow: 0 22px 55px rgba(24, 43, 32, 0.12);
    border-radius: 8px;
}

.landing__screen-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2rem;
    color: var(--text);
    font-weight: 850;
}

.landing__screen-header .material-symbols-rounded {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #2d7a4b;
    font-size: 1.15rem;
    border-radius: 8px;
}

.landing__map-widget,
.landing__chat-shot {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5ece4;
    background: #f7faf6;
    border-radius: 8px;
}

.landing__map-widget {
    min-height: 320px;
    height: clamp(320px, 37vw, 440px);
    background: #eef4ed;
    isolation: isolate;
}

.landing__map-widget .leaflet-control-attribution {
    font-size: 0.68rem;
}

.landing__map-widget--failed {
    display: grid;
    place-items: center;
    padding: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: center;
}

.landing__chat-shot {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    min-height: 238px;
    padding: 1rem;
}

.landing__org-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem;
    background: #ffffff;
    border: 1px solid #e1e9df;
    color: var(--text);
    border-radius: 8px;
}

.landing__org-avatar {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2d7a4b;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 850;
    border-radius: 999px;
    overflow: hidden;
}

.landing__org-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing__org-card:nth-child(2) .landing__org-avatar {
    background: #2f6fb2;
}

.landing__org-card:nth-child(3) .landing__org-avatar {
    background: #e36b4f;
}

.landing__org-body {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.landing__org-body strong,
.landing__org-body small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing__org-body strong {
    font-size: 0.92rem;
}

.landing__org-body small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.landing__empty-state,
.landing__empty-line {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.landing__empty-state {
    align-self: center;
    justify-self: center;
    max-width: 15rem;
    text-align: center;
}

.landing__empty-line {
    min-height: 3.2rem;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.7rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px dashed #d8e3d7;
    border-radius: 8px;
}

.landing__feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.landing__feature {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 0.65rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e0e8df;
    box-shadow: 0 14px 34px rgba(24, 43, 32, 0.08);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
}

.landing__feature:hover,
.landing__feature:focus-visible {
    color: var(--text);
    border-color: rgba(76, 168, 44, 0.36);
    box-shadow: 0 18px 40px rgba(24, 43, 32, 0.12);
}

.landing__feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2d7a4b;
    background: #edf6ec;
    font-size: 1.25rem;
    border-radius: 8px;
}

.landing__feature h2 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    letter-spacing: 0;
}

.landing__feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.landing__features-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.button {
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 0.75rem 1.4rem;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.02em;
    max-width: 100%;
    overflow-wrap: anywhere;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 14px 26px rgba(76, 157, 29, 0.25);
}

.button:hover {
    transform: translateY(-2px);
    text-decoration: none;
    background: var(--accent-strong-gradient);
    box-shadow: 0 16px 32px rgba(76, 157, 29, 0.25);
}

.button--outline {
    background: var(--surface);
    color: var(--accent);
    border: 2px solid var(--accent);
}

.button--outline:hover {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(76, 157, 29, 0.25);
}

.button--danger {
    background: var(--surface);
    color: var(--danger);
    border: 2px solid var(--danger);
    box-shadow: 0 12px 24px rgba(231, 91, 74, 0.18);
}

.button--danger:hover {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(231, 91, 74, 0.28);
}

.button--event {
    background: var(--event-accent);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(18, 143, 151, 0.3);
    border: 1px solid var(--surface);
}

.button--event:hover {
    background: var(--event-accent-strong);
    color: #ffffff;
    box-shadow: 0 24px 48px rgba(18, 143, 151, 0.35);
}

.button--team {
    background: var(--team-accent);
    color: #ffffff;
    box-shadow: 0 18px 36px rgb(157 102 29 / 26%);
}

.button--team:hover {
    background: var(--accent-strong-gradient);
    color: #ffffff;
    box-shadow: 0 24px 48px rgba(76, 157, 29, 0.3);
}

.button--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: none;
}

.button--ghost__white {
    color: #fff;
    border-color: #fff;

}

.button--ghost:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text);
    border-color: #000;
}

.button--pill {
    border-radius: 999px;
    padding: 0.5rem 1rem;
}

.profile--team .profile__hero .button:hover {
    box-shadow: 0 20px 40px rgba(242, 123, 18, 0.36);
}

.profile--team .profile__hero .button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.profile--team .profile__hero form{
    margin: 0;
}

.profile--team .profile__hero .button--outline--orange {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 1100;
    height: 100vh;
    overscroll-behavior: contain;
}

.modal--emergency .modal__dialog {
    max-height: min(90vh, 780px);
    width: min(640px, 100%);
    overflow: hidden;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    gap: 1rem;
}

.modal__body--emergency {
    overflow-y: auto;
    max-height: calc(90vh - 180px);
    padding-right: 0.15rem;
}

.modal--emergency .modal__form {
    gap: 1rem;
}

.modal--emergency input,
.modal--emergency select,
.modal--emergency textarea {
    background: var(--surface-alt);
    border: 1px solid rgba(31, 47, 37, 0.12);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    font: inherit;
    color: var(--text);
    width: 100%;
}

.modal--emergency textarea {
    resize: vertical;
}

.emergency-form__grid {
    display: grid;
    gap: 0.85rem;
}

.emergency-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
    align-items: end;
}

.emergency-form__row--meta {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.emergency-form__row--full {
    grid-template-columns: 1fr;
}

.emergency-form__geo {
    height: 100%;
    justify-content: center;
    min-height: 48px;
    gap: 0.4rem;
}

.emergency-form__actions {
    align-items: center;
}

.modal--emergency .form__hint {
    min-height: 1.2em;
}

.modal--open {
    display: flex;
}

.modal[hidden] {
    display: none !important;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 47, 37, 0.55);
    backdrop-filter: blur(4px);
}

.modal__dialog {
    position: relative;
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: 0 32px 80px rgba(31, 47, 37, 0.25);
    padding: clamp(1.5rem, 3vw, 2rem);
    width: min(520px, 100%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.modal__close:hover,
.modal__close:focus-visible {
    color: var(--accent);
    outline: none;
}

.modal__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 2.5rem;
}

.modal__title {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.modal__description {
    margin: 0;
    color: var(--muted);
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.modal__field--inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem 1rem;
}

.modal__field-half {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal__field-label {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.modal__textarea {
    min-height: 140px;
    resize: vertical;
}

.modal__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal__actions .button {
    flex: 1 1 auto;
}

.modal__feedback {
    margin-top: -0.5rem;
}

.chat-forward-modal__body {
    display: grid;
    gap: 1rem;
}

.chat-forward-modal__preview {
    background: var(--surface-alt);
    border: 1px dashed rgba(15, 23, 42, 0.15);
    border-radius: 0.85rem;
    padding: 0.85rem;
}

.chat-forward-modal__preview:empty {
    display: none;
}

.chat-forward-modal__list {
    display: grid;
    gap: 0.65rem;
    max-height: 52vh;
    overflow: auto;
}

.chat-forward-modal__empty {
    margin: 0;
    padding: 0.5rem 0.25rem;
    color: var(--muted);
}

.chat-forward-modal__chat {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 0.65rem 0.75rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.chat-forward-modal__chat:hover,
.chat-forward-modal__chat:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.chat-forward-modal__chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-panel);
    display: grid;
    place-items: center;
    color: var(--text);
    overflow: hidden;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.chat-forward-modal__chat-avatar-fallback {
    color: inherit;
}

.chat-forward-modal__chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-forward-modal__chat-avatar--event {
    background: var(--accent-soft);
    color: #0f172a;
}

.chat-forward-modal__chat-avatar--group {
    background: #fef3c7;
    color: #92400e;
}

.chat-forward-modal__chat-avatar--clan {
    background: #e0f2fe;
    color: #0f172a;
}

.chat-forward-modal__chat-avatar--company {
    background: #f1f5f9;
    color: #0f172a;
}

.chat-forward-modal__chat-avatar--profile {
    background: #eef2ff;
    color: #312e81;
}

.chat-forward-modal__chat-texts {
    display: grid;
    gap: 0.1rem;
}

.chat-forward-modal__chat-title {
    font-weight: 700;
    color: var(--text);
}

.chat-forward-modal__chat-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
}

.profile-invite-modal .modal__dialog {
    background: linear-gradient(180deg, #f7fbf5 0%, #ffffff 40%, #f5f7fb 100%);
    border: 1px solid var(--bg-panel);
    box-shadow: 0 28px 60px rgba(31, 47, 37, 0.18);
    gap: 1.25rem;
    max-height: min(90vh, 820px);
    overflow: hidden;
    color: var(--text);
}

.profile-invite-modal .modal__form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-invite__content {
    display: grid;
    gap: 1rem;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding-right: 0.25rem;
    flex: 1 1 auto;
    min-height: 0;
}

.profile-invite__intro {
    display: grid;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--bg-panel);
    background: rgba(142, 234, 63, 0.08);
    border-radius: 14px;
}

.profile-invite__person {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.profile-invite__person .avatar {
    box-shadow: 0 12px 30px rgba(31, 47, 37, 0.12);
}

.profile-invite__person-meta {
    display: grid;
    gap: 0.25rem;
}

.profile-invite__label {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-invite__name {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.profile-invite__summary {
    margin: 0;
    color: var(--text);
    opacity: 0.85;
    overflow-wrap: anywhere;
}

.profile-invite__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-invite__tag--inactive {
    border-color: rgba(219, 232, 224, 0.8);
    background: rgba(219, 232, 224, 0.35);
    color: var(--muted);
}

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

.profile-invite__option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--bg-panel);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(31, 47, 37, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    color: var(--text);
    position: relative;
}

.profile-invite__option:hover,
.profile-invite__option:focus-within {
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgba(76, 157, 29, 0.18);
    transform: translateY(-2px);
}

.profile-invite__option input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--bg-panel);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.profile-invite__option input:checked {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(76, 157, 29, 0.16);
}

.profile-invite__option input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.profile-invite__option-body {
    display: grid;
    gap: 0.2rem;
}

.profile-invite__option-title {
    font-weight: 700;
}

.profile-invite__option-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.profile-invite__option[data-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.profile-invite__picker {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--bg-panel);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 18px rgba(31, 47, 37, 0.08);
}

.profile-invite__picker[hidden],
.profile-invite__list[hidden] {
    display: none !important;
}

.profile-invite__picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.profile-invite__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(76, 157, 29, 0.12);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-invite__badge--team {
    background: var(--team-accent-soft);
    color: var(--team-accent);
}

.profile-invite__list {
    display: grid;
    gap: 0.6rem;
    max-height: min(48vh, 320px);
    overflow-y: auto;
    padding-right: 0.25rem;
    min-height: 120px;
}

.profile-invite__card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--bg-panel);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(31, 47, 37, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: var(--text);
}

.profile-invite__card:hover,
.profile-invite__card:focus-within {
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(76, 157, 29, 0.16);
}

.profile-invite__card--active {
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(76, 157, 29, 0.18);
}

.profile-invite__card input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--bg-panel);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.profile-invite__card input:checked {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(76, 157, 29, 0.16);
}

.profile-invite__card input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.profile-invite__card input:checked + .profile-invite__card-body {
    color: var(--accent-dark);
}

.profile-invite__card-body {
    display: grid;
    gap: 0.2rem;
}

.profile-invite__card-title {
    font-weight: 700;
}

.profile-invite__card-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.profile-invite__selection {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    background: rgba(76, 157, 29, 0.12);
    color: var(--accent);
    font-weight: 600;
}

.profile-invite__selection .material-symbols-rounded {
    font-size: 1.25rem;
}

.profile-invite-modal .form__actions--split {
    align-items: center;
}

.profile-invite-modal .form__actions--split .form__hint {
    min-height: 1.25rem;
}

.avatar-uploader {
    width: 100%;
    max-width: 740px;
    background: #ffffff;
    border: 1px solid var(--bg-panel);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 28px rgba(8, 30, 17, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.avatar-uploader__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.avatar-uploader__thumb {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
}

.avatar-uploader__thumb-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(76, 168, 44, 0.25);
    box-shadow: 0 12px 22px rgba(8, 30, 17, 0.16);
    display: grid;
    place-items: center;
    position: relative;
}

.avatar-uploader__thumb-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

.avatar-uploader__thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--surface-alt);
    position: absolute;
    inset: 0;
}

.avatar-uploader__thumb-label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.avatar-uploader__controls {
    display: grid;
    gap: 0.35rem;
}

.avatar-uploader__dropzone {
    position: relative;
    display: grid;
    gap: 0.4rem;
    justify-items: center;
    padding: 1.35rem 1rem;
    border: 1.5px dashed rgba(31, 47, 37, 0.18);
    border-radius: 14px;
    background: rgba(248, 250, 249, 0.9);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.avatar-uploader__dropzone:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(8, 30, 17, 0.12);
}

.avatar-uploader__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.avatar-uploader__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    box-shadow: none;
    position: relative;
}

.avatar-uploader__title {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    color: var(--text);
}

.avatar-uploader__hint {
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
}

.avatar-uploader__note {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.2rem 0.65rem;
    border-radius: 12px;
    background: rgba(76, 168, 44, 0.12);
}

.avatar-uploader__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.avatar-uploader__tip {
    color: var(--muted);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.avatar-uploader__clear {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.avatar-uploader__subnote {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.avatar-uploader__status {
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.avatar-uploader--ready .avatar-uploader__dropzone {
    border-color: var(--accent);
    box-shadow: 0 12px 20px rgba(12, 105, 35, 0.12);
}

.avatar-uploader__clear-input {
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
}

.avatar-uploader__clear-label {
    cursor: pointer;
    color: var(--danger);
    font-weight: 600;
}

.avatar-crop-modal {
    align-items: center;
}

.avatar-cropper {
    display: grid;
    gap: 1rem 1.5rem;
    align-items: start;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    grid-template-areas:
        "canvas preview"
        "canvas controls";
}

.avatar-cropper__live {
    display: contents;
}

.avatar-cropper__canvas {
    grid-area: canvas;
    position: relative;
    width: min(560px, 100%);
    height: min(60vh, 560px);
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 26px rgba(8, 30, 17, 0.12);
}

.avatar-cropper__canvas img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.avatar-cropper__overlay {
    display: none;
}

.avatar-cropper__tips {
    display: none;
}

.avatar-cropper__tip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(76, 168, 44, 0.12);
    box-shadow: 0 12px 20px rgba(8, 30, 17, 0.08);
}

.avatar-cropper__preview {
    grid-area: preview;
    justify-self: center;
    text-align: center;
    display: grid;
    gap: 0.5rem;
}

.avatar-cropper__preview-circle {
    width: min(48vw, 200px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 18px 28px rgba(8, 30, 17, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.avatar-cropper__preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-cropper__preview-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.avatar-cropper__controls {
    grid-area: controls;
    display: grid;
    gap: 0.65rem;
    align-content: start;
}

.avatar-cropper__slider-label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--text);
}

.avatar-cropper__slider-label input[type='range'] {
    accent-color: var(--accent-dark);
}

.avatar-cropper__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.avatar-cropper__tip strong {
    display: block;
    color: var(--text);
    font-size: 0.98rem;
}

.avatar-cropper__tip small {
    color: var(--muted);
}

.avatar-cropper__tip .material-symbols-rounded {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.avatar-crop-modal__dialog {
    max-width: 960px;
    width: min(960px, 100%);
    max-height: min(96vh, 980px);
    overflow: hidden;
}

.avatar-crop-modal__body {
    display: grid;
    gap: 1.25rem;
    flex: 1;
}

.avatar-crop-modal__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.75rem;
    margin: 0 0 0.35rem;
}

.modal__actions--spread {
    justify-content: space-between;
    gap: 0.75rem;
}

.avatar-cropper .cropper-view-box {
    border-radius: 50%;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.avatar-cropper .cropper-face {
    border-radius: 50%;
    background-color: transparent !important;
    opacity: 1;
}

.avatar-cropper .cropper-modal {
    background-color: rgba(0, 0, 0, 0.55);
}

.avatar-cropper .cropper-bg {
    background-color: transparent;
}

.team-join-feedback {
    margin-top: 1rem;
}

.team-join-feedback .message {
    margin: 0;
}

.profile--team .profile__hero .button--outline:disabled {
    border-color: rgba(255, 255, 255, 0.5);
}

.card,
.panel,
.info-card {
    background: var(--surface);
    border: 1px solid var(--bg-panel);
    padding: clamp(1.35rem, 2.3vw, 1.85rem);
    box-shadow: 0 28px 45px rgba(142, 234, 63, 0.08);
    border-radius: var(--radius-md);
}

.card h3,
.card h4,
.info-card h2 {
    margin-top: 0;
}

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

.detail {
    display: grid;
    gap: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--bg-panel);
    padding: 1.5rem;
    box-shadow: 0 32px 60px rgba(142, 234, 63, 0.12);
    border-radius: var(--radius-lg);
}

.detail__header h1 {
    margin-bottom: 0.25rem;
}

.detail--with-sidebar {
    padding: 1.75rem;
}

.detail__header--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.detail__subtitle {
    margin: 0.35rem 0 0;
}

.detail__location {
    display: grid;
    gap: 1.25rem;
}

.detail__location-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.detail__section {
    display: grid;
    gap: 0.75rem;
}

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

.detail__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
}

.detail__section--primary {
    display: grid;
    gap: 1.5rem;
}

.detail__figure {
    margin: 0;
    justify-self: start;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(31, 47, 37, 0.18);
    max-width: 280px;
}

.detail__figure--event {
    width: 180px;
    height: 180px;
    max-width: none;
    background: var(--event-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.detail__figure--event .detail__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail__photo {
    display: block;
    width: 100%;
    height: auto;
}

.detail__photo--placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    color: #1f2f25;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail__figure--event .detail__photo--placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: transparent;
    color: var(--event-accent);
    font-size: 2.75rem;
}

.team-detail__aside {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    display: grid;
    gap: 1.5rem;
}

.team-sidebar-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    box-shadow: none;
}

.team-sidebar-card + .team-sidebar-card {
    border-top: 1px solid rgba(31, 47, 37, 0.08);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.team-sidebar-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.team-sidebar-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.team-sidebar-card__actions {
    display: grid;
    gap: 0.5rem;
}

.team-sidebar-card__actions form {
    margin: 0;
}

.team-sidebar-card__actions .button {
    width: 100%;
}

.team-sidebar-card__note {
    margin: 0;
}

.team-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.team-summary__figure {
    margin: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(31, 47, 37, 0.08);
    display: grid;
    place-items: center;
    justify-self: start;
}

.team-summary__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-summary__placeholder {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.team-summary__content {
    display: grid;
    gap: 0.5rem;
}

.team-summary__creator {
    margin: 0;
    color: var(--muted);
}

.team-summary__description {
    display: grid;
    gap: 0.5rem;
    line-height: 1.6;
}

.team-summary__placeholder-text {
    margin: 0;
}

.team-summary__stats {
    display: grid;
    gap: 0.25rem;
    margin: 0;
}

.team-summary__stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(31, 47, 37, 0.08);
}

.team-summary__stat:last-child {
    border-bottom: none;
}

.team-summary__stat dt {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(31, 47, 37, 0.6);
}

.team-summary__stat dd {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.team-participants {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.team-participants__item {
    border-bottom: 1px solid rgba(31, 47, 37, 0.08);
}

.team-participants__item:last-child {
    border-bottom: none;
}

.team-participants__link {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0;
    color: inherit;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.team-participants__link:hover,
.team-participants__link:focus-visible {
    background: rgba(142, 234, 63, 0.08);
}

.team-participants__info {
    display: grid;
    gap: 0.25rem;
}

.team-participants__name {
    font-weight: 600;
}

.team-participants__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.team-participants__meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.team-participants--card {
    margin: 1rem 0 0;
}

.profile--team .team-participants__badge {
    background: var(--team-accent-soft);
    color: var(--team-accent);
}

.chip--soft {
    border-color: rgba(189, 229, 203, 0.6);
    background: rgba(189, 229, 203, 0.3);
}

.team-feed {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.team-feed__header {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

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

.team-feed__notice {
    margin: 0;
}

.team-feed__list {
    display: grid;
    gap: 0;
}

.post-composer {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border-radius: 0.9rem;
    border: 1px solid rgba(31, 47, 37, 0.08);
    box-shadow: none;
}

.post-composer__row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 0.5rem;
    border: 1px solid var(--bg-panel);
    border-radius: 0.85rem;
    background: var(--surface);
    box-shadow: none;
}

.post-composer__tags {
    display: grid;
    gap: 0.5rem;
}

.post-composer__tags-label {
    font-weight: 600;
}

.post-composer__tags-hint {
    font-size: 0.85rem;
    color: rgba(31, 47, 37, 0.65);
}

.post-composer__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    cursor: pointer;
}

.post-composer__checkbox input {
    width: 1.1rem;
    height: 1.1rem;
}

.post-composer__attach {
    display: flex;
    align-items: center;
}

.post-composer__attach .chat-widget__attach-toggle {
    border-radius: 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.post-composer__attach .chat-widget__attach-toggle:not(:disabled):hover,
.post-composer__attach .chat-widget__attach-toggle:not(:disabled):focus-visible {
    background: rgba(142, 234, 63, 0.14);
    color: var(--accent);
    outline: none;
}

.post-composer__row .chat-widget__input {
    background: transparent;
    border-radius: 0.65rem;
    padding: 0.65rem 0.85rem;
    box-shadow: inset 0 0 0 1px rgba(31, 47, 37, 0.08);
    transition: box-shadow 0.2s ease;
}

.post-composer__row .chat-widget__input:focus {
    box-shadow: inset 0 0 0 1px rgba(142, 234, 63, 0.65);
}

.post-composer__send {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.post-composer__send .chat-widget__send-icon {
    color: inherit;
}

.post-composer__send:hover,
.post-composer__send:focus-visible {
    background: var(--accent-strong-gradient);
    transform: translateY(-1px);
    outline: none;
}

.post-composer__errors {
    display: grid;
    gap: 0.35rem;
}

.post-composer__draft-attachments {
    padding: 0;
}

.post-composer__draft-attachments .chat-widget__draft-attachment {
    max-width: 100%;
}

.team-post {
    background: var(--surface);
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(31, 47, 37, 0.08);
    border-radius: var(--radius-panel);
    box-shadow: 0 25px 45px rgba(31, 47, 37, 0.08);
    display: grid;
    gap: 0.95rem;
    margin-bottom: 2rem;
}

.team-post__tags {
    margin-top: -0.25rem;
    gap: 0.35rem;
}

.team-post__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.team-post__author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.team-post__author-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.team-post__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.team-post__date {
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

.team-post__content {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.team-post__content > *:first-child {
    margin-top: 0;
}

.team-post__content > *:last-child {
    margin-bottom: 0;
}

.team-post__figure {
    margin: 0.75rem 0 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.team-post__image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.team-post__media {
    margin-top: 0.75rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.team-post__video {
    width: 100%;
    display: block;
    background: #000;
}

.team-post__file {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(31, 47, 37, 0.12);
    background: rgba(31, 47, 37, 0.03);
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    margin-top: 0.75rem;
}

.team-post__file:hover {
    border-color: rgba(142, 234, 63, 0.35);
    background: rgba(189, 229, 203, 0.35);
}

.team-post__footer {
    margin-top: 0.75rem;
}

.team-post__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-post__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 37, 0.12);
    background: transparent;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.team-post__action:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.team-post__action:not(:disabled):hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}

.team-post__action--active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: var(--accent);
}

.team-post__action--active:not(:disabled):hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--surface)
}

.team-post__action-icon {
    font-size: 1rem;
    line-height: 1;
}

.team-post__action-icon--vk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0.25rem;
    background: #2787f5;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0;
}

.team-post__action-label {
    line-height: 1;
}

.team-post__action-count {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.team-events {
    display: grid;
    gap: 1rem;
}

.detail__section--stacked {
    gap: 0.75rem;
}

.detail__text {
    display: grid;
    gap: 0.75rem;
    line-height: 1.65;
}

.detail__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.detail__list--spacious {
    gap: 0.75rem;
}

.detail__footer {
    display: grid;
    gap: 0.75rem;
}

.detail__hint {
    margin: 0;
}

.detail__aside {
    background: var(--surface-alt);
    border: 1px solid var(--bg-panel);
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
    box-shadow: 0 18px 36px rgba(142, 234, 63, 0.08);
}

.detail__stats {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.detail__stat {
    display: grid;
    gap: 0.25rem;
}

.detail__stat dt {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: var(--muted);
}

.detail__stat dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.detail__actions {
    display: grid;
    gap: 0.75rem;
}

.auth,
.dashboard,
.list {
    display: grid;
}

.list__map {
    background: var(--surface);
    gap: 1.25rem;
    position: relative;
}

.list__map-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
}

.container--page .list__map-heading {
    padding-left: 0;
    padding-right: 0;
}

.list__heading-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.list__heading-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.list__filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.list__filters-toggle .material-symbols-rounded {
    font-size: 1.2rem;
}

.list__filters-toggle--active {
    background: rgba(98, 194, 50, 0.14);
    color: var(--accent-dark);
    border-color: rgba(62, 155, 31, 0.4);
}

.people-filters,
.events-filters,
.news-filters {
    width: 100%;
    position: relative;
    display: none;
}

.people-filters--open,
.events-filters--open,
.news-filters--open {
    display: block;
}

.people-filters__dropdown,
.events-filters__dropdown,
.news-filters__dropdown {
    margin: 0;
    padding: clamp(0.85rem, 2vw, 1.25rem);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.people-filters--open .people-filters__dropdown,
.events-filters--open .events-filters__dropdown,
.news-filters--open .news-filters__dropdown {
    animation: filtersDropIn 180ms ease;
}

@keyframes filtersDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag-filter {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag-filter--wide {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
}

.tag-filter__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
    width: 100%;
}

.tag-filter__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: min(320px, 100%);
}

.tag-filter__field--inline .tag-filter__inline-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
}

.tag-filter__inline-inputs--wide {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.tag-filter__inline-inputs--geo {
    display: grid;
    grid-template-columns: minmax(200px, 0.75fr) auto;
    gap: 0.75rem 0.65rem;
    align-items: center;
}

.tag-filter__geo-status {
    grid-column: 1 / -1;
}

.tag-filter__geo-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    color: var(--muted);
    font-weight: 600;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    max-width: 100%;
}

.tag-filter__geo-status[data-state="success"] {
    background: var(--accent-soft);
    border-color: rgba(76, 168, 44, 0.35);
    color: var(--accent-strong);
}

.tag-filter__geo-status[data-state="error"] {
    background: #fdeceb;
    border-color: rgba(231, 91, 74, 0.4);
    color: var(--danger);
}

.tag-filter__geo-status[data-state="muted"] {
    background: var(--surface-alt);
    color: var(--muted);
}

.tag-filter__geo-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.tag-filter__geo-button {
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text);
    white-space: nowrap;
    grid-row: 1;
    grid-column: 2;
}

[data-discovery-geo-status-text] {
    overflow-wrap: anywhere;
}

.tag-filter__hint[data-state="error"] {
    color: var(--danger);
}

.tag-filter__hint[data-state="success"] {
    color: var(--accent-strong);
}

.tag-filter__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.tag-filter__hint {
    color: var(--muted);
    font-size: 0.85rem;
}

.tag-filter__checkboxes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.tag-filter__checkboxes--column {
    flex-wrap: nowrap;
}

.tag-filter__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--bg-panel);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    user-select: none;
}

.tag-filter__checkbox input {
    margin: 0;
    accent-color: var(--accent-strong);
}

.tag-filter__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-filter__error {
    color: var(--danger);
    font-size: 0.8rem;
}

.activity-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.activity-select__option {
    display: inline-flex;
}

.activity-select__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    margin: 0;
    appearance: none;
}

.activity-select__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #dce6ef;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.activity-select__icon {
    font-size: 1.1rem;
    color: var(--muted);
}

.activity-select__label {
    font-weight: 600;
}

.activity-select__input:checked + .activity-select__pill {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: var(--accent-soft);
    box-shadow: 0 8px 18px rgba(76, 168, 44, 0.18);
}

.activity-select__input:focus-visible + .activity-select__pill {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.activity-select__hint {
    color: var(--muted);
    font-size: 0.85rem;
}

.post-activity-select {
    position: relative;
    width: 100%;
}

.post-activity-select__control {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid #d8e4ef;
    background: linear-gradient(120deg, #f7fafc 0%, #ffffff 60%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 30px rgba(16, 24, 40, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
    cursor: pointer;
}

.post-activity-select__control:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.post-activity-select--open .post-activity-select__control {
    border-color: var(--accent);
    box-shadow: 0 16px 34px rgba(76, 168, 44, 0.16);
}

.post-activity-select__chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    min-height: 1.5rem;
    flex: 1;
}

.post-activity-select__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(76, 168, 44, 0.22);
}

.post-activity-select__chip-icon {
    font-size: 1rem;
}

.post-activity-select__chip-remove {
    border: none;
    background: transparent;
    padding: 0;
    display: grid;
    place-items: center;
    color: inherit;
    cursor: pointer;
    border-radius: 50%;
    width: 1.4rem;
    height: 1.4rem;
}

.post-activity-select__chip-remove:hover {
    background: rgba(0, 0, 0, 0.05);
}

.post-activity-select__placeholder {
    color: var(--muted);
    font-weight: 600;
}

.post-activity-select__chevron {
    color: var(--muted);
    transition: transform 0.15s ease;
}

.post-activity-select--open .post-activity-select__chevron {
    transform: rotate(180deg);
}

.post-activity-select__panel {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d8e4ef;
    border-radius: 1rem;
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.16);
    padding: 0.85rem;
    z-index: 20;
}

.post-activity-select__search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.35rem;
    align-items: center;
    padding: 0.45rem 0.6rem;
    border-radius: 0.75rem;
    border: 1px solid #e6edf4;
    background: #f7fafc;
}

.post-activity-select__search-input {
    border: none;
    background: transparent;
    outline: none;
    font-weight: 600;
}

.post-activity-select__search-reset {
    border: none;
    background: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}

.post-activity-select__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.35rem;
    margin-top: 0.75rem;
    max-height: 18rem;
    overflow: auto;
    padding-right: 0.25rem;
}

.post-activity-select__option {
    display: flex;
    align-items: center;
    width: 100%;
}

.post-activity-select__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    margin: 0;
}

.post-activity-select__pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    border-radius: 0.8rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(16, 24, 40, 0.08);
    transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.post-activity-select__icon {
    color: var(--muted);
    font-size: 1.2rem;
}

.post-activity-select__label {
    flex: 1;
    text-align: left;
}

.post-activity-select__checkbox:checked + .post-activity-select__pill {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
    box-shadow: 0 12px 24px rgba(76, 168, 44, 0.18);
    transform: translateY(-1px);
}

.post-activity-select__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.post-activity-select__action {
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.12s ease;
    box-shadow: 0 10px 20px rgba(76, 168, 44, 0.28);
}

.post-activity-select__action:hover {
    transform: translateY(-1px);
}

.post-activity-select__action--ghost {
    background: #f0f4f8;
    color: var(--text);
    box-shadow: none;
}

.activity-badges {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.activity-badges__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--text);
    line-height: 1;
}

.activity-badges__icon {
    font-size: 1.05rem;
    color: var(--muted);
}

.activity-badges__label {
    font-weight: 600;
}

.activity-badges--compact .activity-badges__item {
    padding: 0.25rem 0.55rem;
    font-size: 0.9rem;
}

.list__map-heading h1,
.list__map-heading h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.list__map-heading p {
    margin: 0.35rem 0 0;
    max-width: 520px;
}

.list__map-canvas {
    position: relative;
    width: 100%;
    height: clamp(260px, 50vh, 420px);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(31, 47, 37, 0.06);
}

.main--community-map {
    display: flex;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.community-map-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 0 var(--page-block-padding);
}

.community-map {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.community-map .list__map {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-panel);
    box-shadow: 0 8px 16px rgba(19, 50, 33, 0.35);
}

.community-map__canvas {
    flex: 1;
    height: 100%;
}

.community-map .list__map-heading {
    position: relative;
    inset: auto;
    z-index: 2;
    max-width: none;
    padding: 1.25rem 1.5rem;
    margin: 1rem 1.5rem 0;
    box-shadow: 0 12px 24px rgba(31, 47, 37, 0.12);
}

.community-map__filters-card {
    position: relative;
    margin: 0;
    z-index: 2;
    max-width: 100%;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.list__map-canvas--empty::after {
    content: "На карте пока нет отметок";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 16px 32px rgba(31, 47, 37, 0.18);
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    pointer-events: none;
}

.list-map__marker {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    pointer-events: auto;
}

.list-map__marker-avatar {
    --list-map-avatar-size: 56px;
    width: var(--list-map-avatar-size);
    height: var(--list-map-avatar-size);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
    display: grid;
    place-items: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(31, 47, 37, 0.22);
    font-size: clamp(14px, calc(var(--list-map-avatar-size) * 0.32), 20px);
    line-height: 1.05;
}

.list-map__marker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.list-map__marker-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.list-map__marker-avatar--fallback {
    background: var(--accent-gradient);
}

.list-map__marker--event .list-map__marker-avatar {
    background: var(--event-accent);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.95);
}

.list-map__marker--profile .list-map__marker-avatar {
    background: var(--accent-gradient);
}

.list-map__marker--team .list-map__marker-avatar {
    background: var(--team-accent);
}

.list-map__marker--emergency .list-map__marker-avatar {
    background: #c62828;
    border-color: rgba(255, 255, 255, 0.95);
}

.list-map__marker--emergency .list-map__marker-pin {
    background: #c62828;
}

.list-map__marker-pin {
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    background: var(--accent-gradient);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 18px rgba(31, 47, 37, 0.2);
}

.list-map__marker--event .list-map__marker-pin {
    background: var(--event-accent);
}

.list-map__marker--profile .list-map__marker-pin {
    background: var(--accent-gradient);
}

.list-map__marker--team .list-map__marker-pin {
    background: var(--team-accent);
}

.list-map__popup {
    font-family: inherit;
    color: var(--text);
    min-width: 220px;
}

.list-map__popup-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.list-map__popup-link {
    color: var(--accent);
    font-weight: 600;
}

.list-map__popup-link:hover {
    color: var(--accent-dark);
}

.community-map__heading {
    align-items: flex-start;
}

.community-map__toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0.4rem 1.15rem 0.85rem;
}

.community-map__user-marker {
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.community-map__user-marker-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.community-map__user-marker-dot {
    display: block;
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at center, #4a90e2 0%, #1c5fb8 70%, #0f3c85 100%);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2), 0 8px 16px rgba(10, 49, 109, 0.28);
}

.community-map__user-marker-tip {
    display: block;
    width: 12px;
    height: 12px;
    margin-top: -1px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #4a90e2 0%, #0f3c85 100%);
    border-right: 3px solid rgba(255, 255, 255, 0.92);
    border-bottom: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 14px rgba(10, 49, 109, 0.2);
}

.community-map__toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

.community-map__filters-card {
    display: none;
    flex-direction: column;
    gap: 0.9rem;
    margin: 0;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(31, 47, 37, 0.06);
}

.community-map__filters-card--open {
    display: flex;
}

.community-map__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
    padding: 0.65rem 0.85rem;
    background: rgba(31, 47, 37, 0.03);
    border-radius: 14px;
}

.community-map__filter {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    font-weight: 600;
    color: var(--text);
}

.community-map__filter input {
    accent-color: var(--accent);
}

.community-map__filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(31, 47, 37, 0.08);
    font-size: 0.85rem;
    color: var(--muted);
}

.community-map__city-filter {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--text);
}

.community-map__city-filter-label {
    white-space: nowrap;
}

.community-map__city-select {
    min-width: 180px;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 37, 0.15);
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
}

.community-map__city-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.18);
}

.community-map__city-select option {
    color: var(--text);
}

.community-map__filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    align-items: start;
}

.community-map__distance {
    display: grid;
    gap: 0.45rem;
    background: rgba(31, 47, 37, 0.03);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(31, 47, 37, 0.08);
}

.community-map__distance-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.community-map__geo-status {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.community-map__geo-status[data-state="success"] {
    color: var(--accent);
}

.community-map__geo-status[data-state="error"] {
    color: var(--danger);
}

.community-map__geo-hint {
    margin: 0;
    color: var(--muted);
}

.community-map__filters-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: 21px;
    position: relative;
    top: 3px;
}

.community-map__filters-actions .button--outline {
    padding: 0.55rem 1.4rem;
}

.list-map__popup-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.list-map__popup-details {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--text);
}

.list-map__popup-actions {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.list-map__popup-action {
    width: 100%;
}

.list__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.list__header p {
    margin: 0;
    max-width: 520px;
}

.list__grid {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
    padding: clamp(1rem, 3vw, 2rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.container--page .list__grid {
    padding-left: 0;
    padding-right: 0;
}

.card--list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.people-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 1.8vw, 1.25rem);
    border-color: rgba(142, 234, 63, 0.18);
    box-shadow: 0 28px 48px rgba(31, 47, 37, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.people-card:hover,
.people-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(142, 234, 63, 0.32);
    box-shadow: 0 36px 65px rgba(31, 47, 37, 0.16);
}

.people-card__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1rem, 2.2vw, 1.4rem);
    align-items: center;
}

.people-card__visual .avatar {
    width: clamp(64px, 8vw, 84px);
    height: clamp(64px, 8vw, 84px);
}

.people-card__titles {
    display: grid;
    gap: 0.35rem;
    align-content: start;
}

.people-card__name {
    margin: 0;
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    line-height: 1.15;
}

.people-card__name a {
    color: inherit;
}

.people-card__name a:hover,
.people-card__name a:focus-visible {
    color: var(--accent);
}

.people-card__location,
.event-card__location,
.team-card__location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.people-card__location-icon,
.event-card__location-icon,
.team-card__location-icon {
    font-size: 1.15em;
    line-height: 1;
}

.people-card__profession {
    margin: 0;
    font-size: 0.95rem;
}

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

.people-card__section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.people-card__section-title {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.people-card__tags {
    gap: 0.35rem;
}

.people-card__description {
    font-size: 0.98rem;
    line-height: 1.6;
}

.people-card__description--placeholder {
    color: var(--muted);
    font-size: 0.9rem;
}

.people-card__footer {
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

.people-card__contacts {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.people-card__contact {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.people-card__contact-label {
    font-weight: 600;
    color: var(--text);
}

.people-card__contact-value {
    word-break: break-word;
}

.people-card__contact-value[href],
.event-card__contact-value a,
.company-card__contact-value a,
.profile__location--contact a,
.profile__contact-value a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.people-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 1.8vw, 1.25rem);
    border-color: rgba(52, 214, 222, 0.18);
    box-shadow: 0 24px 45px rgba(31, 47, 37, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card--owned {
    border-color: rgba(36, 176, 112, 0.5);
    background: linear-gradient(135deg, rgba(36, 176, 112, 0.08), rgba(255, 255, 255, 0.96));
    box-shadow: 0 28px 56px rgba(36, 176, 112, 0.22);
}

.event-card--owned:hover,
.event-card--owned:focus-within {
    border-color: rgba(36, 176, 112, 0.7);
    box-shadow: 0 32px 64px rgba(36, 176, 112, 0.26);
}

.event-card:hover,
.event-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(52, 214, 222, 0.32);
    box-shadow: 0 32px 56px rgba(31, 47, 37, 0.16);
}

.event-card__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: center;
}

.event-card__titles {
    display: grid;
    gap: 0.35rem;
    align-content: start;
}

.event-card__title {
    margin: 0;
}

.event-card__host {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.event-card__badge {
    margin: 0;
}

.event-card__chip {
    margin-top: 0.5rem;
}

.event-card__activities {
    margin: 0.35rem 0 0;
}

.event-card__visual .avatar {
    width: clamp(64px, 8vw, 84px);
    height: clamp(64px, 8vw, 84px);
}

.event-card__section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-card__section-title {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.event-card__facts {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-card__fact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    color: var(--muted);
    font-size: 0.95rem;
}

.event-card__fact-label {
    font-weight: 600;
    color: var(--text);
}

.event-card__fact-value {
    min-width: 0;
    flex: 1 1 auto;
}

.event-card__description {
    font-size: 0.98rem;
    line-height: 1.6;
}

.event-card__description--placeholder {
    color: var(--muted);
    font-size: 0.9rem;
}

.event-card__footer {
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

.event-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.event-card__contacts {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.95rem;
    min-width: 0;
}

.event-card__contact-label {
    font-weight: 600;
    color: var(--text);
}

.event-card__contact-value {
    word-break: break-word;
}

.company-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 1.8vw, 1.25rem);
    border-color: rgba(95, 39, 255, 0.18);
    box-shadow: 0 24px 45px rgba(31, 47, 37, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.company-card--owned {
    border-color: rgba(95, 39, 255, 0.55);
    /*background: radial-gradient(150% 190% at 18% 18%, rgba(95, 39, 255, 0.3), rgba(95, 39, 255, 0)),*/
    /*linear-gradient(140deg, rgba(95, 39, 255, 0.2), rgba(54, 16, 168, 0.18));*/
    box-shadow: 0 28px 56px rgba(54, 16, 168, 0.24);
}

.company-card--owned:hover,
.company-card--owned:focus-within {
    border-color: rgba(95, 39, 255, 0.75);
    box-shadow: 0 32px 64px rgba(54, 16, 168, 0.28);
}

.company-card:hover,
.company-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(95, 39, 255, 0.32);
    box-shadow: 0 32px 56px rgba(31, 47, 37, 0.16);
}

.company-card__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: center;
}

.company-card__titles {
    display: grid;
    gap: 0.35rem;
    align-content: start;
}

.company-card__title {
    margin: 0;
    line-height: 1.1;
}

.company-card__host {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.company-card__badge {
    margin: 0;
}

.company-card__visual .avatar {
    width: clamp(64px, 8vw, 84px);
    height: clamp(64px, 8vw, 84px);
}

.company-card__activities {
    margin: 0.35rem 0 0;
}

.company-card__section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-card__section-title {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.company-card__description {
    font-size: 0.98rem;
    line-height: 1.6;
}

.company-card__description--placeholder {
    color: var(--muted);
    font-size: 0.9rem;
}

.company-card__footer {
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

.company-card__contacts {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.95rem;
    min-width: 0;
}

.company-card__contact-label {
    font-weight: 600;
    color: var(--text);
}

.company-card__contact-value {
    word-break: break-word;
}

.chip--company {
    background: var(--company-accent-soft);
    color: var(--company-accent-dark);
    border: 1px solid rgba(95, 39, 255, 0.35);
}

.profile__meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    margin: 0.35rem 0 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.9);
}

.profile__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 600;
}

.team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 1.8vw, 1.25rem);
    border-color: rgba(142, 234, 63, 0.18);
    box-shadow: 0 24px 45px rgba(31, 47, 37, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-card--highlight {
    border-color: rgba(76, 201, 127, 0.6);
    box-shadow: 0 32px 64px rgba(76, 201, 127, 0.24);
}

.team-card--highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 2px rgba(76, 201, 127, 0.3);
    pointer-events: none;
}

.team-card:hover,
.team-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(142, 234, 63, 0.32);
    box-shadow: 0 32px 56px rgba(31, 47, 37, 0.16);
}

.team-card--highlight:hover,
.team-card--highlight:focus-within {
    border-color: rgba(76, 201, 127, 0.72);
    box-shadow: 0 36px 72px rgba(76, 201, 127, 0.32);
}

.team-card__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: center;
}

.team-card__titles {
    display: grid;
    gap: 0.35rem;
    align-content: start;
}

.team-card__name {
    margin: 0;
}

.team-card__owner {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.team-card__chip {
    margin-top: 0.5rem;
}

.team-card__visual .avatar {
    width: clamp(64px, 8vw, 84px);
    height: clamp(64px, 8vw, 84px);
}

.team-card__description {
    font-size: 0.98rem;
    line-height: 1.6;
}

.team-card__description--placeholder {
    color: var(--muted);
    font-size: 0.9rem;
}

.team-card__footer {
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
}

.team-card__status {
    color: var(--muted);
    font-size: 0.95rem;
}

.team-card__status a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(148, 163, 184, 0.4);
}

.team-card__status a:hover,
.team-card__status a:focus-visible {
    color: var(--team-accent);
    text-decoration-color: currentColor;
}

.team-card__action {
    margin: 0;
}

.card__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.card__header--with-media {
    flex-direction: row;
    align-items: flex-start;
}

.card__visual {
    flex: 0 0 auto;
}

.avatar {
    --avatar-size: 64px;
    --avatar-fallback-background: var(--accent);
    --avatar-fallback-color: #ffffff;
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: transparent;
    --avatar-shadow-elevation: 0 10px 20px rgba(31, 47, 37, 0.18);
    --avatar-glow-ring: 0 0 0 3px rgba(142, 234, 63, 0.25);
    --avatar-glow-soft: 0 0 14px rgba(142, 234, 63, 0.45);
    box-shadow: var(--avatar-shadow-elevation), var(--avatar-glow-ring), var(--avatar-glow-soft);
    overflow: hidden;
    align-self: flex-start;
    font-size: calc(var(--avatar-size) * 0.42);
    line-height: 1;
    position: relative;
}

.avatar--small {
    --avatar-size: 40px;
    --avatar-shadow-elevation: 0 6px 12px rgba(31, 47, 37, 0.12);
    font-size: calc(var(--avatar-size) * 0.32);
}

.avatar--company {
    --avatar-fallback-background: linear-gradient(140deg, #7d63ff 0%, #5f27ff 60%, #3610a8 100%);
    --avatar-fallback-color: #ffffff;
    --avatar-shadow-elevation: 0 12px 22px rgba(54, 16, 168, 0.26);
    --avatar-glow-ring: 0 0 0 3px rgba(95, 39, 255, 0.25);
    --avatar-glow-soft: 0 0 16px rgba(95, 39, 255, 0.35);
    border: 2px solid rgba(95, 39, 255, 0.18);
}

.avatar--company .avatar__image {
    border-radius: 20%;
}

.avatar__team-badge {
    --avatar-badge-size: calc(var(--avatar-size) * 0.45);
    --avatar-badge-ring: 2px;
    --avatar-badge-shadow-y: 6px;
    --avatar-badge-shadow-blur: 16px;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    width: var(--avatar-badge-size);
    height: var(--avatar-badge-size);
    border-radius: 999px;
    background: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 0 0 var(--avatar-badge-ring) #ffffff,
    0 var(--avatar-badge-shadow-y) var(--avatar-badge-shadow-blur) rgba(31, 47, 37, 0.22);
}

.avatar--small .avatar__team-badge,
.sidebar-user__avatar .avatar__team-badge {
    --avatar-badge-size: calc(var(--avatar-size, 40px) * 0.38);
    --avatar-badge-ring: clamp(1px, calc(var(--avatar-badge-size) * 0.12), 2px);
    --avatar-badge-shadow-y: clamp(3px, calc(var(--avatar-badge-size) * 0.3), 6px);
    --avatar-badge-shadow-blur: clamp(5px, calc(var(--avatar-badge-size) * 0.6), 12px);
    transform: translate(32%, -32%);
}

.avatar__team-badge-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.avatar__team-badge-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--team-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: calc(var(--avatar-badge-size) * 0.48);
    text-transform: uppercase;
    border-radius: 50%;
    box-sizing: border-box;
    line-height: 1;
}

/* Совместимость со старыми классами до переименования */
.avatar__clan-badge,
.avatar__clan-badge-image,
.avatar__clan-badge-fallback {
    composes: avatar__team-badge from none;
}

.avatar__clan-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    width: var(--avatar-badge-size, calc(var(--avatar-size, 64px) * 0.45));
    height: var(--avatar-badge-size, calc(var(--avatar-size, 64px) * 0.45));
    border-radius: 999px;
    background: #ffffff;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 0 0 var(--avatar-badge-ring, 2px) #ffffff,
    0 var(--avatar-badge-shadow-y, 6px) var(--avatar-badge-shadow-blur, 16px) rgba(31, 47, 37, 0.22);
}

.avatar__clan-badge-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.avatar__clan-badge-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--team-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: calc(var(--avatar-badge-size, 32px) * 0.48);
    text-transform: uppercase;
    border-radius: 50%;
    box-sizing: border-box;
    line-height: 1;
}

.avatar__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.avatar__image[hidden] {
    display: none;
}

.avatar__image:not([hidden])[src=''],
.avatar__image:not([hidden]):not([src]) {
    display: none;
}

.avatar__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--avatar-fallback-color, #ffffff);
    background: var(--avatar-fallback-background, var(--accent));
    border-radius: 50%;
    line-height: 1;
}

.avatar__fallback[hidden] {
    display: none;
}

.avatar--event {
    --avatar-fallback-background: var(--event-accent);
    --avatar-fallback-color: #ffffff;
    --avatar-glow-ring: 0 0 0 3px rgba(52, 214, 222, 0.25);
    --avatar-glow-soft: 0 0 14px rgba(52, 214, 222, 0.45);
}

.avatar--person {
    --avatar-fallback-background: var(--accent);
    --avatar-fallback-color: #ffffff;
    --avatar-glow-ring: 0 0 0 3px rgba(142, 234, 63, 0.25);
    --avatar-glow-soft: 0 0 14px rgba(142, 234, 63, 0.45);
}

.avatar--team {
    --avatar-fallback-background: var(--team-accent);
    --avatar-fallback-color: #ffffff;
    --avatar-glow-ring: 0 0 0 3px rgb(234 158 63 / 25%);
    --avatar-glow-soft: 0 0 14px rgb(234 118 63 / 50%);
}

.chip--team {
    border-color: rgba(142, 234, 63, 0.35);
    background: var(--team-accent-soft);
    color: var(--team-accent);
    border-radius: var(--radius-sm);
}

.chip--event {
    border-color: rgba(52, 214, 222, 0.35);
    background: var(--event-accent-soft);
    color: var(--event-accent);
}

.profile--company .chip--team {
    border-color: rgb(145 63 234 / 32%);
    background: var(--company-accent-soft);
    color: var(--company-accent);
    border-radius: var(--radius-sm);
}

.profile--event .chip--team {
    border-color: rgb(63 218 234 / 32%);
    background: var(--event-accent-soft);
    color: var(--event-accent);
    border-radius: var(--radius-sm);
}

.list--teams .card__titles a,
.list--teams .card__footer a:not(.button) {
    color: var(--team-accent);
}

.list--teams .card__titles a:hover,
.list--teams .card__titles a:focus-visible,
.list--teams .card__footer a:not(.button):hover,
.list--teams .card__footer a:not(.button):focus-visible {
    color: #ea580c;
}

.list--events .card__titles a,
.list--events .card__footer a:not(.button) {
    color: var(--event-accent);
}

.list--events .card__titles a:hover,
.list--events .card__titles a:focus-visible,
.list--events .card__footer a:not(.button):hover,
.list--events .card__footer a:not(.button):focus-visible {
    color: #1f4fd4;
}

.list--companies {
    --accent: var(--company-accent);
    --accent-strong: var(--company-accent-strong);
    --accent-dark: var(--company-accent-dark);
    --accent-soft: var(--company-accent-soft);
}

.card__chip {
    margin-top: 0.5rem;
}

.card__titles {
    min-width: 0;
}

.card__titles h2 {
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card__titles p {
    margin: 0.35rem 0 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #bde5cb;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.02em;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1;
    border-radius: var(--radius-sm);
}

.chip--team {
    border-color: rgb(234 168 63 / 32%);
    background: var(--team-accent-soft);
    color: var(--team-accent);
}

.chip--owned {
    border-color: rgba(36, 176, 112, 0.4);
    background: linear-gradient(135deg, rgba(36, 176, 112, 0.12), rgba(36, 176, 112, 0.04));
    color: var(--accent-dark);
    box-shadow: 0 12px 30px rgba(36, 176, 112, 0.14);
}

.card__meta {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card__description {
    margin: 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card__contacts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.95rem;
    min-width: 0;
}

.card__contacts span,
.card__contacts a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card__footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.card__footer .button {
    flex-shrink: 0;
}

.tabs {
    background: var(--surface);
    border: 1px solid var(--bg-panel);
    overflow: hidden;
    box-shadow: 0 24px 45px rgba(142, 234, 63, 0.08);
    border-radius: var(--radius-panel);
}

.tabs__headers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.news-tabs {
    margin: 0.25rem 0 1rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.news-tabs .tabs__headers {
    display: flex;
    gap: 1.25rem;
    grid-template-columns: none;
    border-bottom: 1px solid var(--bg-panel);
    padding: 0;
}

.news-tabs .tabs__button {
    width: auto;
    text-align: left;
}

.tabs__button {
    background: transparent;
    color: var(--muted);
    padding: 1rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tabs__button:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.tabs__button--active {
    background: var(--accent-gradient);
    color: #ffffff;
}

.news-tabs .tabs__button {
    padding: 0.35rem 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    font-size: 1rem;
    color: var(--muted);
    position: relative;
}

.news-tabs .tabs__button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    background: var(--accent-strong);
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.news-tabs .tabs__button:hover {
    background: transparent;
    color: var(--accent-strong);
}

.news-tabs .tabs__button--active {
    background: transparent;
    color: var(--text);
}

.news-tabs .tabs__button--active::after {
    opacity: 1;
    transform: scaleX(1);
}

.tab {
    display: none;
    padding: 1.5rem;
}

.tab--active {
    display: block;
}

.form {
    display: grid;
    gap: 1rem;
}


.auth-page {
    background: linear-gradient(135deg, #e7f5ec 0%, #f5fbf7 55%, #ffffff 100%);
}

.auth-page .layout {
    min-height: 100vh;
    max-width: 100%;
}

.auth-page .layout__main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    background: transparent;
    max-width: 100%;
}

.auth-page .main {
    width: 100%;
    display: flex;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
}

.auth-layout {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 0;
    min-width: 0;
    max-width: 100%;
}

.auth {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 232, 224, 0.8);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(31, 47, 37, 0.15);
    padding: clamp(1.75rem, 5vw, 2.75rem);
    min-width: 0;
    max-width: 100%;
}

.auth__panel {
    display: block;
}

.auth__panel-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    min-width: 0;
}

.auth__panel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-dark);
    font-weight: 600;
    min-width: 0;
}

.auth__panel-link--muted {
    color: var(--muted);
    font-weight: 500;
}

.auth__panel-link:hover {
    color: var(--accent);
}

.auth__switcher {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: var(--surface);
    border: 1px solid rgba(219, 232, 224, 0.9);
    border-radius: 24px;
    padding: clamp(1.6rem, 4vw, 2.2rem);
    box-shadow: 0 22px 50px rgba(31, 47, 37, 0.14);
}

.auth__switcher-buttons {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: var(--surface-alt);
    padding: 0.3rem;
    gap: 0.3rem;
    margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
}

.auth__switcher-button {
    flex: 1 1 0;
    min-width: 0;
    border: none;
    padding: 0.65rem 1.4rem;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    border-radius: var(--radius-sm);
}

.auth__switcher-button--active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(76, 157, 29, 0.26);
}

.auth__cards {
    position: relative;
    min-width: 0;
}

.auth-card {
    display: grid;
    gap: 1.2rem;
    min-width: 0;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.auth-card[hidden] {
    display: none;
}

.auth-card--active {
    opacity: 1;
    transform: translateY(0);
}

.auth-card h2 {
    margin: 0;
    font-size: 1.75rem;
}

.auth-card__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.form--auth {
    background: var(--surface-alt);
    padding: 1.6rem;
    border: 1px solid rgba(219, 232, 224, 0.9);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    min-width: 0;
    max-width: 100%;
}

.form__field {
    display: grid;
    gap: 0.45rem;
}

.form__label {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
}

.form__control .input,
.form__control input[type="password"] {
    width: 100%;
}

.form__hint {
    color: var(--muted);
    font-size: 0.85rem;
}

.form__alert {
    padding: 0.75rem 1rem;
    background: rgba(231, 91, 74, 0.1);
    color: var(--danger);
    font-weight: 500;
}

.form__error {
    color: var(--danger);
    font-size: 0.85rem;
}

.form__hint--error {
    color: #c62828;
}

.form__fieldset {
    display: grid;
    gap: 0.5rem;
}

.form__option {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-weight: 600;
}

.register-wizard {
    display: grid;
    gap: 1.5rem;
}

.register-wizard__progress {
    position: relative;
    background: rgba(142, 234, 63, 0.16);
    height: 8px;
    overflow: hidden;
}

.register-wizard__progress-bar {
    display: block;
    height: 100%;
    width: var(--progress, 25%);
    background: linear-gradient(90deg, #9af04a 0%, #4c9d1d 100%);
    transition: width 0.35s ease;
}

.register-wizard__step-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.register-wizard__slides {
    position: relative;
    min-height: 260px;
}

.register-wizard__slide {
    display: none;
    background: var(--surface);
    border: 1px solid rgba(219, 232, 224, 0.9);
    border-radius: 20px;
    padding: clamp(1.6rem, 4vw, 2.2rem);
    box-shadow: 0 28px 60px rgba(31, 47, 37, 0.12);
    animation: swipe-in 0.45s ease;
}

.register-wizard__slide--active {
    display: grid;
    gap: 1rem;
}

.register-wizard__emoji {
    font-size: 2.4rem;
}

.register-wizard__title {
    margin: 0;
    font-size: 1.4rem;
}

.register-wizard__description {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.register-wizard__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.register-wizard__actions-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.register-wizard__actions .button {
    min-width: 120px;
}

.form__field--floating .form__control .input,
.form__field--floating .form__control input {
    padding: 0.85rem 1.1rem;
    background: var(--surface-alt);
    border: 1px solid var(--bg-panel);
}

.form__field--floating .form__control .input:focus,
.form__field--floating .form__control input:focus {
    background: #ffffff;
}

.button--primary {
    background: var(--accent-gradient);
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 36px rgba(76, 157, 29, 0.24);
}

.button--primary:hover {
    background: var(--accent-strong-gradient);
}

.button--secondary {
    background: rgba(142, 234, 63, 0.16);
    color: var(--accent);
    text-transform: none;
    letter-spacing: 0.02em;
    box-shadow: none;
}

.button--secondary:hover {
    background: rgba(142, 234, 63, 0.22);
}

.button--soft {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--bg-panel);
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0.02em;
}

.button--soft:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.button--soft:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.chat-create {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem) 1.5rem;
}

.chat-create__title {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.chat-create__description {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.chat-create__form {
    display: grid;
    gap: 1.25rem;
    background: var(--surface-alt);
    border: 1px solid var(--bg-panel);
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 12px 32px rgba(25, 49, 32, 0.08);
}

.chat-create__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.chat-create__empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@keyframes swipe-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .auth-page .layout__main {
        align-items: flex-start;
        padding: 0.75rem;
    }

    .auth {
        gap: 0.85rem;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .auth__panel-meta {
        flex-wrap: wrap;
        align-items: flex-start;
        margin-bottom: 0.85rem;
    }

    .auth__panel-link {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .auth__switcher {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .auth__switcher-buttons {
        margin-bottom: 1rem;
        border-radius: 0;
    }

    .auth__switcher-button {
        padding: 0.6rem 0.65rem;
        font-size: 0.95rem;
    }

    .auth-card h2 {
        font-size: clamp(1.35rem, 8vw, 1.75rem);
    }

    .form--auth {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .register-wizard__slides {
        min-height: 0;
    }

    .register-wizard__slide {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .register-wizard__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .register-wizard__actions-right {
        width: 100%;
        min-width: 0;
    }

    .register-wizard__actions-right .button,
    .register-wizard__actions .button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .auth {
        padding: 0;
        border-radius: 0;
    }

    .auth__switcher {
        padding: 0;
    }

    .auth__switcher-button {
        padding: 0.55rem 0.45rem;
        font-size: 0.9rem;
    }

    .form--auth {
        padding: 0.8rem;
    }
}

.form__field span {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.input,
.textarea,
select.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bg-panel);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border-radius: var(--radius-sm);
}

.input:focus,
.textarea:focus,
select.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(142, 234, 63, 0.2);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.error {
    color: var(--danger);
    font-size: 0.85rem;
}

.messages {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.message {
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--accent);
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(142, 234, 63, 0.08);
}

.message--error {
    border-color: var(--danger);
}

.list .card {
    margin: 0;
}

.chat-widget__toggle {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 22px 35px rgba(142, 234, 63, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.chat-widget {
    --chat-widget-rooms-width: 220px;
    --chat-widget-width: min(520px, 90vw);
    --chat-widget-height: min(600px, 70vh);
    position: fixed;
    right: 1.5rem;
    bottom: 5.5rem;
    width: var(--chat-widget-width);
    min-width: 320px;
    max-width: 96vw;
    height: var(--chat-widget-height);
    min-height: 360px;
    max-height: 90vh;
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.chat-widget--hidden {
    display: none;
}

.main--chat {
    background: var(--surface);
    padding: 0;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-page__wrapper {
    width: 100%;
    max-width: min(1400px, 100%);
    margin: 0 auto;
    padding: var(--page-block-padding);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-page__wrapper > .messages {
    flex: 0 0 auto;
}

.chat-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
    max-height: 100vh;
    height: 100%;
}

.chat-page__content {
    display: flex;
    justify-content: center;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    height: 100%;
}

.chat-page .chat-widget {
    position: static;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
    max-height: none;
    margin: 0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.chat-page,
.chat-page__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-page {
    padding: 0;
}

.chat-page__wrapper {
    padding: 0;
    height: 100%;
}

.main--chat {
    height: 100%;
    min-height: 0;
}

.chat-page .chat-widget {
    height: 100%;
    min-height: 0;
}

.chat-page .chat-widget__body {
    grid-template-columns: minmax(220px, 320px) 1fr;
    column-gap: 1.25rem;
    flex: 1;
    min-height: 0;
}

.chat-page .chat-widget--info-open .chat-widget__body {
    grid-template-columns: minmax(220px, 320px) 1fr minmax(220px, 300px);
}

.chat-page .chat-widget__rooms {
    border-right: none;
    height: 100%;
    min-height: 0;
    position: relative;
    z-index: 1;
}

.chat-page .chat-widget__conversation {
    border-left: none;
    padding-left: 0;
    height: 100%;
    overflow: visible;
    min-height: 0;
    position: relative;
    z-index: 2;
}

.chat-page .chat-widget__info {
    border-left: none;
}

.chat-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: var(--surface);
}

.chat-widget__mobile-back {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 0.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-widget__mobile-back .material-symbols-rounded {
    font-size: 1.2rem;
}

.chat-widget__mobile-back:hover,
.chat-widget__mobile-back:focus-visible {
    background: rgba(36, 176, 112, 0.12);
    border-color: rgba(36, 176, 112, 0.5);
    color: var(--accent-dark);
    outline: none;
    box-shadow: 0 8px 18px rgba(36, 176, 112, 0.2);
}

.chat-widget__title-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.chat-widget__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.chat-widget__title [data-chat-title] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-widget__presence {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.chat-widget__presence::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--muted);
}

.chat-widget__presence[data-online="true"]::before {
    background: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(36, 176, 112, 0.18);
}

.chat-widget__subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-widget__info-button {
    background: transparent;
    border: none;
    border-radius: 0;
    width: 2.3rem;
    height: 2.3rem;
    padding: 0;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.chat-widget__info-button:hover,
.chat-widget__info-button:focus-visible {
    background: rgba(36, 176, 112, 0.12);
    color: var(--accent-dark);
    outline: none;
}

.chat-widget__info-button[aria-expanded="true"],
.chat-widget__info-button--active {
    background: rgba(36, 176, 112, 0.15);
    color: var(--accent-dark);
}

.chat-widget__info-button .material-symbols-rounded {
    font-size: 1.3rem;
    line-height: 1;
}

.chat-widget--info-open .chat-widget__info-button {
    display: none;
}

.chat-widget__info-close {
    width: 2.3rem;
    height: 2.3rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    padding: 0;
    z-index: 2;
}

.chat-widget__info-close .material-symbols-rounded {
    font-size: 1.3rem;
    line-height: 1;
}

.chat-widget__info-close:hover,
.chat-widget__info-close:focus-visible {
    background: rgba(36, 176, 112, 0.12);
    color: var(--accent-dark);
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

.chat-widget__body {
    display: grid;
    grid-template-columns: minmax(180px, var(--chat-widget-rooms-width)) 0.5rem 1fr;
    column-gap: 1rem;
    flex: 1;
    min-height: 0;
}

.chat-widget--info-open .chat-widget__body {
    grid-template-columns: minmax(180px, var(--chat-widget-rooms-width)) 0.5rem 1fr minmax(200px, 280px);
}

.chat-widget__rooms {
    border-right: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    min-height: 0;
    width: 100%;
}

.chat-widget__rooms-actions {
    flex: 0 0 auto;
}

.chat-widget__rooms-list {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
}


.chat-widget__info {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.08);
    overflow-y: auto;
    min-height: 0;
    margin: 0;
    position: relative;
}

.chat-widget--info-open .chat-widget__info {
    display: flex;
}

.chat-widget__info-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0 0 0.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.chat-widget__info-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin-top: 0;
}

.chat-widget__info-placeholder {
    margin: 0;
    color: rgba(95, 114, 102, 0.9);
    font-size: 0.85rem;
    line-height: 1.5;
}

.chat-widget__info-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.chat-widget__info-tabs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-widget__info-tabs-list {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--bg-panel);
}

.chat-widget__info-tab {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.65rem 0.75rem;
    color: var(--muted);
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chat-widget__info-tab:hover,
.chat-widget__info-tab:focus-visible {
    color: var(--accent-dark);
    background: rgba(36, 176, 112, 0.08);
    outline: none;
}

.chat-widget__info-tab--active {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-dark);
}

.chat-widget__info-tab-panels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-widget__info-tab-panel {
    width: 100%;
}

.chat-widget__info-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0;
}

.chat-widget__info-media-item {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 100%;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.chat-widget__info-media-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-widget__info-media-badge {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-widget__info-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3.5rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: inherit;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.chat-widget__info-summary:hover,
.chat-widget__info-summary:focus {
    text-decoration: none;
}

.chat-widget__info-summary--link {
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-widget__info-summary--link:hover,
.chat-widget__info-summary--link:focus-visible {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
    outline: none;
}

.chat-widget__info-avatar {
    --chat-info-avatar-size: 4.5rem;
    --avatar-size: var(--chat-info-avatar-size);
    width: var(--chat-info-avatar-size);
    height: var(--chat-info-avatar-size);
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
    background: var(--chat-avatar-bg, rgba(142, 234, 63, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chat-avatar-fg, var(--accent-dark));
    font-weight: 600;
    font-size: calc(var(--chat-info-avatar-size) * 0.42);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    position: relative;
}

.chat-widget__info-avatar--empty {
    background: var(--chat-avatar-empty-bg, rgba(142, 234, 63, 0.08));
}

.chat-widget__info-avatar--profile {
    --chat-avatar-bg: var(--profile-accent);
    --chat-avatar-empty-bg: var(--profile-accent-soft);
    --chat-avatar-fg: #ffffff;
}

.chat-widget__info-avatar--event {
    --chat-avatar-bg: var(--event-accent);
    --chat-avatar-empty-bg: var(--event-accent-soft);
    --chat-avatar-fg: #ffffff;
}

.chat-widget__info-avatar--team {
    --chat-avatar-bg: var(--team-accent);
    --chat-avatar-empty-bg: var(--team-accent-soft);
    --chat-avatar-fg: #ffffff;
}

.chat-widget__info-avatar--group {
    --chat-avatar-bg: var(--group-accent);
    --chat-avatar-empty-bg: var(--group-accent-soft);
    --chat-avatar-fg: #ffffff;
}

.chat-widget__info-avatar--company {
    --chat-avatar-bg: var(--company-accent);
    --chat-avatar-empty-bg: var(--company-accent-soft);
    --chat-avatar-fg: #ffffff;
}

.chat-widget__info-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.chat-widget__info-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: inherit;
    color: inherit;
    line-height: 1;
}

.chat-widget__info-summary-texts {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    align-items: center;
}

.chat-widget__info-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-dark);
    letter-spacing: 0.02em;
}

.chat-widget__info-summary .chat-widget__info-title {
    font-size: 1.15rem;
    color: var(--text);
}

.chat-widget__info-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(31, 47, 37, 0.7);
}

.chat-widget__info-meta {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(37, 111, 69, 0.9);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.chat-widget__info-details {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1rem;
    display: grid;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(142, 234, 63, 0.12);
    border-radius: 0.9rem;
}

.chat-widget__info-detail {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.chat-widget__info-detail-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(95, 114, 102, 0.9);
    font-weight: 600;
}

.chat-widget__info-detail-value {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.chat-widget__info-list-item {
    padding: 0.5rem 0.75rem;
    background: var(--bg-muted);
    border-radius: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.chat-widget__info-file {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    background: var(--bg-muted);
    border-radius: 0.5rem;
    color: var(--text);
    text-decoration: none;
}

.chat-widget__info-file .material-symbols-rounded {
    color: var(--accent-dark);
}

.chat-widget__info-file-name {
    font-weight: 600;
    line-height: 1.3;
}

.chat-widget__participants {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.chat-widget__participants-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-widget__participant {
    padding: 0.35rem 0.5rem;
    border-top: none;
    border-bottom: none;
    background: transparent;
    gap: 0.5rem;
    border-radius: 0;
    border: none;
}

.chat-widget__participant:hover,
.chat-widget__participant:focus-visible {
    background: transparent;
    border-color: transparent;
}

.chat-widget__participants .sidebar-user {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    gap: 0.5rem;
    transform: none;
}

.chat-widget__participants .sidebar-user:hover,
.chat-widget__participants .sidebar-user:focus-visible {
    border: none;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.chat-widget__participants .sidebar-user__avatar {
    width: 44px;
    height: 44px;
}

.chat-widget__participant-team {
    margin: 0.1rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.chat-widget__resizer {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: col-resize;
    background: var(--accent-soft);
    transition: background 0.2s ease;
    touch-action: none;
}

.chat-widget__resizer::before {
    content: "";
    width: 2px;
    height: 60%;
    background: rgba(142, 234, 63, 0.35);
}

.chat-widget__resizer:hover,
.chat-widget--resizing .chat-widget__resizer {
    background: rgba(142, 234, 63, 0.18);
}

.chat-widget__size-handle {
    position: absolute;
    top: -0.6rem;
    left: -0.6rem;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--bg-panel);
    box-shadow: 0 14px 24px rgba(142, 234, 63, 0.15);
    cursor: nwse-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    touch-action: none;
    z-index: 5;
}

.chat-widget__size-handle::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    background-image: repeating-linear-gradient(135deg, currentColor 0, currentColor 1px, transparent 1px, transparent 3px);
}

.chat-widget__size-handle:hover,
.chat-widget--resizing .chat-widget__size-handle {
    background: var(--accent-gradient);
    border-color: var(--accent);
    color: #ffffff;
}

.chat-widget__placeholder {
    margin: 0 1rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.chat-widget__room {
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s ease, transform 0.2s ease;
    border-radius: var(--radius-sm);
}

.chat-widget__room:focus-visible {
    outline: 2px solid rgba(142, 234, 63, 0.6);
    outline-offset: 2px;
}

.chat-widget__room:hover,
.chat-widget__room--active {
    background: var(--accent-soft);
}

.chat-widget__room--unread .chat-widget__room-title {
    color: var(--text);
    font-weight: 700;
}

.chat-widget__room--readonly {
    opacity: 0.75;
}

.chat-widget__room-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chat-widget__room-avatar {
    --chat-room-avatar-size: 2.75rem;
    --avatar-size: var(--chat-room-avatar-size);
    width: var(--chat-room-avatar-size);
    height: var(--chat-room-avatar-size);
    border-radius: 50%;
    overflow: visible;
    background: var(--chat-avatar-bg, var(--bg-muted));
    color: var(--chat-avatar-fg, var(--accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex-shrink: 0;
    font-size: calc(var(--chat-room-avatar-size) * 0.42);
    line-height: 1;
    position: relative;
}

.chat-widget__room-avatar--profile {
    --chat-avatar-bg: var(--profile-accent);
    --chat-avatar-fg: #ffffff;
}

.chat-widget__room-avatar--event {
    --chat-avatar-bg: var(--event-accent);
    --chat-avatar-fg: #ffffff;
}

.chat-widget__room-avatar--team {
    --chat-avatar-bg: var(--team-accent);
    --chat-avatar-fg: #ffffff;
}

.chat-widget__room-avatar--group {
    --chat-avatar-bg: var(--group-accent);
    --chat-avatar-fg: #ffffff;
}

.chat-widget__room-avatar--company {
    --chat-avatar-bg: var(--company-accent);
    --chat-avatar-fg: #ffffff;
}

.chat-widget__room-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
}

.chat-widget__room-avatar-placeholder {
    font-size: inherit;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.chat-widget__room-avatar-initials {
    font-size: inherit;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.chat-widget__room-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.chat-widget__room-subtitle {
    font-size: 0.8rem;
    color: var(--muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-widget__room-title {
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-widget__room-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.chat-widget__room-last {
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    flex: 1;
    min-width: 0;
}

.chat-widget__room-last--empty {
    color: var(--text-muted);
}

.chat-widget__room-unread {
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.2rem 0.45rem;
    min-width: 1.5rem;
    text-align: center;
}

.chat-widget__conversation {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    min-height: 0;
}

.chat-widget__conversation--readonly {
    background: linear-gradient(180deg, rgba(15, 27, 18, 0.16), transparent 28%), var(--surface);
}

.chat-widget__conversation--readonly .chat-widget__form,
.chat-widget__conversation--readonly .chat-widget__draft-attachments {
    opacity: 0.6;
    pointer-events: none;
}

.chat-widget__messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: grid;
    gap: 0.75rem;
    align-content: start;
    align-items: start;
    min-height: 0;
}

.chat-widget__message {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    align-items: flex-start;
}

.chat-widget__message--request {
    align-items: flex-start;
}

.chat-widget__request {
    display: grid;
    gap: 0.75rem;
    width: min(420px, 100%);
    background: var(--surface-alt);
    border: 1px solid var(--bg-panel);
    border-radius: 0.9rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 12px 24px rgba(31, 47, 37, 0.08);
}

.chat-widget__request-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-widget__request-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.chat-widget__request-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-widget__request-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.chat-widget__request-author {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.2;
}

.chat-widget__request-author a {
    color: inherit;
}

.chat-widget__request-author a:hover,
.chat-widget__request-author a:focus-visible {
    text-decoration: underline;
}

.chat-widget__request-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.chat-widget__request-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--bg-muted);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.chat-widget__request-status--pending {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.chat-widget__request-status--accepted {
    background: rgba(142, 234, 63, 0.15);
    color: var(--accent-dark);
}

.chat-widget__request-status--declined {
    background: rgba(231, 91, 74, 0.15);
    color: var(--danger);
}

.chat-widget__request-text {
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid var(--bg-panel);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-widget__request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chat-widget__request-button {
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.chat-widget__request-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.chat-widget__request-button--accept {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(142, 234, 63, 0.25);
}

.chat-widget__request-button--accept:hover:not(:disabled),
.chat-widget__request-button--accept:focus-visible:not(:disabled) {
    background: var(--accent-dark);
    outline: none;
}

.chat-widget__request-button--decline {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.chat-widget__request-button--decline:hover:not(:disabled),
.chat-widget__request-button--decline:focus-visible:not(:disabled) {
    background: rgba(231, 91, 74, 0.12);
    outline: none;
}

.chat-widget__request-footer {
    display: flex;
    justify-content: flex-end;
}

.chat-widget__message--system {
    align-items: center;
}

.chat-widget__message--own {
    align-items: flex-end;
}

.chat-widget__system-text {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

.chat-widget__bubble {
    background: var(--surface-alt);
    padding: 0.75rem 0.9rem;
    max-width: 80%;
    display: grid;
    gap: 0.35rem;
    border-radius: 0.9rem;
    transition: box-shadow 0.2s ease;
    position: relative;
}

.chat-widget__message--own .chat-widget__bubble {
    background: var(--accent-gradient);
    color: #ffffff;
}

.chat-widget__message--own .chat-widget__text {
    color: #ffffff;
}

.chat-widget__text a {
    color: var(--accent);
    text-decoration: underline;
}

.chat-widget__message--own .chat-widget__text a {
    color: #ffffff;
}

.chat-widget__message--own .chat-widget__meta {
    color: rgba(255, 255, 255, 0.75);
}

.chat-widget__text {
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-widget__meta {
    font-size: 0.75rem;
    color: var(--muted);
    text-align: right;
    display: inline-flex;
    gap: 0.4rem;
    justify-content: flex-end;
    align-items: center;
}

.chat-widget__meta-time {
    white-space: nowrap;
}

.chat-widget__meta-status {
    white-space: nowrap;
    color: var(--muted);
}

.chat-widget__message--own .chat-widget__meta-status {
    color: rgba(255, 255, 255, 0.85);
}

.chat-widget__reply-preview {
    border-left: 4px solid var(--accent-dark);
    padding-left: 0.65rem;
    background: #ffffff;
    border-radius: 0.35rem;
    display: grid;
    gap: 0.1rem;
}

.chat-widget__reply-preview--interactive {
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.chat-widget__reply-preview--interactive:hover,
.chat-widget__reply-preview--interactive:focus-visible {
    background: rgba(142, 234, 63, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.chat-widget__reply-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
}

.chat-widget__reply-text {
    font-size: 0.9rem;
    color: var(--muted);
}

.chat-widget__message--own .chat-widget__reply-preview {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
}

.chat-widget__message--own .chat-widget__reply-title,
.chat-widget__message--own .chat-widget__reply-text {
    color: #ffffff;
}

.chat-widget__meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.1rem;
}

.chat-widget__meta-row--own {
    justify-content: flex-end;
}

.chat-widget__message-action {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.04);
    color: var(--muted);
    padding: 0.25rem 0.65rem;
    border-radius: 0.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    margin-left: 8px;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.chat-widget__message-action:hover,
.chat-widget__message-action:focus-visible {
    background: rgba(142, 234, 63, 0.14);
    color: var(--accent-dark);
    border-color: rgba(142, 234, 63, 0.4);
    outline: none;
    transform: translateY(-1px);
}

.chat-widget__message--own .chat-widget__message-action {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.chat-widget__message--own .chat-widget__message-action:hover,
.chat-widget__message--own .chat-widget__message-action:focus-visible {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.chat-widget__message--highlighted .chat-widget__bubble {
    box-shadow: 0 0 0 2px var(--accent-soft), 0 10px 22px rgba(31, 47, 37, 0.18);
}

.chat-widget__reply-draft {
    display: none;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.25rem 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0;
    background: var(--surface-alt);
    border-left: 4px solid var(--accent-dark);
    box-shadow: 0 10px 22px rgba(31, 47, 37, 0.08);
}

.chat-widget__reply-draft--visible {
    display: flex;
}

.chat-widget__reply-draft-content {
    display: grid;
    gap: 0.2rem;
}

.chat-widget__reply-draft-title {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.chat-widget__reply-draft-text {
    color: var(--muted);
    font-size: 0.9rem;
}

.chat-widget__reply-draft-cancel {
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.chat-widget__reply-draft-cancel:hover,
.chat-widget__reply-draft-cancel:focus-visible {
    background: rgba(142, 234, 63, 0.12);
    color: var(--accent-dark);
    outline: none;
}

.chat-widget__forward-draft {
    display: none;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.25rem 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0;
    background: var(--surface-alt);
    border-left: 4px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 10px 22px rgba(31, 47, 37, 0.08);
}

.chat-widget__forward-draft--visible {
    display: flex;
}

.chat-widget__forward-draft-content {
    display: grid;
    gap: 0.35rem;
    flex: 1;
}

.chat-widget__forward-draft-title {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.chat-widget__forward-draft-preview {
    display: grid;
    gap: 0.35rem;
}

.chat-widget__forward-draft-cancel {
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.chat-widget__forward-draft-cancel:hover,
.chat-widget__forward-draft-cancel:focus-visible {
    background: rgba(142, 234, 63, 0.12);
    color: var(--accent-dark);
    outline: none;
}

.chat-widget__forward-preview {
    background: #ffffff;
    border: 1px dashed rgba(15, 23, 42, 0.15);
    border-radius: 0.5rem;
    padding: 0.55rem 0.75rem;
    display: grid;
    gap: 0.2rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.chat-widget__forward-title {
    font-weight: 700;
    color: var(--text);
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-widget__forward-text {
    color: var(--muted);
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-widget__message--own .chat-widget__forward-preview {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

.chat-widget__message--own .chat-widget__forward-title,
.chat-widget__message--own .chat-widget__forward-text {
    color: #ffffff;
}

.chat-widget__form {
    border-top: 1px solid var(--bg-panel);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
}

.chat-widget__draft-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0;
}

.chat-widget__draft-attachment {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border-radius: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--bg-panel);
    box-shadow: 0 4px 12px rgba(15, 35, 24, 0.08);
    max-width: 100%;
}

.chat-widget__draft-attachment-preview {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6rem;
    overflow: hidden;
    background: var(--bg-panel);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-widget__draft-attachment-preview img,
.chat-widget__draft-attachment-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-widget__draft-attachment-preview--file {
    color: var(--accent);
    font-size: 1.25rem;
}

.chat-widget__draft-attachment-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
}

.chat-widget__draft-attachment-remove {
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 999px;
    flex: 0 0 auto;
}

.chat-widget__draft-attachment-remove:hover,
.chat-widget__draft-attachment-remove:focus-visible {
    color: var(--accent);
    outline: none;
    background: rgba(142, 234, 63, 0.1);
}

.chat-widget__draft-attachment-remove .material-symbols-rounded {
    font-size: 1.25rem;
    line-height: 1;
}

.chat-widget__form--disabled {
    opacity: 0.6;
}

.chat-widget__form--uploading {
    position: relative;
}

.chat-widget__form--uploading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    border-radius: 0.75rem;
}

.chat-widget__attach {
    position: relative;
    z-index: 10;
}

.chat-widget__attach-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: var(--surface);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-widget__attach-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.chat-widget__attach-toggle:not(:disabled):hover,
.chat-widget__attach-toggle:not(:disabled):focus-visible {
    outline: none;
}

.chat-widget__attach-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chat-widget__attach-menu {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    left: auto;
    transform: none;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--surface);
    border: 1px solid var(--bg-panel);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: none;
    z-index: 40;
}

.chat-widget__attach-menu.chat-widget__attach-menu--open {
    display: flex;
}

.chat-widget__attach-option {
    background: none;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    text-align: left;
    font: inherit;
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.chat-widget__attach-option:hover,
.chat-widget__attach-option:focus-visible {
    background: rgba(142, 234, 63, 0.12);
    outline: none;
}

.chat-widget__attach-option .material-symbols-rounded {
    font-size: 1.2rem;
    line-height: 1;
    color: var(--muted);
}

.chat-widget__attach-option-label {
    line-height: 1.2;
}

.chat-widget__emoji {
    position: relative;
    z-index: 9;
}

.chat-widget__emoji-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: var(--surface);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-widget__emoji-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.chat-widget__emoji-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chat-widget__emoji-menu {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    width: min(18rem, 80vw);
    max-height: 14rem;
    display: none;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--bg-panel);
    border-radius: 0.75rem;
    padding: 0.6rem;
    box-shadow: 0 10px 30px rgba(15, 35, 24, 0.16);
    z-index: 35;
    overflow: hidden;
}

.chat-widget__emoji-menu.chat-widget__emoji-menu--open {
    display: flex;
}

.chat-widget__emoji-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 0.35rem;
}

.chat-widget__emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.25rem;
    overflow-y: auto;
    max-height: 11rem;
    padding: 0.25rem;
}

.chat-widget__emoji-option {
    background: none;
    border: none;
    padding: 0.35rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.chat-widget__emoji-option:hover,
.chat-widget__emoji-option:focus-visible {
    background: rgba(142, 234, 63, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.chat-widget__emoji-option:active {
    transform: translateY(0);
}

.chat-widget__input {
    flex: 1;
    resize: none;
    padding: 0.75rem;
    border: 0;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    min-height: 2.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.chat-widget__input:focus {
    outline: none;
    border-color: var(--accent);
}

.chat-widget__send {
    background: transparent;
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-widget__send:hover:not(:disabled) {
}

.chat-widget__send:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.chat-widget__send-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chat-widget__send-spinner {
    display: none;
    width: 1.4rem;
    height: 1.4rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    animation: chat-send-spin 0.8s linear infinite;
}

.chat-widget__form--uploading .chat-widget__send-icon {
    display: none;
}

.chat-widget__form--uploading .chat-widget__send-spinner {
    display: inline-flex;
}

@keyframes chat-send-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.chat-widget__emoji-grid::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.chat-widget__emoji-grid::-webkit-scrollbar-thumb {
    background-color: rgba(142, 234, 63, 0.4);
    border-radius: 999px;
}

.chat-widget__emoji-grid::-webkit-scrollbar-track {
    background: transparent;
}

.chat-widget__attachments {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-widget__attachments--collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: minmax(7.5rem, auto);
    gap: 0.25rem;
    max-width: min(320px, 70vw);
}

.chat-widget__attachment {
    overflow: hidden;
    border-radius: 0.75rem;
}

.chat-widget__attachment--collage-item {
    position: relative;
    border-radius: 0.75rem;
}

.chat-widget__attachment--clickable {
    cursor: zoom-in;
}

.chat-widget__attachment--clickable:focus,
.chat-widget__attachment--clickable:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.chat-widget__attachment img,
.chat-widget__attachment video {
    display: block;
    width: 100%;
    max-width: min(320px, 70vw);
    border-radius: 0.75rem;
}

.chat-widget__attachments--collage .chat-widget__attachment--collage-item img {
    height: 100%;
    max-width: none;
    border-radius: inherit;
    object-fit: cover;
}

.chat-widget__attachments--collage[data-collage-count="2"] .chat-widget__attachment--collage-item,
.chat-widget__attachments--collage[data-collage-count="4"] .chat-widget__attachment--collage-item,
.chat-widget__attachments--collage[data-collage-count="4"] .chat-widget__attachment--collage-item:nth-child(n + 5) {
    aspect-ratio: 1;
}

.chat-widget__attachments--collage[data-collage-count="3"] .chat-widget__attachment--collage-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.chat-widget__attachments--collage[data-collage-count="3"] .chat-widget__attachment--collage-item:not(:first-child) {
    aspect-ratio: 1;
}

.chat-widget__attachments--collage[data-collage-total] .chat-widget__attachment--collage-item:nth-child(n + 5) {
    aspect-ratio: 1;
}

.chat-widget__attachment--file {
    background: var(--surface);
    border: 1px solid var(--bg-panel);
    padding: 0.6rem 0.85rem;
}

.chat-widget__attachment-link {
    color: var(--accent);
    text-decoration: none;
    word-break: break-word;
}

.chat-widget__attachment-link:hover,
.chat-widget__attachment-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.chat-widget--resizing {
    cursor: var(--chat-widget-resize-cursor, col-resize);
    user-select: none;
}

.chat-widget--resizing * {
    cursor: inherit;
}

.media-viewer-open {
    overflow: hidden;
}

.media-viewer[hidden] {
    display: none;
}

.media-viewer {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
}

.media-viewer__dialog {
    position: relative;
    max-width: min(90vw, 960px);
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.media-viewer__close {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: inherit;
    border-radius: 999px;
    padding: 0.25rem;
    cursor: pointer;
}

.media-viewer__close:hover,
.media-viewer__close:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.media-viewer__content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.media-viewer__image-wrapper {
    justify-self: center;
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer__image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background-color: var(--surface);
}

.media-viewer__nav {
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: inherit;
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.media-viewer__nav:hover,
.media-viewer__nav:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.media-viewer__nav--hidden {
    visibility: hidden;
}

.media-viewer__footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.media-viewer__caption {
    margin: 0;
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
}

.media-viewer__counter {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
}

.discovery {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1rem, 2vh, 1.75rem);
    padding: var(--page-block-padding);
    background: var(--surface);
}

.discovery__heading,
.discovery-filters {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.discovery__stage {
    position: relative;
    background: var(--surface);
    --discovery-actions-size: clamp(3.25rem, 8vw, 4.25rem);
    --discovery-actions-gap: clamp(0.75rem, 2vh, 1.5rem);
    --discovery-stage-padding: clamp(1rem, 3vh, 2.25rem);
    padding: var(--discovery-stage-padding);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--discovery-actions-gap);
    width: min(1024px, 100%);
    min-height: clamp(360px, 68vh, 640px);
    max-height: min(680px, 100%);
    border-radius: var(--radius-panel);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.discovery__card {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
    align-self: stretch;
    position: relative;
}

.discovery-card {
    width: min(860px, 100%);
    height: clamp(420px, 62vh, 620px);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    border-radius: var(--radius-panel);
    border: 1px solid var(--bg-panel);
}

.discovery-card--event {
    background: var(--surface);
}

.discovery-card__visual {
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    min-height: 0;
    overflow: hidden;
    align-self: stretch;
    position: relative;
}

.discovery-card__visual img {
    width: clamp(160px, 48%, 260px);
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: none;
}

.discovery-card--event .discovery-card__visual {
    background: var(--bg-muted);
}

.discovery-card__placeholder {
    width: clamp(160px, 48%, 240px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--accent);
    font-size: clamp(2.75rem, 6vw, 3.75rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.discovery-card__placeholder--event {
    background: rgba(255, 255, 255, 0.88);
    color: #2360a3;
}

.discovery-card__content {
    padding: clamp(1.75rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vh, 1.5rem);
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    min-width: 0;
    min-height: 0;
    background: var(--surface);
}

.discovery-card__content-scroll {
    display: grid;
    gap: 1rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.discovery-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.discovery-card__title {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2rem);
}

.discovery-card__meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.discovery-card__description {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.discovery-card__section {
    margin-top: 1.25rem;
}

.discovery-card__section-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.discovery-card__teams {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.discovery-card__team {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.discovery-card__team-name {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.discovery-card__team-name:hover,
.discovery-card__team-name:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.discovery-card__team-role {
    font-size: 0.8rem;
    color: var(--muted);
}

.discovery-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.discovery-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: var(--accent-soft);
    font-size: 0.85rem;
    color: var(--accent);
}

.discovery-card__footer {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
}

.discovery__actions {
    width: min(820px, 100%);
    display: flex;
    gap: var(--discovery-actions-gap);
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    flex: 0 0 auto;
}

.discovery__button {
    border: 1px solid var(--bg-panel);
    width: clamp(3.25rem, 8vw, 4.25rem);
    height: clamp(3.25rem, 8vw, 4.25rem);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.discovery__actions .discovery__button {
    border-radius: 50%;
}

.discovery__button:hover:not(:disabled),
.discovery__button:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    outline: none;
}

.discovery__button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.35);
    box-shadow: none;
}

.discovery__button span[aria-hidden="true"] {
    line-height: 1;
}

.discovery__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.5rem, 4vw, 1.85rem);
    height: clamp(1.5rem, 4vw, 1.85rem);
}

.discovery__button-icon .material-symbols-rounded {
    font-size: inherit;
}

.discovery__button--contact {
    background: var(--accent-gradient);
    border-color: var(--accent);
    color: #ffffff;
}

.discovery__button--pass {
    background: var(--bg-muted);
    color: var(--muted);
}

.discovery__button--refresh {
    background: var(--surface);
    color: var(--accent-dark);
}

.discovery__button--secondary {
    background: var(--surface);
}

.discovery__empty {
    text-align: center;
    margin: 0;
    max-width: 420px;
}

.discovery__contact {
    position: absolute;
    inset: 0;
    background: rgba(28, 55, 41, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(6px);
    border-radius: inherit;
}

.discovery__contact[hidden] {
    display: none !important;
}

.discovery__contact-content {
    background: var(--surface);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 420px;
    text-align: center;
    box-shadow: 0 24px 56px rgba(31, 47, 37, 0.24);
    border-radius: var(--radius-panel);
}

.discovery__contact-content h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: clamp(1.6rem, 4vw, 2rem);
}

.discovery__contact-content p {
    margin: 0 0 1.5rem;
    color: var(--muted);
}

.discovery__contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.profile__hero {
    position: relative;
    padding: clamp(1.75rem, 4vw, 3rem);
    margin: 17px 1.1rem 3rem 1.1rem;
    background: radial-gradient(120% 180% at 10% 10%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #9af04a 0%, #6cc72a 45%, #2f7d16 100%);
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(19, 50, 33, 0.35);
    border-radius: var(--radius-panel);
}

.profile--event .profile__hero {
    background: radial-gradient(140% 200% at 15% 15%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, #4ddde6 0%, #2ecbd3 45%, #0f99a3 100%);
}

.profile--team .profile__hero {
    background: radial-gradient(140% 200% at 15% 15%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #ffc470 0%, #f29b38 45%, #d66a00 100%);
}

.profile--company {
    --accent: var(--company-accent);
    --accent-strong: var(--company-accent-strong);
    --accent-dark: var(--company-accent-dark);
    --accent-soft: var(--company-accent-soft);
    --accent-gradient: linear-gradient(90deg, var(--company-accent) 0%, var(--company-accent-dark) 100%);
}


.team--company {
    --accent: var(--team-accent);
    --accent-strong: var(--team-accent-strong);
    --accent-dark: var(--team-accent-dark);
    --accent-soft: var(--team-accent-soft);
    --accent-gradient: linear-gradient(90deg, var(--team-accent) 0%, var(--team-accent-dark) 100%);
}

.profile--company .profile__hero {
    background: radial-gradient(140% 200% at 15% 15%, rgba(95, 39, 255, 0.26) 0%, rgba(95, 39, 255, 0) 42%),
    linear-gradient(135deg, #7d63ff 0%, #5f27ff 50%, #3610a8 100%);
}

.profile--event .profile__badge {
    background: rgba(255, 255, 255, 0.24);
}

.profile__event-meta {
    display: inline-grid;
    gap: 0.35rem;
    justify-self: start;
    max-width: min(100%, 680px);
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile__event-meta-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__event-meta-label {
    min-width: 5.9rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile__event-meta a {
    color: inherit;
}

.profile--event .profile__subtitle {
    color: rgba(255, 255, 255, 0.88);
}

.profile__card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(1.75rem, 4vw, 3rem);
}

.profile__photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.avatar--xl {
    --avatar-size: clamp(160px, 28vw, 220px);
    width: var(--avatar-size);
    height: var(--avatar-size);
    border: 6px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 24px 48px rgba(6, 24, 12, 0.45);
}

.profile__photo-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: min(100%, 480px);
    max-width: 100%;
}

.profile__photo-actions .button {
    width: 100%;
}

.profile__photo-upload {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.profile__photo-remove {
    width: 100%;
}

.profile__photo-input-wrapper {
    display: contents;
}

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

.profile__photo-hint {
    font-size: 0.9rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
}

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

.profile__info {
    flex: 1 1 320px;
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.profile__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.profile__badge a {
    color: inherit;
}

.profile__badge--team {
    gap: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
}

.profile__badge-team {
    font-weight: 600;
}

.profile__badge-role {
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 0.9;
}

.profile__badge-separator {
    opacity: 0.6;
    font-size: 0.6rem;
}

.profile__title {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.9rem);
}

.profile__subtitle {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 460px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__summary {
    display: grid;
    gap: 0.4rem;
}

.profile__name {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__age {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.profile__handle {
    margin: -0.15rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__location {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__location-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.profile__status {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.profile__status-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
}

.profile__status-dot--online {
    background: var(--accent);
    box-shadow: 0 0 0 0.35rem rgba(36, 176, 112, 0.2);
}

.profile__status-label {
    opacity: 0.9;
}

.profile__status-time {
    margin-left: 0.35rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.profile__bio {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__bio--muted {
    color: #fff;
}

.profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile__tags--inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.profile__tags--inline .profile__tag {
    background: var(--bg-panel);
    color: var(--accent);
}

.profile__tag {
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    border-radius: var(--radius-sm);
}

.profile__hero-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
}

.profile__hero-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__hero-contact a {
    color: inherit;
    text-decoration: none;
}

.profile__hero-contact a:hover,
.profile__hero-contact a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.profile__hero-contact-icon,
.profile__hero-contact .material-symbols-rounded {
    flex: 0 0 auto;
    font-size: 1.05rem;
}

.profile__hero-contact-icon {
    display: inline-flex;
    width: 1.05rem;
    height: 1.05rem;
}

.profile__hero-contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.profile__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1rem 0 0;
}

.profile__stat {
    display: grid;
    gap: 0.35rem;
}

.profile__stat-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: #fff;
}

.profile__stat-number {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__stat-number--compact {
    font-size: clamp(1.1rem, 2.4vw, 1.05rem);
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__stat-number--compact a {
    color: inherit;
    text-decoration: underline;
}

.profile__stat-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.profile__content {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
    padding: 0 1.1rem;
}

.profile__content--wide,
.profile__content-wide {
    padding: 0 1.1rem;
}


.profile__2-columns{
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}


.profile__2-columns .profile__album-card{
    grid-column: 1 / 1;
    align-items: start;
}

.profile__content--single {
    grid-template-columns: 1fr;
}

.profile__album-card {
    background: var(--surface);
    padding: clamp(1.35rem, 3vw, 2.1rem);
    border-radius: 1.5rem;
    box-shadow: 0 24px 48px rgba(31, 47, 37, 0.12);
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-column: 1 / -1;
}

.profile--event .profile__album-card {
    box-shadow: 0 24px 48px rgba(52, 214, 222, 0.18);
}

.profile--team .profile__album-card {
    box-shadow: 0 24px 48px rgba(179, 71, 0, 0.18);
}

.profile__album-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile__album-title {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.profile__album-counter {
    font-weight: 600;
    color: var(--muted);
}

.profile__album-empty {
    margin: 0;
    color: var(--muted);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--bg-panel);
    border-radius: var(--radius-panel);
    padding: clamp(1.15rem, 3vw, 1.75rem);
    box-shadow: 0 20px 50px rgba(31, 47, 37, 0.12);
    display: grid;
    gap: clamp(0.85rem, 2vw, 1.25rem);
}

.panel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--bg-panel);
}

.panel__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--muted);
}

.panel__title {
    margin: 0.1rem 0 0;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    color: var(--text);
}

.profile__members {
    gap: 1rem;
}

.profile__participants {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.profile__participants--compact {
    gap: 0.55rem;
}

.profile__participant {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: var(--surface-alt);
    border: 1px solid var(--bg-panel);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 28px rgba(31, 47, 37, 0.12);
}

.profile__participants--compact .profile__participant {
    padding: 0.5rem 0.6rem;
}

.profile__participant-info {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.profile__participant-name {
    font-weight: 700;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.profile__participant-role {
    color: var(--muted);
    font-size: 0.88rem;
}

.photo-carousel {
    position: relative;
    display: grid;
    gap: 1rem;
}

.photo-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 1.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--surface-alt);
    padding: 0.75rem 0;
}

.photo-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.photo-carousel__track {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1rem;
}

.photo-carousel__slide {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
}

.photo-carousel__preview {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.photo-carousel__preview:focus-visible {
    outline: none;
}

.photo-carousel__image {
    display: block;
    height: clamp(180px, 24vw, 280px);
    width: auto;
    max-width: min(100%, clamp(180px, 30vw, 360px));
    object-fit: contain;
    border-radius: 1.25rem;
    box-shadow: 0 24px 48px rgba(31, 47, 37, 0.16);
    transition: transform 0.2s ease;
}

.photo-carousel__preview:hover .photo-carousel__image,
.photo-carousel__preview:focus-visible .photo-carousel__image {
    transform: translateY(-2px);
}

.photo-carousel__preview-icon {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.photo-carousel__preview:hover .photo-carousel__preview-icon,
.photo-carousel__preview:focus-visible .photo-carousel__preview-icon {
    transform: scale(1.05);
    opacity: 0.92;
}

.photo-carousel__upload-slide {
    min-width: 0;
}

.photo-carousel__upload-card {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(160px, 18vw, 220px);
    height: clamp(180px, 24vw, 280px);
    padding: 1.25rem;
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.65);
    color: var(--muted);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-carousel__upload-card:hover,
.photo-carousel__upload-card:focus-within {
    border-color: rgba(15, 23, 42, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.photo-carousel__upload-card-body {
    display: grid;
    gap: 0.5rem;
    justify-items: center;
    text-align: center;
}

.photo-carousel__upload-card-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.5);
    font-size: 1.7rem;
}

.photo-carousel__upload-card-title {
    font-weight: 600;
    color: var(--text);
}

.photo-carousel__upload-card-text {
    margin: 0;
    max-width: 16ch;
    color: var(--muted);
    font-size: 0.95rem;
}

.photo-carousel__upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.photo-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.photo-carousel__nav {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: rgba(142, 234, 63, 0.14);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.photo-carousel__nav:hover:not(:disabled),
.photo-carousel__nav:focus-visible:not(:disabled) {
    background: rgba(142, 234, 63, 0.2);
    transform: translateY(-1px);
}

.photo-carousel__nav:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}

.profile--event .photo-carousel__nav {
    background: rgba(52, 214, 222, 0.14);
    color: var(--event-accent);
}

.profile--event .photo-carousel__nav:hover:not(:disabled),
.profile--event .photo-carousel__nav:focus-visible:not(:disabled) {
    background: rgba(52, 214, 222, 0.22);
}

.profile--team .photo-carousel__nav {
    background: rgba(142, 234, 63, 0.14);
    color: var(--accent);
}

.profile--team .photo-carousel__nav:hover:not(:disabled),
.profile--team .photo-carousel__nav:focus-visible:not(:disabled) {
    background: rgba(142, 234, 63, 0.2);
}

.photo-carousel__status {
    font-weight: 600;
    color: var(--muted);
}

.photo-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.photo-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(142, 234, 63, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.photo-carousel__dot--active {
    background: var(--accent-gradient);
    transform: scale(1.2);
}

.profile--event .photo-carousel__dot {
    background: rgba(52, 214, 222, 0.2);
}

.profile--event .photo-carousel__dot--active {
    background: var(--event-accent);
}

.profile--team .photo-carousel__dot {
    background: rgba(142, 234, 63, 0.2);
}

.profile--team .photo-carousel__dot--active {
    background: var(--accent-gradient);
}

.photo-carousel--single .photo-carousel__dots {
    display: none;
}

.photo-carousel__upload {
    border-top: 1px solid var(--bg-panel);
    padding-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.photo-carousel__upload-label {
    font-weight: 600;
}

.photo-carousel__upload-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.photo-carousel__upload-input {
    flex: 1 1 220px;
}

.photo-carousel__upload-button {
    flex: 0 0 auto;
}

.photo-carousel__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.profile__form-card,
.profile__events-card,
.profile__contacts-card,
.profile__teams-card,
.profile__achievements-card {
    background: var(--surface);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 24px 48px rgba(31, 47, 37, 0.12);
    border-radius: var(--radius-panel)
}

.profile__form-card h2,
.profile__form-card p,
.profile__form-card form {
    margin: 0;
}

.profile__form-hint {
    color: var(--muted);
    margin-top: 0.35rem !important;
}

.profile__form {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.profile__form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.profile__form-field {
    background: var(--surface-alt);
    padding: 1rem 1.25rem;
    border: 1px solid var(--bg-panel);
    gap: 0.6rem;
    box-shadow: inset 0 0 0 1px rgba(142, 234, 63, 0.06);
}

.profile__form-field small {
    color: var(--muted);
}

.profile__form-field .input,
.profile__form-field .textarea,
.profile__form-field select.input {
    border: 1px solid transparent;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(31, 47, 37, 0.06);
}

.profile__checkbox {
    width: auto;
    height: auto;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.tag-input {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tag-input__body {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: var(--surface);
    border: 1px solid rgba(31, 47, 37, 0.14);
    min-height: 2.75rem;
    border-radius: 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: text;
}

.tag-input__body:hover {
    border-color: rgba(31, 47, 37, 0.28);
}

.tag-input__body--focused {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(142, 234, 63, 0.18);
}

.tag-input--open .tag-input__body {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(142, 234, 63, 0.18);
}

.tag-input__body--filled {
    background: var(--surface-alt);
}

.tag-input__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-input__dropdown {
    position: absolute;
    z-index: 15;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid rgba(31, 47, 37, 0.12);
    border-radius: 1rem;
    box-shadow: 0 20px 36px rgba(31, 47, 37, 0.16);
    padding: 0.35rem;
}

.tag-input__options {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 18rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tag-input__option {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.7rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.tag-input__option:hover,
.tag-input__option:focus {
    background: rgba(142, 234, 63, 0.1);
    color: var(--accent);
}

.tag-input__option--active {
    background: rgba(142, 234, 63, 0.18);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(142, 234, 63, 0.4);
}

.tag-input__option--create {
    font-weight: 600;
}

.profile__feed-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


.profile__composer-form {
    display: grid;
    gap: 0.75rem;
}

.profile__feed-card--event {
    background: var(--surface);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 24px 48px rgba(31, 47, 37, 0.12);
    border-radius: var(--radius-panel);
}

.profile--event .profile__feed-card--event-posts {
    grid-column: 1 / 2;
    grid-row: auto;
}

.profile--event .profile__feed-card--event-details {
    grid-column: 1 / 2;
}

.profile__feed-card--tasks {
    gap: 1.25rem;
    grid-column: 1 / -1;
}

.event-tasks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-tasks__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.event-tasks__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.event-tasks__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
}

.event-tasks__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.event-tasks__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    background: rgba(31, 47, 37, 0.05);
    border-radius: 999px;
}

.event-tasks__toggle-btn {
    padding: 0.45rem 0.85rem;
    font-weight: 600;
}

.event-tasks__toggle-btn--active {
    background: rgba(142, 234, 63, 0.18);
    color: var(--accent);
    box-shadow: 0 8px 18px rgba(142, 234, 63, 0.25);
}

.event-tasks__feedback {
    margin: 0;
}

.event-tasks__feedback[hidden] {
    display: none !important;
}

.event-tasks__scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.event-tasks__view-panel {
    display: block;
}

.event-tasks__view-panel[hidden] {
    display: none !important;
}

.event-tasks__scroller::-webkit-scrollbar {
    height: 6px;
}

.event-tasks__scroller::-webkit-scrollbar-thumb {
    background: rgba(142, 234, 63, 0.35);
    border-radius: 999px;
}

.event-tasks__column {
    flex: 0 0 18rem;
    background: var(--surface-alt);
    border: 1px solid rgba(31, 47, 37, 0.08);
    border-radius: var(--radius-panel);
    display: flex;
    flex-direction: column;
    max-height: 28rem;
    box-shadow: 0 18px 36px rgba(31, 47, 37, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-tasks__column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.1rem 0.5rem;
}

.event-tasks__add-link {
    align-self: flex-start;
    margin: 0 1.1rem 0.25rem;
    padding: 0.2rem 0.35rem;
    border: none;
    background: transparent;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.event-tasks__add-link:hover,
.event-tasks__add-link:focus-visible {
    color: var(--accent-dark);
    transform: translateY(-1px);
}

.event-tasks__add-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.event-tasks__column-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.event-tasks__column-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(142, 234, 63, 0.12);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
}

.event-tasks__column-body {
    flex: 1;
    padding: 0.85rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: 24rem;
    transition: background 0.2s ease, border 0.2s ease;
}

.event-tasks__column-body--dragover {
    background: rgba(142, 234, 63, 0.08);
    box-shadow: inset 0 0 0 1px rgba(142, 234, 63, 0.3);
}

.event-task-card {
    background: var(--surface);
    border: 1px solid rgba(31, 47, 37, 0.08);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.5rem;
    box-shadow: 0 14px 24px rgba(31, 47, 37, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.event-task-card:hover,
.event-task-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 32px rgba(31, 47, 37, 0.16);
}

.event-task-card--readonly {
    cursor: default;
}

.event-task-card--dragging {
    opacity: 0.65;
    transform: scale(0.98);
    box-shadow: 0 12px 24px rgba(31, 47, 37, 0.2);
}

.event-task-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.event-task-card__description {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.event-task-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.event-task-card__assignee {
    font-weight: 600;
    color: var(--accent);
}

.event-task-card__dates {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.8rem;
}

.event-gantt {
    --gantt-columns: 1;
    --gantt-column-width: 4.25rem;
    --gantt-label-width: min(14rem, 34vw);
    --gantt-link-color: #2bc3ff;
    --gantt-link-glow: rgba(43, 195, 255, 0.45);
    display: grid;
    grid-template-columns: var(--gantt-label-width) 1fr;
    gap: 0.75rem;
    align-items: start;
    padding-bottom: 0.5rem;
}

.event-gantt__labels {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
    padding-right: 0.35rem;
    box-shadow: 6px 0 14px rgba(15, 23, 42, 0.04);
    width: var(--gantt-label-width);
    min-width: var(--gantt-label-width);
}

.event-gantt__scale-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.event-gantt__scale-title {
    font-weight: 700;
    color: var(--muted);
    font-size: 0.95rem;
}

.event-gantt__scale-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.event-gantt__scale-control-label {
    font-weight: 600;
}

.event-gantt__scale-select {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.4rem 0.25rem 0.3rem;
    background: var(--surface);
    border: 1px solid rgba(31, 47, 37, 0.12);
    border-radius: 0.85rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.event-gantt__scale-select:focus-within {
    border-color: rgba(31, 47, 37, 0.18);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

.event-gantt__scale-dropdown {
    border: none;
    background: transparent;
    font: inherit;
    color: var(--text);
    padding: 0.45rem 0.85rem 0.45rem 0.35rem;
    border-radius: 0.65rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    font-weight: 700;
}

.event-gantt__scale-dropdown:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.event-gantt__scale-icon {
    color: var(--accent);
    font-size: 1.15rem;
}

.event-gantt__labels-list {
    display: grid;
    gap: 0.75rem;
    grid-auto-rows: minmax(3.25rem, auto);
}

.event-gantt__timeline {
    overflow-x: auto;
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    align-items: start;
    position: relative;
}

.event-gantt__scale {
    display: grid;
    grid-template-columns: repeat(var(--gantt-columns), var(--gantt-column-width, 4.25rem));
    gap: 0.35rem;
    min-width: max-content;
}

.event-gantt__scale-track {
    display: grid;
    grid-template-columns: repeat(var(--gantt-columns), var(--gantt-column-width, 4.25rem));
    gap: 0.35rem;
    grid-column: 1 / -1;
    width: 100%;
    min-width: max-content;
    padding: 0.65rem 0.75rem;
    background: var(--surface-alt);
    border: 1px solid rgba(31, 47, 37, 0.08);
    border-radius: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.event-gantt__scale-cell {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    padding: 0.35rem 0.2rem;
    background: rgba(31, 47, 37, 0.03);
    border-radius: 0.65rem;
    border: 1px dashed rgba(31, 47, 37, 0.08);
}

.event-gantt__rows {
    display: grid;
    gap: 0.75rem;
    grid-auto-rows: minmax(3.25rem, auto);
    min-width: max-content;
}

.event-gantt__rows::-webkit-scrollbar,
.event-gantt::-webkit-scrollbar {
    height: 6px;
}

.event-gantt__rows::-webkit-scrollbar-thumb,
.event-gantt::-webkit-scrollbar-thumb {
    background: rgba(142, 234, 63, 0.35);
    border-radius: 999px;
}

.event-gantt__row-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--text);
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 100%;
}

.event-gantt__row-title {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

.event-gantt__row-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9rem;
    height: 0.9rem;
    min-width: 0.9rem;
    min-height: 0.9rem;
    padding: 0;
    border-radius: 999px;
    border: 2px solid rgba(31, 47, 37, 0.12);
    background: rgba(31, 47, 37, 0.08);
}

.event-gantt__row-count--planned {
    background: #dbeafe;
    border-color: #93c5fd;
}

.event-gantt__row-count--in_progress {
    background: #fff2d6;
    border-color: #fbbf24;
}

.event-gantt__row-count--waiting {
    background: #d1fae5;
    border-color: #34d399;
}

.event-gantt__row-count--done {
    background: #dcfce7;
    border-color: #22c55e;
}

.event-gantt__row-count--unknown {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.event-gantt__track {
    display: grid;
    grid-template-columns: repeat(var(--gantt-columns), var(--gantt-column-width, 4.25rem));
    gap: 0.35rem;
    position: relative;
    background: linear-gradient(90deg, rgba(31, 47, 37, 0.03) 0%, rgba(31, 47, 37, 0.04) 100%);
    border: 1px solid rgba(31, 47, 37, 0.08);
    border-radius: 1rem;
    padding: 0.5rem;
    min-height: 3.25rem;
    min-width: max-content;
}

.event-gantt__links {
    position: absolute;
    inset: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 4;
    min-width: 100%;
    min-height: 100%;
}

.event-gantt__link-menu {
    position: absolute;
    min-width: 12rem;
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(31, 47, 37, 0.12);
    box-shadow: 0 18px 32px rgba(31, 47, 37, 0.18);
    transform: translate(-50%, 0);
    pointer-events: auto;
    z-index: 20;
}

.event-gantt__link-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    background: inherit;
    border-left: 1px solid rgba(31, 47, 37, 0.1);
    border-top: 1px solid rgba(31, 47, 37, 0.1);
    transform: translateX(-50%) rotate(45deg);
}

.event-gantt__link-menu-action {
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 0.65rem;
    padding: 0.55rem 0.75rem;
    background: rgba(232, 76, 61, 0.12);
    color: #d73b32;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.event-gantt__link-menu-action:hover,
.event-gantt__link-menu-action:focus-visible {
    outline: none;
    background: rgba(232, 76, 61, 0.18);
    box-shadow: 0 6px 14px rgba(215, 59, 50, 0.15);
    transform: translateY(-1px);
}

.event-gantt__link-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    font-weight: 700;
    color: var(--text);
    background: rgba(31, 47, 37, 0.03);
    border: 1px solid rgba(31, 47, 37, 0.08);
    border-radius: 0.7rem;
    padding: 0.5rem 0.65rem;
}

.event-gantt__link-menu-label {
    font-size: 0.95rem;
    color: var(--muted);
}

.event-gantt__link-menu-input {
    width: 4.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(31, 47, 37, 0.18);
    padding: 0.35rem 0.5rem;
    font-weight: 700;
    text-align: center;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.event-gantt__link-menu-input:focus-visible {
    outline: 2px solid rgba(43, 195, 255, 0.5);
    border-color: rgba(43, 195, 255, 0.65);
}

.event-gantt__link {
    fill: none;
    stroke: var(--gantt-link-color);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 5px 10px var(--gantt-link-glow));
    pointer-events: stroke;
}

.event-gantt__link--preview {
    stroke-dasharray: 8 8;
    opacity: 0.95;
    pointer-events: none;
}

.event-gantt__link-hit {
    fill: none;
    stroke: transparent;
    stroke-width: 16px;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: stroke;
    cursor: pointer;
}

.event-gantt__link-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent, #2bc3ff);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    cursor: grab;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.event-gantt__link-handle::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent, #2bc3ff);
}

.event-gantt__link-handle--start {
    left: -12px;
}

.event-gantt__link-handle--end {
    right: -12px;
}

.event-gantt__link-hit {
    fill: none;
    stroke: transparent;
    stroke-width: 16px;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: stroke;
}


.event-gantt__bar--link-target {
    outline: 2px solid var(--gantt-link-color);
    outline-offset: 2px;
    box-shadow: 0 14px 28px rgba(43, 195, 255, 0.35);
}

.event-gantt__bar {
    border: none;
    border-radius: 0.8rem;
    color: var(--text);
    background: rgba(142, 234, 63, 0.2);
    box-shadow: 0 12px 24px rgba(31, 47, 37, 0.14);
    font-weight: 700;
    text-align: left;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    overflow: visible;
    position: relative;
    cursor: pointer;
}

.event-gantt__bar:hover,
.event-gantt__bar:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(31, 47, 37, 0.2);
    background: rgba(142, 234, 63, 0.26);
}

.event-gantt__bar--planned {
    background: linear-gradient(135deg, rgba(104, 173, 255, 0.28), rgba(104, 173, 255, 0.18));
}

.event-gantt__bar--in_progress {
    background: linear-gradient(135deg, rgba(255, 186, 107, 0.32), rgba(255, 186, 107, 0.22));
}

.event-gantt__bar--waiting {
    background: linear-gradient(135deg, rgba(95, 211, 187, 0.35), rgba(95, 211, 187, 0.22));
}

.event-gantt__bar--done {
    background: linear-gradient(135deg, rgba(142, 234, 63, 0.32), rgba(142, 234, 63, 0.22));
}

.event-gantt__bar--resizing {
    box-shadow: 0 18px 28px rgba(31, 47, 37, 0.28);
    outline: 2px dashed rgba(74, 168, 44, 0.6);
    outline-offset: 2px;
}

.event-gantt__bar--dragging {
    box-shadow: 0 18px 28px rgba(31, 47, 37, 0.28);
    outline: 2px dashed rgba(36, 176, 112, 0.55);
    outline-offset: 2px;
    cursor: grabbing;
}

.event-gantt__bar--saving::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 0.9rem;
    border: 2px dashed rgba(74, 168, 44, 0.45);
    animation: gantt-saving 1s linear infinite;
    pointer-events: none;
}

.event-gantt__resize {
    position: absolute;
    top: 2px;
    bottom: 2px;
    width: 14px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: ew-resize;
    z-index: 2;
    touch-action: none;
}

.event-gantt__resize--start {
    left: 2px;
}

.event-gantt__resize--end {
    right: 2px;
}

.event-gantt__bar:not(.event-gantt__bar--resizable) .event-gantt__resize {
    display: none;
}

.event-gantt__bar:hover .event-gantt__resize,
.event-gantt__bar:focus-visible .event-gantt__resize,
.event-gantt__bar--resizing .event-gantt__resize,
.event-gantt__bar .event-gantt__resize {
    opacity: 1;
    transform: translateY(-1px);
}

.event-gantt__resize::after {
    content: "";
    position: relative;
    width: 1px;
    height: 72%;
    border-radius: 1px;
    background: rgba(100, 116, 139, 0.7);
    box-shadow: 4px 0 0 rgba(100, 116, 139, 0.45);
}

.event-gantt__resize-halo {
    position: absolute;
    width: 40px;
    height: 22px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.event-gantt__resize-halo::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--gantt-link-color);
    box-shadow: 0 0 0 6px rgba(43, 195, 255, 0.14);
    top: 50%;
    transform: translateY(-50%);
}

.event-gantt__resize--start .event-gantt__resize-halo {
    left: -40px;
}

.event-gantt__resize--start .event-gantt__resize-halo::after {
    right: 8px;
}

.event-gantt__resize--end .event-gantt__resize-halo {
    right: -40px;
}

.event-gantt__resize--end .event-gantt__resize-halo::after {
    left: 8px;
}

.event-gantt__bar:hover .event-gantt__resize-halo,
.event-gantt__bar:focus-visible .event-gantt__resize-halo,
.event-gantt__bar--resizing .event-gantt__resize-halo,
.event-gantt__resize:hover .event-gantt__resize-halo,
.event-gantt__resize:focus-visible .event-gantt__resize-halo,
.event-gantt__resize-halo:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.event-gantt__bar--resizable::before,
.event-gantt__bar--resizable::after {
    display: none;
}

.event-gantt__bar--resizable::before {
    left: -10px;
}

.event-gantt__bar--resizable::after {
    right: -10px;
}

.event-gantt__resize-tooltip {
    position: fixed;
    z-index: 30;
    background: var(--text);
    color: #ffffff;
    padding: 0.35rem 0.7rem;
    border-radius: 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
    pointer-events: none;
    transform: translate(-50%, -120%);
    opacity: 0.92;
}

.event-gantt--resizing {
    cursor: ew-resize;
    user-select: none;
}

.event-gantt--resizing * {
    user-select: none;
    cursor: ew-resize;
}

.event-gantt--dragging {
    cursor: grabbing;
    user-select: none;
}

.event-gantt--dragging * {
    user-select: none;
    cursor: grabbing;
}

.event-gantt__bar-label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: none;
    position: sticky;
    left: 0;
    padding: 0.25rem 0.4rem;
    background: inherit;
    z-index: 1;
    box-shadow: 8px 0 12px rgba(15, 23, 42, 0.06);
}

.event-gantt__bar--clamped-left {
    padding-left: 0.5rem;
}

.event-gantt__bar--clamped-left .event-gantt__bar-label {
    padding-left: 0.4rem;
}

.event-gantt__placeholder {
    grid-column: 1 / -1;
    padding: 0.6rem 0.8rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.event-gantt__empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

@keyframes gantt-saving {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

.profile__feed-card--team {
    background: var(--surface);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 24px 48px rgba(179, 71, 0, 0.12);
    border-radius: var(--radius-panel);
}

.team-events {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(0.85rem, 2vw, 1.25rem);
}

.team-events__item {
    border: 1px solid rgba(52, 214, 222, 0.12);
    background: var(--surface);
    border-radius: var(--radius-panel);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-events__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: center;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    color: inherit;
    text-decoration: none;
}

.team-events__item:hover,
.team-events__item:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(31, 47, 37, 0.12);
    border-color: rgba(52, 214, 222, 0.24);
}

.team-events__link:focus-visible {
    outline: none;
}

.team-events__link:focus-visible .team-events__cta {
    box-shadow: 0 0 0 3px rgba(52, 214, 222, 0.24);
}

.team-events__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-events__avatar {
    --avatar-size: clamp(64px, 12vw, 84px);
    width: var(--avatar-size);
    height: var(--avatar-size);
    border: 4px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 36px rgba(52, 214, 222, 0.18);
}

.team-events__content {
    display: grid;
    gap: 0.65rem;
}

.team-events__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.team-events__title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text);
}



.team-events__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--event-accent-soft);
    color: var(--event-accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.team-events__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.team-events__meta .material-symbols-rounded {
    font-size: 1.1rem;
}

.team-events__description {
    margin: 0;
    color: var(--text);
    line-height: 1.55;
}

.team-events__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(52, 214, 222, 0.1);
    color: var(--event-accent);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.team-events__item:hover .team-events__cta,
.team-events__item:focus-within .team-events__cta {
    background: var(--event-accent);
    color: #ffffff;
}

.team-events__cta .material-symbols-rounded {
    font-size: 1.1rem;
}

.profile__main-column {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2rem);
    min-width: 0;
}

.profile__team-text {
    display: grid;
    gap: 1rem;
    color: var(--text);
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__event-text {
    display: grid;
    gap: 1rem;
    color: var(--text);
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__feed-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile__feed-header h2 {
    margin: 0;
}

.profile__feed-list {
    display: grid;
    gap: 0;
}

.profile__post .team-post__author-info {
    gap: 0.35rem;
}

.profile__post-team {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
}

.profile__post-team a {
    color: inherit;
    text-decoration: underline;
}

.profile__post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.profile__post-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.profile__post-note {
    margin: 0.25rem 0 0.65rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.profile__feed-empty {
    margin: 0;
}

.news-feed {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.news-feed__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.news-feed__intro {
    max-width: 36rem;
}

.news-feed__intro h1 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.news-feed__intro p {
    margin: 0.35rem 0 0;
    line-height: 1.6;
}

.news-feed__filter {
    margin-left: auto;
    max-width: min(420px, 100%);
}

.news-feed__list {
    display: grid;
    gap: 1.5rem;
}

.news-feed__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

.news-feed__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(142, 234, 63, 0.18);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.news-feed__badge--team {
    background: rgba(142, 234, 63, 0.18);
    color: var(--accent);
}

.news-feed__badge--event {
    background: rgba(52, 214, 222, 0.14);
    color: var(--event-accent);
}

.news-feed__empty {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-feed__author-link {
    color: inherit;
    text-decoration: none;
}

.news-feed__author-link:hover,
.news-feed__author-link:focus {
    text-decoration: underline;
}

.tag-input__control-wrapper {
    flex: 1;
    min-width: 150px;
}

.tag-input__control {
    width: 100%;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    padding: 0.35rem 0.25rem;
}

.tag-input__control:focus {
    outline: none;
}

.tag-input__control::placeholder {
    color: rgba(31, 47, 37, 0.45);
}

.tag-input__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(142, 234, 63, 0.18), rgba(142, 234, 63, 0.08));
    color: var(--accent);
    border: 1px solid rgba(142, 234, 63, 0.25);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tag-input__tag-label {
    white-space: nowrap;
}

.tag-input__remove {
    border: none;
    background: rgba(142, 234, 63, 0.2);
    color: inherit;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.tag-input__remove:hover {
    background: var(--danger);
    color: #ffffff;
}

.tag-input__hint {
    color: var(--muted);
    font-size: 0.85rem;
}

.profile__form-field .input:focus,
.profile__form-field .textarea:focus,
.profile__form-field select.input:focus {
    border-color: var(--accent);
}

.profile__location-card {
    background: var(--surface-alt);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--bg-panel);
    box-shadow: inset 0 0 0 1px rgba(142, 234, 63, 0.06);
    display: grid;
    gap: 1.25rem;
}

.profile__location-card-title {
    margin: 0;
    font-size: clamp(1.1rem, 2.4vw, 1.3rem);
    font-weight: 700;
}

.profile__location-card-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.profile__location-card-header {
    display: grid;
    gap: 0.35rem;
}

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

.profile__location-widget {
    display: grid;
    gap: 0.75rem;
    background: var(--surface);
    padding: 1.25rem;
    border: 1px solid var(--bg-panel);
    box-shadow: 0 18px 38px rgba(31, 47, 37, 0.12);
}

.profile__location-map {
    width: 100%;
    min-height: 260px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(31, 47, 37, 0.12);
}

.profile__location-map .leaflet-control-attribution {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--muted);
}

.profile__location-map .leaflet-control-attribution a {
    color: inherit;
    text-decoration: underline;
}

.location-marker {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-marker__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.location-marker__dot {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.92);
    background: radial-gradient(circle at center, #4c9d1d 0%, #0f2d12 100%);
    box-shadow: 0 0 0 4px rgba(76, 157, 29, 0.18), 0 8px 16px rgba(34, 92, 30, 0.28);
}

.location-marker__tip {
    display: block;
    width: 12px;
    height: 12px;
    margin-top: -1px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #4c9d1d 0%, #0f2d12 100%);
    border-right: 3px solid rgba(255, 255, 255, 0.92);
    border-bottom: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 14px rgba(34, 92, 30, 0.2);
}

.profile__location-actions {
    display: grid;
    gap: 0.75rem;
}

.profile__location-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile__location-search .input {
    flex: 1 1 220px;
}

.profile__location-feedback {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.profile__location-feedback[data-state="error"] {
    color: var(--danger);
}

.profile__location-feedback[data-state="success"] {
    color: var(--accent);
}

.profile__submit {
    justify-self: flex-start;
    margin-top: 0.5rem;
}

.profile__danger-card {
    margin-top: 0.25rem;
    padding: 1.1rem 1.2rem;
    border-radius: 1rem;
    border: 1px solid rgba(231, 91, 74, 0.14);
    background: linear-gradient(135deg, rgba(231, 91, 74, 0.08), rgba(243, 143, 90, 0.08)),
    var(--surface);
    box-shadow: 0 16px 36px rgba(231, 91, 74, 0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile__danger-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 1 220px;
}

.profile__danger-card__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--danger);
    font-size: 0.85rem;
}

.profile__danger-card__description {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.profile__danger-card__action {
    border-color: rgba(231, 91, 74, 0.24);
    color: var(--danger);
    background: rgba(231, 91, 74, 0.08);
    box-shadow: inset 0 0 0 1px rgba(231, 91, 74, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.profile__danger-card__action:hover {
    background: rgba(231, 91, 74, 0.16);
    color: #c14436;
    border-color: rgba(231, 91, 74, 0.36);
}

.profile__danger-card__action:active {
    transform: translateY(1px);
}

.profile__sidebar {
    display: grid;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    align-content: start;
    align-items: start;
    min-width: 0;
}

.profile__achievements-card {
    background: linear-gradient(145deg, rgba(142, 234, 63, 0.16), rgba(142, 234, 63, 0.04));
    border-radius: 1.25rem;
}

.profile__achievements-card--empty {
    background: var(--surface);
    border: 1px dashed rgba(142, 234, 63, 0.32);
}

.profile__achievements-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.2rem;
}

.profile__achievements-header h3 {
    margin: 0;
}

.profile__achievements-meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.participants-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.participant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--surface);
    border: 1px solid var(--bg-panel);
    border-radius: 1rem;
    box-shadow: 0 18px 32px rgba(31, 47, 37, 0.12);
}

.participant-card__main {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.participant-card__avatar {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

.participant-card__info {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.participant-card__name {
    font-weight: 700;
    overflow-wrap: anywhere;
}

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

.participant-card__actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.button--small {
    padding: 0.35rem 0.7rem;
    font-size: 0.9rem;
}

.achievements-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.achievements-list__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: center;
}

.achievement-badge {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(142, 234, 63, 0.14);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(142, 234, 63, 0.18);
}

.achievement-badge__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievement-badge__fallback {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.achievement-badge__content {
    display: grid;
    gap: 0.25rem;
}

.achievement-badge__name {
    font-weight: 600;
}

.achievement-badge__description {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.achievements-list__empty {
    margin: 0;
    color: var(--muted);
}

.profile__events-card {
    background: linear-gradient(140deg, rgba(142, 234, 63, 0.14), rgba(142, 234, 63, 0.04));
    border-radius: var(--radius-panel);
    border: 1px solid #dbdbdb;
}

.profile__events-card h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.profile__events-count {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent);
}

.profile__events-caption {
    margin: 0 0 1.25rem;
    color: var(--muted);
}

.profile__actions {
    display: grid;
    gap: 0.75rem;
}

.profile__actions--inline {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile__actions--stacked {
    margin-top: 1rem;
}

.profile__teams-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.profile__teams-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.profile__teams-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    background: var(--surface-alt);
}

.profile__teams-name {
    font-weight: 600;
    color: var(--text);
}

.profile__teams-role {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

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

.profile__teams-empty {
    margin: 0 0 1rem;
    color: var(--muted);
}

.profile__user-events-card h3 {
    margin-top: 0;
}

.profile__user-events-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.profile__user-events-item {
    padding: 0.85rem 1rem;
    background: var(--surface-alt);
}

.profile__user-event-name {
    display: inline-flex;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.profile__user-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.profile__user-event-meta-item {
    display: inline-flex;
    align-items: center;
}

.profile__user-event-meta-item + .profile__user-event-meta-item::before {
    content: "•";
    margin-right: 0.35rem;
    color: var(--muted);
}

.profile__user-events-empty {
    margin: 0 0 1rem;
    color: var(--muted);
}

.profile__contacts-card h3 {
    margin-top: 0;
}

.profile__contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.profile__contacts-header h3 {
    margin: 0;
}

.profile__contact-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.profile__contact-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface-alt);
    border-radius: var(--radius-panel);
}

.profile__contact-label {
    font-weight: 600;
    color: var(--text);
}

.profile__contact-value {
    color: var(--muted);
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__contacts-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__contacts-hint--pending {
    color: rgba(255, 255, 255, 0.72);
}

.profile__contacts-hint--message {
    margin-top: 0.5rem;
}

.profile__contacts-hint--success {
    color: var(--accent-dark);
}

.profile-contact-feedback {
    margin-top: 1rem;
}

.profile-contact-feedback .message {
    margin: 0;
}

.profile__contacts-card--team {
    display: grid;
    gap: 1rem;
}

.profile__contacts-card--team .profile__contact-item {
    background: rgba(142, 234, 63, 0.08);
    border: 1px solid rgba(142, 234, 63, 0.12);
}

.profile__contacts-card--team .profile__contact-label {
    color: var(--team-accent);
}

.profile__contacts-card--team .profile__contact-value {
    color: var(--text);
}

.profile__contacts-card--team .chip {
    justify-self: flex-start;
}

.profile__contacts-card--event {
    display: grid;
    gap: 1rem;
}

.profile__event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.profile__feed-card--events-list .profile__contact-item {
    flex-wrap: wrap;
    align-items: flex-start;
}

.profile__feed-card--events-list .profile__contact-value {
    flex: 1 1 100%;
    text-align: left;
}

.profile__feed-card--events-list .profile__contact-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.profile__event-list li {
    background: var(--surface-alt);
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile__event-list li.muted,
.profile__event-list li[data-response-empty] {
    background: none;
    padding: 0;
}

.profile__event-list--spacious li {
    padding: 1rem 1.15rem;
}

.profile__event-list--compact {
    gap: 0.6rem;
}

.profile__event-list--compact li {
    padding: 0.7rem 0.85rem;
}

.profile__event-response {
    display: grid;
    gap: 0.75rem;
}

.profile__event-response-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--muted);
}

.profile__event-response-meta strong {
    color: var(--text);
}

.profile__event-response-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-participants-card {
    gap: 1rem;
}

.event-participants-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

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

.event-participants-grid--modal {
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
}

.event-participants-grid__item {
    min-width: 0;
}

.event-participants-grid__link {
    min-width: 0;
    height: 100%;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.45rem;
    padding: 0.7rem 0.45rem;
    color: var(--text);
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.event-participants-grid__link:hover,
.event-participants-grid__link:focus-visible {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

.event-participants-grid__avatar {
    --avatar-size: 52px;
    align-self: center;
}

.event-participants-grid--modal .event-participants-grid__avatar {
    --avatar-size: 64px;
}

.event-participants-grid__name {
    max-width: 100%;
    min-width: 0;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.event-participants-card__button {
    width: 100%;
    justify-content: center;
}

.event-responses-grid .event-response-card {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.event-response-card__person {
    padding-bottom: 0.3rem;
}

.event-response-card__name {
    font-family: inherit;
}

.event-response-card__date {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1;
}

.event-response-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0 0.35rem 0.35rem;
}

.event-response-card__action {
    min-height: 2rem;
    padding: 0.35rem;
    justify-content: center;
}

.event-response-card__action .material-symbols-rounded {
    font-size: 1.15rem;
}

.modal--participants .modal__dialog {
    width: min(760px, calc(100% - 2rem));
}

.profile__event-responses {
    display: grid;
    gap: 1.25rem;
}

.profile__event-responses h4 {
    margin: 0;
    font-size: 1rem;
}

.profile__hint {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile--event .profile__hint {
    color: rgba(255, 255, 255, 0.78);
}

.profile--team .profile__hint {
    color: rgba(255, 255, 255, 0.85);
}


.discovery__stage {
    width: min(1080px, 92vw);
    min-height: clamp(520px, 70vh, 720px);
}

@media (max-width: 720px) {
    .profile {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .profile > *,
    .profile__hero,
    .profile__content,
    .profile__album-card,
    .profile__feed-card,
    .profile__sidebar {
        min-width: 0;
        max-width: 100%;
    }

    .profile__hero {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .profile__card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .profile__photo-wrapper,
    .profile__info,
    .profile__summary {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .profile__info {
        align-items: center;
    }

    .profile__badge,
    .profile__event-meta,
    .profile__status,
    .profile__actions--inline {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile__badge-team,
    .profile__badge-role,
    .profile__event-meta-row,
    .profile__status-label,
    .profile__status-time {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .profile__name {
        justify-content: center;
        max-width: 100%;
    }

    .profile__handle,
    .profile__location,
    .profile__bio {
        max-width: 100%;
    }

    .profile__tags,
    .profile__hero-contacts {
        justify-content: center;
    }

    .profile__stats {
        grid-template-columns: minmax(0, 1fr);
        justify-self: center;
        width: 100%;
        max-width: 100%;
    }

    .profile__stat {
        min-width: 0;
    }

    .profile__stat-label,
    .profile__stat-number {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

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

    .profile__feed-list,
    .team-post,
    .team-post__header,
    .team-post__author,
    .team-post__author-info,
    .team-post__content,
    .team-post__footer,
    .team-post__actions,
    .profile__post-meta {
        min-width: 0;
        max-width: 100%;
    }

    .profile__feed-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-post {
        width: 100%;
        padding: 0.9rem;
    }

    .team-post__header,
    .profile__post-meta {
        flex-wrap: wrap;
    }

    .team-post__date {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .team-post__action {
        min-width: 0;
        max-width: 100%;
    }

    .profile__contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile__contact-value {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .profile__hero {
        padding: 1rem;
    }

    .profile__status-time {
        margin-left: 0;
    }

    .profile__actions--inline .button {
        width: 100%;
        max-width: 20rem;
    }
}

@media (max-width: 720px) {
    .discovery {
        min-height: auto;
        align-items: stretch;
        padding: 1rem;
    }

    .discovery__stage {
        padding: 1.25rem;
        min-height: auto;
        width: 100%;
        max-height: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .discovery__intro {
        text-align: left;
    }

    .discovery__actions {
        gap: 1.25rem;
        width: 100%;
    }

    .discovery-card {
        width: 100%;
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .discovery-card__visual {
        min-height: 220px;
        order: 0;
        grid-column: 1 / -1;
    }

    .discovery-card__content {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .discovery-card__content-scroll {
        overflow: visible;
        padding-right: 0;
    }
}

@media (min-width: 1024px) {
    .community-map__toolbar-actions {
        flex-wrap: wrap;
        row-gap: 0.6rem;
    }

    .community-map__toolbar-actions .button {
        flex: 0 0 auto;
        min-height: 44px;
    }

    .discovery__stage {
        --discovery-actions-size: 4rem;
        --discovery-actions-gap: 1rem;
        height: min(720px, calc(100vh - 10rem));
        min-height: 0;
        max-height: calc(100vh - 8rem);
    }

    .discovery__card {
        align-items: stretch;
    }

    .discovery-card {
        height: 100%;
        max-height: min(560px, calc(100vh - 18rem));
        min-height: 0;
    }

    .discovery__actions {
        margin: 0 auto;
        min-height: var(--discovery-actions-size);
    }

    .discovery__actions .discovery__button {
        width: var(--discovery-actions-size);
        height: var(--discovery-actions-size);
        flex-basis: var(--discovery-actions-size);
        font-size: 1.75rem;
    }

    .discovery__button-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .discovery__stage {
        width: min(1080px, 92vw);
        min-height: 0;
    }
}

@media (max-width: 1023px) {
    .discovery-card {
        width: min(680px, 100%);
        height: clamp(380px, 58vh, 540px);
        grid-template-columns: minmax(180px, 0.95fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
    }

    .discovery-card__placeholder {
        width: clamp(120px, 50%, 200px);
    }
}

.notifications {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 3rem 0;
}

.notifications__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 48rem;
}

.notifications__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    background: rgba(142, 234, 63, 0.12);
    box-shadow: inset 0 0 0 1px rgba(142, 234, 63, 0.15);
}

.notifications__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.notifications__item {
    position: relative;
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem 1.75rem;
    background: var(--surface);
    border: 1px solid rgba(142, 234, 63, 0.12);
    box-shadow: 0 24px 55px rgba(31, 47, 37, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border-radius: var(--radius-panel);
}

.notifications__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 65px rgba(31, 47, 37, 0.14);
}

.notifications__glow {
    position: absolute;
    inset: -40% -20% -40% -20%;
    background: radial-gradient(circle at top left, rgba(142, 234, 63, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(52, 214, 222, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notifications__item:hover .notifications__glow,
.notifications__item--unread .notifications__glow {
    opacity: 1;
}

.notifications__item--unread {
    border-color: rgba(52, 214, 222, 0.28);
    box-shadow: 0 36px 80px rgba(52, 214, 222, 0.18);
}

.notifications__icon-wrapper {
    position: relative;
    z-index: 1;
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(142, 234, 63, 0.12), rgba(142, 234, 63, 0.32));
    box-shadow: 0 10px 30px rgba(142, 234, 63, 0.25);
}

.notifications__icon-wrapper--contact_approved {
    background: linear-gradient(135deg, rgba(142, 234, 63, 0.2), rgba(76, 157, 29, 0.42));
    box-shadow: 0 12px 32px rgba(76, 157, 29, 0.24);
    border-radius: var(--radius-sm);
}

.notifications__icon-wrapper--contact_request {
    background: linear-gradient(135deg, rgba(52, 214, 222, 0.2), rgba(18, 143, 151, 0.4));
    box-shadow: 0 12px 32px rgba(18, 143, 151, 0.22);
    border-radius: var(--radius-sm);
}

.notifications__icon-wrapper--post_like {
    background: linear-gradient(135deg, rgba(142, 234, 63, 0.16), rgba(108, 199, 42, 0.36));
    box-shadow: 0 12px 32px rgba(76, 157, 29, 0.22);
    border-radius: var(--radius-sm);
}

.notifications__icon-wrapper--community_update {
    background: linear-gradient(135deg, rgba(52, 214, 222, 0.18), rgba(18, 143, 151, 0.38));
    box-shadow: 0 12px 32px rgba(18, 143, 151, 0.22);
    border-radius: var(--radius-sm);
}

.notifications__icon-wrapper--message {
    background: linear-gradient(135deg, rgba(52, 214, 222, 0.18), rgba(18, 143, 151, 0.38));
    box-shadow: 0 12px 32px rgba(18, 143, 151, 0.22);
    border-radius: var(--radius-sm);
}

.notifications__icon {
    font-size: 1.75rem;
    color: #1f2f25;
}

.notifications__icon-wrapper--contact_approved .notifications__icon {
    color: var(--accent-dark);
}

.notifications__icon-wrapper--contact_request .notifications__icon {
    color: var(--event-accent);
}

.notifications__icon-wrapper--post_like .notifications__icon {
    color: var(--accent-strong);
}

.notifications__icon-wrapper--community_update .notifications__icon {
    color: var(--event-accent);
}

.notifications__icon-wrapper--message .notifications__icon {
    color: var(--event-accent);
}

.notifications__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notifications__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notifications__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.notifications__type {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: #4c5a4f;
}

.notifications__type--contact_approved {
    color: var(--accent-dark);
}

.notifications__type--contact_request {
    color: var(--event-accent);
}

.notifications__type--post_like {
    color: var(--accent-strong);
}

.notifications__type--community_update {
    color: var(--event-accent);
}

.notifications__type--message {
    color: var(--event-accent);
}

.notifications__badge {
    padding: 0.25rem 0.6rem;
    background: rgba(142, 234, 63, 0.14);
    color: #1f2f25;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.notifications__time {
    font-size: 0.85rem;
    color: #6d7a71;
    white-space: nowrap;
}

.notifications__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2f25;
}

.notifications__body {
    margin: 0;
    color: #4f5c52;
    line-height: 1.6;
}

.notifications__link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.4rem;
    background: linear-gradient(135deg, #9af04a, #4c9d1d);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.78rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: var(--radius-sm);
}

.notifications__link:hover,
.notifications__link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(76, 157, 29, 0.32);
}

.notifications__empty {
    font-size: 1rem;
    color: var(--muted);
}

.notification-toast-stack {
    position: fixed;
    right: clamp(1rem, 4vw, 2.5rem);
    bottom: clamp(1rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1200;
    pointer-events: none;
}

.notification-toast {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.25rem 1rem 1.1rem;
    min-width: min(22rem, calc(100vw - 3rem));
    max-width: min(26rem, calc(100vw - 3rem));
    color: #f8fbff;
    background: rgba(8, 20, 32, 0.88);
    border-radius: 1rem;
    border: 1px solid rgba(248, 251, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 65px rgba(5, 9, 20, 0.45);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

.notification-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.notification-toast__icon-wrapper {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(142, 234, 63, 0.45), rgba(52, 214, 222, 0.45));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.notification-toast__icon {
    color: #ffffff;
    font-size: 1.4rem;
}

.notification-toast__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.notification-toast__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.notification-toast__type {
    color: rgba(255, 255, 255, 0.9);
}

.notification-toast__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.notification-toast__body {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(248, 251, 255, 0.85);
}

.notification-toast__link {
    align-self: flex-start;
    color: #9cd8ff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.notification-toast__link:hover,
.notification-toast__link:focus-visible {
    color: #ffffff;
    border-color: currentColor;
}

.notification-toast__close {
    margin-left: 0.5rem;
    margin-top: -0.4rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.15rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.notification-toast__close:hover,
.notification-toast__close:focus-visible {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.notification-toast__close .material-symbols-rounded {
    font-size: 1.1rem;
}

.notification-toast__time {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
    .notifications__item {
        flex-direction: column;
        padding: 1.5rem;
    }

    .notifications__icon-wrapper {
        width: 3rem;
        height: 3rem;
    }

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

    .notifications__time {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .notifications {
        padding: 2rem 0;
    }

    .notifications__title {
        font-size: 1.15rem;
    }

    .notification-toast-stack {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        align-items: flex-end;
    }

    .notification-toast {
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .layout {
        height: auto;
        width: 100%;
        margin: 0;
    }

    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--bg-panel);
        height: auto;
    }

    .sidebar {
        padding: 1rem 1.15rem;
    }

    .sidebar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        height: auto;
    }

    .sidebar__top {
        align-items: center;
        gap: 0.75rem;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .sidebar__toggle {
        display: inline-flex;
    }

    .sidebar__collapsible {
        display: none;
    }

    .sidebar--menu-open .sidebar__collapsible {
        display: flex;
    }

    .sidebar-user {
        flex: 1;
        min-width: 0;
        padding: 0.4rem 0.65rem;
        border: 1px solid transparent;
        background: transparent;
        box-shadow: none;
    }

    .sidebar-user__avatar {
        width: 42px;
        height: 42px;
        box-shadow: none;
        --avatar-size: 42px;
    }

    .sidebar-user__info {
        gap: 0.2rem;
        min-width: 0;
    }

    .sidebar-user__name,
    .sidebar-user__meta {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .layout__main {
        height: auto;
        overflow: visible;
    }

    .menu--primary {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .menu--sidebar a {
        width: 100%;
    }
}

.contacts-nav {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.contacts-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background-color: var(--color-surface);
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contacts-nav__link:hover,
.contacts-nav__link:focus {
    border-color: var(--color-border);
    background-color: var(--color-surface-hover);
}

.contacts-nav__link--active {
    border-color: var(--color-primary);
    background-color: rgba(var(--color-primary-rgb), 0.1);
}

.contacts-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
}

.contacts-card {
    display: flex;
    flex-direction: column;
    gap: clamp(0.85rem, 1.8vw, 1.25rem);
}

.contacts-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 430px));
    justify-content: start;
}

.contacts-card__header {
    gap: 1.25rem;
}

.contacts-card__visual .avatar {
    width: 4rem;
    height: 4rem;
}

.contacts-card__titles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contacts-card__name {
    margin: 0;
}

.contacts-card__name a {
    color: inherit;
    text-decoration: none;
}

.contacts-card__name a:hover,
.contacts-card__name a:focus {
    text-decoration: underline;
}

.contacts-card__location {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

.contacts-card__since {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(142, 234, 63, 0.12);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin: 0;
}

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

.contacts-card__methods {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.contacts-card__method {
    display: grid;
    gap: 0.25rem;
}

.contacts-card__method dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.contacts-card__method dd {
    margin: 0;
    font-size: 0.95rem;
}

.contacts-card__hint {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.contacts-card__message {
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    background-color: var(--bg-muted);
    border-radius: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.contacts-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.contacts-card__contacts a {
    color: inherit;
}

.contacts-empty {
    grid-column: 1 / -1;
    margin: 2rem 0;
    color: var(--color-text-muted);
    text-align: center;
}

.profile-message-modal .modal__dialog {
    max-width: 560px;
}

.profile-message__sender-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.profile-message__sender {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--bg-muted);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.profile-message__sender:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(16, 34, 20, 0.08);
}

.profile-message__sender--active {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(76, 168, 44, 0.18);
}

.profile-message__sender-label {
    font-weight: 600;
}

.profile-message__sender-meta {
    font-size: 0.9rem;
    color: var(--muted);
}

.profile-message__sender-hint {
    margin: 0.5rem 0 0;
}


.info-page {
    background: var(--surface);
    padding: 1.8rem;
    border: 1px solid var(--bg-panel);
    box-shadow: 0 30px 55px rgba(142, 234, 63, 0.15);
    border-radius: var(--radius-panel);
}

.info-page h1 {
    margin-top: auto;
    margin-bottom: 2vw;
    font-size: 30px;
}

.flexer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.info-page address {
    line-height: 1.7;
}

.info-page li {
    margin-bottom: 7px;
}

.about-project {
    position: relative;
    max-width: 1020px;
    margin: 0 auto;
    padding: clamp(1.45rem, 3vw, 2.8rem);
    overflow: hidden;
    line-height: 1.72;
}

.about-project::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.35rem;
    background: var(--accent-gradient);
}

.about-project__header {
    max-width: 780px;
    padding-bottom: clamp(1rem, 2.4vw, 1.7rem);
    margin-bottom: clamp(1.2rem, 2.6vw, 2rem);
    border-bottom: 1px solid rgba(91, 100, 116, 0.16);
}

.about-project__eyebrow {
    margin: 0 0 0.7rem;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-project.info-page h1 {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.08;
}

.about-project__body {
    display: grid;
    gap: clamp(1rem, 2.2vw, 1.45rem);
    max-width: 850px;
}

.about-project p {
    margin: 0;
    color: #273244;
    font-size: clamp(1rem, 1.45vw, 1.08rem);
}

.about-project__lead {
    color: var(--text);
    font-size: clamp(1.08rem, 1.7vw, 1.18rem);
    font-weight: 650;
}

.about-project a {
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: none;
}

.about-project a:hover {
    text-decoration: underline;
}

.about-project__goal {
    padding-left: clamp(1rem, 2vw, 1.35rem);
    border-left: 4px solid var(--accent);
}

.legal-document {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(1.4rem, 3vw, 2.6rem);
    line-height: 1.7;
}

.legal-document__header {
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1.1rem, 2.6vw, 2rem);
    border-bottom: 1px solid rgba(91, 100, 116, 0.16);
}

.legal-document__eyebrow {
    margin: 0 0 0.7rem;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-document.info-page h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    line-height: 1.12;
}

.legal-document__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.legal-document__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(76, 168, 44, 0.2);
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.legal-section + .legal-section {
    margin-top: clamp(1.2rem, 2.6vw, 2rem);
    padding-top: clamp(1rem, 2.4vw, 1.65rem);
    border-top: 1px solid rgba(91, 100, 116, 0.12);
}

.legal-document h2 {
    margin: 0 0 0.85rem;
    color: var(--text);
    font-size: clamp(1.25rem, 2.3vw, 1.6rem);
    line-height: 1.25;
}

.legal-document p {
    margin: 0.72rem 0;
    color: #273244;
}

.legal-document a {
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.legal-document a:hover {
    text-decoration: underline;
}

.legal-clause {
    display: inline-block;
    margin-right: 0.25rem;
    color: var(--text);
    font-weight: 800;
}

.legal-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.75rem 0 1.1rem;
    padding: 0;
    list-style: none;
}

.legal-list li {
    position: relative;
    margin: 0;
    padding-left: 1.35rem;
    color: #273244;
}

.legal-list li::before {
    content: "";
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0.28rem rgba(76, 168, 44, 0.12);
}

.footer {
    height: 100px;
    margin-top: 4vw;
}

.footer__layout {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 40px);
}

.copy {
    font-weight: bold;
    margin-bottom: 4px;
}

.footer__left {
    font-size: 15px;
}

.footer__left span {
    font-style: italic;
}

.footer__right a {
    margin-right: 20px;
    font-size: 15px;
}

.footer__right a:last-of-type {
    margin-right: 0;
}

/* Cookies Styles  */

#cookieConsentBanner {
    position: fixed;
    z-index: 9999;
    background: var(--accent-strong-gradient);
    padding: 20px;
    color: #000;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .5s ease-out, transform .5s ease-out;
    pointer-events: none; /* Чтобы не блокировать клики, когда скрыт */
}

#cookieConsentBanner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
    font-size: 15px;
    line-height: 1.5;
}

.cookie-banner-text p {
    margin: 0;
    color: white;
}

.cookie-policy-link {
    text-decoration: underline;
    font-weight: bold;
    color: #fff;
}

.cookie-policy-link:hover {
    color: #218838;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    border: 2px solid var(--accent);
    height: 40px;
    font-size: 13px;
    padding: 5px 15px;
    line-height: 1;
    cursor: pointer;
    background: #fff;
    color: var(--accent);
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-weight: 600;
}

.cookie-btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.cookie-btn:hover, .cookie-btn-primary:hover {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 18px 36px rgba(76, 157, 29, 0.25);
    border-color: white;
    transform: translateY(-2px);
}

/* Модальное окно */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-modal-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.cookie-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-modal-body p {
    margin-top: 0;
    color: #555;
    line-height: 1.5;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background-color: #fdfdfd;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.cookie-category-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.cookie-modal-footer {
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Переключатель */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: .4s;
}

.cookie-toggle-label:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 5px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.cookie-toggle input:checked + .cookie-toggle-label {
    background-color: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle-label:before {
    transform: translateX(26px);
}

.cookie-toggle input:focus + .cookie-toggle-label {
    box-shadow: 0 0 1px #28a745;
}


@media (max-width: 1024px) {
    body {
        overflow: auto;
    }

    .layout {
        height: auto;
        width: 100%;
        margin: 0;
    }

    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--bg-panel);
        height: auto;
    }

    .sidebar {
        padding: 1rem 1.15rem;
    }

    .sidebar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        height: auto;
    }

    .sidebar__top {
        align-items: center;
        gap: 0.75rem;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .sidebar__toggle {
        display: inline-flex;
    }

    .sidebar__collapsible {
        display: none;
    }

    .sidebar--menu-open .sidebar__collapsible {
        display: flex;
    }

    .sidebar-user {
        flex: 1;
        min-width: 0;
        padding: 0.4rem 0.65rem;
        border: 1px solid transparent;
        background: transparent;
        box-shadow: none;
    }

    .sidebar-user__avatar {
        width: 42px;
        height: 42px;
        box-shadow: none;
        --avatar-size: 42px;
    }

    .sidebar-user__info {
        gap: 0.2rem;
        min-width: 0;
    }

    .sidebar-user__name,
    .sidebar-user__meta {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .layout__main {
        height: auto;
        overflow: visible;
    }

    .menu--primary {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .menu--sidebar a {
        width: 100%;
    }

    .discovery-card {
        width: min(680px, 100%);
        height: clamp(380px, 58vh, 540px);
        grid-template-columns: minmax(180px, 0.95fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
    }

    .discovery-card__placeholder {
        width: clamp(120px, 50%, 200px);
    }

    .community-map .list__map-heading {
        max-width: none;
    }
}


@media (max-width: 960px) {
    .profile__content, .profile__2-columns {
        grid-template-columns: 1fr;
    }

    .avatar-crop-modal {
        align-items: flex-start;
    }

    .avatar-crop-modal__dialog {
        max-height: calc(100vh - 1.5rem);
    }

    .avatar-cropper__live {
        grid-template-columns: 1fr;
    }

    .avatar-cropper__preview {
        order: -1;
    }
}


@media (max-width: 905px) {
    .footer__layout {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer {
        height: auto;
    }

    .footer__right {
        margin-top: 20px;
    }

    .notifications__item {
        flex-direction: column;
        padding: 1.5rem;
    }

    .notifications__icon-wrapper {
        width: 3rem;
        height: 3rem;
    }

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

    .notifications__time {
        font-size: 0.8rem;
    }

    .chat-widget__body {
        grid-template-columns: 1fr;
    }

    .chat-widget--info-open .chat-widget__body {
        grid-template-columns: 1fr;
    }

    .chat-widget__resizer,
    .chat-widget__size-handle {
        display: none;
    }

    .chat-widget {
        --chat-widget-width: 100%;
        --chat-widget-height: 100vh;
        min-width: 100%;
        min-height: 100vh;
    }

    .chat-widget__info {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 86vw);
        max-width: 100%;
        box-shadow: -12px 0 32px rgba(23, 35, 32, 0.12);
        z-index: 5;
        padding: 1.25rem;
    }

    .chat-widget__mobile-back {
        display: inline-flex;
    }

    .chat-widget__message:not(.chat-widget__message--system) {
        align-items: flex-start;
        width: 100%;
    }

    .chat-widget__message--own:not(.chat-widget__message--system) {
        align-items: flex-start;
    }

    .chat-widget__message:not(.chat-widget__message--system) .chat-widget__bubble {
        width: 100%;
        box-sizing: border-box;
    }

    .chat-widget__form {
        width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .chat-widget__attach {
        order: 1;
    }

    .chat-widget__input {
        order: 2;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .chat-widget__send {
        order: 3;
        flex: 0 0 auto;
    }

    .chat-widget--mobile-rooms .chat-widget__conversation {
        display: none;
    }

    .chat-widget--mobile-rooms .chat-widget__rooms {
        display: flex;
    }

    .chat-widget--mobile-conversation .chat-widget__rooms {
        display: none;
    }

    .chat-widget--mobile-conversation .chat-widget__conversation {
        display: flex;
    }

    .team-events__link {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .team-events__cta {
        grid-column: 1 / -1;
        justify-self: flex-start;
        margin-top: 0.75rem;
    }

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

    .community-map .list__map {
        padding: 0;
        min-height: 60vh;
    }

    .community-map .list__map-heading {
        position: relative;
        inset: auto;
        max-width: none;
        padding: 0.85rem 1rem;
        margin: 0.75rem 0 0;
        box-shadow: 0 12px 24px rgba(31, 47, 37, 0.12);
    }

    .community-map__filters-card {
        position: relative;
        inset: auto;
        transform: none;
        width: auto;
        max-width: none;
        padding: 0.85rem 1rem;
        flex-direction: column;
        align-items: stretch;
        margin: 0.75rem 0 0;
        box-shadow: 0 12px 24px rgba(31, 47, 37, 0.12);
    }

    .community-map__filters {
        justify-content: space-between;
        width: 100%;
        gap: 0.6rem;
    }

    .community-map__filters-card .community-map__filters {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .community-map__city-filter {
        justify-content: space-between;
    }

    .community-map__city-select {
        width: 100%;
        min-width: 0;
    }

    .community-map__canvas {
        height: auto;
        min-height: 60vh;
    }

    .community-map__filter-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding: 0;
    }

    .body--chat .layout__main {
        padding: 0;
    }

    .chat-page__wrapper {
        padding: 0;
    }

    .chat-page .chat-widget {
        height: auto;
    }

    .chat-page .chat-widget__body {
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }

    .chat-page .chat-widget--info-open .chat-widget__body {
        grid-template-columns: 1fr;
    }

    .chat-page .chat-widget__rooms {
        border-right: none;
        border-bottom: 1px solid var(--bg-panel);
    }

    .chat-page .chat-widget__conversation {
        border-left: none;
        padding-left: 0;
        height: auto;
        overflow: visible;
    }

    .chat-page .chat-widget__info {
        border-left: none;
        border-top: none;
        padding: 0;
        box-shadow: none;
    }

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

    .list__map {
        padding: 0;
        min-height: 60vh;
    }

    .community-map__filters-card {
        position: relative;
        inset: auto;
        transform: none;
        width: auto;
        max-width: none;
        padding: 0.85rem 1rem;
        flex-direction: column;
        align-items: stretch;
        margin: 0.75rem 0 0;
        box-shadow: 0 12px 24px rgba(31, 47, 37, 0.12);
    }

    .community-map__filters {
        justify-content: space-between;
    }

    .community-map__city-filter {
        justify-content: space-between;
    }

    .community-map__city-select {
        width: 100%;
        min-width: 0;
    }

    .list__map-canvas {
        height: clamp(320px, 65vh, 520px);
    }

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

    .people-card__header,
    .event-card__header,
    .team-card__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .people-card__visual,
    .event-card__visual,
    .team-card__visual {
        justify-self: start;
    }

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

    .card__footer .button {
        width: 100%;
        text-align: center;
    }

    .detail__header--split {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .detail__aside {
        padding: 1.25rem;
    }

    .team-detail__aside {
        padding: 0;
    }

    .team-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    :root {
        --page-padding: 0;
    }

    .layout {
        flex-direction: column;
        border-radius: 16px;
        min-height: auto;
        width: 100%;
        margin: 0;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--bg-panel);
        padding: 0.85rem 1rem;
    }

    .layout__main {
        padding: var(--page-padding);
    }

    .landing__features-head {
        grid-template-columns: 1fr;
    }

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

}


@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-text {
        min-width: 100%;
        margin-bottom: 15px;
    }

    .cookie-banner-buttons {
        justify-content: center;
    }

    .cookie-modal-content {
        width: 95%;
    }

    .profile__album-card {
        padding: 1.15rem;
    }

    .photo-carousel__image {
        height: clamp(160px, 54vw, 220px);
        max-width: min(100%, clamp(160px, 60vw, 260px));
    }

    .photo-carousel__controls {
        justify-content: space-between;
    }

    .photo-carousel__nav {
        width: 2.6rem;
        height: 2.6rem;
    }

    .chat-widget__emoji-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .tag-filter__inline-inputs--geo {
        grid-template-columns: 1fr;
    }

    .tag-filter__geo-status {
        grid-column: 1;
    }

    .tag-filter__geo-button {
        grid-row: auto;
        grid-column: 1;
    }

    .tag-filter__geo-button {
        width: 100%;
        justify-content: center;
    }

    .landing {
        width: min(100% - 1rem, 1180px);
        padding-bottom: 2.5rem;
    }

    .landing__features h1 {
        font-size: 2.35rem;
    }

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

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

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

    .landing__features-actions {
        justify-content: center;
    }
}


@media (max-width: 720px) {
    .discovery {
        min-height: auto;
        align-items: stretch;
        padding: 1rem;
    }

    .discovery__stage {
        padding: 1.25rem;
        min-height: auto;
        width: 100%;
        max-height: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .discovery__intro {
        text-align: left;
    }

    .discovery__actions {
        gap: 1.25rem;
        width: 100%;
    }

    .discovery-card {
        width: 100%;
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .discovery-card__visual {
        min-height: 220px;
        order: 0;
        grid-column: 1 / -1;
    }

    .discovery-card__content {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .discovery-card__content-scroll {
        overflow: visible;
        padding-right: 0;
    }

    .profile__hero {
        padding: 1.5rem;
    }

    .profile__card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile__info {
        align-items: center;
    }

    .profile__tags,
    .profile__hero-contacts {
        justify-content: center;
    }

    .profile__stats {
        width: 100%;
    }

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

    .profile__contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile__contact-value {
        text-align: left;
    }

    .news-feed__header {
        flex-direction: column;
        align-items: stretch;
    }

    .news-feed__filter {
        margin-left: 0;
        width: 100%;
    }
}


@media (max-width: 640px) {
    .media-viewer {
        padding: 1rem;
    }

    .media-viewer__content {
        gap: 0.5rem;
    }

    .media-viewer__nav {
        width: 2.25rem;
        height: 2.25rem;
    }

    .media-viewer__image {
        border-radius: 0.75rem;
    }

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

    .menu--primary {
        flex-direction: column;
        align-items: stretch;
    }

    .menu--sidebar a,
    .menu__button--full {
        width: 100%;
    }

    .notifications {
        padding: 2rem 0;
    }

    .notifications__title {
        font-size: 1.15rem;
    }

    .notification-toast-stack {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        align-items: flex-end;
    }

    .notification-toast {
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }

    .navbar__content {
        flex-direction: column;
        gap: 1rem;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero__actions {
        flex-direction: column;
    }

    .auth {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .auth__switcher {
        padding: 1.25rem;
    }

    .auth__switcher-buttons {
        width: 100%;
    }

    .auth__switcher-button {
        flex: 1;
    }

    .register-wizard__slides {
        min-height: 0;
    }

    .register-wizard__slide {
        padding: 1.2rem;
    }

    .register-wizard__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .register-wizard__actions-right {
        width: 100%;
    }

    .register-wizard__actions-right .button,
    .register-wizard__actions .button {
        width: 100%;
    }

    :root {
        --page-padding: 0;
    }

    .menu__icon {
        width: 36px;
        height: 36px;
    }

    .sidebar {
        padding: 0.75rem;
    }

    .layout {
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
}

@media (max-width: 605px) {

    .info-page h1 {
        font-size: 25px;
    }

    .community-map__toolbar-actions button {
        width: 100%;
        justify-content: center;
    }

    .footer__right a {
        display: block;
        margin: 0 0 10px 0;
    }

    .footer__layout {
        width: calc(100% - 30px);
    }

    .activity-badges, .profile__actions--inline, .profile__badge {
        justify-content: center;
    }

    .profile__event-meta {
        justify-self: center;
    }

    .profile__event-meta-row {
        justify-content: center;
    }

    .profile__contact-list {
        margin: 0;
    }

    .event-tasks__scroller, .team-post__header, .community-map__toolbar-actions {
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .modal__dialog {
        width: 100%;
    }

    .modal__actions {
        flex-direction: column;
    }

    .modal__actions .button {
        width: 100%;
    }

    .avatar-uploader__header {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .avatar-uploader__thumb, .profile__summary {
        justify-self: center;
    }

    .avatar-cropper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "canvas"
            "preview"
            "controls";
    }

    .avatar-cropper__canvas {
        height: min(55vh, 520px);
    }

    .landing__features h1 {
        font-size: 2rem;
    }

    .landing__features-copy p {
        font-size: 1rem;
    }

    .landing__metrics,
    .landing__feature-grid {
        grid-template-columns: 1fr;
    }

    .landing__map-widget,
    .landing__chat-shot {
        min-height: 210px;
    }

    .landing__map-widget {
        height: 300px;
    }

    .info-page h2 {
        font-size: 21px;
    }
}

@media (max-width: 505px) {
    .landing {
        padding-bottom: 2rem;
    }

    .profile__badge {
        flex-direction: column;
    }

    .profile__badge {
        padding: 0.75rem 0.45rem;
    }

    .profile__content {
        padding: 0;
        margin-top: 5vw;
    }

    .profile__hero {
        margin: 10px 0 2rem 0;
    }
}


@media (max-width: 405px) {
    .info-page h1 {
        font-size: 22px;
    }

    .info-page h2 {
        font-size: 19px;
    }
}

@media (max-width: 900px) {
    body.body--chat {
        height: 100dvh;
        overflow: hidden;
    }

    .body--chat .layout {
        height: 100dvh;
        min-height: 100dvh;
        max-width: 100%;
        overflow: hidden;
    }

    .body--chat .sidebar {
        flex: 0 0 auto;
        padding: 0.55rem 0.75rem;
    }

    .body--chat .sidebar__inner {
        gap: 0.55rem;
    }

    .body--chat .layout__main,
    .body--chat .main--chat,
    .body--chat .chat-page__wrapper,
    .body--chat .chat-page,
    .body--chat .chat-page__content {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        max-width: 100%;
        overflow: hidden;
    }

    .body--chat .chat-page .chat-widget {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        border-width: 1px 0 0;
        box-shadow: none;
        overflow: hidden;
    }

    .body--chat .chat-page .chat-widget__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    .body--chat .chat-widget__rooms,
    .body--chat .chat-widget__conversation {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    .body--chat .chat-widget__rooms {
        padding: 0.5rem;
    }

    .body--chat .chat-widget__rooms-list {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .body--chat .chat-widget__room {
        width: 100%;
        min-width: 0;
        padding: 0.65rem 0.5rem;
    }

    .body--chat .chat-widget__messages {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0.6rem;
    }

    .body--chat .chat-widget__bubble {
        max-width: min(86%, calc(100vw - 2rem));
    }

    .body--chat .chat-widget__message:not(.chat-widget__message--system) .chat-widget__bubble {
        width: auto;
    }

    .body--chat .chat-widget__form {
        display: grid;
        grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem 2.4rem;
        align-items: end;
        gap: 0.35rem;
        padding: 0.45rem 0.5rem max(0.45rem, env(safe-area-inset-bottom));
        width: 100%;
        min-width: 0;
    }

    .body--chat .chat-widget__attach,
    .body--chat .chat-widget__emoji,
    .body--chat .chat-widget__send {
        order: 0;
        grid-row: 1;
        min-width: 0;
    }

    .body--chat .chat-widget__attach {
        grid-column: 1;
    }

    .body--chat .chat-widget__input {
        order: 0;
        grid-column: 2;
        grid-row: 1;
    }

    .body--chat .chat-widget__emoji {
        grid-column: 3;
    }

    .body--chat .chat-widget__send {
        grid-column: 4;
    }

    .body--chat .chat-widget__attach-toggle,
    .body--chat .chat-widget__emoji-toggle,
    .body--chat .chat-widget__send {
        width: 2.4rem;
        height: 2.4rem;
    }

    .body--chat .chat-widget__input {
        width: 100%;
        min-width: 0;
        min-height: 2.4rem;
        max-height: 7rem;
        padding: 0.6rem 0.35rem;
    }

    .body--chat .chat-widget__attach-menu {
        left: 0;
        right: auto;
        max-width: calc(100vw - 1rem);
    }

    .body--chat .chat-widget__emoji-menu {
        left: auto;
        right: 0;
        width: min(16rem, calc(100vw - 1rem));
    }

    .body--chat .chat-widget__info {
        position: absolute;
        inset: 0;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        background: var(--surface);
        box-shadow: none;
        z-index: 5;
    }

    .body--chat .chat-widget__info-tabs-list {
        overflow-x: auto;
        max-width: 100%;
    }

    .body--chat .chat-widget__info-tab {
        flex: 0 0 auto;
    }
}
