:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #16324a;
  background: #f3f6f8;
  font-synthesis: none;
  --navy: #102a43;
  --teal: #087f75;
  --line: #dce5eb;
  --muted: #60788a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--teal);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 0;
  border-radius: 9px;
  padding: 12px 18px;
  cursor: pointer;
  background: var(--teal);
  color: white;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.secondary {
  background: #e8f0f4;
  color: var(--navy);
}
.danger {
  background: #fae9e9;
  color: #a02b35;
}
.ghost {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
}
input,
select,
textarea {
  padding: 12px;
  border: 1px solid #b8cbd5;
  border-radius: 8px;
  width: 100%;
  background: white;
  color: var(--navy);
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--teal);
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  margin: 15px 0;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.3px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.public-header {
  max-width: 1200px;
  margin: auto;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero {
  max-width: 1200px;
  margin: 50px auto 75px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 70px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 5.5vw, 72px);
  margin: 20px 0 24px;
}
.hero p {
  font-size: 18px;
  line-height: 1.75;
  max-width: 560px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-visual {
  background: var(--navy);
  color: white;
  padding: 35px;
  border-radius: 22px;
  min-height: 380px;
  box-shadow: 0 25px 60px #102a4320;
  transform: rotate(1deg);
}
.visual-label {
  display: flex;
  justify-content: space-between;
  color: #a8c4d5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.visual-question {
  font-size: 26px;
  line-height: 1.35;
  margin: 35px 0;
}
.visual-bar {
  margin: 20px 0;
}
.visual-bar div {
  height: 12px;
  border-radius: 9px;
  background: #29475d;
  margin-top: 8px;
  overflow: hidden;
}
.visual-bar i {
  display: block;
  height: 100%;
  background: #41d8b4;
  border-radius: 9px;
}
.feature-grid {
  max-width: 1140px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.feature-grid article {
  border-top: 2px solid #cbdadf;
  padding: 25px 8px;
}
.feature-number {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.contact {
  background: #e4eeef;
  padding: 45px 30px;
  text-align: center;
}
footer {
  max-width: 1140px;
  margin: auto;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  color: var(--muted);
}
footer a {
  margin-left: 18px;
}
.auth {
  max-width: 470px;
  margin: 65px auto;
  padding: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.auth h1 {
  font-size: 30px;
  margin: 30px 0 12px;
}
.layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #d3e2ec;
  padding: 28px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  color: white;
  padding: 0 10px 30px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.navbutton {
  justify-content: flex-start;
  background: transparent;
  color: #c0d3df;
  font-size: 14px;
  padding: 12px 14px;
}
.navbutton.active {
  background: #25475b;
  color: white;
}
.navbutton span {
  opacity: 0.65;
  width: 20px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  font-size: 12px;
}
.workspace {
  padding: 0 40px 45px;
  min-width: 0;
}
.topbar {
  height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  font-size: 13px;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ab894;
  margin-right: 6px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 32px;
  margin-bottom: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.stat,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.stat strong {
  display: block;
  font-size: 34px;
  margin: 12px 0 5px;
  letter-spacing: -1px;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  margin-bottom: 20px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.card h2 {
  font-size: 19px;
  margin: 0;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 5px;
  background: #e7f5ef;
  color: #08765d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.badge.closed {
  background: #edf0f4;
  color: #637487;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #edf1f4;
}
.row:last-child {
  border: 0;
}
.row strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}
.row small {
  color: var(--muted);
}
.empty {
  padding: 35px 10px;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.question-edit {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}
.question-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.question-top select {
  max-width: 220px;
}
.option-edit {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.checklabel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.participant {
  max-width: 760px;
  padding: 25px;
  margin: auto;
}
.participant header {
  padding: 15px 0 30px;
}
.participant .card {
  padding: 28px;
}
.option {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.option:has(input:checked) {
  border-color: var(--teal);
  background: #edf9f5;
}
.timer {
  background: #e9f2f1;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}
.clock {
  font-variant-numeric: tabular-nums;
  font-size: 36px;
  font-weight: 750;
  letter-spacing: 1px;
}
.hourglass {
  width: 38px;
  height: 52px;
  position: relative;
  border-top: 5px solid var(--teal);
  border-bottom: 5px solid var(--teal);
}
.hourglass:before,
.hourglass:after {
  content: "";
  position: absolute;
  left: 3px;
  width: 30px;
  height: 21px;
  background: #26b99a;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: sand 3s ease-in-out infinite;
}
.hourglass:after {
  bottom: 0;
  transform: rotate(180deg);
  animation-delay: -1.5s;
}
.progress {
  height: 5px;
  background: #d4e5e2;
  border-radius: 5px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--teal);
  transition: width 1s linear;
}
@keyframes sand {
  50% {
    opacity: 0.45;
  }
}
.qr {
  width: min(360px, 80vw);
  height: auto;
  background: white;
  padding: 15px;
  border-radius: 10px;
}
.qr-wrap {
  text-align: center;
  padding: 20px;
}
.qr-wrap a {
  overflow-wrap: anywhere;
  display: block;
  margin-top: 20px;
}
.chart-row {
  margin: 20px 0;
}
.chart-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 20px;
}
.chart-track {
  height: 18px;
  border-radius: 5px;
  background: #e7eef2;
  overflow: hidden;
}
.chart-fill {
  height: 100%;
  background: var(--teal);
  transition: width 0.6s ease;
  border-radius: 5px;
}
.text-answer {
  padding: 15px;
  background: #f3f6f8;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0;
}
.projector {
  min-height: 100vh;
  background: var(--navy);
  color: white;
  padding: 4vw 7vw;
  text-align: center;
}
.projector .brand {
  justify-content: center;
}
.projector h1 {
  font-size: clamp(35px, 5vw, 75px);
  margin: 35px 0;
}
.projector .timer {
  justify-content: center;
  background: #234456;
  color: white;
}
.projector .clock {
  font-size: 80px;
}
.projector .card {
  color: var(--navy);
  text-align: left;
  max-width: 1100px;
  margin: 30px auto;
}
.projector .qr {
  width: min(420px, 50vh);
}
.projector .muted {
  color: #a9c3d2;
}
.legal {
  max-width: 850px;
  margin: 40px auto;
  padding: 30px;
}
.legal p,
.legal li {
  line-height: 1.8;
}
.legal h2 {
  margin-top: 35px;
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 430px;
  background: #102a43;
  color: white;
  box-shadow: 0 8px 30px #0003;
  border-radius: 10px;
  padding: 16px 22px;
  z-index: 99;
  display: none;
}
.error {
  color: #ae253b;
  line-height: 1.5;
}
.hint {
  background: #fff7e6;
  color: #775823;
  padding: 15px;
  border-radius: 8px;
  line-height: 1.6;
  font-size: 14px;
}
.link-button {
  padding: 8px 12px;
  font-size: 13px;
}
.slideshow {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px;
}
.mobile-title {
  display: none;
}
:focus-visible {
  outline: 3px solid #e8aa42;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 205px 1fr;
  }
  .workspace {
    padding: 0 22px 30px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    gap: 30px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    margin: 20px auto;
    padding: 25px;
    gap: 30px;
  }
  .hero-visual {
    min-height: 300px;
    transform: none;
  }
  .hero h1 {
    font-size: 46px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 0;
  }
  .public-header {
    padding: 20px;
  }
  .public-header .brand small {
    display: none;
  }
  footer {
    flex-direction: column;
    padding: 25px;
  }
  footer a {
    margin: 0 16px 0 0;
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px;
  }
  .sidebar .brand {
    padding: 0 5px 15px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
  }
  .navbutton {
    white-space: nowrap;
    padding: 10px;
    font-size: 12px;
  }
  .sidebar-bottom {
    display: none;
  }
  .workspace {
    padding: 0 18px 25px;
  }
  .topbar {
    height: 65px;
    margin-bottom: 25px;
  }
  .page-heading {
    flex-direction: column;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 29px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .card {
    padding: 19px;
  }
  .auth {
    margin: 25px 15px;
  }
  .question-top {
    flex-wrap: wrap;
  }
  .projector {
    padding: 25px;
  }
  .projector .clock {
    font-size: 50px;
  }
  .participant {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.sidebar {
  min-width: 0;
}
.sidebar .navbutton {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: 13px;
}
.sidebar .navbutton span {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .sidebar .navbutton {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

.sidebar .navbutton {
  font-size: 12px;
  padding: 12px 8px;
  gap: 6px;
  overflow-wrap: normal;
}
.sidebar .navbutton span {
  width: 14px;
}
@media (max-width: 700px) {
  .sidebar .navbutton {
    padding: 10px;
  }
}
