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

:root {
    --ink: #133252;
    --ink-soft: #536b83;
    --brand: #ff6b00;
    --brand-dark: #ed5900;
    --brand-soft: #fff0e4;
    --sky: #eff8fc;
    --line: #dce8ef;
    --surface: #ffffff;
    --shadow: 0 18px 50px rgba(24, 58, 86, .11);
}

* { box-sizing: border-box; }
.bot-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; background: #fff; }
a { color: inherit; }
.container { max-width: 1240px; }

.site-header { z-index: 100; background: rgba(255,255,255,.96); box-shadow: 0 1px 0 rgba(19,50,82,.07); backdrop-filter: blur(12px); }
.navbar, .main-navbar { min-height: 72px; }
.main-navbar-inner, .site-nav, .site-nav-links, .site-nav-account { display: flex; align-items: center; }
.main-navbar-inner { min-height: 72px; justify-content: space-between; gap: 28px; }
.site-nav { min-width: 0; gap: clamp(20px, 3vw, 42px); }
.site-nav-links, .site-nav-account { gap: 18px; }
.site-nav-account { flex: 0 0 auto; }
.mobile-nav-toggle, .mobile-nav-backdrop { display: none; }
.header-logout-form { margin: 0; }
.header-logout { padding: .5rem 0; border: 0; background: transparent; }
.header-create { white-space: nowrap; }
.header-create.btn-brand { color: #fff; }
.header-create.btn-brand:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.65rem; font-weight: 800; letter-spacing: -.05em; }
.brand small { color: #617a91; font-size: .78em; font-weight: 500; }
.brand-mark { display: flex; align-items: end; justify-content: center; gap: 3px; width: 38px; height: 38px; padding: 8px; border-radius: 8px; background: var(--brand); box-shadow: 0 8px 18px rgba(255,107,0,.22); }
.brand-mark i { display: block; width: 4px; border-radius: 2px; background: #fff; }
.brand-mark i:nth-child(1) { height: 10px; }.brand-mark i:nth-child(2) { height: 16px; }.brand-mark i:nth-child(3) { height: 22px; }
.nav-link { color: var(--ink-soft); font-size: .91rem; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--brand) !important; }
.btn { border-radius: 8px; font-weight: 700; transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.btn-brand { border-color: var(--brand); background: linear-gradient(135deg, #ff7b13, var(--brand)); color: #fff; box-shadow: 0 9px 20px rgba(255,107,0,.19); }
.btn-brand:hover { border-color: #d3e0e7; background: #fff; color: var(--ink); box-shadow: 0 9px 22px rgba(19,50,82,.16); }
.btn-brand:focus-visible { border-color: var(--brand-dark); background: linear-gradient(135deg, #ff7b13, var(--brand)); color: #fff; box-shadow: 0 0 0 .25rem rgba(255,107,0,.22); }
.btn-soft { border: 0; background: #edf4f8; color: var(--ink); }
.btn-soft:hover { background: #e4eef3; color: #0d2a46; }
.btn-outline-brand { border-color: #cddce5; color: var(--ink); }
.btn-outline-brand:hover { border-color: #b9ccd7; background: #f5f9fb; color: var(--ink); }

.hero { position: relative; padding: 66px 0 60px; background: radial-gradient(circle at 23% 20%, #fff 0, rgba(255,255,255,.66) 22%, transparent 44%), linear-gradient(135deg, #eaf7fc 0%, #f8fbfc 54%, #fff2e8 100%); }
.hero .container { z-index: 1; }
.hero-orb { position: absolute; border-radius: 50%; border: 24px solid rgba(255, 135, 43, .14); }
.hero-orb-one { width: 150px; height: 150px; left: -78px; top: -52px; }
.hero-orb-two { width: 340px; height: 340px; right: -220px; bottom: -170px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: .77rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--ink); font-size: clamp(2.6rem, 5vw, 4.45rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.04; }
.hero h1 span, .section-heading span, .final-cta h2 span { color: var(--brand); }
.hero-lead { max-width: 590px; margin: 24px 0 34px; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; }
.benefit-list strong, .benefit-list small { display: block; }
.benefit-list strong { margin: 9px 0 5px; font-size: .96rem; }
.benefit-list small { color: var(--ink-soft); font-size: .78rem; line-height: 1.45; }
.benefit-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: #ffeadc; color: var(--brand); font-size: 1.55rem; font-weight: 700; }

.quick-poll-card { position: relative; max-width: 520px; margin-left: auto; padding: 27px; border: 1px solid rgba(255,255,255,.8); border-radius: 15px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); }
.form-label { color: var(--ink); font-size: .86rem; font-weight: 700; }
.form-control, .form-select { border-color: #d6e2e9; color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: #ff9d58; box-shadow: 0 0 0 .2rem rgba(255,107,0,.12); }
.answer-list { display: grid; gap: 8px; }
.answer-row { display: flex; align-items: stretch; border: 1px solid #d7e3ea; border-radius: 7px; background: #fff; overflow: hidden; transition: opacity .15s ease, box-shadow .15s ease; }
.answer-row:focus-within { border-color: #ff9d58; box-shadow: 0 0 0 .2rem rgba(255,107,0,.1); }
.answer-row .form-control { border: 0; box-shadow: none; }
.answer-row.is-dragging { opacity: .55; box-shadow: 0 8px 25px rgba(26,62,87,.18); }
.answer-fields { min-width: 0; flex: 1; }
.drag-dot { width: 40px; flex: 0 0 40px; border: 0; border-right: 1px solid #edf2f5; background: #f9fbfc; color: #90a6b8; font-size: 1rem; cursor: grab !important; touch-action: none; transition: background .15s ease, color .15s ease; }
.drag-dot:hover, .drag-dot:focus-visible { background: #edf5f7; color: var(--brand); cursor: grab !important; outline: 0; }
.drag-dot:active, .answer-row.is-dragging .drag-dot { cursor: grabbing !important; }
.option-image-button { display: inline-flex; margin: 0 10px 9px; color: #526d84; cursor: pointer; font-size: .75rem; font-weight: 700; }
.option-image-button:hover { color: var(--brand); }
.option-image-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.option-image-preview { display: flex; align-items: center; gap: 10px; padding: 0 10px 10px; }
.option-image-preview[hidden] { display: none; }
.option-image-preview img { width: 76px; height: 54px; border-radius: 7px; object-fit: cover; background: #edf3f6; }
.remove-option-image { padding: 0; border: 0; background: transparent; color: #a33b3b; font-size: .72rem; font-weight: 700; }
.remove-answer { width: 38px; border: 0; background: transparent; color: #8197a9; font-size: 1.2rem; }
.remove-answer:hover { background: #fff3f3; color: #c93434; }
.remove-answer:disabled { opacity: .25; }
.editor-link { margin-top: 9px; text-align: center; }
.editor-link .btn-link { padding: 2px; color: #526d84; font-size: .8rem; font-weight: 600; text-decoration: none; }
.editor-link .btn-link:hover { color: var(--brand); }

.section { padding: 56px 0; }
.section-tint { background: #f5fafc; }
.section-heading { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.section-heading h2 { margin-bottom: 8px; font-size: clamp(1.85rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--ink-soft); }
.step-card { position: relative; min-height: 245px; padding: 28px 28px 25px 84px; border: 1px solid #edf2f5; border-radius: 12px; background: #fff; box-shadow: 0 10px 34px rgba(28,72,103,.08); }
.step-number { position: absolute; top: 24px; left: 23px; display: grid; width: 43px; height: 43px; place-items: center; border-radius: 50%; background: var(--brand); color: white; font-size: 1.25rem; font-weight: 800; }
.step-card h3, .use-card h3 { font-size: 1rem; font-weight: 800; }
.step-card p { min-height: 65px; color: var(--ink-soft); font-size: .88rem; line-height: 1.5; }
.mini-question { display: grid; gap: 8px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; }
.mini-question i { display: block; width: 78%; height: 9px; border-radius: 9px; background: #dfe9ef; }.mini-question i:nth-child(2){width:92%}.mini-question i:nth-child(3){width:61%}
.sample-link { margin-top: 22px; padding: 15px; border-radius: 8px; background: #edf5fa; font-weight: 700; }.sample-link span{float:right}
.mini-chart { display: flex; height: 70px; align-items: end; gap: 8px; padding-top: 8px; border-bottom: 1px solid #cbdbe5; }.mini-chart i{width:18px;background:#ffad77}.mini-chart i:nth-child(1){height:20%}.mini-chart i:nth-child(2){height:36%}.mini-chart i:nth-child(3){height:56%;background:var(--brand)}.mini-chart i:nth-child(4){height:72%;background:#718aa0}.mini-chart i:nth-child(5){height:95%;background:var(--ink)}

.use-grid, .type-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.use-card, .type-card { overflow: hidden; border: 1px solid #e6eef3; border-radius: 10px; background: white; box-shadow: 0 10px 28px rgba(28,72,103,.07); }
.use-visual { display: grid; height: 105px; place-items: center; background: linear-gradient(145deg, #d8eaf2, #748fa3); }
.use-visual span { display: grid; width: 48px; height: 48px; place-items: center; border: 4px solid rgba(255,255,255,.85); border-radius: 50%; background: white; color: var(--brand); font-size: 1.35rem; }
.use-card h3 { margin: 18px 15px 6px; text-align: center; }
.use-card p { margin: 0 13px 20px; color: var(--ink-soft); font-size: .75rem; line-height: 1.5; text-align: center; }
.type-card { min-height: 200px; padding: 19px; }
.type-card strong, .type-card label { display: block; }
.type-card strong { font-size: .88rem; }.type-card p{min-height:36px;color:var(--ink-soft);font-size:.72rem}.type-card label{margin:7px 0;color:#5b7287;font-size:.76rem}
.type-card input { accent-color: var(--brand); }
.choice-buttons { display: flex; gap: 8px; margin-top: 26px; }.choice-buttons span{flex:1;padding:10px;border-radius:5px;background:#e9f1f5;text-align:center;font-size:.8rem;font-weight:700}.choice-buttons span:first-child{background:#2eaa5d;color:#fff}
.stars { color: var(--brand); font-size: 1.4rem; white-space: nowrap; }.stars i{color:#d6e0e6;font-style:normal}
.image-options { display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.image-options i{display:grid;height:45px;place-items:center;border:1px solid var(--line);border-radius:5px;color:#617b90;font-style:normal}.image-options .selected{border:2px solid var(--brand);background:#fff7f1}
.fake-textarea { height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: #a1b1bd; font-size: .72rem; }

.survey-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.survey-flow article { display: flex; min-height: 185px; flex-direction: column; padding: 19px; border: 1px solid #e4edf2; border-radius: 10px; background: white; box-shadow: 0 8px 25px rgba(28,72,103,.07); }
.survey-flow article small { margin-bottom: 6px; }.survey-flow article strong{font-size:.78rem}.survey-flow article label{color:#61788d;font-size:.72rem}.survey-flow b{font-size:1.8rem;color:#526f86}
.flow-options { display:flex;gap:7px;margin:18px 0}.flow-options i{display:grid;flex:1;height:48px;place-items:center;border:1px solid var(--line);border-radius:5px;font-style:normal}.flow-options i:nth-child(2){border:2px solid var(--brand)}
.flow-button { align-self: end; margin-top: auto; padding: 8px 24px; border-radius: 5px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; }
.result-bar { height: 9px; margin: 4px 0 13px; border-radius: 9px; background: #e4edf2; overflow:hidden}.result-bar i{display:block;height:100%;background:var(--brand)}

.final-cta { padding: 48px 0; background: linear-gradient(120deg, rgba(11,35,56,.98), rgba(28,55,76,.9)), radial-gradient(circle at right, #718292, #152d41); color: white; }
.final-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.final-cta h2 { margin:0 0 8px;font-size:clamp(1.8rem,3vw,2.6rem);font-weight:800;letter-spacing:-.04em}.final-cta p{margin:0;color:#dbe4ea}.final-cta small{display:block;margin-top:12px;color:#dbe4ea;font-size:.75rem}
.site-footer { padding: 25px 0; background: #0d253a; color: #b7c6d1; font-size: .8rem; }.site-footer nav{display:flex;gap:20px}.site-footer a{text-decoration:none}.site-footer a:hover{color:#fff}
.danger-zone { border-color: #efc7c7; background: #fffafa; }
.danger-zone .eyebrow { color: #a52b2b; }
.delete-confirmation-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 12px; align-items: center; }
.legal-container { max-width: 850px; }
.legal-container > h1 { margin-bottom: 6px; }
.legal-updated { margin-bottom: 32px; color: var(--ink-soft); }
.legal-container section { margin-top: 28px; }
.legal-container section h2 { margin-bottom: 10px; font-size: 1.25rem; }
.legal-container section p, .legal-container section li { color: #47637b; line-height: 1.75; }
.legal-container section li + li { margin-top: 7px; }
.legal-operator { display: grid; gap: 4px; margin-top: 38px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #f7fafc; }
.legal-operator a, .contact-email { color: var(--brand-dark); font-weight: 700; }
.contact-card { padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.contact-container { max-width: 1050px; }
.contact-lead { max-width: 720px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 24px; align-items: start; }
.legal-container .contact-form-card { padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.contact-form-card textarea { min-height: 180px; resize: vertical; }
.contact-form-card .btn { min-width: 190px; }
.contact-counter { display: flex; justify-content: space-between; margin-top: 7px; color: #8094a3; font-size: .72rem; }
.contact-privacy { display: inline-block; margin: 0 0 0 14px; color: #718797; font-size: .75rem; vertical-align: middle; }
.contact-privacy a { color: var(--brand-dark); }
.contact-aside { display: grid; gap: 18px; margin-top: 28px; }
.contact-aside > div { padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: #f7fafc; }
.contact-aside h2 { margin: 12px 0 8px; font-size: 1.05rem; }
.contact-aside p { margin: 0; color: #5d7486; font-size: .83rem; line-height: 1.65; }
.contact-aside-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 1.1rem; font-weight: 800; }
.contact-operator { display: grid; gap: 5px; }
.contact-operator small { margin-bottom: 3px; color: #8496a3; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-operator strong { color: var(--ink); font-size: .9rem; }
.contact-operator span, .contact-operator a { color: #657d8e; font-size: .78rem; line-height: 1.5; }
.contact-operator a { margin-top: 5px; color: var(--brand-dark); font-weight: 700; }
.privacy-note a { color: inherit; font-weight: 700; }

/* Full editor */
.editor-page { background: #f3f7f9; }
.save-state { color: #71889a; font-size: .78rem; }
.editor-shell { display: grid; min-height: calc(100vh - 72px); grid-template-columns: 220px minmax(0, 1fr); }
.editor-sidebar { padding: 30px 20px; border-right: 1px solid #dce7ed; background: #fff; }
.sidebar-title { margin: 0 12px 15px; color: #8ba0af; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.editor-sidebar nav { display: grid; gap: 6px; }.editor-sidebar nav a{display:flex;gap:12px;padding:11px 13px;border-radius:7px;color:#5a7286;font-size:.86rem;font-weight:600;text-decoration:none}.editor-sidebar nav a:hover,.editor-sidebar nav a.active{background:var(--brand-soft);color:var(--brand-dark)}
.sidebar-tip { margin-top: 34px; padding: 15px; border-radius: 9px; background: #eff7fa; }.sidebar-tip strong{font-size:.78rem}.sidebar-tip p{margin:6px 0 0;color:#6e8495;font-size:.7rem;line-height:1.5}
.editor-workspace { min-width: 0; }.editor-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 5vw;border-bottom:1px solid #dce7ed;background:#fff}.editor-topbar h1{margin:0;font-size:1.8rem;font-weight:800;letter-spacing:-.04em}
.editor-topbar > div:last-child { flex-wrap: wrap; }
.editor-content { max-width: 850px; margin: 0 auto; padding: 38px 25px 80px; }
.question-card { padding: 28px; border: 1px solid #dfe8ed; border-radius: 13px; background: #fff; box-shadow: 0 10px 35px rgba(27,62,88,.07); }
#questionList { display: grid; gap: 18px; }
.question-card-head { display:flex;align-items:center;gap:12px;margin-bottom:28px;padding-bottom:18px;border-bottom:1px solid #edf2f5}.question-card-head>div{display:flex;flex-direction:column}.question-card-head small{color:#8396a5;font-size:.7rem}.question-order{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:var(--brand);color:#fff;font-weight:800}.plain-button{margin-left:auto;border:0;background:transparent;color:#708697;font-size:1.1rem}
.question-settings { margin-top: 24px; padding-top: 17px; border-top: 1px solid #e6edf1; }.question-settings summary{cursor:pointer;color:#536e82;font-size:.8rem;font-weight:700}
.add-question-card { display:flex;width:100%;min-height:115px;margin-top:18px;align-items:center;justify-content:center;flex-direction:column;border:2px dashed #cbdbe4;border-radius:12px;background:rgba(255,255,255,.5);color:#5b7487}.add-question-card span{color:var(--brand);font-size:1.5rem}.add-question-card strong{font-size:.87rem}.add-question-card small{color:#8da0ae;font-size:.7rem}.add-question-card:hover{border-color:var(--brand);background:#fffaf6}
.add-question-card:disabled { cursor: not-allowed; opacity: .65; }
.add-question-card:disabled:hover { border-color: #cbdbe4; background: rgba(255,255,255,.5); }
.editor-settings-card { margin-top: 28px; padding: 28px; border: 1px solid #dfe8ed; border-radius: 13px; background: #fff; box-shadow: 0 10px 35px rgba(27,62,88,.07); }
.editor-bottom-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 18px 20px; border: 1px solid #d9e5eb; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(25,62,88,.1); }
.editor-bottom-actions > span { color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.editor-bottom-actions > div { display: flex; gap: 10px; }
.settings-heading { display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid #e9eff3}.settings-heading h2{margin:0;font-size:1.2rem;font-weight:800}.settings-heading>span{padding:5px 9px;border-radius:20px;background:#eef4f7;color:var(--ink-soft);font-size:.65rem;font-weight:700}.form-help{display:block;margin-top:6px;color:#8396a5;font-size:.68rem}
.settings-checks { display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.settings-checks label{display:flex;gap:10px;padding:14px;border:1px solid #dfe8ed;border-radius:9px;cursor:pointer}.settings-checks input[type=checkbox]{margin-top:3px;accent-color:var(--brand)}.settings-checks span{display:flex;flex-direction:column}.settings-checks strong{font-size:.78rem}.settings-checks small{margin-top:4px;color:var(--ink-soft);font-size:.66rem;line-height:1.4}
.theme-picker-intro { margin: -5px 0 20px; color: var(--ink-soft); font-size: .78rem; }
.theme-group-heading { display: flex; margin: 20px 0 9px; align-items: baseline; justify-content: space-between; gap: 12px; }
.theme-group-heading strong { font-size: .76rem; }.theme-group-heading span{color:var(--ink-soft);font-size:.64rem}
.theme-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.theme-choice { position: relative; display: block; padding: 8px 8px 12px; border: 2px solid #dfe8ed; border-radius: 11px; background: #fff; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.theme-choice:hover { border-color: #bdced8; transform: translateY(-1px); }
.theme-choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,107,0,.1); }
.theme-choice:has(input:focus-visible) { outline: 3px solid rgba(255,107,0,.2); outline-offset: 2px; }
.theme-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-preview { position: relative; display: block; height: 104px; overflow: hidden; border-radius: 7px; background: linear-gradient(145deg, #f1f8fb, #fff8f2); }
.theme-preview i { position: absolute; inset: 18px 23px; border-radius: 7px; background: #fff; box-shadow: 0 7px 18px rgba(25,62,88,.15); }
.theme-preview b { position: absolute; left: 36px; right: 55px; top: 36px; height: 7px; border-radius: 8px; background: #153653; }
.theme-preview b + b { top: 51px; right: 74px; height: 5px; background: #9cafbc; }
.theme-preview em { position: absolute; left: 36px; right: 36px; bottom: 29px; height: 13px; border-radius: 4px; background: #ff6b00; }
.theme-choice-midnight .theme-preview { background: radial-gradient(circle at 80% 5%, #28557a, transparent 42%), #071826; }
.theme-choice-midnight .theme-preview i { background: #102b3f; box-shadow: 0 9px 22px rgba(0,0,0,.35); }
.theme-choice-midnight .theme-preview b { background: #edf8ff; }.theme-choice-midnight .theme-preview b + b{background:#7893a7}.theme-choice-midnight .theme-preview em{background:#38d5c3}
.theme-choice-sunrise .theme-preview { background: url('/assets/images/theme-sunrise.svg') center/cover; }
.theme-choice-sunrise .theme-preview i { background: rgba(255,255,255,.84); }.theme-choice-sunrise .theme-preview b{background:#412f45}.theme-choice-sunrise .theme-preview b + b{background:#9a7780}.theme-choice-sunrise .theme-preview em{background:#e8593f}
.theme-choice-aurora .theme-preview { background: linear-gradient(135deg,#071b34,#5745a0 48%,#20bca5); }
.theme-choice-aurora .theme-preview i { background:rgba(8,26,50,.76);box-shadow:0 9px 22px rgba(0,0,0,.3)}.theme-choice-aurora .theme-preview b{background:#f2f5ff}.theme-choice-aurora .theme-preview b+b{background:#aab5d3}.theme-choice-aurora .theme-preview em{background:#82f1cf}
.theme-choice-editorial .theme-preview { background: repeating-linear-gradient(90deg,#efe8dc 0,#efe8dc 1px,#f8f4ec 1px,#f8f4ec 23px); }
.theme-choice-editorial .theme-preview i { border:1px solid #29241f;border-radius:0;background:#fffdf8;box-shadow:7px 7px 0 #b94938}.theme-choice-editorial .theme-preview b{border-radius:0;background:#29241f}.theme-choice-editorial .theme-preview b+b{background:#806f61}.theme-choice-editorial .theme-preview em{border-radius:0;background:#b94938}
.theme-choice-celebration .theme-preview { background:radial-gradient(circle at 15% 20%,#ffce4d 0 8%,transparent 9%),radial-gradient(circle at 88% 70%,#6f63e7 0 12%,transparent 13%),linear-gradient(135deg,#ffeff5,#ecfbff); }
.theme-choice-celebration .theme-preview i{border-radius:15px;background:rgba(255,255,255,.92)}.theme-choice-celebration .theme-preview b{background:#352f68}.theme-choice-celebration .theme-preview b+b{background:#8b83b1}.theme-choice-celebration .theme-preview em{border-radius:10px;background:#ee4f7c}
.theme-choice-copy { display: flex; margin: 10px 3px 0; flex-direction: column; }
.theme-choice-copy strong { font-size: .78rem; }.theme-choice-copy small{margin-top:2px;color:var(--ink-soft);font-size:.65rem}
.theme-premium-badge { display:inline-block;margin-left:7px;padding:3px 6px;border-radius:10px;background:#fff1e6;color:var(--brand-dark);font-size:.54rem;line-height:1;font-weight:800;vertical-align:1px }
.theme-choice.is-premium-locked:not(:has(input:checked)) { background:#fbfcfd; }
.theme-choice.is-premium-locked:not(:has(input:checked)) .theme-preview { opacity:.78; }
.theme-premium-note { margin:11px 0 0;color:var(--ink-soft);font-size:.69rem }
.theme-check { position: absolute; right: 13px; bottom: 14px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: .68rem; font-weight: 800; opacity: 0; transform: scale(.7); transition: opacity .16s ease, transform .16s ease; }
.theme-choice:has(input:checked) .theme-check { opacity: 1; transform: scale(1); }
.theme-settings-block { margin-top: 5px; padding-top: 22px; border-top: 1px solid #e9eff3; }.theme-settings-block h3{margin:0;font-size:.9rem;font-weight:800}
.appearance-customizer { margin-top:22px;padding:20px;border:1px solid #dfe8ed;border-radius:11px;background:#f9fbfc }
.appearance-customizer-head { display:flex;margin-bottom:16px;align-items:center;justify-content:space-between;gap:12px }.appearance-customizer-head>div{display:flex;flex-direction:column}.appearance-customizer-head strong{font-size:.85rem}.appearance-customizer-head small{margin-top:2px;color:var(--ink-soft);font-size:.65rem}.appearance-customizer-head>span{padding:4px 8px;border-radius:12px;background:#fff1e6;color:var(--brand-dark);font-size:.58rem;font-weight:800}
.appearance-customizer.is-locked { background:#f5f7f8 }.appearance-customizer.is-locked .row{opacity:.58}.appearance-lock-note{margin:-5px 0 16px;color:var(--ink-soft);font-size:.7rem}
.accent-control{display:flex;height:38px;align-items:center;gap:10px}.accent-control input[type=checkbox]{width:18px;height:18px;accent-color:var(--brand)}.accent-control input[type=color]{width:64px;height:38px;padding:3px;border:1px solid #ced9df;border-radius:7px;background:#fff}

/* Poll creation, voting and result pages */
.app-page, .vote-page { min-height: 100vh; background: var(--poll-page-background, linear-gradient(145deg, #f1f8fb, #fff8f2)); }
.app-main { padding: 55px 0 80px; }
.narrow-container { max-width: 760px; }
.manage-container { max-width: 980px; }
.app-main h1, .vote-main h1 { font-weight: 800; letter-spacing: -.04em; }
.page-lead { color: var(--ink-soft); }
.success-mark { display: grid; width: 70px; height: 70px; margin: 0 auto 22px; place-items: center; border-radius: 50%; background: #e6f8ec; color: #249e52; font-size: 2rem; font-weight: 800; }
.success-mark.muted { background: var(--brand-soft); color: var(--brand); }
.link-card, .manage-card { margin-bottom: 18px; padding: 25px; border: 1px solid #e0e9ee; border-radius: 13px; background: #fff; box-shadow: 0 10px 34px rgba(25,62,88,.07); }
.manage-question-editor .question-card { background: #fbfdfe; box-shadow: none; }
.link-card label, .link-card h2, .manage-card h2 { display: block; margin-bottom: 10px; font-size: 1rem; font-weight: 800; }
.link-card p { color: var(--ink-soft); font-size: .83rem; }
.link-card > a { display: inline-block; margin-top: 13px; color: var(--brand-dark); font-size: .82rem; font-weight: 700; text-decoration: none; }
.copy-row { display: flex; gap: 9px; }
.copy-row .form-control { min-width: 0; background: #f8fbfc; }
.copy-row .btn { flex: 0 0 auto; }
.admin-link-card { border-left: 4px solid var(--ink); }
.secure-badge { display: inline-block; margin-bottom: 10px; padding: 5px 9px; border-radius: 20px; background: #eaf1f5; color: var(--ink); font-size: .65rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.vote-header { position:relative;display: flex; min-height: 82px; padding:0 max(20px,calc((100vw - 1180px)/2));align-items: center; justify-content: center; }
.vote-header .brand { text-decoration: none; }
.poll-owner-edit { position:absolute;right:max(20px,calc((100vw - 1180px)/2));display:inline-flex;min-height:38px;padding:8px 13px;align-items:center;border:1px solid color-mix(in srgb,var(--ink) 18%,transparent);border-radius:9px;background:color-mix(in srgb,var(--poll-surface,#fff) 82%,transparent);color:var(--ink);font-size:.73rem;font-weight:800;text-decoration:none;box-shadow:0 7px 20px rgba(12,43,61,.08);backdrop-filter:blur(8px);transition:transform .16s ease,background .16s ease,color .16s ease}
.poll-owner-edit:hover{background:#fff;color:#123653;transform:translateY(-1px)}
.vote-main { display: flex; padding: 25px 16px 70px; justify-content: center; }
.vote-shell { width: 100%; max-width: 620px; padding: 36px; border: 1px solid var(--poll-shell-border, rgba(222,233,239,.9)); border-radius: var(--poll-shell-radius, 16px); background: var(--poll-surface, #fff); box-shadow: var(--poll-shell-shadow, var(--shadow)); }
.poll-meta { margin: 0 0 8px; color: var(--brand); font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.vote-shell h1 { margin-bottom: 9px; font-size: clamp(1.7rem, 5vw, 2.35rem); }
.vote-hint { margin-bottom: 25px; color: var(--ink-soft); }
.vote-form fieldset { display: grid; gap: 10px; }
.poll-progress { margin-bottom: 25px; }.poll-progress span{display:block;margin-bottom:8px;color:var(--ink-soft);font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.poll-progress>div{height:5px;overflow:hidden;border-radius:5px;background:#e7eff3}.poll-progress i{display:block;height:100%;border-radius:inherit;background:var(--brand);transition:width .2s ease}
.vote-option { display: flex; min-height: 57px; align-items: center; gap: 13px; padding: 13px 16px; border: 1px solid #dbe6ec; border-radius: 9px; color: var(--ink); cursor: pointer; font-weight: 600; transition: border-color .15s ease, background-color .15s ease; }
.vote-option:hover { border-color: #ffaf75; background: #fffaf6; }
.vote-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.vote-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-ui { display: block; width: 19px; height: 19px; flex: 0 0 19px; border: 2px solid #a9bac6; border-radius: 50%; background: white; }
.vote-option input:checked + .radio-ui { border: 5px solid var(--brand); }
.vote-option input:focus-visible + .radio-ui { outline: 3px solid rgba(255,107,0,.2); outline-offset: 2px; }
.option-media { width: 104px; height: 72px; flex: 0 0 104px; border-radius: 7px; object-fit: cover; background: #eaf0f3; }
[data-media-viewer] { cursor: zoom-in; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
[data-media-viewer]:hover { transform: scale(1.025); box-shadow: 0 7px 20px rgba(14,47,66,.18); opacity: .94; }
[data-media-viewer]:focus-visible { outline: 3px solid rgba(21,117,124,.35); outline-offset: 3px; }
.media-viewer-open { overflow: hidden; }
.media-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 24px; border: 0; background: rgba(4,19,29,.92); color: #fff; }
.media-lightbox[open] { display: grid; place-items: center; }
.media-lightbox::backdrop { background: transparent; }
.media-lightbox-content { position: relative; display: grid; width: min(1200px, 100%); height: min(900px, calc(100dvh - 48px)); place-items: center; }
.media-lightbox figure { display: grid; max-width: 100%; max-height: 100%; margin: 0; gap: 14px; place-items: center; }
.media-lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 115px); border-radius: 12px; object-fit: contain; box-shadow: 0 24px 70px rgba(0,0,0,.48); }
.media-lightbox figcaption { max-width: min(760px, 90vw); overflow: hidden; color: rgba(255,255,255,.88); font-size: .95rem; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.media-lightbox-close { position: fixed; z-index: 1; top: 18px; right: 22px; display: grid; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(4,19,29,.68); color: #fff; font-size: 2rem; line-height: 1; place-items: center; transition: background .18s ease, color .18s ease, transform .18s ease; }
.media-lightbox-close:hover, .media-lightbox-close:focus-visible { background: #fff; color: #102f42; transform: scale(1.05); outline: 0; }
.option-label { min-width: 0; flex: 1; }
.check-ui { display:grid;width:20px;height:20px;place-items:center;flex:0 0 20px;border:2px solid #a9bac6;border-radius:4px;background:#fff;color:transparent;font-size:.7rem }
.vote-option input:checked + .check-ui { border-color:var(--brand);background:var(--brand);color:#fff }
.vote-text { min-height: 145px; padding: 15px; }
.vote-date { max-width: 360px; }
.ranking-input { display: grid; gap: 10px; }
.ranking-input label, .ranking-preview { display: flex; min-height: 58px; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid #dbe6ec; border-radius: 9px; background: #fff; }
.ranking-input label > span, .ranking-preview span { flex: 1; font-weight: 700; }
.ranking-input .form-select { width: 115px; }
.ranking-preview b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); }
.rating-input { display:flex;justify-content:center;gap:12px;padding:18px 0 }.rating-input label{cursor:pointer;text-align:center}.rating-input input,.scale-input input{position:absolute;opacity:0}.rating-input span{display:block;color:#d6e0e6;font-size:2.4rem;line-height:1;transition:color .15s ease,transform .15s ease}.rating-input small{display:block;margin-top:7px;color:var(--ink-soft)}
.rating-input label:has(input:checked) span,.rating-input label:has(~ label input:checked) span{color:var(--brand)}
.rating-input label:hover span{transform:scale(1.08)}
.rating-input label:has(input:focus-visible) span{outline:3px solid rgba(21,117,124,.3);outline-offset:4px;border-radius:4px}
.scale-input { display:grid;gap:6px}.scale-input.scale-3{grid-template-columns:repeat(3,1fr)}.scale-input.scale-5{grid-template-columns:repeat(5,1fr)}.scale-input.scale-10{grid-template-columns:repeat(10,1fr)}.scale-input span{display:grid;height:43px;place-items:center;border:1px solid #d8e4ea;border-radius:7px;background:#fff;cursor:pointer;font-weight:700}.scale-input label:has(input:checked) span,.scale-input span:hover{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-dark)}
.poll-navigation{display:flex;gap:10px;margin-top:25px}.poll-navigation .btn{min-width:125px}.step-error{margin-top:15px;color:#b42e2e;font-size:.8rem;font-weight:600}
.privacy-note { margin: 18px 0 0; color: #8295a4; font-size: .72rem; text-align: center; }
.respondent-name { margin-bottom: 25px; padding-bottom: 23px; border-bottom: 1px solid #e8eff3; }
.closed-poll { padding: 20px 0; text-align:center}.closed-poll>div{display:grid;width:58px;height:58px;margin:0 auto 18px;place-items:center;border-radius:50%;background:#e8f7ed;color:#249e52;font-size:1.6rem;font-weight:800}.closed-poll p:not(.poll-meta){color:var(--ink-soft)}
.result-message { margin: -10px 0 25px; padding: 11px 14px; border-radius: 8px; background: #e6f8ec; color: #197a3e; font-size: .82rem; font-weight: 700; text-align: center; }
.result-message.neutral { background: #eef4f7; color: var(--ink); }
.results-list { display: grid; gap: 19px; margin-top: 28px; }
.result-item > div:first-child { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 7px; font-size: .83rem; }
.result-item span { color: var(--ink-soft); }
.result-option-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.result-option-heading img { width: 58px; height: 42px; flex: 0 0 58px; border-radius: 6px; object-fit: cover; background: #eaf0f3; }
.result-track { height: 11px; overflow: hidden; border-radius: 10px; background: #e8eff3; }
.result-track i { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #ff9d59); transition: width .3s ease; }
.ranking-results { display: grid; gap: 9px; margin-top: 22px; }
.ranking-results > div { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 8px; background: #f3f7f9; }
.ranking-results b { color: var(--brand); }
.ranking-results strong { font-size: .84rem; }
.ranking-results span { color: var(--ink-soft); font-size: .72rem; }
.manage-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 25px; }
.manage-heading h1 { margin: 0 0 5px; }.manage-heading p:last-child{margin:0;color:var(--ink-soft)}
.response-heading { align-items: center; }
.response-heading .btn { flex: 0 0 auto; }
.submission-list { display: grid; gap: 10px; }
.submission-card { border: 1px solid #dfe8ed; border-radius: 9px; background: #fbfdfe; }
.submission-card summary { display: flex; min-height: 67px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 17px; cursor: pointer; list-style-position: inside; }
.submission-card summary::marker { color: var(--brand); }
.submission-card summary > span { display: inline-flex; align-items: baseline; gap: 10px; }
.submission-card summary strong { font-size: .86rem; }
.submission-card summary small, .submission-card summary time { color: var(--ink-soft); font-size: .7rem; }
.submission-card dl { display: grid; gap: 0; margin: 0; padding: 0 17px 17px 38px; }
.submission-card dl > div { padding: 12px 0; border-top: 1px solid #e6edf1; }
.submission-card dt { margin-bottom: 5px; font-size: .76rem; }
.submission-card dd { margin: 0; color: var(--ink); font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.submission-card .empty-answer { color: #92a3af; font-style: italic; }
.response-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; margin-top: 18px; }
.response-pagination > :last-child { justify-self: end; }
.response-pagination small { color: var(--ink-soft); }
.empty-submissions { margin: 0; color: var(--ink-soft); font-size: .84rem; }
.my-polls-heading { margin-bottom: 22px; }
.my-polls-heading h1 { margin: 0 0 7px; }
.my-polls-heading p:last-child { margin: 0; color: var(--ink-soft); }
.browser-storage-note { display: flex; gap: 16px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid #d8e7ee; border-radius: 10px; background: #eff7fa; }
.browser-storage-note strong { flex: 0 0 auto; font-size: .8rem; }
.browser-storage-note span { color: var(--ink-soft); font-size: .75rem; line-height: 1.5; }
.my-polls-list { display: grid; gap: 12px; }
.my-poll-card { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 22px 24px; border: 1px solid #e0e9ee; border-radius: 13px; background: #fff; box-shadow: 0 10px 34px rgba(25,62,88,.07); }
.my-poll-content { min-width: 0; }
.my-poll-content h2 { margin: 8px 0 0; font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
.my-poll-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--ink-soft); font-size: .68rem; }
.poll-status { padding: 4px 8px; border-radius: 20px; background: #e4f6e9; color: #218447; font-weight: 800; text-transform: uppercase; }
.poll-status.closed { background: #edf1f4; color: #607486; }
.my-poll-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.my-poll-remove { width: auto; margin-left: 4px; color: #73889a; font-size: .7rem; }
.my-poll-remove:hover { color: #b42e2e; }
.my-polls-empty { padding: 50px 25px; text-align: center; }
.my-polls-empty > div { display: grid; width: 58px; height: 58px; margin: 0 auto 16px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 1.5rem; }
.my-polls-empty h2 { font-size: 1.2rem; }
.my-polls-empty p { max-width: 520px; margin: 0 auto 22px; color: var(--ink-soft); font-size: .82rem; }
.account-email { max-width: 240px; color: var(--ink-soft); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.account-email:hover { color: var(--brand-dark); }
.account-email-short { display: none; }
.account-container { max-width: 940px; }
.account-heading { max-width: 680px; margin: 0 auto 28px; }.account-heading h1{font-weight:800;letter-spacing:-.04em}.account-heading p:last-child{color:var(--ink-soft)}
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.premium-container { max-width: 1120px; }
.premium-heading { max-width: 720px; margin: 0 auto 35px; text-align: center; }
.premium-heading h1 { margin-bottom: 12px; }
.premium-heading > p:last-child { color: var(--ink-soft); font-size: 1.08rem; }
.premium-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.premium-card { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid #dbe6eb; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(13,42,64,.06); }
.premium-card.featured { border: 2px solid var(--brand); transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,89,112,.13); }
.premium-card h2 { margin-bottom: 13px; font-size: 1.35rem; }
.premium-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.premium-price strong { color: var(--brand-dark); font-size: 2rem; line-height: 1; }
.premium-price span, .premium-note, .premium-tax-note { color: var(--ink-soft); }
.premium-card ul { flex: 1; margin: 0 0 24px; padding-left: 20px; }
.premium-card li { margin-bottom: 9px; }
.premium-ribbon { position: absolute; top: 16px; right: 16px; padding: 5px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.premium-note { min-height: 48px; font-size: .9rem; }
.premium-tax-note { margin: 24px 0 0; text-align: center; font-size: .9rem; }
.premium-manage-card, .premium-account-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-color: #b8dce4; background: linear-gradient(135deg,#fff,#f2fafb); }
.premium-manage-card h2, .premium-account-card h2 { margin-bottom: 6px; }
.premium-manage-card p:last-child, .premium-account-card p:last-child { margin-bottom: 0; }
.premium-status { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: #dff6e8; color: #17663a; font-weight: 800; }
.premium-success { margin-top: 40px; padding: 45px 30px; }
.premium-success-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 2rem; font-weight: 900; }
.account-card { padding: 29px; border: 1px solid #dfe9ee; border-radius: 14px; background: #fff; box-shadow: 0 13px 38px rgba(25,62,88,.08); }
.account-card h2 { margin: 0 0 22px; font-size: 1.35rem; font-weight: 800; }
.account-card-accent { border-top: 4px solid var(--brand); }
.account-help { margin: -12px 0 20px; color: var(--ink-soft); font-size: .75rem; }
.password-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.password-label-row a { color: var(--brand-dark); font-size: .72rem; font-weight: 700; text-decoration: none; }
.password-label-row a:hover { text-decoration: underline; }
.activation-container { max-width: 620px; }
.activation-container .account-card { padding: 38px; }
.activation-container h1 { margin-bottom: 12px; font-size: clamp(1.65rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: -.04em; }
.activation-container .page-lead { margin-bottom: 25px; color: var(--ink-soft); }
.activation-icon { display: grid; width: 52px; height: 52px; margin-bottom: 18px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 1.35rem; font-weight: 900; }
.activation-icon.muted { margin-right: auto; margin-left: auto; background: #edf1f4; color: #607486; }
.question-results { display:grid;gap:20px }.question-result{padding:22px;border:1px solid #e1eaf0;border-radius:10px;background:#fff}.question-result>small{color:var(--brand);font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.question-result h2,.question-result h3{margin:5px 0 0;font-size:1.1rem;font-weight:800}.average-result{display:flex;align-items:baseline;gap:12px;margin-top:22px}.average-result strong{font-size:2.2rem;color:var(--brand)}.average-result span{color:var(--ink-soft);font-size:.8rem}.text-answer-list{display:grid;gap:8px;margin-top:18px}.text-answer-list p{margin:0;padding:12px;border-radius:7px;background:#f3f7f9;font-size:.8rem}
.preview-banner{position:sticky;top:0;z-index:10;display:flex;min-height:42px;align-items:center;justify-content:center;gap:20px;background:#0d253a;color:#fff;font-size:.75rem;font-weight:700}.preview-banner button{border:0;background:transparent;color:#fff;text-decoration:underline}.preview-question+.preview-question{margin-top:30px;padding-top:28px;border-top:1px solid #e2ebf0}.preview-question .vote-option{margin-top:8px}.preview-shell{max-width:700px}

/* Public poll themes */
.poll-theme-midnight {
    --ink: #edf8ff; --ink-soft: #a6bdcc; --brand: #38d5c3; --brand-dark: #70eadc; --brand-soft: rgba(56,213,195,.13);
    --line: #29475a; --poll-page-background: radial-gradient(circle at 78% 8%, #224d70 0, transparent 32%), radial-gradient(circle at 5% 90%, #123b45 0, transparent 30%), #071826;
    --poll-surface: rgba(13,37,55,.94); --poll-shell-border: rgba(135,190,213,.2); --poll-shell-shadow: 0 24px 70px rgba(0,0,0,.38); --poll-shell-radius: 11px;
    font-family: "Trebuchet MS", Inter, sans-serif;
}
.poll-theme-midnight .brand small { color: #90acbd; }
.poll-theme-midnight .brand-mark { box-shadow: 0 8px 24px rgba(56,213,195,.2); }
.poll-theme-midnight .vote-option, .poll-theme-midnight .ranking-input label, .poll-theme-midnight .ranking-preview, .poll-theme-midnight .form-control, .poll-theme-midnight .form-select, .poll-theme-midnight .question-result { border-color: #29475a; background: #102b3f; color: var(--ink); }
.poll-theme-midnight .vote-option:hover, .poll-theme-midnight .vote-option:has(input:checked) { border-color: var(--brand); background: #12394a; }
.poll-theme-midnight .radio-ui, .poll-theme-midnight .check-ui { border-color: #7593a6; background: #102b3f; }
.poll-theme-midnight .result-track, .poll-theme-midnight .poll-progress > div { background: #29475a; }
.poll-theme-midnight .ranking-results > div, .poll-theme-midnight .text-answer-list p { background: #102b3f; }
.poll-theme-midnight .btn-brand { border-color: var(--brand); background: var(--brand); color: #06252a; box-shadow: 0 9px 24px rgba(56,213,195,.2); }
.poll-theme-midnight .btn-brand:hover { background: #fff; color: #0b3040; }
.poll-theme-midnight .btn-outline-brand { border-color: #527188; color: var(--ink); }
.poll-theme-midnight .btn-outline-brand:hover { border-color: #fff; background: #fff; color: #0b3040; }
.poll-theme-midnight .form-control::placeholder { color: #7893a7; }

.poll-theme-sunrise {
    --ink: #412f45; --ink-soft: #795f69; --brand: #e8593f; --brand-dark: #ca402c; --brand-soft: rgba(232,89,63,.12);
    --poll-page-background: #f7dccd url('/assets/images/theme-sunrise.svg') center/cover fixed; --poll-surface: rgba(255,255,255,.87);
    --poll-shell-border: rgba(255,255,255,.72); --poll-shell-shadow: 0 24px 60px rgba(104,63,67,.18); --poll-shell-radius: 24px;
}
.poll-theme-sunrise .vote-shell { backdrop-filter: blur(9px); }
.poll-theme-sunrise .vote-shell h1, .poll-theme-sunrise .question-result h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.poll-theme-sunrise .vote-option, .poll-theme-sunrise .ranking-input label, .poll-theme-sunrise .ranking-preview { border-color: rgba(121,95,105,.2); background: rgba(255,255,255,.68); }
.poll-theme-sunrise .question-result { border-color: rgba(121,95,105,.14); background: rgba(255,255,255,.48); }
.poll-theme-sunrise .ranking-results > div, .poll-theme-sunrise .text-answer-list p { background: rgba(255,255,255,.55); }

.poll-theme-aurora {
    --ink:#f3f6ff;--ink-soft:#b5bfd6;--brand:#82f1cf;--brand-dark:#a5ffe4;--brand-soft:rgba(130,241,207,.14);
    --poll-page-background:linear-gradient(125deg,#061a33 0%,#2e2968 45%,#087b78 100%);--poll-surface:rgba(7,24,47,.86);--poll-shell-border:rgba(185,218,255,.2);--poll-shell-shadow:0 26px 80px rgba(0,0,0,.38);--poll-shell-radius:22px;
    background-size:180% 180%;
}
.poll-theme-aurora .vote-shell{backdrop-filter:blur(14px)}
.poll-theme-aurora .vote-option,.poll-theme-aurora .ranking-input label,.poll-theme-aurora .ranking-preview,.poll-theme-aurora .form-control,.poll-theme-aurora .form-select,.poll-theme-aurora .question-result{border-color:rgba(181,191,214,.25);background:rgba(18,39,70,.7);color:var(--ink)}
.poll-theme-aurora .vote-option:hover,.poll-theme-aurora .vote-option:has(input:checked){border-color:var(--brand);background:rgba(31,70,91,.78)}.poll-theme-aurora .result-track,.poll-theme-aurora .poll-progress>div{background:rgba(181,191,214,.22)}.poll-theme-aurora .ranking-results>div,.poll-theme-aurora .text-answer-list p{background:rgba(18,39,70,.7)}

.poll-theme-editorial {
    --ink:#29241f;--ink-soft:#75685d;--brand:#b94938;--brand-dark:#8e3024;--brand-soft:rgba(185,73,56,.11);
    --poll-page-background:repeating-linear-gradient(90deg,#eee6d9 0,#eee6d9 1px,#f8f3ea 1px,#f8f3ea 46px);--poll-surface:#fffdf8;--poll-shell-border:#29241f;--poll-shell-shadow:12px 12px 0 rgba(185,73,56,.27);--poll-shell-radius:0;
}
.poll-theme-editorial .vote-shell{border-width:2px}.poll-theme-editorial .vote-shell h1,.poll-theme-editorial .question-result h2{font-family:Georgia,"Times New Roman",serif}.poll-theme-editorial .vote-option,.poll-theme-editorial .ranking-input label,.poll-theme-editorial .ranking-preview,.poll-theme-editorial .question-result{border-color:#cfc3b5;border-radius:0;background:#fffdf8}.poll-theme-editorial .btn{border-radius:0}

.poll-theme-celebration {
    --ink:#352f68;--ink-soft:#716b92;--brand:#ee4f7c;--brand-dark:#c83160;--brand-soft:rgba(238,79,124,.13);
    --poll-page-background:radial-gradient(circle at 9% 16%,rgba(255,202,59,.9) 0 3%,transparent 3.2%),radial-gradient(circle at 92% 72%,rgba(99,87,220,.65) 0 5%,transparent 5.2%),radial-gradient(circle at 72% 10%,rgba(58,201,186,.55) 0 3%,transparent 3.2%),linear-gradient(135deg,#ffedf4,#edfbff);--poll-surface:rgba(255,255,255,.92);--poll-shell-border:rgba(111,99,231,.17);--poll-shell-shadow:0 25px 65px rgba(74,56,137,.2);--poll-shell-radius:28px;
}
.poll-theme-celebration .vote-option,.poll-theme-celebration .ranking-input label,.poll-theme-celebration .ranking-preview{border-color:rgba(53,47,104,.15);border-radius:15px;background:rgba(255,255,255,.75)}.poll-theme-celebration .btn{border-radius:14px}.poll-theme-celebration .question-result{border-radius:18px;background:rgba(255,255,255,.65)}

body.poll-font-serif{font-family:Georgia,"Times New Roman",serif}body.poll-font-rounded{font-family:"Arial Rounded MT Bold","Trebuchet MS",sans-serif}body.poll-font-modern{font-family:"Arial Narrow","Roboto Condensed",Arial,sans-serif;letter-spacing:.012em}body.poll-font-inter{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.poll-motion-subtle.poll-theme-aurora{animation:pollBackgroundDrift 28s ease-in-out infinite}.poll-motion-full.poll-theme-aurora{animation:pollBackgroundDrift 12s ease-in-out infinite}.poll-motion-subtle.poll-theme-celebration{animation:pollCelebrationDrift 24s ease-in-out infinite}.poll-motion-full.poll-theme-celebration{animation:pollCelebrationDrift 10s ease-in-out infinite}
.poll-motion-full .vote-shell{animation:pollShellArrival .55s cubic-bezier(.2,.8,.2,1) both}
@keyframes pollBackgroundDrift{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}@keyframes pollCelebrationDrift{0%,100%{background-position:0 0,0 0,0 0,0 0}50%{background-position:18px 10px,-16px 20px,12px -8px,0 0}}@keyframes pollShellArrival{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.poll-motion-subtle.poll-theme-aurora,.poll-motion-full.poll-theme-aurora,.poll-motion-subtle.poll-theme-celebration,.poll-motion-full.poll-theme-celebration,.poll-motion-full .vote-shell{animation:none!important}}

@media (max-width: 1199.98px) {
    .use-grid, .type-grid { grid-template-columns: repeat(3, 1fr); }
    .survey-flow { grid-template-columns: 1fr 1fr; }.survey-flow>b{display:none}
}
@media (max-width: 991.98px) {
    .mobile-menu-open { overflow: hidden; }
    .main-navbar { position: relative; min-height: 68px; }
    .main-navbar-inner { position: relative; z-index: 2; min-height: 68px; padding-top: 9px; padding-bottom: 9px; gap: 18px; }
    .main-navbar .brand { font-size: 1.48rem; }
    .main-navbar .brand-mark { width: 36px; height: 36px; }
    .mobile-nav-toggle { display: grid; width: 46px; height: 46px; padding: 11px; border: 1px solid #dbe6ec; border-radius: 12px; background: #fff; box-shadow: 0 7px 18px rgba(19,50,82,.08); place-content: center; gap: 5px; }
    .mobile-nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transform-origin: center; transition: transform .24s ease, opacity .18s ease, background .18s ease; }
    .mobile-nav-toggle:hover, .mobile-nav-toggle:focus-visible { border-color: #ffc9a4; background: var(--brand-soft); outline: 0; }
    .mobile-nav-toggle:hover span, .mobile-nav-toggle:focus-visible span { background: var(--brand-dark); }
    .site-header.is-menu-open .mobile-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-header.is-menu-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(.25); }
    .site-header.is-menu-open .mobile-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .site-nav { position: absolute; top: calc(100% + 10px); right: 12px; left: 12px; display: block; max-height: calc(100dvh - 92px); padding: 14px; overflow-y: auto; border: 1px solid rgba(214,226,233,.95); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 24px 60px rgba(19,50,82,.2); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .2s ease, transform .22s ease, visibility 0s linear .22s; }
    .site-header.is-menu-open .site-nav { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; transition-delay: 0s; }
    .site-nav-links, .site-nav-account { display: grid; align-items: stretch; gap: 4px; }
    .site-nav-account { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e8eff3; }
    .site-nav .nav-link, .site-nav .account-email { display: block; width: 100%; padding: 12px 14px; border-radius: 9px; color: var(--ink); font-size: .92rem; font-weight: 650; text-decoration: none; }
    .site-nav .nav-link:hover, .site-nav .nav-link.active, .site-nav .account-email:hover { background: var(--brand-soft); color: var(--brand-dark) !important; }
    .header-logout-form, .header-logout { width: 100%; text-align: left; }
    .header-create { width: 100%; margin-top: 5px; padding: .72rem 1rem; text-align: center; }
    .account-email-full { display: inline; }
    .account-email-short { display: none; }
    .mobile-nav-backdrop { position: fixed; z-index: 1; inset: 68px 0 0; display: block; border: 0; background: rgba(10,31,45,.28); opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: blur(2px); transition: opacity .2s ease, visibility 0s linear .2s; }
    .site-header.is-menu-open .mobile-nav-backdrop { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
    .hero { padding-top: 48px; }.quick-poll-card{max-width:none;margin:0}
    .editor-shell { grid-template-columns: 72px minmax(0,1fr); }.editor-sidebar{padding:25px 10px}.editor-sidebar span,.editor-sidebar .sidebar-title,.sidebar-tip{display:none}.editor-sidebar nav a{justify-content:center;font-size:1.1rem}
    .settings-checks { grid-template-columns: 1fr; }
    .theme-picker { grid-template-columns: 1fr; }
    .theme-choice { display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: center; gap: 12px; padding: 8px; }
    .theme-preview { height: 78px; }.theme-choice-copy{margin:0}.theme-check{right:14px;bottom:50%;transform:translateY(50%) scale(.7)}.theme-choice:has(input:checked) .theme-check{transform:translateY(50%) scale(1)}
}
@media (max-width: 767.98px) {
    .premium-grid { grid-template-columns: 1fr; }
    .premium-card.featured { order: -1; transform: none; }
    .premium-manage-card, .premium-account-card { align-items: stretch; flex-direction: column; }
    .premium-manage-card form, .premium-manage-card .btn, .premium-account-card form, .premium-account-card .btn { width: 100%; }
    .benefit-list > div { display:grid;grid-template-columns:48px 1fr;column-gap:10px}.benefit-list .benefit-icon{grid-row:1/3}.benefit-list strong{margin:3px 0}.benefit-list small{grid-column:2}
    .step-card { min-height: 0; }
    .use-grid, .type-grid { grid-template-columns: repeat(2, 1fr); }
    .survey-flow { grid-template-columns: 1fr; }
    .final-cta .container { align-items:flex-start;flex-direction:column}.final-cta .text-lg-end{text-align:left!important}
    .editor-shell{display:block}.editor-sidebar{position:sticky;top:0;z-index:5;display:none}.editor-topbar{align-items:flex-start;padding:20px;flex-direction:column}.editor-content{padding:20px 12px 60px}.question-card{padding:20px}.save-state{display:none}.editor-bottom-actions{align-items:stretch;flex-direction:column}.editor-bottom-actions>div{display:grid;grid-template-columns:1fr 1fr}.editor-bottom-actions .btn{width:100%}
    .contact-layout { grid-template-columns: 1fr; }
    .contact-aside { margin-top: 0; }
    .vote-header{min-height:72px;padding:0 14px;justify-content:flex-start}.poll-owner-edit{position:static;margin-left:auto;padding:7px 10px;font-size:.68rem}.vote-header .brand{font-size:1.3rem}.vote-header .brand-mark{width:34px;height:34px}
}
@media (max-width: 479.98px) {
    .quick-poll-card { padding: 20px 16px; }
    .quick-actions .btn { flex: 1 0 45%; font-size: .72rem; }
    .use-grid, .type-grid { grid-template-columns: 1fr; }
    .use-card { display:grid;grid-template-columns:100px 1fr}.use-visual{height:100%;grid-row:1/3}.use-card h3{text-align:left}.use-card p{text-align:left}
}

@media (max-width: 575.98px) {
    .site-nav { right: 10px; left: 10px; }
    .app-main { padding-top: 32px; }
    .vote-shell { padding: 25px 18px; }
    .copy-row { flex-direction: column; }
    .delete-confirmation-row { grid-template-columns: 1fr; }
    .copy-row .btn { width: 100%; }
    .manage-heading { align-items: stretch; flex-direction: column; }
    .browser-storage-note, .my-poll-card { align-items: stretch; flex-direction: column; }
    .account-grid { grid-template-columns: 1fr; }
    .my-poll-actions { align-items: stretch; flex-direction: column; }
    .my-poll-actions .btn { width: 100%; }
    .my-poll-remove { margin: 4px 0 0; }
    .submission-card summary { align-items: flex-start; flex-direction: column; gap: 5px; }
    .submission-card summary > span { align-items: flex-start; flex-direction: column; gap: 2px; }
    .submission-card dl { padding-left: 17px; }
    .scale-input.scale-10 { grid-template-columns: repeat(5,1fr); }
    .legal-container .contact-form-card { padding: 22px 18px; }
    .contact-form-card .btn { width: 100%; }
    .contact-privacy { display: block; margin: 12px 0 0; text-align: center; }
    .ranking-results > div { grid-template-columns: 30px minmax(0,1fr); }.ranking-results span{grid-column:2}
    .option-media { width: 82px; height: 60px; flex-basis: 82px; }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav-toggle span, .site-nav, .mobile-nav-backdrop { transition: none !important; }
}
