/* Alumora
   Editorial yearbook: ivory paper, navy bar, gold rule.
   Fonts are self-hosted (font-src 'self'). Latin and Latin Extended
   cover English, French, and Romanian. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/static/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/static/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/static/fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/static/fonts/cormorant-garamond-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url("/static/fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url("/static/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #f5f1e8;
    --panel: #fffdf8;
    --ink: #23262f;
    --muted: #7b7564;
    --line: #e3dcc9;
    --gold: #b08c2e;
    --gold-dark: #8a6d1f;
    --gold-soft: #f4ead0;
    --navy: #1d2a44;
    --navy-dark: #141d31;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(35, 38, 47, 0.05), 0 8px 24px rgba(35, 38, 47, 0.06);
    --primary: var(--navy);
    --primary-dark: var(--navy-dark);
    --primary-light: var(--gold-soft);
    --text: var(--ink);
    --text-muted: var(--muted);
    --card: var(--panel);
    --border: var(--line);
    --danger: #9c3a2e;
    --danger-bg: #f6e2de;
    --success: #2e6b4f;
    --success-bg: #ddeee5;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--sans);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    background-image: radial-gradient(ellipse at top, #fbf8f1 0%, var(--bg) 55%);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.brand,
.auth-title,
.section-title {
    font-family: var(--serif);
    font-weight: 600;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-content {
    flex: 1;
    padding-bottom: 60px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    left: 16px;
}

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

header {
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    color: #f2ecdc;
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.brand {
    display: flex;
    align-items: center;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #f6efdc;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.brand:hover {
    color: #fff;
}

.nav-search {
    flex: 1 1 240px;
    min-width: 220px;
    max-width: 420px;
    margin: 0 12px;
}

.nav-search input {
    width: 100%;
    background: var(--panel);
    border: 1px solid transparent;
    border-radius: 9999px;
    padding: 9px 18px;
    font-size: 14px;
    font-family: var(--sans);
    color: var(--ink);
    outline: none;
    margin: 0;
}

.nav-search input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(176, 140, 46, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-links a {
    color: #d9d2bd;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-user {
    font-weight: 600;
    color: #f2ecdc;
    font-size: 14px;
    padding: 0 8px;
}

.nav-link-btn {
    appearance: none;
    background: transparent;
    border: none;
    color: #d9d2bd;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--sans);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
}

.nav-link-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
    background: var(--gold);
    color: var(--navy-dark) !important;
    padding: 6px 14px !important;
    border-radius: 9999px;
    font-weight: 600;
}

.nav-cta:hover {
    background: #c9a24a !important;
    color: var(--navy-dark) !important;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
    padding-left: 8px;
    border-left: 1px solid rgba(242, 236, 220, 0.25);
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 640px) {
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid rgba(242, 236, 220, 0.25);
    }
}

.lang-link {
    padding: 3px 6px;
    border-radius: 4px;
    color: #d9d2bd;
    text-decoration: none;
    line-height: 1;
}

.lang-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lang-link.active {
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #f6efdc;
    margin: 5px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: var(--sans);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.2;
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--line);
}

.btn-outline:hover {
    background: var(--panel);
    border-color: var(--gold-dark);
    color: var(--navy);
}

.btn-secondary {
    background: var(--gold-soft);
    color: var(--navy);
    border-color: var(--gold-soft);
}

.btn-secondary:hover {
    background: #ead9a8;
    border-color: #ead9a8;
}

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

.btn-danger:hover {
    background: #7d2e24;
    border-color: #7d2e24;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

.btn-spaced {
    margin-top: 12px;
}

.hero {
    text-align: center;
    padding: 4.2rem 0 2.6rem;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-family: var(--sans);
    font-weight: 600;
    color: var(--gold-dark);
    margin: 0 0 0.9rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.7rem);
    font-weight: 600;
    line-height: 1.08;
    margin: 0 auto 1rem;
    max-width: 16ch;
    letter-spacing: 0;
}

.hero-sub {
    max-width: 38rem;
    margin: 0 auto 1.6rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-name {
    max-width: 38rem;
    margin: -0.4rem auto 1.8rem;
    color: var(--ink);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.45;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 18px;
}

.hero-stat {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.section {
    margin-bottom: 56px;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

h2 {
    color: var(--ink);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.section-subtitle {
    margin-top: -8px;
    color: var(--text-muted);
    font-size: 0.95em;
}

.search-no-results {
    color: var(--text-muted);
    font-style: italic;
}

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

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--line);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(35, 38, 47, 0.07), 0 14px 34px rgba(35, 38, 47, 0.1);
}

.user-card .username {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-bio {
    font-size: 14px;
    color: #475569;
    margin: 4px 0 12px;
}

.memory-card {
    border-left: 5px solid var(--primary);
}

.memory-card h4 {
    margin: 0 0 6px;
}

.memory-excerpt {
    margin: 8px 0;
}

.memory-photo,
.memory-photo-inline {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
}

.timestamp {
    font-size: 12px;
    color: var(--text-muted);
}

.room-title {
    margin: 0 0 8px;
}

.room-meta {
    color: var(--text-muted);
}

form {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

form.auth-form {
    max-width: 360px;
    margin: 0 auto;
}

.form-narrow {
    max-width: 420px;
}

.form-medium {
    max-width: 520px;
}

.form-spaced {
    margin-top: 16px;
}

.auth-wrapper {
    padding-top: 40px;
}

.auth-title {
    margin-top: 0;
    text-align: center;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(176, 140, 46, 0.22);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.flash-messages {
    max-width: 1100px;
    margin: 16px auto 0;
    padding: 0 20px;
}

.flash {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #fcd34d;
}

.flash-error {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: #fecaca;
}

.flash-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: #bbf7d0;
}

.error {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.link {
    text-align: center;
    margin-top: 16px;
    display: block;
    color: var(--primary);
    text-decoration: none;
}

.link-spaced {
    margin-top: 8px;
}

.link:hover {
    text-decoration: underline;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-block;
    margin: 16px 20px 12px;
}

.back-link:hover {
    color: var(--primary);
}

.profile-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 20px 0;
}

.avatar {
    width: 120px;
    height: 120px;
    background: var(--navy);
    color: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.bio-section {
    flex: 1;
}

.profile-name {
    margin: 0 0 4px;
}

.profile-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.section-label {
    margin-top: 18px;
}

.bio-section p {
    margin: 6px 0 12px;
}

.gallery,
.memories {
    margin-top: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.photo-caption {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
}

.gallery-card {
    padding: 0;
    overflow: hidden;
}

.gallery-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.gallery-card:hover .gallery-photo {
    transform: scale(1.03);
}

.gallery-card .photo-caption {
    padding: 12px 16px 16px;
    margin-top: 0;
}

.form-section-title {
    margin-top: 30px;
}

.chat-header {
    background: var(--card);
    padding: 16px 20px;
    border-radius: 12px;
    margin: 0 20px 16px;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chat-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.chat-title {
    margin: 0;
}

#messages {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    min-height: 360px;
    max-height: 460px;
    overflow-y: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin: 0 20px 16px;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.messages-loading .loading-text {
    color: var(--text-muted);
    font-size: 14px;
}

.msg {
    margin-bottom: 0;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 12px;
    max-width: 85%;
    align-self: flex-start;
}

.msg--own {
    align-self: flex-end;
    background: var(--primary-light);
    border: 1px solid #c7d2fe;
}

.msg--own .author {
    color: var(--primary-dark);
}

.msg-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.msg .author {
    font-weight: 700;
    font-size: 13px;
    color: #475569;
}

.msg .time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.msg-body {
    word-break: break-word;
}

#chat-error {
    max-width: 1060px;
    margin: 0 auto 12px;
}

.chat-form {
    display: flex;
    gap: 10px;
    max-width: 1060px;
    margin: 0 20px;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.chat-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    margin-bottom: 0;
}

.inline-delete-form {
    display: inline;
    background: none;
    box-shadow: none;
    padding: 0;
    margin-top: 8px;
}

.empty-state {
    color: var(--text-muted);
}

.error-page {
    padding-top: 60px;
    max-width: 420px;
    margin: 0 auto;
}

.error-card {
    text-align: center;
}

.error-card h1 {
    margin-top: 0;
}

.error-message {
    color: #475569;
}

@media (max-width: 640px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding-top: 12px;
        gap: 4px;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav {
        flex-wrap: wrap;
    }

    .brand {
        order: 1;
    }

    .nav-toggle {
        order: 2;
    }

    .nav-search {
        order: 3;
        flex: 1 0 100%;
        min-width: 0;
        width: 100%;
        max-width: none;
        margin: 10px 0 0;
    }

    .nav-links {
        order: 4;
    }

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

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

    .profile-header {
        flex-direction: column;
        gap: 16px;
    }

    .hero {
        padding: 2.6rem 0 1.6rem;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
        min-width: 140px;
    }
}

/* Classification badges (yearbook style) */
.class-badge {
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    padding: 1px 8px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    border-radius: 9999px;
    display: inline-block;
}

.class-badge--card {
    font-size: 0.8em;
    background: var(--gold-soft);
    color: var(--navy);
    padding: 2px 8px;
    margin: 4px 0;
}

.class-badge-row {
    margin: 6px 0 12px;
}

.class-badge--profile {
    font-size: 1.05em;
    background: var(--navy);
    color: #f6efdc;
    padding: 4px 14px;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0;
}

.form-hint {
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.uppercase-input {
    text-transform: uppercase;
}

/* Auth pages - lighter, matching new aesthetic */
.auth-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-form {
    max-width: 380px;
    width: 100%;
    padding: 36px 32px;
}

.auth-form h1 {
    font-size: 26px;
    margin-bottom: 24px;
    font-weight: 700;
}

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ink);
}

.auth-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 15px;
    background: #fff;
}

.auth-form .btn-full {
    width: 100%;
    margin-top: 8px;
    padding: 11px 22px;
}

.auth-form .link {
    display: block;
    margin-top: 16px;
    color: var(--gold-dark);
    font-size: 14px;
    text-decoration: none;
}

.auth-form .link:hover {
    color: var(--primary);
}

.site-footer {
    background: transparent;
    border-top: 1px solid var(--line);
    padding: 28px 0;
    margin-top: auto;
}

.footer-inner {
    text-align: center;
}

.footer-tagline {
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-copyright {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
}

.footer-brand {
    margin: 0;
    font-weight: 600;
    font-size: 13px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-photo,
    .card,
    .btn {
        animation: none;
        transition: none;
    }

    .gallery-card:hover .gallery-photo {
        transform: none;
    }

    .card:hover,
    .btn:hover {
        transform: none;
    }
}

/* Reunion polls */
.polls-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.poll-create-card {
    margin-bottom: 28px;
}

.poll-create-card h3 {
    margin: 0 0 12px;
}

.poll-create-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.poll-create-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: var(--card);
}

.poll-card {
    margin-bottom: 24px;
}

.poll-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.poll-title {
    margin: 0 0 4px;
}

.poll-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.poll-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary-dark);
}

.poll-chip-closed {
    background: var(--danger-bg);
    color: var(--danger);
}

.poll-options {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
}

.poll-option--mine {
    border-color: var(--primary);
    background: var(--primary-light);
}

.poll-option-info {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.poll-option-date {
    font-weight: 700;
    color: var(--primary-dark);
}

.poll-option-place {
    color: var(--text);
}

.poll-option-votes {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
    min-width: 200px;
}

.poll-bar {
    flex: 1;
    max-width: 220px;
    height: 8px;
    border-radius: 9999px;
    background: var(--border);
    overflow: hidden;
}

.poll-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: var(--primary);
}

.poll-vote-count {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
}

.poll-vote-btn[disabled] {
    opacity: 0.75;
    cursor: default;
}

.poll-empty-options {
    margin: 16px 0 0;
    color: var(--text-muted);
}

.poll-option-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.poll-option-fields {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.poll-option-fields label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.poll-place-field {
    flex: 1;
    min-width: 180px;
}

.poll-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.poll-option-fields input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: var(--card);
}

@media (max-width: 640px) {
    .poll-option-votes {
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }
}