/* College Friends Hub - Shared Styles */

/* System fonts only: CSP `style-src 'self'` blocks fonts.googleapis.com. */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #e0e7ff;
    --text: #0f172a;
    --text-muted: #64748b;
    --bg: #f8f7ff;
    --card: #ffffff;
    --border: #e2e8f0;
    --danger: #b91c1c;
    --danger-bg: #fee2e2;
    --success: #166534;
    --success-bg: #dcfce7;
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

.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: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.logo-dot {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 9999px;
    display: inline-block;
}

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

.nav-search input {
    width: 100%;
    background: #f8f7ff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 9px 18px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border 0.15s, box-shadow 0.15s;
}

.nav-search input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

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

.nav-links a:hover {
    color: var(--primary);
    background: #f8f7ff;
}

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

.nav-link-btn {
    background: none;
    border: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
}

.nav-link-btn:hover {
    color: var(--primary);
    background: #f8f7ff;
}

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

.nav-cta:hover {
    background: var(--primary-dark) !important;
    color: white !important;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
    padding-left: 8px;
    border-left: 1px solid #e2e8f0;
    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 #e2e8f0;
    }
}

.lang-link {
    padding: 3px 6px;
    border-radius: 4px;
    color: #64748b;
    text-decoration: none;
    line-height: 1;
    transition: all 0.1s ease;
}

.lang-link:hover {
    background: #f1f5f9;
    color: #334155;
}

.lang-link.active {
    background: var(--primary-light);
    color: var(--primary-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: var(--text);
    margin: 5px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 9999px;
    text-decoration: none;
    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: #334155;
    border-color: #cbd5e1;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--text);
}

.btn-secondary {
    background: var(--primary-light);
    color: #3730a3;
    border-color: var(--primary-light);
}

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

.btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

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

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

.btn-full {
    width: 100%;
}

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

/* === New light hero + graphical elements inspired by the reference === */

.pill {
    display: inline-block;
    background: #fff;
    border: 1px solid #e0e7ff;
    color: var(--primary);
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 9999px;
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-landing {
    padding: 72px 0 48px;
    background: linear-gradient(180deg, #f8f7ff 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
}

h1,
h2,
.auth-title,
.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

.hero-text .accent {
    color: var(--primary);
}

.hero-text p {
    font-size: 17px;
    color: #475569;
    max-width: 42ch;
    margin-bottom: 28px;
}

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

.hero-stat {
    font-size: 13px;
    color: #64748b;
}

/* The orbital graphic - the key visual element */
.hero-visual {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbital {
    position: relative;
    width: 320px;
    height: 320px;
}

@keyframes orbital-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbital-pulse {
    0%, 100% {
        box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 14px 36px -8px rgba(99, 102, 241, 0.65);
    }
}

@keyframes dot-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
    }
}

.orbital .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid #e0e7ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbital .ring-1 {
    width: 120px;
    height: 120px;
    animation: orbital-spin 90s linear infinite;
}

.orbital .ring-2 {
    width: 170px;
    height: 170px;
    animation: orbital-spin 120s linear infinite reverse;
}

.orbital .ring-3 {
    width: 220px;
    height: 220px;
    animation: orbital-spin 150s linear infinite;
}

.orbital .ring-4 {
    width: 280px;
    height: 280px;
    animation: orbital-spin 180s linear infinite reverse;
}

.orbital .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    width: 72px;
    height: 72px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
    z-index: 2;
    animation: orbital-pulse 4s ease-in-out infinite;
}

.orbital .dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
               rotate(var(--angle, 0deg))
               translateY(calc(-1 * var(--dist, 70px)))
               rotate(calc(-1 * var(--angle, 0deg)));
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: dot-glow 3s ease-in-out infinite;
}

.orbital .dot-purple   { animation-delay: 0s; }
.orbital .dot-green    { animation-delay: 0.4s; }
.orbital .dot-amber    { animation-delay: 0.8s; }
.orbital .dot-blue     { animation-delay: 1.2s; }
.orbital .dot-red      { animation-delay: 1.6s; }
.orbital .dot-purple2  { animation-delay: 2s; }

.orbital .dot-purple   { background: #6366f1; }
.orbital .dot-purple2  { background: #818cf8; }
.orbital .dot-green    { background: #34d399; }
.orbital .dot-amber    { background: #fbbf24; }
.orbital .dot-blue     { background: #60a5fa; }
.orbital .dot-red      { background: #f87171; }

/* Old hero kept for other pages if needed */
.hero {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 12px;
    font-weight: 700;
}

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

h2 {
    color: #0f172a;
    font-size: 22px;
    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: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

.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 #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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: #6366f1;
    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;
    }

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

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

    .hero h1 {
        font-size: 32px;
    }

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

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

    .hero-landing {
        padding: 48px 0 32px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-text {
        order: 1;
    }

    .hero-text p {
        max-width: none;
        font-size: 16px;
    }

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

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

    .hero-visual {
        height: 240px;
        order: 2;
    }

    .orbital {
        width: 240px;
        height: 240px;
    }

    .orbital .ring-1 { width: 90px; height: 90px; }
    .orbital .ring-2 { width: 130px; height: 130px; }
    .orbital .ring-3 { width: 170px; height: 170px; }
    .orbital .ring-4 { width: 210px; height: 210px; }

    .orbital .center {
        width: 58px;
        height: 58px;
        font-size: 14px;
    }
}

/* Classification badges (yearbook style) */
.class-badge {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 0.72rem;
    padding: 1px 8px;
    background: #f1e7ff;
    color: #5b21b6;
    border-radius: 9999px;
    display: inline-block;
}

.class-badge--card {
    font-size: 0.8em;
    background: var(--primary-light);
    color: #4338ca;
    padding: 2px 8px;
    margin: 4px 0;
}

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

.class-badge--profile {
    font-size: 1.05em;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: white;
    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: #334155;
}

.auth-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 15px;
}

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

.auth-form .link {
    display: block;
    margin-top: 16px;
    color: #475569;
    font-size: 14px;
    text-decoration: none;
}

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

.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    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-brand {
    margin: 0;
    font-weight: 600;
    font-size: 13px;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
    .orbital .ring,
    .orbital .center,
    .orbital .dot,
    .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%;
    }
}