:root {
  --navy: #102338;
  --navy-soft: #273c53;
  --surface: rgba(255, 255, 255, 0.92);
  --white: #ffffff;
  --mist: #f1f5f6;
  --text: #102338;
  --muted: #657687;
  --teal: #0b7f79;
  --teal-dark: #075f5b;
  --lime: #f4c542;
  --coral: #fd765d;
  --outline: #dce5e7;
  --shadow: 0 18px 48px rgba(16, 35, 56, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #f7fafa;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 5%, rgba(183, 235, 101, 0.2), transparent 30rem),
    linear-gradient(145deg, #f7fafa, #eef7f5);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-glow {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

.page-glow-one {
  top: 12rem;
  left: -9rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(14, 140, 134, 0.1);
}

.page-glow-two {
  right: -10rem;
  bottom: 4rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(253, 118, 93, 0.08);
}

.topbar {
  height: 68px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.14rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  padding: 7px;
  border-radius: 11px;
  background: var(--navy);
}

.brand-mark span {
  display: block;
  flex: 1;
  border-radius: 4px;
  background: var(--lime);
}

.brand-mark span:nth-child(1) {
  height: 10px;
}

.brand-mark span:nth-child(2) {
  height: 19px;
}

.brand-mark span:nth-child(3) {
  height: 14px;
}

.marketing-nav {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.marketing-nav a {
  color: var(--navy-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.marketing-nav .nav-cta {
  padding: 10px 14px;
  color: var(--white);
  border-radius: 11px;
  background: var(--teal);
}

.app {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 18px 42px;
}

.hidden {
  display: none !important;
}

.hero {
  display: grid;
  gap: 24px;
  padding-top: min(6vh, 48px);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 13px;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 999px;
  background: #daf3ed;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 8vw, 4.6rem);
  line-height: 0.99;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 9px;
  font-size: clamp(1.42rem, 5vw, 1.85rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.lead {
  color: var(--muted);
  max-width: 520px;
  font-size: 1.04rem;
  line-height: 1.6;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-points span {
  padding: 8px 13px;
  color: var(--navy-soft);
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 630;
}

.entry-card,
.panel,
.result-panel {
  background: var(--surface);
  border: 1px solid rgba(220, 229, 231, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.entry-card {
  padding: 20px;
}

.tab-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 22px;
  padding: 5px;
  background: var(--mist);
  border-radius: 14px;
}

.tab-buttons.three-tabs {
  grid-template-columns: repeat(3, 1fr);
}

.tab-button {
  border: 0;
  border-radius: 10px;
  padding: 12px 10px;
  color: var(--muted);
  font-weight: 650;
  background: transparent;
}

.tab-button.active {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 3px 10px rgba(16, 35, 56, 0.06);
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--navy-soft);
  font-size: 0.88rem;
  font-weight: 650;
}

.field input,
.field textarea,
.field select {
  min-width: 0;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--outline);
  border-radius: 13px;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 140, 134, 0.14);
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.room-code-input {
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.quiet-button,
.danger-button {
  min-height: 48px;
  border-radius: 13px;
  border: 0;
  font-weight: 680;
  transition: transform 0.12s, background 0.15s;
}

.primary-button:active,
.secondary-button:active,
.danger-button:active {
  transform: scale(0.985);
}

.primary-button {
  padding: 12px 18px;
  color: var(--white);
  background: var(--teal);
}

a.primary-button,
a.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-button:hover {
  background: var(--teal-dark);
}

.secondary-button {
  padding: 11px 16px;
  color: var(--navy);
  border: 1px solid var(--outline);
  background: var(--white);
}

.quiet-button {
  min-height: 42px;
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
}

.danger-button {
  padding: 10px 15px;
  color: #b04232;
  background: #fff1ef;
}

.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.value-section,
.features-section,
.pricing-section {
  padding-top: 62px;
}

.value-heading,
.pricing-heading {
  max-width: 570px;
  margin-bottom: 28px;
}

.value-grid,
.pricing-grid {
  display: grid;
  gap: 13px;
}

.value-card {
  padding: 21px;
  border: 1px solid var(--outline);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.75);
}

.value-number {
  display: inline-block;
  margin-bottom: 23px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.value-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.activity-grid article {
  min-height: 102px;
  padding: 16px 14px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--white);
}

.activity-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--teal-dark);
}

.activity-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.report-callout {
  display: grid;
  gap: 15px;
  margin-top: 13px;
  padding: 19px;
  color: var(--white);
  border-radius: 18px;
  background: var(--navy);
}

.report-callout strong {
  display: block;
  margin-bottom: 6px;
}

.report-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.report-callout span {
  align-self: center;
  width: fit-content;
  padding: 9px 12px;
  color: var(--navy);
  border-radius: 999px;
  background: var(--lime);
  font-size: 0.82rem;
  font-weight: 700;
}

.price-card {
  position: relative;
  padding: 23px 20px;
  border: 1px solid var(--outline);
  border-radius: 21px;
  background: var(--white);
}

.price-card.featured {
  border: 2px solid var(--teal);
  box-shadow: 0 16px 42px rgba(14, 140, 134, 0.13);
}

.popular {
  position: absolute;
  top: -14px;
  right: 17px;
  padding: 7px 12px;
  color: var(--teal-dark);
  border-radius: 999px;
  background: var(--lime);
  font-size: 0.74rem;
  font-weight: 750;
}

.plan-name {
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-weight: 720;
}

.price {
  margin-bottom: 4px;
  font-size: 2.25rem;
  font-weight: 760;
  letter-spacing: -0.06em;
}

.price span {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.price small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
}

.price-detail {
  color: var(--muted);
  font-size: 0.88rem;
}

.plan-list {
  display: grid;
  gap: 12px;
  min-height: 116px;
  margin: 25px 0 23px;
  padding: 0;
  list-style: none;
  color: var(--navy-soft);
  font-size: 0.9rem;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.plan-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.plan-action {
  width: 100%;
}

.conversion-banner {
  display: grid;
  gap: 22px;
  align-items: center;
  margin-top: 56px;
  padding: 29px 22px;
  color: var(--white);
  border-radius: 25px;
  background: var(--navy);
}

.conversion-banner .eyebrow {
  background: rgba(183, 235, 101, 0.18);
  color: var(--lime);
}

.conversion-banner .eyebrow::before {
  background: var(--lime);
}

.conversion-banner h2 {
  max-width: 580px;
  margin-bottom: 10px;
}

.conversion-banner p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.conversion-banner .primary-button {
  width: fit-content;
  color: var(--navy);
  background: var(--lime);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 31px 2px 6px;
  color: var(--muted);
  font-size: 0.87rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.join-screen {
  max-width: 440px;
  margin: min(9vh, 64px) auto 0;
}

.customer-portal {
  max-width: 680px;
  margin: 20px auto 0;
  display: grid;
  gap: 15px;
}

.account-banner {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: start;
  padding: 20px;
}

.account-room-form {
  padding: 22px;
}

.join-card {
  padding: 24px 20px;
  text-align: center;
}

.join-card .form-stack {
  text-align: left;
  margin-top: 24px;
}

.code-pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: var(--teal-dark);
  background: #ddf6ef;
}

.participant-layout {
  max-width: 660px;
  margin: 10px auto 0;
  display: grid;
  gap: 15px;
}

.room-heading {
  padding: 18px 18px 4px;
}

.room-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.participant-count {
  white-space: nowrap;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.participant-count::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.prompt {
  margin: 8px 0 0;
  color: var(--navy-soft);
  font-size: 1.08rem;
  line-height: 1.45;
}

.live-response-line {
  display: inline-flex;
  margin-top: 13px;
  padding: 7px 12px;
  color: var(--teal-dark);
  border-radius: 999px;
  background: #dcf4ef;
  font-size: 0.84rem;
  font-weight: 650;
}

.panel {
  padding: 18px;
}

.compose-row {
  display: flex;
  align-items: end;
  gap: 9px;
}

.compose-row .field {
  flex: 1;
}

.compose-row .primary-button {
  flex-shrink: 0;
}

.result-panel {
  padding: 20px 18px;
  min-height: 180px;
}

.section-title {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title h3,
.section-title p {
  margin-bottom: 0;
}

.word-cloud {
  display: flex;
  min-height: 124px;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 9px 16px;
  padding: 14px 4px;
}

.cloud-word {
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.cloud-word:nth-child(3n + 2) {
  color: var(--navy);
}

.cloud-word:nth-child(3n) {
  color: #d75242;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 125px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.questions {
  display: grid;
  gap: 10px;
}

.choice-fieldset,
.rating-fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-fieldset legend,
.rating-fieldset legend {
  margin-bottom: 10px;
  color: var(--navy-soft);
  font-size: 0.88rem;
  font-weight: 650;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 12px 13px;
  border: 1px solid var(--outline);
  border-radius: 13px;
  background: var(--white);
}

.choice-option:has(input:checked) {
  border-color: rgba(14, 140, 134, 0.45);
  background: #dcf4ef;
}

.choice-option input,
.rating-options input {
  accent-color: var(--teal);
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.rating-options label {
  position: relative;
}

.rating-options input {
  position: absolute;
  opacity: 0;
}

.rating-options span {
  display: grid;
  place-items: center;
  min-height: 50px;
  color: var(--muted);
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--white);
  font-weight: 720;
}

.rating-options input:checked + span {
  color: var(--teal-dark);
  border-color: rgba(14, 140, 134, 0.45);
  background: #dcf4ef;
}

.choice-results,
.rating-results {
  display: grid;
  gap: 13px;
}

.result-label {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 7px;
  font-size: 0.9rem;
}

.result-label strong {
  color: var(--muted);
  font-size: 0.83rem;
}

.result-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #eaf0f1;
}

.result-track span {
  display: block;
  min-width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.result-choice.correct .result-label span {
  color: var(--teal-dark);
  font-weight: 700;
}

.result-choice.correct .result-track span {
  background: var(--lime);
}

.survey-average {
  margin-bottom: 22px;
  color: var(--teal-dark);
  font-size: 2.3rem;
  font-weight: 760;
  letter-spacing: -0.06em;
}

.survey-average span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
}

.rating-results > div {
  display: grid;
  grid-template-columns: 18px 1fr 26px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.83rem;
}

.feedback-list,
.form-responses {
  display: grid;
  gap: 10px;
  margin-top: 23px;
}

.feedback-list article,
.form-responses article {
  padding: 13px;
  border: 1px solid #e6edef;
  border-radius: 13px;
  background: var(--white);
}

.feedback-list p,
.form-responses p {
  margin: 7px 0 0;
  color: var(--navy-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.whiteboard-panel {
  overflow: hidden;
  padding: 12px;
}

.whiteboard-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.whiteboard-toolbar {
  display: grid;
  gap: 9px;
  margin-bottom: 11px;
}

.board-toolstrip,
.board-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.board-toolstrip {
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.board-toolstrip .board-tool {
  flex: none;
}

.board-actions {
  flex-wrap: wrap;
}

.board-tool,
.board-command {
  min-height: 42px;
  padding: 8px 12px;
  color: var(--navy-soft);
  border: 1px solid var(--outline);
  border-radius: 9px;
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 650;
}

.board-tool.active,
.board-command.active {
  color: var(--teal-dark);
  border-color: rgba(14, 140, 134, 0.4);
  background: #dcf4ef;
}

.board-command.alert {
  color: #b04232;
  background: #fff1ef;
}

.board-color {
  width: 42px;
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--outline);
  border-radius: 9px;
  background: var(--white);
}

.board-size {
  width: 92px;
  accent-color: var(--teal);
}

.board-colour-picker,
.board-width-picker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 650;
}

.board-text-editor {
  margin-bottom: 11px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--mist);
}

.board-text-editor label {
  flex: none;
  color: var(--navy-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.board-text-editor input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--outline);
  border-radius: 9px;
  background: var(--white);
}

.board-text-editor .primary-button {
  min-height: 42px;
  padding: 7px 12px;
}

.board-stage {
  overflow: auto;
  border-radius: 12px;
}

.whiteboard-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  border: 1px solid var(--outline);
  border-radius: 12px;
  background: var(--white);
  touch-action: none;
}

.whiteboard-canvas.panning {
  cursor: grab;
  touch-action: pan-x pan-y pinch-zoom;
}

.whiteboard-panel.expanded {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background: #f7fafa;
}

.whiteboard-panel.expanded .board-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
}

.whiteboard-panel.expanded .whiteboard-canvas {
  width: min(100%, calc((100dvh - 218px) * 5 / 3));
  min-width: 0;
}

body.board-open {
  overflow: hidden;
}

.board-status {
  margin-top: 10px;
}

.question {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 13px;
  border-radius: 15px;
  background: var(--white);
  border: 1px solid #e6edef;
}

.question.answered {
  opacity: 0.56;
}

.vote-button {
  align-self: start;
  width: 49px;
  min-height: 57px;
  padding: 6px 3px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  color: var(--muted);
  border: 1px solid var(--outline);
  background: #f8fbfb;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 700;
}

.vote-button.active {
  border-color: rgba(14, 140, 134, 0.34);
  color: var(--teal-dark);
  background: #dcf4ef;
}

.vote-arrow {
  font-size: 0.95rem;
  line-height: 1;
}

.question-body {
  margin: 1px 0 8px;
  line-height: 1.4;
}

.question-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.host-layout {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.host-top {
  display: grid;
  gap: 16px;
}

.host-session,
.host-controls {
  padding: 20px;
}

.room-code-large {
  margin: 10px 0 18px;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0.19em;
  font-weight: 760;
}

.share-grid {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
}

.qr-code {
  width: 112px;
  height: 112px;
  padding: 7px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: var(--white);
}

.share-link {
  word-break: break-all;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.mode-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.mode-option {
  min-height: 45px;
  padding: 9px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid var(--outline);
  background: var(--white);
  font-weight: 650;
}

.mode-option.active {
  color: var(--teal-dark);
  border-color: rgba(14, 140, 134, 0.32);
  background: #dcf4ef;
}

.host-results {
  min-height: 320px;
}

.setup-note {
  margin: 0;
  padding: 13px;
  color: var(--muted);
  border-radius: 12px;
  background: var(--mist);
  font-size: 0.86rem;
  line-height: 1.46;
}

.toggle-setting {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--navy-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.toggle-setting input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.metrics-grid article {
  padding: 16px 15px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--white);
}

.metrics-grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.metrics-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.report-toolbar {
  display: grid;
  gap: 15px;
  align-items: center;
}

.report-toolbar h3 {
  margin-bottom: 5px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-actions button {
  flex: 1;
}

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

.moderation {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tiny-action {
  padding: 6px 10px;
  color: var(--muted);
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}

.tiny-action.alert {
  color: #b04232;
}

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translate(-50%, 24px);
  width: max-content;
  max-width: calc(100% - 38px);
  padding: 12px 16px;
  color: var(--white);
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 10px 28px rgba(16, 35, 56, 0.24);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-link {
  color: var(--muted);
  text-decoration: none;
}

.admin-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 35px 18px 60px;
}

.admin-heading {
  max-width: 680px;
  margin-bottom: 29px;
}

.admin-heading h1 {
  font-size: clamp(2rem, 6vw, 3.3rem);
}

.admin-grid {
  display: grid;
  gap: 15px;
}

.admin-form,
.account-list-panel {
  padding: 21px;
}

.account-list {
  display: grid;
  gap: 9px;
}

.account-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--outline);
  border-radius: 12px;
}

.account-list p,
.account-list small {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (min-width: 780px) {
  .app {
    padding: 30px 30px 54px;
  }

  .hero {
    grid-template-columns: minmax(370px, 1fr) 400px;
    align-items: center;
    min-height: min(700px, calc(100vh - 108px));
    gap: 52px;
  }

  .entry-card {
    padding: 25px;
  }

  .host-top {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .report-toolbar {
    grid-template-columns: 1fr auto;
  }

  .toolbar-actions button {
    flex: initial;
  }

  .value-grid,
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .activity-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .report-callout {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 22px 24px;
  }

  .conversion-banner {
    grid-template-columns: 1fr auto;
    padding: 38px 39px;
  }

  .admin-grid {
    grid-template-columns: 410px 1fr;
    align-items: start;
  }
}

@media (max-width: 779px) {
  .whiteboard-panel.expanded .board-stage {
    display: block;
    overflow: auto;
  }

  .whiteboard-panel.expanded .whiteboard-canvas {
    width: 760px;
    min-width: 760px;
  }
}


@media (max-width: 620px) {
  .topbar {
    gap: 10px;
    padding: 0 14px;
  }

  .brand {
    min-width: 0;
    font-size: 0.96rem;
  }

  .brand > span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .marketing-nav a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 420px) {
  .marketing-nav a:first-child {
    display: none;
  }

  .marketing-nav {
    gap: 0;
  }

  .marketing-nav .nav-cta {
    padding: 9px 11px;
    font-size: 0.82rem;
  }

  .compose-row {
    display: grid;
  }

  .compose-row .primary-button {
    width: 100%;
  }

  .share-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .whiteboard-panel {
    padding: 9px;
  }

  .board-controls {
    justify-content: space-between;
  }

  .board-actions {
    justify-content: flex-start;
  }

  .board-text-editor {
    flex-wrap: wrap;
  }

  .board-text-editor input {
    flex-basis: 100%;
    order: 2;
  }

  .board-text-editor .primary-button,
  .board-text-editor .board-command {
    order: 3;
  }

}

@media print {
  .topbar,
  .host-controls,
  .report-toolbar,
  .qr-code,
  .secondary-button,
  .danger-button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .host-top {
    display: block;
  }

  .host-session {
    margin-bottom: 18px;
    box-shadow: none;
  }

  .result-panel,
  .metrics-grid article {
    box-shadow: none;
  }
}
