﻿:root {
  --blue: #1f659c;
  --blue-dark: #164f82;
  --cube: #19c4b8;
  --cube-dark: #11939d;
  --swamp: #0f817d;
  --swamp-2: #0b5f66;
  --white: #ffffff;
  --ink: #0b2d3f;
  --muted: #5a7380;
  --line: rgba(11, 45, 63, 0.16);
  --danger: #a9362d;
  --ok: #e8fbf8;
  --ok-card: #d8ff5f;
  --deleted-card: #f7e1e1;
  --deleted: #dce6ea;
  --shadow: 0 18px 34px rgba(7, 39, 62, 0.22);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--blue);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body.public-mode .app-header,
body.public-mode .checkin-shell,
body.public-mode .menu-panel,
body.public-mode .login-gate,
body.public-mode .voice-checkin-button {
  display: none !important;
}

body.auth-gate-open .app-header,
body.auth-gate-open .checkin-shell,
body.auth-gate-open .menu-panel,
body.auth-gate-open .voice-checkin-button {
  display: none !important;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 10px;
  background:
    radial-gradient(circle at 20% 12%, rgba(114, 255, 232, 0.25), transparent 28%),
    linear-gradient(180deg, #1f7cad 0%, #256bc1 100%);
  backdrop-filter: blur(8px);
}

.login-gate[hidden] {
  display: none !important;
}

.gate-card,
.invite-card {
  width: min(420px, 100%);
  padding: 26px 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.gate-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto 1fr auto auto;
  gap: 8px;
  place-items: center;
  width: min(390px, 100%);
  min-height: min(760px, calc(100vh - 20px));
  padding: 46px 20px 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 5%, rgba(114, 255, 232, 0.28), transparent 30%),
    linear-gradient(180deg, #3a96ce 0%, #2a73c6 100%);
  box-shadow: 0 18px 38px rgba(5, 35, 74, 0.28);
  overflow: hidden;
}

.gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(64, 224, 208, 0.16), transparent 22%);
}

.gate-card > * {
  position: relative;
  z-index: 1;
}

.gate-brand {
  grid-row: 2;
  align-self: end;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(18, 92, 174, 0.72);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.gate-brand strong {
  font-size: 16px;
  font-weight: 1000;
}

.gate-brand span {
  font-size: 15px;
  font-weight: 500;
}

.login-cube-wrap {
  grid-row: 3;
  width: min(70vw, 260px);
  aspect-ratio: 1 / 0.86;
}

.login-cube-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.login-cube-wrap canvas:active {
  cursor: grabbing;
}

.gate-card p,
.invite-card p {
  margin: 0 0 6px;
  color: var(--swamp);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.gate-card p {
  grid-row: 5;
  color: #fff;
  align-self: end;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  opacity: 0.82;
  text-shadow: 0 10px 22px rgba(3, 22, 40, 0.26);
}

.gate-card h2,
.invite-card h1 {
  margin: 0 0 18px;
  color: var(--ink);
}

.gate-card h2 {
  color: #fff;
  text-shadow: 0 12px 28px rgba(3, 22, 40, 0.28);
}

.gate-card h2 {
  max-width: 330px;
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1.12;
}

.gate-login {
  grid-row: 6;
  width: min(250px, 100%);
  align-self: start;
}

.public-invite {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.invite-logo {
  width: 124px;
  height: 124px;
  margin: 0 auto 20px;
  border-radius: 24px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 1;
}

.invite-card form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  text-align: left;
}

.invite-card > span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.invite-description {
  margin: 14px 0 12px !important;
  color: #6b7c85 !important;
  font-size: 15px !important;
  line-height: 1.35;
  font-weight: 400 !important;
  text-transform: none !important;
}

.route-link,
.signup-call {
  display: block;
  margin-top: 12px;
  color: var(--swamp);
  font-weight: 900;
}

.route-link {
  min-height: 46px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 129, 125, 0.12);
  text-decoration: none;
}

.signup-call {
  width: 100%;
  margin-top: 14px;
  border-radius: 14px;
  font-size: 18px;
}

.signup-call:disabled {
  opacity: 0.56;
}

.event-watermark {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
  background-position: center 54%;
  background-repeat: no-repeat;
  background-size: min(92vw, 720px);
  opacity: 0.42;
  filter: saturate(1.16) contrast(1.04);
  pointer-events: none;
}

.event-watermark.visible {
  display: block;
}

button,
input,
select {
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.switch-row input {
  width: 24px;
  min-height: 24px;
}

.work-switch {
  padding: 12px;
  border: 1px solid rgba(15, 129, 125, 0.18);
  border-radius: 8px;
  background: rgba(15, 129, 125, 0.08);
}

.work-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-left: 4px solid var(--cube);
  border-radius: 8px;
  background: rgba(25, 196, 184, 0.1);
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.google-login-button {
  display: inline-grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 7px 15px 7px 8px;
  border: 1px solid rgba(11, 45, 63, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #444;
  box-shadow: 0 16px 30px rgba(4, 27, 48, 0.22);
  text-align: left;
}

.google-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.google-login-button strong {
  font-size: 13px;
  white-space: nowrap;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  background: var(--blue);
}

.left-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: start;
}

#menuButton {
  display: none !important;
}

.header-brand {
  justify-self: center;
  min-width: 0;
}

.app-header p,
.app-header h1 {
  margin: 0;
  color: #fff;
  text-align: center;
}

.app-header p {
  font-size: 12px;
  font-weight: 900;
  opacity: 0.78;
}

.app-header h1 {
  font-size: 24px;
  line-height: 1;
}

.icon-button {
  width: 46px;
  min-height: 46px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 21px;
  line-height: 1;
}

.icon-button.dark {
  background: #15230d;
}

.user-badge {
  display: grid;
  grid-template-columns: 32px auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 128px;
  padding: 5px 8px 5px 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
}

.user-badge img,
.user-badge span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.user-badge img {
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.35);
}

.user-badge span {
  display: none;
  place-items: center;
  background: var(--cube);
  color: #073747;
  font-size: 14px;
  font-weight: 900;
}

.user-badge.no-photo img {
  display: none;
}

.user-badge.no-photo span {
  display: grid;
}

.user-badge strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-chip {
  display: block;
  max-width: 170px;
  min-height: 38px;
  overflow: hidden;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-action,
.primary-button,
.secondary-button,
.danger-button,
.menu-item {
  min-height: 50px;
  padding: 0 16px;
}

.top-action,
.primary-button {
  background: var(--cube-dark);
  color: #fff;
}

.top-action {
  min-width: 112px;
  justify-self: end;
}

.checkin-shell {
  width: min(680px, 100%);
  margin: 0 auto;
}

.search-box {
  padding: 10px 14px 8px;
}

.search-box h2 {
  margin: 0 14px 8px;
  color: #f7ffe9;
  font-size: 16px;
}

.list-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 14px 10px;
}

.list-tab {
  min-height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.list-tab.active {
  background: #fff;
  color: var(--swamp);
}

label {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-weight: 800;
}

label span {
  font-size: 13px;
}

.required-mark {
  color: #d32f2f;
  font-style: normal;
  font-weight: 900;
}

.optional-mark {
  color: #111;
  font-style: normal;
  font-weight: 800;
  text-transform: none;
}

.field-help {
  display: block;
  margin-top: -2px;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.location-field {
  display: grid;
  gap: 8px;
}

.location-field > span {
  color: #111;
  font-size: 13px;
  font-weight: 900;
}

.phone-field {
  position: relative;
}

.phone-field input {
  position: relative;
  z-index: 2;
  background: transparent;
  color: transparent;
  caret-color: #111;
  text-transform: none;
}

.phone-field input::placeholder {
  color: rgba(14, 22, 9, 0.42);
}

.phone-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 64px;
  overflow: hidden;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-size: 22px;
  font-weight: 800;
  pointer-events: none;
}

.phone-preview span {
  color: var(--swamp);
  font-size: inherit;
}

.phone-preview strong {
  color: #111;
  font-size: inherit;
}

.search-box label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

input {
  width: 100%;
  min-height: 64px;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #0e1609;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
}

select {
  width: 100%;
  min-height: 56px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

input:focus {
  outline: 4px solid rgba(25, 196, 184, 0.34);
}

.results {
  min-height: calc(100vh - 160px);
  padding: 8px 14px 24px;
}

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

.guest-card {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.guest-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: #fff;
  transition: transform 160ms ease;
}

.guest-card h3,
.guest-card p {
  margin: 0;
}

.guest-card h3 {
  font-size: 21px;
  line-height: 1.15;
  text-transform: uppercase;
}

.guest-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.guest-card span {
  padding: 7px 9px;
  border-radius: 8px;
  background: #eff4e6;
  color: var(--swamp);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guest-delete-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(169, 54, 45, 0.18);
  border-radius: 8px;
  background: rgba(169, 54, 45, 0.08);
  color: var(--danger);
  font-size: 15px;
  line-height: 1;
  opacity: 0.72;
}

.guest-delete-button:hover,
.guest-delete-button:focus-visible {
  opacity: 1;
}

.guest-card.present span {
  background: #0f817d;
  color: #fff;
}

.guest-card.worker span {
  background: var(--blue-dark);
  color: #fff;
}

.guest-card.present .guest-content {
  background: var(--ok-card);
  border-color: rgba(15, 129, 125, 0.5);
}

.guest-card.worker:not(.present):not(.deleted) .guest-content {
  border-color: rgba(31, 101, 156, 0.42);
  background: #eef8ff;
}

.guest-card.present h3,
.guest-card.present p {
  color: #123300;
}

.guest-card.deleted {
  opacity: 0.78;
}

.guest-card.deleted .guest-content {
  background: var(--deleted-card);
  border-color: rgba(255, 255, 255, 0.45);
}

.guest-card.deleted h3,
.guest-card.deleted p {
  color: #8b5555;
}

.guest-card.deleted span {
  background: var(--deleted);
  color: #60737e;
}

.swipe-hint {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.swipe-hint.right {
  right: 0;
  width: 50%;
  justify-content: end;
  background: var(--blue-dark);
}

.swipe-hint.left {
  left: 0;
  width: 50%;
  justify-content: start;
  background: var(--swamp);
}

.empty-state {
  display: grid;
  min-height: 52vh;
  place-items: center;
  margin: 0;
  padding: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 10px;
  background: rgba(7, 39, 62, 0.5);
}

.menu-card {
  width: min(360px, 100%);
  min-height: calc(100vh - 20px);
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.menu-head,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.menu-head p,
.menu-head strong,
.dialog-head h2 {
  margin: 0;
}

.menu-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.quiet-menu-item {
  display: block;
  min-height: 0;
  margin: 8px 0 18px;
  padding: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu-head strong,
.dialog-head h2 {
  color: var(--swamp);
  font-size: 20px;
}

.menu-item {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  background: var(--swamp);
  color: #fff;
  text-align: left;
}

.menu-item.danger {
  background: var(--danger);
}

.plans-menu-item {
  background: #0b2d3f;
}

.plan-status {
  margin: 18px 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(25, 196, 184, 0.12);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.other-apps {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.other-apps p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.app-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.app-link.vagas,
.app-link.contas {
  background: var(--swamp);
}

.app-link.eventos {
  background: #2188ff;
}

.app-link.corridas {
  background: #ff7d1b;
}

.app-link.copa {
  background: #19a84b;
}

dialog {
  width: min(520px, calc(100% - 22px));
  padding: 16px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(18, 32, 13, 0.55);
}

dialog input {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 18px;
}

.plain-button {
  min-height: 40px;
  background: transparent;
  color: var(--swamp);
}

.helper-text,
.error-text {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.4;
}

.error-text {
  color: var(--danger);
  font-weight: 800;
}

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

.event-settings {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.form-field-settings {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.create-event-options {
  display: grid;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
}

.create-event-options h3 {
  margin: 0;
  color: var(--swamp);
  font-size: 15px;
}

.plan-suggestion {
  min-height: 50px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 129, 125, 0.22);
  border-radius: 8px;
  background: rgba(15, 129, 125, 0.08);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.form-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.plans-dialog {
  width: min(760px, calc(100% - 22px));
}

.plans-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.plans-hero p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.plans-vector {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(25, 196, 184, 0.16), rgba(31, 101, 156, 0.12));
}

.plans-vector span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--swamp);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.plans-vector i {
  height: 3px;
  border-radius: 999px;
  background: var(--cube-dark);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(126px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.plans-grid article {
  cursor: pointer;
  min-height: 184px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.plans-grid article:focus-visible {
  outline: 4px solid rgba(25, 196, 184, 0.34);
  outline-offset: 2px;
}

.plans-grid article.featured {
  border-color: rgba(25, 196, 184, 0.72);
  background: #e9fffb;
}

.plans-grid article.master {
  background: #0b2d3f;
  color: #fff;
}

.plans-grid strong,
.plans-grid span {
  display: block;
}

.plans-grid strong {
  color: var(--swamp);
  font-size: 18px;
}

.plans-grid article.master strong,
.plans-grid article.master span,
.plans-grid article.master p {
  color: #fff;
}

.plans-grid span {
  margin-top: 5px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.plans-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.plans-grid button {
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--cube-dark);
  color: #fff;
  font-size: 12px;
}

.plans-grid article.master button {
  background: #fff;
  color: var(--blue-dark);
}

.worker-profile {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.worker-avatar {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(25, 196, 184, 0.14);
  color: var(--swamp);
  font-size: 12px;
  font-weight: 900;
  background-position: center;
  background-size: cover;
}

.worker-profile strong {
  color: var(--ink);
  font-size: 20px;
  text-transform: uppercase;
}

.worker-profile p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.worker-actions {
  display: grid;
  gap: 8px;
}

.location-history {
  display: grid;
  gap: 8px;
}

.location-history a,
.location-history span {
  display: block;
  padding: 10px;
  border-radius: 8px;
  background: #f3f8f8;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.form-field-row strong {
  color: var(--swamp);
  font-size: 13px;
}

.report-grid article {
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.report-grid strong {
  display: block;
  color: var(--swamp);
  font-size: 32px;
}

.report-grid span,
.moderator-list {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.moderator-stats {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.moderator-stats h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 15px;
}

.moderator-stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.moderator-stat-row strong {
  color: var(--swamp);
}

.event-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.event-row {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.event-row strong {
  font-size: 16px;
}

.event-row span {
  color: var(--muted);
  font-size: 12px;
}

.moderator-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.moderator-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.moderator-row button {
  min-height: 38px;
  background: #f4e2df;
  color: var(--danger);
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.secondary-button {
  background: #e8efdc;
  color: var(--swamp);
}

.danger-button {
  background: var(--danger);
  color: #fff;
}

.toast {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 80;
  display: none;
  max-width: 520px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 8px;
  background: var(--swamp-2);
  color: #fff;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow);
}

.toast.show {
  display: flex;
}

.toast button {
  min-height: 38px;
  padding: 0 12px;
  background: #fff;
  color: var(--swamp-2);
  white-space: nowrap;
}

.voice-checkin-button {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: #ffcf6a;
  color: var(--ink);
  box-shadow: 0 16px 30px rgba(7, 39, 62, 0.26);
  font-size: 22px;
  font-weight: 900;
}

.voice-checkin-button.listening {
  animation: voiceCheckinPulse 1s ease-in-out infinite;
  background: var(--cube);
}

.voice-checkin-helper {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 20, 32, 0.48);
  backdrop-filter: blur(8px);
}

.voice-checkin-helper.active {
  display: grid;
}

.voice-checkin-card {
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.voice-checkin-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.voice-checkin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.voice-checkin-wave {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.voice-checkin-wave span {
  width: 7px;
  height: 24px;
  border-radius: 999px;
  background: var(--cube);
  animation: voiceCheckinBar 720ms ease-in-out infinite;
}

.voice-checkin-wave span:nth-child(2) { animation-delay: 90ms; }
.voice-checkin-wave span:nth-child(3) { animation-delay: 180ms; }
.voice-checkin-wave span:nth-child(4) { animation-delay: 270ms; }

@keyframes voiceCheckinPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 207, 106, 0.36), 0 16px 30px rgba(7, 39, 62, 0.24); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(255, 207, 106, 0), 0 16px 30px rgba(7, 39, 62, 0.24); }
}

@keyframes voiceCheckinBar {
  0%, 100% { transform: scaleY(0.48); opacity: 0.52; }
  50% { transform: scaleY(1.18); opacity: 1; }
}

@media (max-width: 430px) {
  .app-header {
    grid-template-columns: 1fr auto 96px;
  }

  .app-header h1 {
    font-size: 22px;
  }

  input {
    font-size: 20px;
  }

  .guest-card h3 {
    font-size: 19px;
  }

  .user-badge {
    max-width: 92px;
  }

  .event-chip {
    max-width: 92px;
  }

  .plans-vector {
    grid-template-columns: 1fr;
  }

  .plans-vector i {
    width: 3px;
    height: 16px;
    margin: 0 auto;
  }

  .worker-profile {
    grid-template-columns: 64px 1fr;
  }

  .worker-avatar {
    width: 64px;
    height: 64px;
  }
}
