@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --color-primary: #1e4fa8;
    --color-primary-hover: #163d84;
    --color-primary-light: rgba(30, 79, 168, 0.1);
    --color-secondary: #22c55e;
    --color-secondary-hover: #16a34a;
    --color-secondary-light: rgba(34, 197, 94, 0.12);
    --color-accent: #ff6b57;
    --color-accent-hover: #ff4c35;
    --color-accent-light: rgba(255, 107, 87, 0.12);

    --color-bg: #f8fafc;
    --color-surface: rgba(255, 255, 255, 0.82);
    --color-surface-strong: #ffffff;
    --color-surface-muted: #f1f5f9;
    --color-border: rgba(148, 163, 184, 0.22);
    --color-border-strong: rgba(148, 163, 184, 0.35);

    --color-text-dark: #1e293b;
    --color-text-muted: #64748b;
    --color-text-soft: #94a3b8;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 18px 45px rgba(30, 79, 168, 0.18);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition-fast: 160ms ease;
    --transition-normal: 240ms ease;
    --transition-slow: 380ms ease;

    --container-width: 1120px;
    --nav-height: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    background:
        radial-gradient(circle at top left, rgba(30, 79, 168, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    cursor: pointer;
}

::selection {
    background: rgba(30, 79, 168, 0.16);
    color: var(--color-text-dark);
}

.app-container {
    width: min(var(--container-width), calc(100% - 1.5rem));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0 2.5rem;
}

.app-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.app-main > * {
    min-width: 0;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0.35rem 1.15rem;
    margin-bottom: 0.15rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: calc(var(--radius-lg) + 4px);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.app-header::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.app-header > * {
    position: relative;
    z-index: 1;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-left: auto;
    min-width: 0;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.58rem 0.88rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--color-primary);
    background: rgba(30, 79, 168, 0.07);
    transform: translateY(-1px);
}

.header-brand-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.logo-container,
.page-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    min-width: 0;
}

.event-header-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.logo-image,
.page-brand img {
    width: auto;
    height: 88px;
    max-height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.06));
}

.card-title-logo {
    max-width: 180px;
    height: auto;
}

.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    flex-shrink: 0;
}

.lang-selector a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    height: 2.15rem;
    padding: 0 0.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.lang-selector a:hover,
.lang-selector a:focus-visible {
    outline: none;
    background: #ffffff;
    color: var(--color-primary);
    transform: translateY(-1px);
}

.lang-selector a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #2f67cf);
    box-shadow: 0 10px 22px rgba(30, 79, 168, 0.18);
}

header.app-header p,
.app-header .header-subtitle {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.card,
.success-card,
.link-box,
.dashboard-meta-header,
.stat-card,
.mobile-event-card,
.event-info-header,
.badge-closed-winner,
.dashboard-table-wrapper,
.votes-matrix-wrapper,
.calendar-widget,
.selected-dates-panel,
.mobile-vote-item,
.option-select-row {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.card,
.success-card {
    padding: clamp(1.25rem, 2vw, 2rem);
    min-width: 0;
}

.card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover,
.stat-card:hover,
.mobile-event-card:hover,
.dashboard-meta-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 79, 168, 0.15);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.15rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.card-title-borderless {
    border-bottom: 0;
    padding-bottom: 0;
}

.card-title-responsive {
    justify-content: flex-start;
    gap: 0.85rem;
}

.card-title svg,
.event-meta-item svg,
.alert svg {
    flex-shrink: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

input[type="text"],
input[type="email"],
input[type="time"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.92rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text-dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-soft);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(30, 79, 168, 0.55);
    box-shadow: 0 0 0 4px rgba(30, 79, 168, 0.12);
    background: #ffffff;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

.btn,
.btn-coffee,
.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn:focus-visible,
.btn-coffee:focus-visible,
.tab-btn:focus-visible,
.lang-selector a:focus-visible,
.calendar-day:focus-visible,
.mobile-vote-item:focus-visible,
.option-select-row:focus-visible {
    outline: 3px solid rgba(30, 79, 168, 0.25);
    outline-offset: 2px;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    box-shadow: 0 14px 28px rgba(30, 79, 168, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), #2f67cf);
    box-shadow: 0 18px 34px rgba(30, 79, 168, 0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--color-text-dark);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(148, 163, 184, 0.24);
}

.btn-secondary:hover {
    border-color: rgba(30, 79, 168, 0.25);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.btn-success {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-hover));
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.18);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(34, 197, 94, 0.24);
}

.btn-danger {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    box-shadow: 0 14px 28px rgba(255, 107, 87, 0.16);
}

.btn-danger:hover {
    transform: translateY(-1px);
}

.btn-sm {
    min-height: 38px;
    padding: 0.65rem 0.95rem;
    border-radius: 12px;
    font-size: 0.88rem;
}

.btn-coffee {
    color: #5b341f;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.22);
}

.btn-coffee:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(245, 158, 11, 0.28);
}

.selector-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.selector-tabs .tab-btn {
    flex: 1;
    min-height: 42px;
    padding: 0.6rem 1rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-text-muted);
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.selector-tabs .tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #2f67cf) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 16px rgba(30, 79, 168, 0.15);
}

.selector-tabs .tab-btn:hover:not(.active) {
    background: var(--color-surface-muted) !important;
    border-color: rgba(30, 79, 168, 0.2) !important;
    color: var(--color-primary);
}

/* Week View Styles */
.week-day-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.6);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.week-day-row:hover {
    border-color: rgba(30, 79, 168, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.week-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-text-dark);
}

.week-day-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.week-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.week-checkbox-label input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.week-checkbox-label:hover {
    border-color: rgba(30, 79, 168, 0.3);
    color: var(--color-primary);
}

.week-checkbox-label.selected {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #2f67cf);
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(30, 79, 168, 0.15);
}

.week-slot-badge-defined {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(241, 245, 249, 0.9);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.week-slot-badge-defined button {
    border: 0;
    background: transparent;
    color: var(--color-accent);
    padding: 0 0.1rem;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.week-slot-badge-defined .apply-all-btn {
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    margin-left: 0.3rem;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    background: rgba(30, 79, 168, 0.08);
}

.week-slot-badge-defined .apply-all-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.date-selector-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

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

.event-editor-column {
    min-width: 0;
}

.helper-copy {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.helper-copy-tight {
    margin-top: 0.45rem;
    margin-bottom: 0;
}

.invite-toggle-row {
    display: flex;
    align-items: center;
    margin-top: 0.85rem;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
    color: var(--color-text-dark);
    font-size: 0.88rem;
    font-weight: 700;
    position: relative;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-track {
    position: relative;
    width: 2.65rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    flex-shrink: 0;
}

.toggle-track::after {
    content: "";
    position: absolute;
    top: 0.16rem;
    left: 0.16rem;
    width: 1.16rem;
    height: 1.16rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
    transition: transform var(--transition-fast);
}

.toggle-switch input:checked + .toggle-track {
    background: linear-gradient(135deg, var(--color-primary), #2f67cf);
    box-shadow: 0 10px 20px rgba(30, 79, 168, 0.18);
}

.toggle-switch input:checked + .toggle-track::after {
    transform: translateX(1.15rem);
}

.invite-box {
    margin-top: 0.9rem;
    padding: 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.75);
}

.invite-progress-card {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.74);
}

.invite-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    color: var(--color-text-dark);
}

.invite-progress-header strong {
    font-size: 0.92rem;
}

.invite-progress-header span {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.invite-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.invite-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1E4FA8, #22C55E);
    transition: width 260ms ease;
}

.invite-progress-text {
    margin: 0.65rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.84rem;
}

.success-invite-summary {
    margin-bottom: 1rem;
}

.calendar-widget,
.selected-dates-panel {
    padding: 1rem;
}

.calendar-widget {
    width: min(100%, 420px);
    margin-inline: auto;
    padding: 0.85rem;
}

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

.calendar-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: capitalize;
    letter-spacing: -0.02em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 28px repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
}

.calendar-week-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background: rgba(148, 163, 184, 0.08);
    border-radius: 8px;
    user-select: none;
    opacity: 0.85;
}

.week-number-header {
    opacity: 0.65;
}

.calendar-day-name {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.28rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #ffffff;
    color: var(--color-text-dark);
    font-size: 0.78rem;
    transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.calendar-day:hover:not(.empty):not(.past) {
    border-color: rgba(30, 79, 168, 0.2);
    background: rgba(30, 79, 168, 0.08);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.calendar-day.selected {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #2f67cf);
    box-shadow: 0 12px 26px rgba(30, 79, 168, 0.22);
}

.calendar-day.past {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f8fafc;
}

.calendar-day.empty {
    cursor: default;
    background: transparent;
}

.selected-dates-panel {
    max-height: 520px;
    overflow: auto;
    gap: 0.75rem;
}

.calendar-widget .btn-sm {
    min-height: 34px;
    padding: 0.5rem 0.72rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.availability-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.availability-modal-card {
    position: relative;
    width: min(100%, 420px);
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-lg);
}

.availability-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--color-text-muted);
    font-size: 1.25rem;
    line-height: 1;
}

.availability-modal-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.availability-modal-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.availability-modal-date {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.availability-modal-fields {
    margin-top: 0.25rem;
}

.availability-modal-hint {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

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

.selected-date-item {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.9);
    animation: fadeInUp 220ms ease-out;
}

.selected-date-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 0.94rem;
}

.selected-date-header button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--color-accent);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
}

.times-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #ffffff;
    color: var(--color-text-dark);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.time-badge button {
    border: 0;
    background: transparent;
    color: var(--color-text-soft);
    line-height: 1;
    padding: 0;
}

.add-time-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px dashed rgba(30, 79, 168, 0.28);
    color: var(--color-primary);
    background: rgba(30, 79, 168, 0.05);
    font-size: 0.82rem;
    font-weight: 800;
}

.add-time-btn:hover {
    background: rgba(30, 79, 168, 0.1);
}

.time-input-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(30, 79, 168, 0.18);
    box-shadow: var(--shadow-md);
}

.time-input-inline input[type="time"] {
    width: auto;
    min-width: 120px;
    padding: 0.6rem 0.7rem;
    border: 0;
    box-shadow: none;
}

.time-input-inline button {
    min-height: 36px;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
}

.success-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 260ms ease-out;
}

.success-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-secondary);
    background: rgba(34, 197, 94, 0.12);
}

.success-icon svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    fill: none;
}

.success-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.success-subtitle {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.55;
    max-width: 42rem;
}

.link-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
    text-align: left;
}

.link-box-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.link-box-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.link-box-url {
    flex: 1;
    min-width: 0;
    padding: 0.82rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #ffffff;
    color: var(--color-primary);
    overflow-x: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.92rem;
    font-weight: 700;
}

.event-info-header {
    padding: clamp(1.35rem, 3vw, 2.5rem);
}

.event-hero-card {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.event-info-header h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.9rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.event-info-summary {
    margin: 0.95rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.55;
}

.event-info-summary .event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.event-info-summary .event-meta-item svg {
    width: 14px;
    height: 14px;
}

.event-description {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.65;
    max-width: 44rem;
}

.event-summary-compact {
    padding: 0.5rem 0 0.15rem;
    margin-bottom: 0.2rem;
    color: var(--color-text-dark);
}

.event-topline {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.2rem;
}

.event-topline-badge,
.event-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(30, 79, 168, 0.95), rgba(59, 130, 246, 0.9));
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(30, 79, 168, 0.16);
}

.event-topline-badge {
    margin-top: 0.15rem;
}

.event-title-compact {
    margin-top: 0.45rem !important;
    font-size: clamp(0.9rem, 3vw, 1.12rem) !important;
    line-height: 1.05 !important;
    color: var(--color-text-dark) !important;
}

.event-info-summary-compact {
    margin-top: 0.4rem !important;
    gap: 0.3rem 0.65rem !important;
    font-size: clamp(0.74rem, 2.4vw, 0.86rem) !important;
    line-height: 1.4 !important;
    color: var(--color-text-dark) !important;
}

.event-description-compact {
    margin-top: 0.45rem !important;
    font-size: clamp(0.82rem, 2.8vw, 0.92rem) !important;
    line-height: 1.42 !important;
    color: var(--color-text-dark) !important;
    max-width: 32rem;
}

.event-summary-compact .event-meta-item,
.event-summary-compact strong,
.event-summary-compact span,
.event-summary-compact svg {
    color: var(--color-text-dark);
    stroke: currentColor;
}

.event-hero-card h1 {
    font-size: clamp(1.45rem, 3.8vw, 2.35rem);
    line-height: 1;
}

.event-hero-card .event-description {
    margin-top: 0.65rem;
    font-size: clamp(0.92rem, 1.8vw, 1.02rem);
    line-height: 1.5;
}

.event-hero-card .event-info-summary {
    margin-top: 0.7rem;
    font-size: clamp(0.86rem, 1.6vw, 0.98rem);
    gap: 0.45rem 0.8rem;
}

.badge-closed-winner {
    margin-top: 0.85rem;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
    color: #0f5132;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.08));
    border-color: rgba(34, 197, 94, 0.22);
}

.badge-closed-winner svg {
    width: 20px;
    height: 20px;
}

.badge-closed-winner > div > div:last-child {
    font-size: 1rem !important;
    margin-top: 0.2rem !important;
}

.participant-vote-card {
    padding: 1.25rem 1.1rem;
}

.event-header-minimal {
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.15rem 0.8rem;
    min-height: 52px;
}

.event-logo-image {
    height: 44px;
    max-height: 44px;
}

.event-lang-selector {
    margin-left: auto;
    transform: scale(0.96);
    transform-origin: right center;
}

.event-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.vote-page-column {
    min-width: 0;
}

.vote-page-column-right {
    position: sticky;
    top: 6.25rem;
}

.vote-section-title {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.participant-responses-card {
    margin-top: 0.8rem;
    padding: 0.9rem 0.85rem;
}

.participant-responses-card .card-title {
    font-size: 0.76rem;
    margin-bottom: 0.5rem;
}

.participant-responses-card .card-title svg {
    width: 15px;
    height: 15px;
}

.participant-responses-title {
    letter-spacing: 0.01em;
}

.participant-vote-card .card-title {
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
}

.participant-vote-card .card-title svg {
    width: 18px;
    height: 18px;
}

.notify-toggle {
    margin-top: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
    color: var(--color-text-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.notify-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.notify-toggle-ui {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.26);
    padding: 2px;
    display: inline-flex;
    align-items: center;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.notify-toggle-switch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
    transform: translateX(0);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.notify-toggle input:checked + .notify-toggle-ui {
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    border-color: rgba(30, 79, 168, 0.35);
}

.notify-toggle input:checked + .notify-toggle-ui .notify-toggle-switch {
    transform: translateX(18px);
}

.notify-toggle-text {
    line-height: 1.35;
}

.notify-toggle-hint {
    margin: 0.4rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.votes-matrix-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: var(--radius-lg);
}

.vote-grid-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
    margin-top: 0.35rem;
}

.vote-grid-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.vote-grid-legend-swatch {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.vote-grid-legend-unavailable {
    background: rgba(244, 114, 182, 0.18);
}

.vote-grid-legend-available {
    background: rgba(34, 197, 94, 0.2);
}

.vote-grid-hint {
    margin: 0.35rem 0 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.vote-grid-scroll {
    overflow-x: auto;
    margin-top: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.vote-grid {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    table-layout: fixed;
}

.vote-grid th,
.vote-grid td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    padding: 0;
}

.vote-grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(248, 250, 252, 0.98);
}

.vote-grid-corner {
    position: sticky;
    left: 0;
    z-index: 4;
    width: 3.8rem;
    min-width: 3.8rem;
    max-width: 3.8rem;
    background: rgba(248, 250, 252, 0.98);
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

.vote-grid-time-cell {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 3.8rem;
    min-width: 3.8rem;
    max-width: 3.8rem;
    padding: 0.16rem 0.35rem 0.1rem;
    background: rgba(248, 250, 252, 0.98);
    color: var(--color-text-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: right;
    vertical-align: top;
    line-height: 1;
    white-space: nowrap;
}

.vote-grid-day-header {
    text-align: center;
    padding: 0.48rem 0.18rem 0.36rem;
    color: var(--color-text-dark);
}

.vote-grid-day-header.most-voted {
    background: rgba(34, 197, 94, 0.08);
}

.vote-grid-day-weekday {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.vote-grid-day-date {
    display: block;
    font-size: 0.88rem;
    font-weight: 900;
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-slot-cell {
    text-align: center;
    background: rgba(255, 255, 255, 0.78);
    height: 0.92rem;
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-slot-cell.slot-missing {
    color: var(--color-text-soft);
    font-size: 0.75rem;
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-slot {
    width: 100%;
    height: 0.84rem;
    border: 0;
    border-radius: 0;
    background: rgba(244, 114, 182, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-quarter {
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(244, 114, 182, 0.22);
    border: 1px solid rgba(244, 114, 182, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: visible;
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-quarter::before {
    content: attr(data-slot-time);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.01px;
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-slot.selected {
    background: rgba(34, 197, 94, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-slot-marker {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    opacity: 0.45;
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-quarter.selected {
    background: rgba(34, 197, 94, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-quarter.slot-missing {
    background: rgba(241, 245, 249, 0.68);
    color: var(--color-text-soft);
    cursor: default;
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-quarter.slot-missing:hover {
    transform: none;
    background: rgba(241, 245, 249, 0.68);
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-quarter:hover:not(.slot-missing) {
    background: rgba(244, 114, 182, 0.3);
    transform: scale(0.99);
}

.vote-grid:not(.participant-heatmap-table) .vote-grid-quarter:hover:not(.slot-missing)::after,
.vote-grid:not(.participant-heatmap-table) .vote-grid-quarter:focus-visible:not(.slot-missing)::after {
    content: attr(data-slot-time);
    position: absolute;
    left: 50%;
    top: -1.55rem;
    transform: translateX(-50%);
    padding: 0.18rem 0.35rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.vote-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
    gap: 0.95rem;
    align-items: stretch;
}

.vote-page-grid > *,
.event-page-grid > *,
.event-editor-grid > *,
.admin-section-grid > *,
.admin-right-column > * {
    min-width: 0;
}

.participant-vote-card {
    padding-bottom: 1.25rem;
}

.vote-form-topbar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(170px, 1.15fr) minmax(190px, 1fr) minmax(210px, 1.1fr);
    gap: 0.75rem;
    align-items: end;
}

.vote-form-topbar .form-group,
.vote-form-topbar .vote-notify-group,
.vote-form-topbar .vote-submit-group {
    margin: 0;
}

.vote-form-topbar .form-group label {
    font-size: 0.72rem;
}

.vote-form-topbar .form-group input {
    min-height: 44px;
}

.vote-notify-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vote-submit-group {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.65rem;
}

.vote-page-finalize-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0 0 10px;
}

.vote-finalize-floating {
    display: none;
    min-width: 148px;
    min-height: 48px;
    padding-inline: 1rem 1.1rem;
    border-radius: 999px;
    background: #FFC83D !important;
    color: #4a3400;
    border: 1px solid rgba(196, 142, 0, 0.26);
    box-shadow: 0 14px 28px rgba(255, 200, 61, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.vote-finalize-floating.is-visible {
    display: inline-flex;
    opacity: 0.94;
    pointer-events: auto;
    transform: translateY(0);
}

.vote-finalize-floating:hover,
.vote-finalize-floating:focus-visible {
    background: #FFC83D !important;
    color: #352500;
    opacity: 1;
    box-shadow: 0 18px 34px rgba(255, 200, 61, 0.34);
}

.vote-page-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.vote-page-column-left {
    max-width: 100%;
}

.vote-page-column-right {
    width: 100%;
    max-width: 100%;
}

.vote-page-column-right {
    position: sticky;
    top: 6.25rem;
    align-self: start;
}

.vote-grid-meta {
    min-height: 3.95rem;
}

.vote-grid-meta-placeholder {
    visibility: hidden;
    pointer-events: none;
}

.vote-section-title {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.participant-responses-card {
    margin-top: 0;
    padding: 0;
}

.participant-responses-card-chart {
    height: 100%;
    width: 100%;
    max-width: 100%;
}

.vote-grid-scroll-responses {
    margin-top: 0;
    overflow-x: hidden;
    width: 100%;
}

.admin-decision-heatmap-shell {
    margin-bottom: 1rem;
}

.admin-decision-heatmap-scroll {
    margin-top: 0.55rem;
}

#admin-decision-heatmap {
    width: 100%;
    max-width: 100%;
}

.admin-decision-heatmap-table {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.admin-decision-heatmap-table .vote-grid-corner,
.admin-decision-heatmap-table .vote-grid-time-cell {
    width: 2.6rem;
    min-width: 2.6rem;
    max-width: 2.6rem;
    font-size: 0.62rem;
    padding-left: 0.12rem;
    padding-right: 0.12rem;
}

.admin-decision-heatmap-table .vote-grid-day-header {
    padding: 0.28rem 0.04rem 0.22rem;
}

.admin-decision-heatmap-table .vote-grid-day-weekday {
    font-size: 0.56rem;
}

.admin-decision-heatmap-table .vote-grid-day-date {
    font-size: 0.66rem;
}

.admin-decision-heatmap-table .vote-grid-slot-cell {
    height: 0.62rem;
}

.admin-decision-heatmap-table .vote-grid-response-label {
    font-size: 0.52rem;
}

.admin-decision-slot {
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.admin-decision-slot:hover:not(.slot-missing):not(:disabled) {
    transform: scale(0.98);
    background: rgba(255, 200, 61, 0.72) !important;
    color: #4a3400;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.admin-decision-slot.selected {
    background: #FFC83D !important;
    color: #4a3400;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 2px rgba(255, 200, 61, 0.5);
}

.admin-decision-notify-summary {
    margin-top: 0.9rem;
}

.admin-decision-notify-card {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-text-dark);
}

.admin-decision-notify-list {
    margin: 0.7rem 0 0.9rem;
    padding-left: 1rem;
    color: var(--color-text-muted);
}

.admin-decision-notify-list li + li {
    margin-top: 0.25rem;
}

.admin-decision-notify-missing {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: var(--color-text-dark);
}

.admin-decision-notify-missing-names {
    margin-top: 0.45rem;
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

#participant-responses-chart {
    width: 100%;
    max-width: 100%;
}

.participant-heatmap-table .vote-grid-time-cell,
.participant-heatmap-table .vote-grid-corner,
.participant-heatmap-table .vote-grid-day-header {
    background: rgba(248, 250, 252, 0.98);
}

.participant-heatmap-table {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.participant-heatmap-table .vote-grid-corner,
.participant-heatmap-table .vote-grid-time-cell {
    width: 3.4rem;
    min-width: 3.4rem;
    max-width: 3.4rem;
}

.participant-heatmap-table .vote-grid-day-header {
    padding: 0.5rem 0.12rem 0.4rem;
}

.participant-heatmap-table .vote-grid-day-weekday {
    font-size: 0.68rem;
}

.participant-heatmap-table .vote-grid-day-date {
    font-size: 0.8rem;
}

.participant-heatmap-table .vote-grid-slot-cell {
    height: 0.9rem;
    position: relative;
}

.vote-grid-response-cell {
    overflow: visible;
}

.vote-grid-response-slot {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(34, 197, 94, 0.12);
    position: relative;
    overflow: visible;
}

.participant-heatmap-table .vote-grid-response-slot {
    border-color: rgba(255, 255, 255, 0.35);
}

.vote-grid-response-slot.has-response {
    border-color: rgba(255, 255, 255, 0.55);
}

.vote-grid-response-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.98);
    font-size: 0.68rem;
    font-weight: 900;
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.25);
    pointer-events: none;
}

.vote-grid-response-cell:hover .participant-response-tooltip,
.vote-grid-response-cell:focus-within .participant-response-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vote-grid-response-cell .participant-response-tooltip {
    opacity: 0;
    visibility: hidden;
}

.vote-grid-response-cell:hover .participant-response-tooltip,
.vote-grid-response-cell:focus-within .participant-response-tooltip {
    opacity: 1;
    visibility: visible;
}

.votes-compact-summary {
    min-width: 0;
}

.participant-responses-chart-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.participant-response-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 0.85rem 0.8rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.96));
    text-align: left;
    box-shadow: var(--shadow-sm);
    overflow: visible;
}

.participant-response-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.06), rgba(16, 185, 129, 0.08));
    opacity: 0.3;
    pointer-events: none;
}

.participant-response-item.most-voted {
    border-color: rgba(34, 197, 94, 0.22);
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.08);
}

.participant-response-item:hover,
.participant-response-item:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.participant-response-meta,
.participant-response-bar-wrap {
    position: relative;
    z-index: 1;
}

.participant-response-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 0.65rem;
}

.participant-response-date {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

.participant-response-time {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-primary);
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    background: rgba(30, 79, 168, 0.09);
}

.participant-response-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.participant-response-bar {
    position: relative;
    flex: 1 1 auto;
    height: 0.72rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    overflow: hidden;
}

.participant-response-fill {
    display: block;
    width: var(--response-width, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(30, 79, 168, 0.2), rgba(34, 197, 94, 0.85));
    transition: width var(--transition-normal);
}

.participant-response-count {
    min-width: 2rem;
    text-align: right;
    color: var(--color-text-dark);
    font-size: 0.95rem;
    font-weight: 900;
}

.participant-response-tooltip {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: calc(100% + 0.5rem);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.94);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    pointer-events: none;
}

.participant-response-tooltip strong {
    font-size: 0.8rem;
    font-weight: 900;
}

.participant-response-tooltip span {
    font-size: 0.76rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.84);
    word-break: break-word;
}

.participant-response-item:hover .participant-response-tooltip,
.participant-response-item:focus-visible .participant-response-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.participant-responses-empty {
    padding: 1rem 0.2rem 0.3rem;
    color: var(--color-text-muted);
    font-size: 0.86rem;
    text-align: center;
}

.vote-grid-slot.selected .vote-grid-slot-marker {
    opacity: 1;
}

.votes-table,
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.votes-table th,
.dashboard-table th {
    position: sticky;
    top: 0;
    background: rgba(248, 250, 252, 0.98);
    color: var(--color-text-dark);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
}

.votes-table th,
.votes-table td,
.dashboard-table th,
.dashboard-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.votes-table tbody tr:hover td,
.dashboard-table tbody tr:hover td {
    background: rgba(30, 79, 168, 0.035);
}

.votes-table th.participant-col,
.votes-table td.participant-name-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.98);
    text-align: left;
    min-width: 200px;
}

.votes-table td.participant-name-cell {
    font-weight: 700;
}

.votes-table td.participant-name-cell .email-sub,
.admin-vote-row-email {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.th-date-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.14rem;
}

.th-date {
    font-size: 0.9rem;
    font-weight: 800;
}

.th-day {
    color: var(--color-text-muted);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.th-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(30, 79, 168, 0.1);
    font-size: 0.72rem;
    font-weight: 800;
}

.vote-cell {
    text-align: center;
    transition: background var(--transition-fast);
}

.vote-cell-yes {
    background: rgba(34, 197, 94, 0.08);
    color: var(--color-secondary-hover);
}

.vote-cell-no {
    color: var(--color-text-soft);
}

.vote-icon-yes {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-secondary-hover);
    background: rgba(34, 197, 94, 0.14);
}

.vote-icon-yes svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
}

.total-votes-row {
    font-weight: 800;
    background: rgba(241, 245, 249, 0.72);
}

.total-votes-row td {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.total-votes-label {
    position: sticky;
    left: 0;
    text-align: left !important;
    background: rgba(241, 245, 249, 0.96);
}

.total-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(30, 79, 168, 0.1);
    color: var(--color-primary);
}

.votes-table th.most-voted,
.votes-table td.most-voted {
    background: rgba(34, 197, 94, 0.08);
}

.most-voted-header-badge {
    display: inline-flex;
    margin-top: 0.35rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    color: var(--color-secondary-hover);
    font-size: 0.64rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-vote-list,
.mobile-events-list {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-vote-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.mobile-vote-item.selected {
    border-color: rgba(30, 79, 168, 0.35);
    background: rgba(30, 79, 168, 0.07);
}

.mobile-vote-item.most-voted {
    border-color: rgba(34, 197, 94, 0.24);
}

.mobile-vote-info {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.mobile-vote-date,
.mobile-event-title {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.mobile-vote-time,
.mobile-vote-votes-count {
    font-size: 0.82rem;
}

.mobile-vote-time {
    color: var(--color-primary);
    font-weight: 700;
}

.mobile-vote-votes-count {
    color: var(--color-text-muted);
}

.mobile-vote-item.most-voted .mobile-vote-votes-count {
    color: var(--color-secondary-hover);
    font-weight: 700;
}

.mobile-checkbox-indicator {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    flex-shrink: 0;
}

.mobile-vote-item.selected .mobile-checkbox-indicator {
    border-color: rgba(30, 79, 168, 0.4);
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    color: #ffffff;
}

.mobile-checkbox-indicator svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

.stat-card {
    padding: 1.15rem 1.15rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-card-label {
    color: var(--color-text-muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-card-value {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--color-primary);
}

.dashboard-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    margin-bottom: 0.75rem;
}

.dashboard-user-info {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
}

.dashboard-user-info svg {
    color: var(--color-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.dashboard-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.admin-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.admin-section-grid-single {
    grid-template-columns: 1fr;
}

.admin-right-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    min-width: 0;
}

.admin-section-grid > .card {
    min-width: 0;
}

#admin-options-container,
.admin-votes-list,
.link-box-content {
    min-width: 0;
}

.admin-vote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    margin-bottom: 0.7rem;
}

.admin-vote-row-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-vote-row-name {
    font-weight: 800;
    color: var(--color-text-dark);
    overflow-wrap: anywhere;
}

.admin-vote-row-actions {
    flex-shrink: 0;
}

.admin-card-close-primary {
    position: relative;
    padding: 1rem 1rem 0.95rem;
    padding-bottom: 5.3rem;
}

.admin-card-close-primary .card-title {
    margin-bottom: 0.7rem;
}

.admin-card-close-primary #close-event-panel > p {
    margin-bottom: 0.8rem !important;
}

.admin-close-floating-btn {
    display: none;
    position: static;
    width: 100%;
    justify-content: center;
    margin-top: 0.8rem;
    min-height: 48px;
    padding: 0.9rem 1.1rem;
    border-radius: 999px;
    background: #FFC83D !important;
    color: #4a3400;
    border: 1px solid rgba(196, 142, 0, 0.26);
    box-shadow: 0 18px 34px rgba(255, 200, 61, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-close-floating-btn.is-visible {
    display: inline-flex;
    opacity: 0.96;
    pointer-events: auto;
    transform: translateY(0);
}

.admin-close-floating-btn:hover,
.admin-close-floating-btn:focus-visible {
    background: #FFC83D !important;
    color: #352500;
    opacity: 1;
    box-shadow: 0 22px 40px rgba(255, 200, 61, 0.34);
}

.admin-accordion {
    padding: 0;
    overflow: hidden;
}

.admin-accordion-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    cursor: pointer;
    user-select: none;
}

.admin-accordion-summary::-webkit-details-marker {
    display: none;
}

.admin-accordion-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

.admin-accordion-chevron {
    color: var(--color-text-muted);
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.admin-accordion[open] .admin-accordion-chevron {
    transform: rotate(180deg);
}

.admin-accordion-content {
    padding: 0 1.05rem 1.05rem;
}

.admin-accordion-summary-danger .admin-accordion-title,
.admin-accordion-summary-danger .admin-accordion-chevron {
    color: var(--color-accent);
}

.option-select-row {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    flex-wrap: wrap;
}

.dashboard-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 1rem;
}

.tab-btn {
    color: var(--color-text-muted);
    background: transparent;
    border-color: transparent;
    padding-inline: 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-primary);
    background: rgba(30, 79, 168, 0.06);
}

.tab-btn.active {
    color: var(--color-primary);
    background: rgba(30, 79, 168, 0.1);
    border-color: rgba(30, 79, 168, 0.12);
}

.tab-content {
    display: none;
    animation: fadeInUp 220ms ease-out;
}

.tab-content.active {
    display: block;
}

.option-select-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
}

.option-select-row:hover {
    border-color: rgba(30, 79, 168, 0.25);
    transform: translateY(-1px);
}

.option-select-row.selected {
    background: rgba(30, 79, 168, 0.08);
    border-color: rgba(30, 79, 168, 0.32);
}

.danger-zone {
    border: 1px dashed rgba(255, 107, 87, 0.4) !important;
    background: rgba(255, 107, 87, 0.04) !important;
}

.danger-zone:hover {
    box-shadow: 0 18px 36px rgba(255, 107, 87, 0.08) !important;
}

.alert {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.alert-warning {
    color: #92400e;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.alert svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 0.1rem;
}

.alert span {
    min-width: 0;
}

footer.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

footer.app-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
}

.subtle-footer {
    font-size: 0.75rem;
    color: var(--color-text-soft);
}

.subtle-footer a {
    color: var(--color-text-muted) !important;
    text-decoration: underline !important;
}

.hero-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.2rem;
}

.hero-card {
    padding: clamp(1.35rem, 3vw, 2.5rem);
    border-radius: calc(var(--radius-xl) + 2px);
    background:
        linear-gradient(135deg, rgba(30, 79, 168, 0.95), rgba(40, 103, 207, 0.9)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 30%);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-card h1 {
    margin: 0;
    font-size: clamp(2.2rem, 7vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.65;
    max-width: 44rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e0ecff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-actions,
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-actions {
    margin-top: 1.3rem;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
}

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

.feature-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    color: rgba(100, 116, 139, 0.72);
    line-height: 1.4;
    opacity: 0.88;
}

.feature-strip-item {
    font-size: 0.74rem;
}

.feature-strip-item strong {
    color: rgba(100, 116, 139, 0.72);
    font-weight: 600;
}

.feature-strip-divider {
    color: rgba(100, 116, 139, 0.55);
    font-weight: 500;
}

.feature-card {
    padding: 1.1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    margin: 0.15rem 0 0.45rem;
    font-size: 1rem;
}

.feature-card p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.section-title {
    margin: 0 0 1rem;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-subtitle {
    margin: -0.35rem 0 1rem;
    color: var(--color-text-muted);
}

.example-frame {
    padding: 1rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow-md);
}

.example-frame .example-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.example-card {
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.example-card.available {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 1));
}

.example-card.maybe {
    border-color: rgba(255, 184, 0, 0.3);
    background: linear-gradient(180deg, rgba(255, 184, 0, 0.12), rgba(255, 255, 255, 1));
}

.example-card.unavailable {
    border-color: rgba(255, 107, 87, 0.3);
    background: linear-gradient(180deg, rgba(255, 107, 87, 0.12), rgba(255, 255, 255, 1));
}

.example-card .example-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.example-card.available .example-label {
    color: #0f5132;
    background: rgba(34, 197, 94, 0.14);
}

.example-card.maybe .example-label {
    color: #92400e;
    background: rgba(255, 184, 0, 0.14);
}

.example-card.unavailable .example-label {
    color: #7f1d1d;
    background: rgba(255, 107, 87, 0.14);
}

.example-card .example-date {
    margin: 0.65rem 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 900;
}

.example-card .example-time {
    margin: 0;
    color: var(--color-text-muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseSoft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@media (min-width: 640px) {
    .app-container {
        width: min(var(--container-width), calc(100% - 2rem));
    }

    .hero-shell {
        gap: 1.25rem;
    }

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

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

@media (min-width: 768px) {
    .app-header {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 1rem;
        padding-inline: 1.15rem;
    }

    .site-nav {
        margin-left: auto;
        justify-content: flex-end;
    }

    .lang-selector {
        margin-left: 0;
    }

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

    .date-selector-container {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: 1.25rem;
    }

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

@media (min-width: 980px) {
    .admin-section-grid-single {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1rem;
        align-items: start;
    }

    .admin-card-close-primary,
    .admin-right-column {
        min-width: 0;
    }
}

@media (min-width: 980px) {
    .hero-shell {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: stretch;
    }
}

@media (min-width: 1100px) {
    .calendar-widget {
        width: min(100%, 390px);
    }

    .calendar-grid {
        grid-template-columns: 24px repeat(7, minmax(0, 1fr));
        gap: 0.16rem;
    }

    .calendar-day-name {
        font-size: 0.58rem;
        padding: 0.22rem 0;
    }

    .calendar-day {
        font-size: 0.72rem;
    }
}

@media (max-width: 900px) {
    .votes-table,
    .dashboard-table {
        min-width: 860px;
    }
}

@media (max-width: 1024px) {
    .vote-page-grid,
    .event-page-grid,
    .admin-section-grid-single {
        grid-template-columns: 1fr;
    }

    .vote-page-column-right,
    .admin-card-close-primary,
    .admin-right-column {
        position: static;
    }

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

    .calendar-widget {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-meta-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-meta-header > div:last-child {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .dashboard-meta-header > div:last-child .btn {
        flex: 1 1 100%;
    }

    .dashboard-table-wrapper,
    .votes-matrix-wrapper {
        border-radius: 18px;
    }

    .mobile-vote-list,
    .mobile-events-list {
        display: flex;
    }

    .dashboard-table-wrapper {
        display: none;
    }

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

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

    .admin-vote-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-vote-row-actions {
        width: 100%;
    }

    .admin-vote-row-actions .btn {
        width: 100%;
    }

    .admin-close-floating-btn {
        transform: translateY(12px);
    }

    .admin-close-floating-btn.is-visible {
        transform: translateY(0);
    }

    .vote-form-topbar {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .vote-submit-group {
        justify-content: stretch;
    }

    .vote-submit-group .btn {
        width: 100%;
    }

    .mobile-event-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    .app-container {
        width: min(var(--container-width), calc(100% - 1rem));
        gap: 1rem;
        padding-top: 0.75rem;
    }

    .app-header {
        border-radius: 24px;
        padding: 0.5rem 0.8rem;
        gap: 0.55rem;
    }

    .logo-image,
    .page-brand img {
        width: auto;
        height: 70px;
        max-height: 70px;
    }

    .event-header-row {
        width: 100%;
        flex-wrap: wrap;
    }

    .event-logo-image {
        height: 34px;
        max-height: 34px;
    }

    .event-header-minimal {
        min-height: 46px;
        padding: 0.12rem 0.6rem;
    }

    .event-lang-selector {
        margin-left: auto;
        transform: scale(0.92);
    }

    .badge-closed-winner {
        padding: 0.9rem;
    }

    .lang-selector {
        margin-left: 0;
        align-self: center;
    }

    .card,
    .success-card {
        padding: 1rem;
        border-radius: 20px;
    }

    .success-card {
        gap: 0.8rem;
    }

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

    .vote-page-column-right {
        position: static;
    }

    .hero-card h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .event-info-header h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .event-hero-card {
        padding: 0.95rem;
    }

    .event-hero-card h1 {
        font-size: clamp(1.6rem, 9vw, 2.3rem);
    }

    .event-summary-compact {
        padding: 0.25rem 0 0.1rem;
    }

    .event-description-compact {
        max-width: 100%;
    }

    .participant-responses-card {
        padding: 0.8rem 0.75rem;
    }

    .participant-responses-card .card-title {
        font-size: 0.72rem;
    }

    .participant-responses-chart-list {
        gap: 0.6rem;
    }

    .participant-response-item {
        padding: 0.72rem 0.72rem 0.68rem;
    }

    .participant-response-tooltip {
        left: 0.72rem;
        right: 0.72rem;
    }

    .hero-actions,
    .hero-pills {
        gap: 0.55rem;
    }

    .btn,
    .btn-coffee,
    .tab-btn {
        width: 100%;
    }

    .link-box-content {
        flex-direction: column;
        align-items: stretch;
    }

    .link-box {
        padding: 0.9rem;
    }

    .vote-grid {
        min-width: 480px;
    }

    .vote-grid-corner,
.vote-grid-time-cell {
        width: 3.8rem;
        min-width: 3.8rem;
        max-width: 3.8rem;
    }

    .participant-heatmap-table {
        min-width: 0;
    }

    .participant-heatmap-table .vote-grid-corner,
    .participant-heatmap-table .vote-grid-time-cell {
        width: 3.8rem;
        min-width: 3.8rem;
        max-width: 3.8rem;
    }

    .participant-heatmap-table .vote-grid-slot-cell {
        height: 0.65rem;
    }

    .vote-grid:not(.participant-heatmap-table) .vote-grid-slot,
    .vote-grid:not(.participant-heatmap-table) .vote-grid-slot-cell {
        height: 0.65rem;
    }

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

    .vote-page-column-right {
        position: static;
    }

    .vote-finalize-floating {
        width: auto;
        min-width: 0;
        transform: translateY(18px);
        justify-content: center;
    }

    .vote-finalize-floating.is-visible {
        transform: translateY(0);
    }

    .vote-page-finalize-bar {
        justify-content: stretch;
        padding-bottom: 10px;
    }

    .vote-grid-day-weekday {
        font-size: 0.62rem;
    }

    .vote-grid-day-date {
        font-size: 0.78rem;
    }

    .event-editor-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .calendar-widget,
    .selected-dates-panel {
        padding: 0.85rem;
    }

    .calendar-widget {
        width: 100%;
        padding: 0.7rem;
    }

    .selected-dates-panel {
        max-height: none;
        overflow: visible;
    }

    .calendar-header {
        gap: 0.5rem;
        margin-bottom: 0.6rem;
    }

    .calendar-header h3 {
        font-size: 0.82rem;
    }

    .calendar-grid {
        grid-template-columns: 24px repeat(7, minmax(0, 1fr));
        gap: 0.14rem;
    }

    .calendar-day-name {
        font-size: 0.54rem;
        padding: 0.22rem 0;
    }

    .calendar-day {
        border-radius: 12px;
        font-size: 0.68rem;
    }

    .calendar-widget .btn-sm {
        min-height: 30px;
        padding: 0.42rem 0.58rem;
        font-size: 0.74rem;
    }

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

    .feature-grid,
    .example-frame .example-row {
        grid-template-columns: 1fr;
    }

    .availability-modal {
        padding: 0.65rem;
    }

    .availability-modal-card {
        width: 100%;
        max-height: calc(100vh - 1.3rem);
        overflow: auto;
        padding: 1rem;
    }

    .availability-modal-actions {
        flex-direction: column-reverse;
    }

    .availability-modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-title {
        align-items: flex-start;
    }

    .event-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav a,
    .lang-selector a {
        min-height: 36px;
    }

    .site-nav a {
        padding: 0.48rem 0.72rem;
        font-size: 0.78rem;
    }

    .lang-selector {
        padding: 0.18rem;
    }

    .lang-selector a {
        min-width: 1.95rem;
        height: 1.95rem;
        font-size: 0.74rem;
    }

    .invite-progress-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-title {
        margin-bottom: 0.95rem;
        padding-bottom: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   WEEK CALENDAR GRID & DRAGGABLE SLOTS
   ========================================================================== */

.btn-duration {
    background: var(--color-bg-alt, #f1f5f9);
    border: 1px solid var(--color-border);
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-dark);
    transition: all var(--transition-fast);
}

.btn-duration:hover {
    background: rgba(30, 79, 168, 0.05);
    border-color: var(--color-primary);
}

.btn-duration.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(30, 79, 168, 0.2);
}

.mobile-day-tabs {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.mobile-day-tab {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 12px;
    white-space: nowrap;
    background: var(--color-bg-alt, #f8fafc);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    cursor: pointer;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.mobile-day-tab.active {
    background: var(--color-primary-light, rgba(30, 79, 168, 0.1));
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.week-grid-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    -webkit-overflow-scrolling: touch;
}

.week-grid-wrapper {
    min-width: 750px;
    display: flex;
    flex-direction: column;
}

.week-grid-header {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-alt, #f8fafc);
    user-select: none;
}

.axis-header-placeholder {
    width: 55px;
    flex-shrink: 0;
    border-right: 1px solid var(--color-border);
}

.days-headers-container {
    display: flex;
    flex-grow: 1;
}

.week-grid-day-header {
    flex: 1;
    width: 0;
    text-align: center;
    padding: 0.65rem 0.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-right: 1px solid var(--color-border);
    color: var(--color-text-dark);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.week-grid-day-header:last-child {
    border-right: none;
}

.week-grid-day-header .day-name {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.week-grid-day-header .day-num {
    font-size: 1.05rem;
    font-weight: 800;
}

.week-grid-body {
    display: flex;
    position: relative;
    height: 900px; /* 15 horas * 60px = 900px */
}

.week-grid-axis {
    width: 55px;
    flex-shrink: 0;
    border-right: 1px solid var(--color-border);
    position: relative;
    background: var(--color-bg-alt, #f8fafc);
    user-select: none;
}

.week-grid-axis-time {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    height: 20px;
    line-height: 20px;
    margin-top: -10px; /* Centrar no traço horizontal */
}

.week-grid-columns {
    display: flex;
    flex-grow: 1;
    position: relative;
}

.week-grid-column-day {
    flex: 1;
    width: 0;
    position: relative;
    height: 100%;
    border-right: 1px solid var(--color-border);
    background-image: 
        linear-gradient(to bottom, rgba(148, 163, 184, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 100% 60px, 100% 15px; /* 60px = hora, 15px = 15 minutos */
    cursor: crosshair;
    transition: background-color var(--transition-fast);
}

.week-grid-column-day:last-child {
    border-right: none;
}

.week-grid-column-day:hover {
    background-color: rgba(30, 79, 168, 0.02);
}

.placed-slot-block {
    position: absolute;
    left: 3px;
    right: 3px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary, #1E4FA8) 0%, #0f2d70 100%);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 6px 8px;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.15rem;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    box-sizing: border-box;
    transition: opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.placed-slot-block:hover {
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15), 0 3px 6px -1px rgba(0, 0, 0, 0.1);
}

.placed-slot-block.dragging {
    cursor: grabbing;
    opacity: 0.85;
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.25), 0 4px 8px -2px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.placed-slot-time {
    font-weight: 800;
    font-size: 0.75rem;
    line-height: 1.1;
    margin-right: 12px;
}

.placed-slot-duration {
    font-size: 0.65rem;
    opacity: 0.85;
    font-weight: 600;
}

.placed-slot-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.placed-slot-delete-btn:hover {
    opacity: 1;
    background: var(--color-accent, #F43F5E);
}

/* Responsividade específica para Mobile Grid */
@media (max-width: 768px) {
    .week-grid-wrapper {
        min-width: 100%;
    }
    
    .week-grid-column-day:not(.active-mobile),
    .week-grid-day-header:not(.active-mobile) {
        display: none !important;
    }
    
    .week-grid-column-day.active-mobile,
    .week-grid-day-header.active-mobile {
        flex: 1 !important;
        width: 100% !important;
        border-right: none !important;
    }
    
    .mobile-day-tabs {
        display: flex !important;
    }
}

.date-selector-container.week-active {
    grid-template-columns: 1fr !important;
}
