:root {
    --cream: #fff6e7;
    --sand: #f5dfb8;
    --amber: #d88a2b;
    --amber-dark: #9c4f0c;
    --brown: #432818;
    --rose: #c85c5c;
    --mint: #5f8d4e;
    --card: rgba(255, 251, 244, 0.94);
    --shadow: 0 24px 70px rgba(67, 40, 24, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--brown);
    background:
        radial-gradient(circle at top left, rgba(255, 214, 102, 0.55), transparent 30%),
        radial-gradient(circle at bottom right, rgba(200, 92, 92, 0.18), transparent 35%),
        linear-gradient(135deg, #fff8ef 0%, #ffe6bd 55%, #f7c572 100%);
    min-height: 100vh;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

button,
.button {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber) 0%, #f0a63f 100%);
    color: white;
    cursor: pointer;
    padding: 0.95rem 1.4rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(216, 138, 43, 0.24);
}

.button-secondary {
    background: rgba(67, 40, 24, 0.08);
    color: var(--brown);
    box-shadow: none;
}

.button-danger {
    background: linear-gradient(135deg, #d14d4d 0%, #a62828 100%);
}

.login-page {
    display: grid;
    place-items: center;
    padding: 2rem;
}

.login-shell,
.content-shell {
    width: min(1200px, 100%);
}

.login-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
    background: var(--card);
    border-radius: calc(var(--radius) + 8px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.brand-copy {
    padding: 3rem;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--amber-dark);
    margin-bottom: 1rem;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    margin-top: 0;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.brand-copy p,
.vote-card p,
.result-body p,
.panel p {
    line-height: 1.6;
}

.login-form,
.admin-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 2rem;
}

input[type="email"],
input[type="text"],
select,
textarea {
    width: 100%;
    border: 2px solid rgba(67, 40, 24, 0.12);
    background: white;
    border-radius: 18px;
    padding: 0.95rem 1rem;
}

.form-error {
    margin: 0;
    color: #9c1c1c;
    font-weight: 700;
}

.login-note {
    margin-top: 1rem;
    font-size: 0.94rem;
    color: rgba(67, 40, 24, 0.8);
}

.hero-panel {
    min-height: 100%;
    padding: 2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)),
        linear-gradient(135deg, #ffd782 0%, #f6a04d 100%);
}

.hero-stack {
    display: grid;
    gap: 1rem;
    align-content: center;
    min-height: 100%;
}

.hero-main-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    padding: 1.5rem;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.thumb-tile {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    padding: 0.6rem;
}

.topbar {
    width: min(1200px, calc(100% - 2rem));
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.topbar-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.content-shell {
    margin: 1.5rem auto 2rem;
}

.flash,
.panel,
.vote-card,
.empty-state {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.flash {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.flash.success {
    border-left: 6px solid var(--mint);
}

.flash.error {
    border-left: 6px solid var(--rose);
}

.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.vote-card {
    overflow: hidden;
}

.vote-image,
.result-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: linear-gradient(180deg, #fff9f0, #ffe4b8);
    padding: 1rem;
}

.vote-card-body,
.result-body,
.panel {
    padding: 1.4rem;
}

.rating-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.rating-option {
    position: relative;
}

.rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-option span {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(67, 40, 24, 0.14);
    font-weight: 800;
}

.rating-option input:checked + span {
    background: var(--amber);
    color: white;
    border-color: var(--amber);
}

.form-actions,
.full-width {
    grid-column: 1 / -1;
}

.admin-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.panel.wide {
    grid-column: 1 / -1;
}

.panel-header {
    margin-bottom: 1rem;
}

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

.result-card {
    overflow: hidden;
    background: #fffaf2;
    border-radius: 24px;
    border: 1px solid rgba(67, 40, 24, 0.08);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.9rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(67, 40, 24, 0.1);
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

@media (max-width: 960px) {
    .login-card,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .brand-copy,
    .hero-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: 1rem;
    }

    .login-page {
        padding: 1rem;
    }

    .topbar {
        width: calc(100% - 1rem);
        margin-top: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .content-shell {
        width: calc(100% - 1rem);
        margin: 1rem auto;
    }

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

.login-page {
    position: relative;
    overflow: hidden;
}

.login-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.55;
    pointer-events: none;
}

.orb-one {
    width: 280px;
    height: 280px;
    top: 4%;
    left: -40px;
    background: radial-gradient(circle, rgba(255, 238, 184, 0.95) 0%, rgba(255, 238, 184, 0) 70%);
}

.orb-two {
    width: 360px;
    height: 360px;
    right: -90px;
    bottom: -40px;
    background: radial-gradient(circle, rgba(255, 171, 103, 0.75) 0%, rgba(255, 171, 103, 0) 72%);
}

.login-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 430px);
    gap: 0;
    align-items: stretch;
    background: rgba(255, 250, 242, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 36px;
    box-shadow: 0 28px 80px rgba(67, 40, 24, 0.2);
    backdrop-filter: blur(18px);
    position: relative;
    z-index: 1;
}

.brand-copy {
    padding: 3rem 2.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 236, 0.92));
}

.hero-panel {
    padding: 2.3rem;
    background: radial-gradient(circle at top left, rgba(255, 242, 196, 0.9) 0%, rgba(255, 242, 196, 0.1) 34%), linear-gradient(145deg, #fff0bf 0%, #ffc661 44%, #e48c34 100%);
}

.hero-copy {
    max-width: 520px;
}

.hero-copy p {
    max-width: 420px;
    color: rgba(67, 40, 24, 0.84);
}

.hero-stage {
    position: relative;
    min-height: 380px;
    margin-top: 1.5rem;
}

.hero-feature {
    position: absolute;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 24px 40px rgba(126, 76, 22, 0.18);
    backdrop-filter: blur(10px);
}

.hero-feature-main {
    inset: 16px 80px 0 0;
    padding: 1.5rem;
}

.hero-feature-float {
    width: 220px;
    right: 0;
    bottom: 0;
    padding: 1rem;
    transform: rotate(-6deg);
}

.hero-ribbon {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.hero-main-image {
    height: 100%;
    max-height: 360px;
    animation: floatUp 5s ease-in-out infinite;
}

.hero-side-image {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.thumb-tile {
    min-height: 88px;
    display: grid;
    place-items: center;
}

.thumb-tile img {
    max-height: 72px;
    object-fit: contain;
}

.login-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(216, 138, 43, 0.12);
    color: var(--amber-dark);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.login-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    margin: 1rem 0 0.75rem;
}

.login-intro {
    margin: 0;
    color: rgba(67, 40, 24, 0.82);
}

.login-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.highlight-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1rem 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(67, 40, 24, 0.08);
}

.highlight-card strong {
    font-size: 0.98rem;
}

.highlight-card span {
    color: rgba(67, 40, 24, 0.72);
    font-size: 0.92rem;
}

.login-form-elevated {
    padding: 1.15rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(67, 40, 24, 0.08);
    box-shadow: 0 18px 36px rgba(67, 40, 24, 0.08);
}

.input-shell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.4rem 0.35rem 1rem;
    border-radius: 999px;
    background: white;
    border: 2px solid rgba(67, 40, 24, 0.12);
    box-shadow: 0 10px 24px rgba(67, 40, 24, 0.06);
}

.input-shell:focus-within {
    border-color: rgba(216, 138, 43, 0.7);
    box-shadow: 0 14px 28px rgba(216, 138, 43, 0.18);
}

.input-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #fff3c3 0%, #ffd175 100%);
    color: var(--amber-dark);
    font-weight: 800;
}

.input-shell input[type="email"] {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0.95rem 0.8rem 0.95rem 0;
}

.input-shell input[type="email"]:focus {
    outline: none;
}

.login-submit {
    margin-top: 0.35rem;
    padding-block: 1rem;
    font-size: 1rem;
    box-shadow: 0 18px 34px rgba(216, 138, 43, 0.34);
}

@keyframes floatUp {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 960px) {
    .hero-stage {
        min-height: 320px;
    }

    .hero-feature-main {
        inset: 0 72px 0 0;
    }
}

@media (max-width: 640px) {
    .hero-ribbon,
    .login-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stage {
        min-height: 260px;
    }

    .hero-feature-main {
        position: relative;
        inset: auto;
    }

    .hero-feature-float {
        width: 140px;
        right: 8px;
        bottom: -12px;
    }

    .brand-copy {
        padding-top: 2.4rem;
    }
}

/* Login image cleanup */
.hero-feature,
.hero-feature-main,
.hero-feature-float {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.hero-main-image,
.hero-side-image,
.thumb-tile,
.thumb-tile img {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* Login redesign */
body.login-page {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 245, 196, 0.95) 0%, rgba(255, 245, 196, 0) 22%),
        radial-gradient(circle at 88% 14%, rgba(255, 188, 113, 0.65) 0%, rgba(255, 188, 113, 0) 20%),
        linear-gradient(135deg, #fffaf2 0%, #ffe8bb 42%, #f0a24d 100%);
}

.login-glow {
    position: fixed;
    border-radius: 999px;
    filter: blur(24px);
    pointer-events: none;
    opacity: 0.6;
}

.login-glow-left {
    top: -80px;
    left: -120px;
    width: 360px;
    height: 360px;
    background: rgba(255, 250, 220, 0.8);
}

.login-glow-right {
    right: -120px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    background: rgba(219, 132, 45, 0.34);
}

.login-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(380px, 480px) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 28px 0;
}

.login-panel {
    background: rgba(255, 252, 246, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(74, 43, 22, 0.18);
    backdrop-filter: blur(14px);
}

.login-panel-inner {
    padding: 42px 38px;
}

.login-kicker {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9c4f0c;
}

.login-heading {
    margin: 0 0 14px;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 0.95;
    color: #3f2413;
}

.login-subcopy {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(63, 36, 19, 0.8);
}

.login-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 26px;
}

.login-meta div {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.login-meta strong {
    font-size: 0.95rem;
    color: #432818;
}

.login-meta span {
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(67, 40, 24, 0.72);
}

.login-form-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 35px rgba(67, 40, 24, 0.08);
}

.field-stack {
    display: grid;
    gap: 10px;
}

.field-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #5c3116;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 8px 14px;
    border-radius: 999px;
    background: #fffdf9;
    border: 1px solid rgba(92, 49, 22, 0.12);
    box-shadow: 0 10px 24px rgba(67, 40, 24, 0.06);
}

.field-row:focus-within {
    border-color: rgba(216, 138, 43, 0.7);
    box-shadow: 0 14px 28px rgba(216, 138, 43, 0.18);
}

.field-prefix {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff0c6 0%, #ffc966 100%);
    color: #9c4f0c;
    font-weight: 800;
}

.field-row input[type="email"] {
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 14px 12px 14px 0;
}

.field-row input[type="email"]:focus {
    outline: none;
}

.login-cta {
    width: 100%;
    padding: 16px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d67f26 0%, #b75a0f 100%);
    box-shadow: 0 18px 32px rgba(183, 90, 15, 0.28);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.login-help {
    margin: 18px 4px 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(67, 40, 24, 0.7);
}

.login-scene {
    position: relative;
    min-height: 760px;
    padding: 36px 16px 24px;
}

.scene-copy {
    max-width: 460px;
    margin-left: auto;
    margin-right: 72px;
}

.scene-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 249, 236, 0.55);
    color: #8c490f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.scene-copy h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.03;
    color: #fffaf2;
    text-shadow: 0 10px 30px rgba(110, 54, 10, 0.24);
}

.scene-canvas {
    position: relative;
    min-height: 620px;
}

.scene-image,
.scene-egg {
    position: absolute;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
}

.scene-primary {
    right: 120px;
    top: 80px;
    width: min(540px, 55vw);
    animation: loginFloat 6s ease-in-out infinite;
}

.scene-secondary {
    left: 40px;
    bottom: 30px;
    width: min(230px, 24vw);
    animation: loginFloatAlt 7s ease-in-out infinite;
}

.scene-egg-1 {
    left: 120px;
    top: 150px;
    width: 120px;
    transform: rotate(-10deg);
}

.scene-egg-2 {
    right: 30px;
    top: 150px;
    width: 126px;
    transform: rotate(8deg);
}

.scene-egg-3 {
    right: 150px;
    bottom: 80px;
    width: 118px;
    transform: rotate(-8deg);
}

.scene-egg-4 {
    left: 300px;
    bottom: 130px;
    width: 110px;
    transform: rotate(10deg);
}

@keyframes loginFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes loginFloatAlt {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

@media (max-width: 1080px) {
    .login-layout {
        grid-template-columns: 1fr;
        width: min(920px, calc(100% - 32px));
        padding: 18px 0 28px;
    }

    .login-panel {
        order: 2;
    }

    .login-scene {
        order: 1;
        min-height: 520px;
        padding: 24px 8px 0;
    }

    .scene-copy {
        margin: 0 auto;
        text-align: center;
    }

    .scene-canvas {
        min-height: 420px;
    }

    .scene-primary {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(480px, 72vw);
    }

    .scene-secondary {
        left: 6%;
        bottom: 10px;
        width: 180px;
    }

    .scene-egg-1 {
        left: 10%;
        top: 120px;
    }

    .scene-egg-2 {
        right: 8%;
        top: 110px;
    }

    .scene-egg-3 {
        right: 20%;
        bottom: 30px;
    }

    .scene-egg-4 {
        left: 22%;
        bottom: 70px;
    }
}

@media (max-width: 680px) {
    .login-layout {
        width: calc(100% - 20px);
        gap: 18px;
        padding: 10px 0 20px;
    }

    .login-panel-inner {
        padding: 28px 22px;
    }

    .login-heading {
        font-size: 2.6rem;
    }

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

    .login-scene {
        min-height: 380px;
    }

    .scene-copy {
        margin-right: auto;
        max-width: 320px;
    }

    .scene-copy h2 {
        font-size: 2.1rem;
        color: #fff6ea;
    }

    .scene-canvas {
        min-height: 280px;
    }

    .scene-primary {
        top: 55px;
        width: min(320px, 74vw);
    }

    .scene-secondary {
        left: 0;
        width: 110px;
    }

    .scene-egg-1,
    .scene-egg-2,
    .scene-egg-3,
    .scene-egg-4 {
        width: 72px;
    }

    .scene-egg-1 {
        top: 95px;
        left: 4%;
    }

    .scene-egg-2 {
        top: 88px;
        right: 2%;
    }

    .scene-egg-3 {
        right: 16%;
        bottom: 16px;
    }

    .scene-egg-4 {
        left: 18%;
        bottom: 28px;
    }
}

@media (max-width: 1080px) {
    .scene-primary {
        animation: none;
    }
}

/* Friendly app redesign */
body.app-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 244, 201, 0.9) 0%, rgba(255, 244, 201, 0) 20%),
        radial-gradient(circle at 90% 0%, rgba(255, 197, 124, 0.5) 0%, rgba(255, 197, 124, 0) 18%),
        linear-gradient(180deg, #fffaf2 0%, #ffeecf 100%);
}

.app-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 36px;
}

.friendly-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 30px;
    border-radius: 32px;
    background: rgba(255, 252, 246, 0.78);
    box-shadow: 0 20px 55px rgba(67, 40, 24, 0.12);
    backdrop-filter: blur(12px);
}

.friendly-hero-copy {
    max-width: 680px;
}

.friendly-hero h1 {
    margin-bottom: 10px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    color: #432818;
}

.friendly-hero p {
    margin: 0;
    max-width: 640px;
    line-height: 1.65;
    color: rgba(67, 40, 24, 0.76);
}

.friendly-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 22px;
}

.summary-card {
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(67, 40, 24, 0.08);
}

.summary-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a45b17;
}

.summary-card strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1.2;
    color: #432818;
}

.summary-card p {
    margin: 8px 0 0;
    color: rgba(67, 40, 24, 0.72);
    line-height: 1.5;
}

.content-shell {
    margin: 0;
}

.flash {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 14px 35px rgba(67, 40, 24, 0.08);
}

.empty-state,
.friendly-panel,
.friendly-vote-card,
.friendly-result-card {
    background: rgba(255, 252, 246, 0.82);
    box-shadow: 0 22px 50px rgba(67, 40, 24, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.vote-form {
    display: grid;
    gap: 18px;
}

.friendly-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.friendly-vote-card,
.friendly-result-card {
    overflow: hidden;
    border-radius: 28px;
}

.vote-media,
.result-media {
    position: relative;
    padding: 14px 14px 0;
}

.vote-card-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.92);
    color: #8c490f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vote-image,
.result-image {
    border-radius: 22px;
    background: linear-gradient(180deg, #fff8ee, #ffe7bd);
}

.vote-card-body,
.result-body,
.panel {
    padding: 18px 20px 22px;
}

.vote-card-body h2,
.result-body h3,
.panel h2 {
    margin-bottom: 10px;
}

.rating-group {
    gap: 10px;
}

.rating-option-pill span {
    width: 3.25rem;
    height: 3.25rem;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(140, 73, 15, 0.12);
    box-shadow: 0 8px 18px rgba(67, 40, 24, 0.06);
}

.vote-submit-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    border-radius: 26px;
    background: rgba(255, 252, 246, 0.92);
    box-shadow: 0 18px 38px rgba(67, 40, 24, 0.08);
}

.vote-submit-bar p {
    margin: 6px 0 0;
    color: rgba(67, 40, 24, 0.72);
}

.admin-layout {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
}

.admin-summary-grid {
    margin-bottom: 22px;
}

.friendly-panel {
    border-radius: 28px;
}

.admin-form label {
    font-weight: 700;
    color: #5c3116;
}

.admin-form button,
.vote-submit-bar button {
    align-self: start;
}

.result-body form {
    margin-top: 14px;
}

.table-wrap {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.74);
}

th {
    background: rgba(255, 245, 224, 0.95);
}

@media (max-width: 980px) {
    .friendly-hero,
    .vote-submit-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .friendly-summary-grid,
    .admin-summary-grid,
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .app-shell {
        width: calc(100% - 20px);
        padding: 14px 0 24px;
    }

    .friendly-hero {
        padding: 22px 20px;
        border-radius: 26px;
    }

    .summary-card,
    .vote-submit-bar,
    .vote-card-body,
    .result-body,
    .panel {
        padding-left: 18px;
        padding-right: 18px;
    }

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

/* Poster style login redesign */
body.login-page {
    margin: 0;
    min-height: 100vh;
    display: block;
    padding: 26px;
    background: linear-gradient(180deg, #f7e7b9 0%, #f5dfaa 100%);
}

.poster-login-shell {
    min-height: calc(100vh - 52px);
    display: grid;
    place-items: center;
}

.poster-login-card {
    width: min(1220px, 100%);
    background: linear-gradient(135deg, #ff7b4f 0%, #ff6c5b 100%);
    border-radius: 0;
    box-shadow: 0 20px 46px rgba(132, 83, 31, 0.24);
    overflow: hidden;
    padding: 28px 34px 0;
    position: relative;
}

.poster-login-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 26%;
    background: linear-gradient(180deg, rgba(117, 76, 19, 0) 0%, rgba(117, 76, 19, 0.08) 100%);
    pointer-events: none;
}

.poster-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: #fff8f1;
}

.poster-logo {
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.poster-nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.poster-nav-links a {
    color: rgba(255, 248, 241, 0.88);
    font-size: 0.92rem;
    font-weight: 600;
}

.poster-nav-links a:first-child {
    color: #ffffff;
}

.poster-nav-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.poster-search-pill {
    width: 104px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    position: relative;
}

.poster-search-pill::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 9px;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(103, 77, 43, 0.7);
    border-radius: 50%;
}

.poster-search-pill::before {
    content: "";
    position: absolute;
    right: 9px;
    top: 18px;
    width: 7px;
    height: 2px;
    background: rgba(103, 77, 43, 0.7);
    transform: rotate(45deg);
}

.poster-tool-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
}

.poster-content {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 24px;
    align-items: end;
    min-height: 600px;
    position: relative;
    z-index: 1;
}

.poster-left {
    padding: 56px 0 72px;
    color: #fff9f2;
}

.poster-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.9;
}

.poster-left h1 {
    margin: 0;
    font-size: clamp(3.4rem, 6vw, 5rem);
    line-height: 0.92;
    color: #fffaf5;
}

.poster-left h2 {
    margin: 6px 0 16px;
    font-size: 2rem;
    line-height: 1;
    color: #fff0db;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 600;
}

.poster-left p {
    max-width: 320px;
    line-height: 1.65;
    color: rgba(255, 244, 235, 0.86);
}

.poster-form {
    display: grid;
    gap: 12px;
    max-width: 318px;
    margin-top: 24px;
}

.poster-form input[type="email"] {
    width: 100%;
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #6b4530;
    box-shadow: inset 0 -2px 0 rgba(255, 112, 69, 0.18);
}

.poster-form input[type="email"]::placeholder {
    color: #bc8b7a;
}

.poster-form input[type="email"]:focus {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 2px;
}

.poster-form-error {
    color: #fff6eb;
    background: rgba(168, 39, 39, 0.28);
    border-radius: 14px;
    padding: 10px 12px;
}

.poster-form-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 2px;
    font-size: 0.82rem;
    color: rgba(255, 245, 236, 0.82);
}

.poster-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.poster-checkbox input {
    accent-color: #7a41e6;
}

.poster-mini-link {
    white-space: nowrap;
    color: rgba(255, 233, 219, 0.78);
}

.poster-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.poster-primary-btn,
.poster-secondary-btn {
    min-width: 96px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
}

.poster-primary-btn {
    background: linear-gradient(135deg, #6f50ff 0%, #5c37e8 100%);
    box-shadow: none;
}

.poster-secondary-btn {
    border: 1px solid rgba(255, 246, 239, 0.75);
    color: #fff7ef;
}

.poster-help {
    margin-top: 18px;
    font-size: 0.88rem;
    color: rgba(255, 239, 229, 0.82);
}

.poster-right {
    position: relative;
    min-height: 540px;
}

.poster-support,
.poster-hero,
.poster-egg {
    position: absolute;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
}

.poster-support {
    width: min(360px, 34vw);
    right: 170px;
    top: 54px;
    opacity: 0.26;
}

.poster-hero {
    width: min(390px, 38vw);
    right: 150px;
    bottom: 84px;
    z-index: 3;
}

.poster-ground {
    position: absolute;
    left: 40px;
    right: 20px;
    bottom: 0;
    height: 120px;
    border-radius: 120px 120px 0 0;
    background: linear-gradient(180deg, #7d8c47 0%, #576d2d 100%);
}

.poster-ground::before,
.poster-ground::after {
    content: "";
    position: absolute;
    bottom: 84px;
    width: 96px;
    height: 44px;
    border-radius: 44px 44px 0 0;
    background: rgba(255, 214, 182, 0.4);
}

.poster-ground::before {
    left: 90px;
}

.poster-ground::after {
    right: 110px;
}

.poster-egg-1 {
    width: 132px;
    left: 110px;
    bottom: 58px;
    z-index: 2;
}

.poster-egg-2 {
    width: 122px;
    left: 240px;
    bottom: 86px;
    z-index: 2;
}

.poster-egg-3 {
    width: 126px;
    right: 120px;
    bottom: 60px;
    z-index: 2;
}

.poster-egg-4 {
    width: 112px;
    right: 40px;
    bottom: 92px;
    z-index: 2;
}

@media (max-width: 1080px) {
    .poster-login-card {
        padding: 24px 24px 0;
    }

    .poster-nav {
        flex-wrap: wrap;
    }

    .poster-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .poster-left {
        padding: 34px 0 12px;
        max-width: 480px;
    }

    .poster-left p,
    .poster-form {
        max-width: 100%;
    }

    .poster-right {
        min-height: 460px;
    }

    .poster-support {
        right: 50%;
        top: 10px;
        transform: translateX(50%);
    }

    .poster-hero {
        right: 50%;
        transform: translateX(50%);
        bottom: 72px;
    }

    .poster-egg-1 {
        left: 8%;
    }

    .poster-egg-2 {
        left: 26%;
    }

    .poster-egg-3 {
        right: 18%;
    }

    .poster-egg-4 {
        right: 4%;
    }
}

@media (max-width: 760px) {
    body.login-page {
        padding: 12px;
    }

    .poster-login-shell {
        min-height: calc(100vh - 24px);
    }

    .poster-login-card {
        padding: 18px 18px 0;
    }

    .poster-nav-links,
    .poster-nav-tools {
        display: none;
    }

    .poster-left {
        padding-top: 18px;
    }

    .poster-left h1 {
        font-size: 3rem;
    }

    .poster-left h2 {
        font-size: 1.45rem;
    }

    .poster-form-row,
    .poster-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .poster-primary-btn,
    .poster-secondary-btn {
        width: 100%;
    }

    .poster-right {
        min-height: 320px;
    }

    .poster-support {
        width: 210px;
        top: 6px;
    }

    .poster-hero {
        width: 210px;
        bottom: 54px;
    }

    .poster-ground {
        left: 0;
        right: 0;
        height: 92px;
    }

    .poster-ground::before,
    .poster-ground::after {
        display: none;
    }

    .poster-egg-1,
    .poster-egg-2,
    .poster-egg-3,
    .poster-egg-4 {
        width: 72px;
    }

    .poster-egg-1 {
        left: 2%;
        bottom: 48px;
    }

    .poster-egg-2 {
        left: 24%;
        bottom: 74px;
    }

    .poster-egg-3 {
        right: 16%;
        bottom: 54px;
    }

    .poster-egg-4 {
        right: 1%;
        bottom: 78px;
    }
}

.poster-form-success {
    color: #fffdf8;
    background: rgba(58, 128, 58, 0.28);
    border-radius: 14px;
    padding: 10px 12px;
}

.login-success-card {
    display: grid;
    gap: 12px;
    max-width: 340px;
    margin-top: 28px;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 248, 239, 0.2);
    border: 1px solid rgba(255, 246, 239, 0.32);
    backdrop-filter: blur(10px);
}

.login-success-card h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #fffaf5;
    word-break: break-word;
}

.login-success-card p {
    margin: 0;
    color: rgba(255, 244, 235, 0.9);
    line-height: 1.6;
}

.login-success-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff6eb;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-success-note {
    font-size: 0.9rem;
}

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

.friendly-hero-media {
    width: min(360px, 100%);
    align-self: center;
}
