@font-face {
  font-family: Gilroy;
  src: local("Gilroy-Light"), local("Gilroy Light"), url("/fonts/gilroy-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: Gilroy;
  src: local("Gilroy-ExtraBold"), local("Gilroy ExtraBold"), url("/fonts/gilroy-extrabold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f7f7fb;
  --paper: #fff;
  --ink: #211a35;
  --muted: #6f687e;
  --line: #eae7f0;
  --purple: #6740de;
  --purple-deep: #542dc9;
  --light-purple: #f1ebff;
  --green: #15734c;
  --radius: 16px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
:focus-visible { outline: 2px solid #7955ec; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, p, a, span { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.icon { width: 1.15em; display: inline-flex; align-items: center; justify-content: center; flex: none; font-weight: 700; font-size: 1.12em; line-height: 1; }
.loading { padding: 48px; color: var(--muted); text-align: center; }

.workspace { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; padding: 28px 17px 18px; background: var(--paper); border-right: 1px solid var(--line); }
.brand-link { display: inline-block; align-self: flex-start; margin: 0 0 39px 9px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.055em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-content: center; background: #6d47ec; color: #fff; border-radius: 11px; box-shadow: 0 5px 12px #6740de29; }
.brand-mark .icon { font-size: 23px; }
.brand-period { color: var(--purple); }
.navigation, .project-menu { display: grid; gap: 5px; }
.nav-link, .project-link { display: flex; align-items: center; gap: 11px; padding: 12px 11px; border-radius: 9px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.nav-link:hover, .project-link:hover { background: #f7f4ff; color: var(--purple); }
.nav-link.selected { color: #5932c8; background: #f0eaff; }
.nav-link .icon { font-size: 1.14rem; }
.project-menu { margin-top: 32px; min-height: 0; overflow-y: auto; }
.project-menu-title { display: flex; align-items: center; justify-content: space-between; padding-left: 11px; color: #766e84; font-size: .74rem; font-weight: 750; letter-spacing: .075em; }
.project-menu-title .button { width: 30px; min-height: 30px; }
.project-link { padding: 8px; }
.project-initial { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #653bd7; background: #eae1ff; font-weight: 800; }
.selected-project { color: var(--ink); background: #f8f6fc; }
.sidebar-foot { display: flex; gap: 10px; align-items: center; margin-top: auto; border-top: 1px solid var(--line); padding: 16px 3px 0; font-size: .84rem; }
.sidebar-foot small { display: block; color: var(--muted); margin-top: 3px; font-size: .74rem; }
.avatar { flex: none; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: #6e48d6; background: #eee7ff; font-weight: 800; }

.main { min-width: 0; }
.topbar { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 34px; background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumbs, .top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.breadcrumbs { font-size: .88rem; }
.breadcrumbs a, .breadcrumb-divider { color: var(--muted); }
.breadcrumbs a:hover { color: var(--purple); }
.breadcrumbs span:last-child { font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 13px; border-radius: 9px; border: 1px solid transparent; font-size: .875rem; line-height: 1.2; font-weight: 660; text-align: center; transition: background .16s, color .16s, border-color .16s; }
.primary { background: var(--purple); color: #fff; box-shadow: 0 3px 6px #6638cf24; }
.primary:hover { background: var(--purple-deep); }
.secondary { background: #fff; border-color: #e4e0eb; color: #403650; }
.secondary:hover { border-color: #d3c4f6; background: #fbf9ff; color: var(--purple); }
.quiet, .icon-button { background: transparent; color: #625a73; }
.quiet:hover, .icon-button:hover { background: #f4efff; color: var(--purple); }
.icon-button { padding: 0; width: 38px; flex: none; }
.lavender { color: var(--purple-deep); background: #f0eaff; }
.lavender:hover { background: #e7dbff; }
.danger-light { background: #fff0ef; color: #a63842; }
.danger-light:hover { background: #ffe4e4; }
.danger { background: #a63842; color: #fff; }
.danger:hover { background: #8c2731; }

.content { width: min(100%, 1450px); margin: 0 auto; padding: 33px 34px 46px; }
.project-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 25px; }
.project-heading h1 { font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.1; font-weight: 800; letter-spacing: -.045em; }
.project-heading p { color: var(--muted); margin-top: 8px; line-height: 1.45; }
.project-heading p:empty { display: none; }
.project-heading .primary { flex: none; min-height: 43px; padding-inline: 15px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: flex-end; }
.hero { position: relative; display: flex; align-items: center; min-height: 220px; margin-bottom: 30px; padding: 27px 30px; overflow: hidden; isolation: isolate; border-radius: 19px; color: #fff; background: linear-gradient(110deg, #552ec3 0%, #6339d6 42%, #8259f3 100%); box-shadow: 0 7px 22px #6039be19; }
.hero-content { position: relative; z-index: 1; width: 60%; }
.hero-label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #ffffff3b; background: #ffffff19; padding: 5px 8px; border-radius: 6px; font-size: .73rem; font-weight: 740; letter-spacing: .065em; }
.hero h2 { margin: 11px 0 7px; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.13; letter-spacing: -.035em; }
.hero p { color: #f0e9ff; max-width: 405px; line-height: 1.44; }
.hero-button { min-height: 37px; margin-top: 16px; background: white; color: #4a26b6; }
.hero-button:hover { background: #f0e9ff; }
.hero-art { position: absolute; right: 3%; top: 0; width: 37%; height: 100%; pointer-events: none; }
.orbit { position: absolute; width: 88%; height: 92%; left: 3%; top: 8%; border: 1px solid #e6d8ff64; border-radius: 50%; transform: rotate(-24deg); }
.orbit-two { width: 104%; height: 112%; left: -5%; top: -3%; opacity: .53; }
.orbit-three { width: 120%; height: 138%; left: -11%; top: -17%; opacity: .24; }
.art-card { position: absolute; left: 23%; top: 14%; width: 54%; height: 70%; min-height: 105px; padding: 12px; border: 1px solid #f3eaffb5; border-radius: 13px; background: linear-gradient(145deg, #fff7, #f8edff34); transform: rotate(-13deg); box-shadow: 0 14px 40px #3a139447, inset 0 0 11px #faf1ff2e; }
.art-dots { display: flex; gap: 4px; }
.art-dots b { height: 4px; width: 4px; border-radius: 50%; background: #fff; }
.art-bars { height: 76%; display: flex; justify-content: center; gap: 7%; align-items: flex-end; padding: 4px; border-bottom: 1px solid #fff9; }
.art-bars b { width: 17%; height: 42%; border-radius: 5px 5px 1px 1px; background: linear-gradient(#fff, #d2b6fd); }
.art-bars b:nth-child(2) { height: 70%; background: linear-gradient(#f7cfff, #d4a3f5); }
.art-bars b:nth-child(3) { height: 54%; }
.art-bars b:nth-child(4) { height: 94%; background: #faf3ff; }
.art-sparkle { position: absolute; color: #e9dcff; font-size: 24px; }
.spark-one { top: 22%; left: 10%; }
.spark-two { bottom: 13%; right: 9%; font-size: 18px; }
.spark-three { top: 12%; right: 8%; font-size: 30px; }
.art-check { position: absolute; top: 54%; right: 15%; width: 42px; height: 42px; display: grid; place-items: center; transform: rotate(12deg); color: #6c3ad8; background: #f7ecff; border: 1px solid white; border-radius: 12px; box-shadow: 0 7px 22px #3617834a; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(265px, 1fr); gap: 23px; align-items: start; }
.section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.section-title h2 { font-size: 1.45rem; line-height: 1.14; letter-spacing: -.025em; }
.count-pill { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 20px; color: #695490; font-size: .78rem; font-weight: 750; background: #eee8f8; }
.tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }
.tab { min-height: 32px; padding: 5px 10px; color: var(--muted); background: transparent; }
.tab:hover { color: var(--purple); background: #f0eaff; }
.selected-tab { color: #5932c8; border-color: #e8defc; background: #f0eaff; }
.poll-list, .project-grid { display: grid; gap: 11px; }
.project-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 16px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 6px #2b164304; }
.project-card { display: grid; gap: 8px; padding: 18px; }
.project-card:hover { border-color: #d0bcfb; }
.project-card h2 { font-size: 1.17rem; }
.project-card p:empty { display: none; }
.empty { padding: 22px; color: var(--muted); }
.poll-card { padding: 13px 15px 9px; }
.active-card { border-color: #d9cafa; }
.poll-top { display: flex; align-items: flex-start; gap: 11px; }
.type-mark { flex: none; display: inline-grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; background: #eee7ff; color: #6a40df; font-size: 1rem; }
.type-mark.text { background: #e8f4ff; color: #2f679f; }
.type-mark.text .icon { width: auto; font-size: .875rem; white-space: nowrap; }
.poll-info { flex: 1; min-width: 0; }
.poll-kind { display: block; color: var(--muted); font-size: .79rem; margin-bottom: 3px; }
.poll-info h3 { font-size: 1rem; line-height: 1.25; letter-spacing: -.008em; }
.badge { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 4px 8px; border-radius: 30px; background: #f2f0f5; color: #625b6e; font-weight: 680; font-size: .75rem; white-space: nowrap; }
.badge.is-live { color: var(--green); background: #e7f8ee; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: #25a56b; }
.poll-bottom { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-top: 9px; padding-top: 7px; border-top: 1px solid #f0edf3; }
.poll-meta { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); font-size: .81rem; }
.poll-actions { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.poll-actions .button { min-height: 31px; font-size: .8rem; padding: 5px 8px; }
.poll-actions .poll-more { width: 31px; padding: 0; font-size: 1.05rem; }

.live-panel { padding: 15px; }
.live-panel-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.live-panel-head .type-mark { width: 33px; height: 33px; }
.live-panel h2 { font-size: 1rem; }
.live-panel-body { padding: 13px; border: 1px solid #ebe4f5; border-radius: 11px; background: #faf8fe; }
.live-panel h3 { margin-top: 8px; font-size: .96rem; line-height: 1.25; }
.live-count { margin-top: 11px; color: var(--muted); font-size: .78rem; }
.live-panel-link { width: 100%; margin-top: 11px; min-height: 35px; }
.preview-results { margin-top: 12px; }
.horizontal-chart { display: grid; gap: 11px; }
.bar-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 5px; font-size: .82rem; }
.bar-title strong { flex: none; color: #564369; }
.bar-track { background: #eee9f5; height: 6px; border-radius: 20px; overflow: hidden; }
.bar-fill { width: var(--size); height: 100%; border-radius: inherit; background: var(--bar-color); }
.result-empty { color: var(--muted); line-height: 1.4; padding-block: 4px; }

dialog { border: 1px solid var(--line); border-radius: 19px; padding: 22px; width: min(calc(100% - 24px), 525px); max-height: calc(100dvh - 24px); color: var(--ink); box-shadow: 0 24px 70px #21113836; }
dialog::backdrop { background: #21143680; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.dialog-heading h2 { font-size: 1.4rem; letter-spacing: -.02em; }
.dialog-heading p { color: var(--muted); margin-top: 6px; line-height: 1.4; }
.dialog-heading .icon-button { min-height: 32px; width: 32px; }
form, form label, dialog > label { display: grid; gap: 7px; }
form { gap: 13px; }
form label, dialog > label, legend { font-weight: 640; font-size: .92rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 7px; }
input:not([type="radio"]), select, textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #ded9e9; border-radius: 8px; background-color: white; color: var(--ink); font-weight: 450; font-size: 1rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #736485 50%), linear-gradient(135deg, #736485 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 11px) 50%; background-size: 4px 4px; background-repeat: no-repeat; padding-right: 26px; }
textarea { resize: vertical; }
.option-editor { display: grid; gap: 6px; }
.option-edit { display: grid; grid-template-columns: 40px minmax(0, 1fr) 34px; gap: 6px; align-items: center; }
.option-edit input[type="color"] { height: 37px; cursor: pointer; padding: 4px; }
.option-edit .icon-button { width: 34px; }
fieldset > .quiet { margin-top: 4px; padding-inline: 4px; }
.form-columns { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 9px; }
.form-error { color: #aa3040; font-size: .9rem; }
[data-form="destructive"] > p:not(.form-error) { line-height: 1.45; }
.manual-count { grid-template-columns: minmax(0, 1fr) 92px; align-items: center; }
.manual-count input { text-align: right; }
.background-preview { display: block; width: 100%; max-height: 240px; aspect-ratio: 16 / 9; margin-bottom: 14px; object-fit: cover; border-radius: 10px; }
input[type="file"]::file-selector-button { margin-right: 8px; padding: 5px 8px; border: 0; border-radius: 5px; background: var(--light-purple); color: var(--purple-deep); cursor: pointer; }
.screen-settings-tabs { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.screen-style-fields { display: grid; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.screen-style-fields legend { margin-bottom: 0; padding: 0 4px; }
.opacity-slider { display: grid; gap: 5px; }
.opacity-slider > div { display: flex; justify-content: space-between; gap: 10px; }
.opacity-slider output { flex: none; color: var(--purple-deep); font-variant-numeric: tabular-nums; }
.opacity-slider input, .question-color-controls input[type="checkbox"] { accent-color: var(--purple); }
.style-help { font-size: .82rem; }
.question-color-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.question-color-controls label { display: flex; align-items: center; }
.question-color-controls input[type="color"] { width: 40px; height: 34px; padding: 4px; cursor: pointer; }
.question-color-controls input:disabled { opacity: .48; cursor: default; }
.form-toggle { display: flex; align-items: center; justify-self: start; gap: 8px; }
.form-toggle input[type="checkbox"] { flex: none; width: 1rem; height: 1rem; margin: 0; padding: 0; accent-color: var(--purple); }
#toast { position: fixed; right: 19px; bottom: 19px; z-index: 5; max-width: calc(100% - 38px); padding: 11px 16px; border-radius: 9px; background: #2d2146; color: white; box-shadow: 0 4px 20px #21112c3a; }
.centered { min-height: 100vh; display: grid; place-items: center; padding: 14px; }
.message-card { width: min(100%, 460px); display: grid; gap: 14px; padding: 26px; }
.message-card h1 { font-size: 1.6rem; }
.message-card p { color: var(--muted); }

.public-shell { display: flex; flex-direction: column; min-height: 100dvh; background: radial-gradient(ellipse at 86% 0%, #e8ddff, transparent 53%), #f8f6fc; }
.screen-shell.has-background {
  --question-default: #fff;
  background-color: #2b2341;
  background-image: linear-gradient(110deg, #171229a8, #17122984), var(--screen-photo);
  background-position: center;
  background-size: cover;
}
.has-background .screen-main h1, .has-background .screen-count { text-shadow: 0 1px 5px #171229a8; }
.has-background .screen-count { color: #fff; }
.screen-fullscreen.icon-button {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  z-index: 2;
  background: transparent;
}
.has-background .screen-fullscreen.icon-button { color: #fff; }
.public-header { display: flex; align-items: center; gap: 13px; padding: 16px clamp(15px, 4vw, 60px); background: #fff; border-bottom: 1px solid var(--line); }
.public-event { margin-left: auto; color: var(--muted); font-weight: 650; text-align: right; }
.screen-content { display: grid; grid-template-columns: minmax(0, 1fr) clamp(190px, 22vw, 320px); align-items: center; gap: clamp(18px, 3.2vw, 54px); width: min(100%, 1600px); margin: auto; padding: clamp(20px, 4vw, 75px); padding-top: max(clamp(20px, 4vw, 75px), calc(max(8px, env(safe-area-inset-top)) + 48px)); }
.without-qr .screen-content { grid-template-columns: minmax(0, 1fr); }
.screen-content h1 { font-family: var(--question-font, inherit); color: var(--question-color, var(--question-default, var(--ink))); font-size: clamp(2.1rem, 5.2vw, 5.2rem); line-height: 1.055; letter-spacing: -.045em; margin-bottom: clamp(15px, 4vw, 50px); }
.screen-results {
  --result-opacity: var(--chart-opacity, 87%);
  padding: clamp(16px, 3vw, 45px);
  background: rgb(255 255 255 / var(--result-opacity));
  border: 1px solid rgb(234 231 240 / var(--result-opacity));
  border-radius: 20px;
}
.screen-results.cloud-results { --result-opacity: var(--cloud-opacity, 100%); }
.dark-results .screen-results:not(:has(.word-cloud)) { color: #fff; text-shadow: 0 1px 4px #171229b3; }
.dark-results .screen-results .bar-title strong, .dark-results .screen-results .result-empty { color: inherit; }
.dark-results .response-list li { color: var(--ink); text-shadow: none; }
.screen-results .horizontal-chart { gap: clamp(14px, 2.1vw, 28px); }
.screen-results .bar-title { font-size: clamp(1.05rem, 2vw, 2rem); margin-bottom: 8px; }
.screen-results .bar-track { height: clamp(10px, 1.5vw, 23px); }
.screen-count { margin-top: 12px; font-size: clamp(1rem, 1.5vw, 1.35rem); font-weight: 700; color: var(--muted); }
.screen-join, .share-code { display: grid; justify-items: center; gap: 8px; text-align: center; }
.screen-join { padding: clamp(12px, 1.7vw, 24px); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.screen-join h2 { font-size: clamp(1.05rem, 2vw, 1.6rem); }
.screen-join p, .share-code figcaption { color: var(--muted); line-height: 1.35; }
.vote-code { display: block; width: min(100%, 270px); height: auto; aspect-ratio: 1; background: #fff; image-rendering: pixelated; }
.share-code { margin: 0 0 20px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.share-code .vote-code { width: min(100%, 240px); }
.standby { text-align: center; }
.standby .type-mark { margin-bottom: 12px; }
.standby p { color: var(--muted); line-height: 1.45; }
.standby h1 { margin-bottom: 11px; }
.donut-chart { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 3vw, 48px); }
.donut { width: clamp(125px, 28vw, 350px); aspect-ratio: 1; border-radius: 50%; background: var(--gradient); mask-image: radial-gradient(closest-side, transparent 53%, #000 54%); }
.donut-legend, .response-list, .word-cloud { list-style: none; margin: 0; padding: 0; }
.donut-legend { flex: 1 1 230px; display: grid; gap: 10px; font-size: clamp(1rem, 2vw, 1.8rem); }
.donut-legend li { display: grid; align-items: baseline; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 9px; }
.donut-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--bar-color); }
.column-chart { min-width: 0; display: grid; grid-template-columns: repeat(var(--columns), minmax(78px, 1fr)); gap: 10px; padding-top: 25px; overflow-x: auto; }
.column { display: grid; grid-template-rows: clamp(125px, 24vh, 350px) auto; text-align: center; gap: 8px; }
.column-track { display: flex; justify-content: center; align-items: flex-end; border-bottom: 1px solid var(--line); }
.column-bar { height: var(--size); width: min(72%, 95px); background: var(--bar-color); border-radius: 6px 6px 0 0; position: relative; }
.column-bar strong { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; padding-bottom: 3px; }
.response-list { display: grid; gap: 7px; max-height: 45vh; overflow-y: auto; }
.response-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 9px; background: #f6f1ff; border-radius: 8px; overflow-wrap: anywhere; }
[data-response-list] > .button { margin-top: 6px; }
.screen-results .response-list { font-size: clamp(1.05rem, 2vw, 1.8rem); }
.screen-results:has(.word-cloud) { padding: 0; border: 0; background: transparent; }
.word-cloud {
  position: relative;
  min-width: 0;
  height: clamp(230px, 42vh, 570px);
  overflow: hidden;
  border-radius: 20px;
  background: var(--cloud-background, #fff);
  box-shadow: inset 0 0 0 1px var(--line);
}
.screen-results .word-cloud { isolation: isolate; background: transparent; box-shadow: none; }
.screen-results .word-cloud::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cloud-background, #fff);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: var(--cloud-opacity, 100%);
}
.word-cloud li { color: var(--word-color); font-weight: 700; line-height: 1.12; }
.word-cloud:not(.cloud-positioned) li { visibility: hidden; }
.cloud-positioned li {
  position: absolute;
  top: var(--word-y);
  left: var(--word-x);
  transform: translate(-50%, -50%) rotate(var(--word-angle));
  font-size: var(--word-font);
  white-space: nowrap;
}
.compact-cloud { height: 165px; border-radius: 10px; }
.cloud-palette-editor { display: grid; gap: 7px; }
.cloud-palette-controls { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.cloud-palette-controls select { flex: 1 1 185px; }
.cloud-palette-controls .cloud-background-control { display: flex; gap: 7px; align-items: center; }
.cloud-background-control input[type="color"] { width: 40px; height: 37px; padding: 4px; cursor: pointer; }
.cloud-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--cloud-background, #fff); }
.cloud-swatches input[type="color"] { height: 34px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.cloud-swatches input::-webkit-color-swatch-wrapper { padding: 2px; }
.cloud-swatches input::-webkit-color-swatch { border: 1px solid #80808075; border-radius: 5px; }
.cloud-swatches input::-moz-color-swatch { border: 1px solid #80808075; border-radius: 5px; }
.audience-content { width: min(100%, 620px); margin: auto; padding: 20px; }
.audience-card { padding: clamp(17px, 4vw, 37px); }
.audience-card h1 { margin: 12px 0 15px; font-size: clamp(1.5rem, 5vw, 2.4rem); line-height: 1.15; letter-spacing: -.035em; }
.audience-options { display: grid; gap: 8px; }
.audience-option { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.audience-option:has(input:checked) { background: #f3edff; border-color: #b59bec; }
.audience-option input { accent-color: var(--purple); width: 17px; height: 17px; flex: none; }
.answer-count { color: var(--muted); font-size: .86rem; text-align: right; }
.vote-submit { width: 100%; padding: 12px; }
.vote-success { padding: 12px; border-radius: 8px; background: #e7f8ee; color: var(--green); }
.vote-success p { margin-top: 5px; }
.disconnected::after { content: 'Восстанавливаем связь с эфиром…'; position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%); padding: 7px 10px; border-radius: 5px; background: #fff4d1; color: #6e4a10; z-index: 10; font-size: .86rem; }

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 197px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .topbar, .content { padding-inline: 24px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(225px, 1fr); gap: 15px; }
}
@media (max-width: 820px) {
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 10px 15px; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-link { margin: 0; }
  .navigation { display: flex; gap: 3px; flex-wrap: wrap; }
  .nav-link { padding: 8px; }
  .sidebar-foot, .project-menu { display: none; }
  .topbar, .content { padding-inline: 15px; }
  .content { padding-top: 22px; }
}
@media (max-width: 590px) {
  .topbar, .project-heading { flex-wrap: wrap; }
  .topbar { min-height: 0; gap: 8px; }
  .top-actions .button { min-height: 34px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .right-column { grid-row: 1; }
  .hero { min-height: 0; padding: 18px 15px; }
  .hero-content { width: 100%; }
  .hero-art { opacity: .24; right: -5%; }
  .public-header { gap: 8px; flex-wrap: wrap; }
  .public-header .brand { font-size: 1.1rem; }
  .screen-content { grid-template-columns: minmax(0, 1fr); }
  .screen-join { width: min(100%, 280px); justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
