/* ban enterprises: white, black, Inter, pill buttons, thin rules (source: Paper file "Ban Enterprises", artboard "Desktop - strona spolki") */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/vendor/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/vendor/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/vendor/inter-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/vendor/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/vendor/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/vendor/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #555;
  --line: #e5e5e5;
  --tint: #f2f2f2;
  --danger: #b42318;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: "Inter", system-ui, sans-serif; font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis: none; }
a { color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; }
.wrap.wide { max-width: 1280px; padding-inline: 40px; }

/* header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 56px; }
.logo { display: block; height: 32px; width: auto; }
.logo img { height: 100%; width: auto; display: block; }
.code { font-weight: 500; letter-spacing: 0.08em; }
.status { font-size: 13px; color: var(--muted); }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; margin-right: 6px; vertical-align: 1px; }
.status.off::before { background: #c4c4c4; }
.status.plain::before { display: none; }

/* type */
h1 { font-weight: 500; font-size: 44px; line-height: 50px; letter-spacing: -0.025em; margin: 0 0 12px; }
h2 { font-weight: 500; font-size: 22px; line-height: 28px; margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 32px; max-width: 520px; }
.eyebrow { font-size: 13px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin: 0 0 12px; }
.hint { color: var(--muted); font-size: 14px; line-height: 20px; }
.error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.counter { font-size: 13px; color: var(--muted); }

/* sections: black top rule like the site */
.card { border-top: 1px solid var(--ink); padding: 24px 0 8px; margin-bottom: 32px; }
.card.gold { border-top-width: 2px; }

/* forms */
label { display: block; font-size: 13px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin: 0 0 10px; }
input[type="text"], textarea { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; outline: none; transition: border-color 0.15s; }
input[type="text"]:focus, textarea:focus { border-color: var(--ink); }
textarea { resize: vertical; min-height: 104px; }
::placeholder { color: #9a9a9a; }
.check { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 400; margin: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* buttons: black pill + underlined text link */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 999px; padding: 12px 20px; font-size: 15px; line-height: 18px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: opacity 0.15s; }
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: transparent; padding-inline: 4px; text-decoration: underline 1px; text-underline-offset: 4px; }
.btn.ghost:hover { opacity: 0.6; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.ghost.small { padding-inline: 2px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

/* sort toggle */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--tint); margin: 0 0 8px; }
.tabs button { background: transparent; border: 0; border-radius: 999px; padding: 7px 14px; font-size: 14px; line-height: 18px; font-weight: 500; cursor: pointer; color: var(--muted); }
.tabs button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

/* questions: rows with a light bottom rule */
.q { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.q .body { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 17px; line-height: 25px; font-weight: 500; }
.q .meta { font-size: 13px; line-height: 18px; color: var(--muted); font-weight: 400; margin-top: 6px; }
.q .tag { display: inline-block; font-size: 11px; line-height: 16px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; color: var(--muted); }
.q .tag.gold { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.vote { flex-shrink: 0; width: 56px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; line-height: 1.15; transition: border-color 0.15s; }
.vote:hover:not(:disabled) { border-color: var(--ink); }
.vote:disabled { cursor: default; }
.vote b { font-size: 17px; font-weight: 600; }
.vote small { font-size: 11px; color: var(--muted); }
.vote.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vote.on small { color: #bdbdbd; }
.q.answered .body { color: var(--muted); }
.empty { color: var(--muted); padding: 20px 0; margin: 0; }

/* poll options */
.opt { display: block; width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; margin: 10px 0 0; cursor: pointer; position: relative; overflow: hidden; font-weight: 500; }
.opt:hover:not(:disabled) { border-color: var(--ink); }
.opt:disabled { cursor: default; }
.opt .fill { position: absolute; inset: 0 auto 0 0; background: var(--tint); transition: width 0.4s ease; }
.opt .txt { position: relative; display: flex; justify-content: space-between; gap: 12px; }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* admin */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.col { border-top: 1px solid var(--ink); padding-top: 16px; min-height: 140px; }
.col h3 { font-size: 13px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin: 0 0 4px; display: flex; justify-content: space-between; }
.col .q { flex-direction: column; gap: 10px; }
.col .q .body { font-size: 15px; line-height: 22px; }
.col .q.pinned { background: var(--tint); margin-inline: -12px; padding-inline: 12px; border-radius: 12px; border-bottom-color: transparent; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.acts button { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13px; line-height: 18px; font-weight: 500; cursor: pointer; }
.acts button:hover { border-color: var(--ink); }
.poll-admin { border-bottom: 1px solid var(--line); padding: 18px 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 8px 0 32px; }
@media (max-width: 1000px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .cols { grid-template-columns: 1fr; }
  h1 { font-size: 32px; line-height: 38px; }
  .bar { margin-bottom: 36px; }
  .logo { height: 26px; }
}

/* projector screen */
body.screen { overflow: hidden; }
.stage { height: 100vh; display: grid; grid-template-columns: 1fr 380px; }
.stage .main { padding: 14vh 6vw 8vh; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.stage .side { border-left: 1px solid var(--line); padding: 5vh 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 20px; }
.stage .qr { width: 260px; height: 260px; }
.stage .qr svg { width: 100%; height: 100%; display: block; }
.stage .join { color: var(--muted); font-size: 18px; line-height: 26px; }
.stage .join b { color: var(--ink); font-weight: 500; }
.stage .big-code { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: 0.1em; }
.stage .label { font-size: 15px; line-height: 18px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 24px; }
.stage .headline { font-size: clamp(36px, 4.4vw, 76px); line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.stage .sub { color: var(--muted); font-size: 24px; line-height: 32px; margin-top: 28px; }
.stage .bars { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.stage .bar-row { font-size: 28px; line-height: 34px; font-weight: 500; }
.stage .bar-row .track { height: 14px; background: var(--tint); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.stage .bar-row .fill { height: 100%; background: var(--ink); border-radius: 999px; transition: width 0.5s ease; }
.stage .bar-row .head { display: flex; justify-content: space-between; gap: 20px; }
.stage-logo { position: absolute; left: 6vw; top: 5vh; height: 34px; }
.stage-logo img { height: 100%; display: block; }
