﻿:root {
  --bg: #f4f5f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-dark: #0f1b34;
  --text: #14213d;
  --muted: #5c6987;
  --line: rgba(20, 33, 61, 0.1);
  --primary: #d92d20;
  --primary-dark: #b61f13;
  --accent: #0f8cc8;
  --accent-dark: #0a6f9f;
  --gold: #f1b508;
  --success: #157347;
  --danger: #bd2432;
  --shadow: 0 28px 80px rgba(18, 30, 63, 0.14);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 140, 200, 0.2), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef2f7 48%, #f4f5f8 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 110px;
  background:
    linear-gradient(135deg, rgba(6, 22, 44, 0.92), rgba(7, 67, 98, 0.82)),
    radial-gradient(circle at top right, rgba(217, 45, 32, 0.35), transparent 26%);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-position: center;
  background-size: cover;
  mix-blend-mode: screen;
}

.hero__video {
  position: absolute;
  inset: -12% -8%;
  pointer-events: none;
  opacity: 0.55;
  filter: saturate(1.15) contrast(1.04);
}

.hero__video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero__video--hidden {
  display: none;
}

.hero__aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(217, 45, 32, 0.34), transparent 24%),
    radial-gradient(circle at 80% 22%, rgba(15, 140, 200, 0.36), transparent 26%),
    radial-gradient(circle at 55% 82%, rgba(241, 181, 8, 0.18), transparent 18%);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 96px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background-color: rgba(255, 255, 255, 0.92);
  color: #852100;
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-size: 1.8rem;
  font-weight: 900;
  overflow: hidden;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  backdrop-filter: blur(6px);
}

.brand__text strong { font-size: 1.1rem; }

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.96rem;
}

.menu a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.menu a:hover { opacity: 1; }

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: end;
  margin-top: 58px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
}

.hero__copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.96;
  max-width: 11ch;
}

.hero__text {
  max-width: 58ch;
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.84);
}

.hero__actions,
.hero__badges,
.search-panel__fields,
.search-inline,
.form-actions,
.admin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.search-panel__fields > *,
.search-inline > *,
.form-actions > * {
  min-width: 0;
}

.hero__badges {
  margin-top: 24px;
}

.hero__badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
}

.hero__panel,
.search-panel,
.form-card,
.highlight-card,
.logo-card,
.about-card,
.location-card,
.metrics-panel,
.admin-card,
.rule-card,
.organizer-card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__panel {
  padding: 24px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__panel-logo {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  background: transparent;
  color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
  font-size: 3rem;
  font-weight: 900;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.countdown div {
  padding: 18px 10px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 140, 200, 0.16), rgba(15, 140, 200, 0.05));
  border: 1px solid rgba(15, 140, 200, 0.08);
}

.countdown strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

.countdown span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__stats div,
.metric-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(15, 140, 200, 0.08);
}

.hero__stats dt,
.metric-card span {
  font-size: 0.84rem;
  color: var(--muted);
}

.hero__stats dd,
.metric-card strong {
  margin: 8px 0 0;
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
}

.hero__panel-heading {
  width: 100%;
  text-align: center;
}

.hero__panel-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.button--hero-panel {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px 26px;
  font-size: 1.05rem;
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.section--floating {
  margin-top: -58px;
  position: relative;
  z-index: 2;
}

.section--alternate {
  background: linear-gradient(180deg, rgba(15, 140, 200, 0.05), rgba(217, 45, 32, 0.04));
}

.section__header {
  max-width: 760px;
  margin-bottom: 28px;
}

.section__header .eyebrow {
  color: var(--primary);
}

.section--alternate .eyebrow {
  color: var(--primary);
}

.section__header h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.section__header p:last-child,
.about-card p,
.location-card p,
.helper {
  color: var(--muted);
}

.highlights,
.logo-grid,
.form-grid,
.split,
.admin-layout {
  display: grid;
  gap: 20px;
}

.highlights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-card,
.logo-card,
.about-card,
.location-card,
.metrics-panel,
.map-panel,
.admin-card {
  padding: 24px;
}

.highlight-card {
  position: relative;
  overflow: hidden;
}

.highlight-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 45, 32, 0.16), transparent 66%);
}

.highlight-card h3,
.rule-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.logo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logo-grid--compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.logo-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.logo-card__media {
  min-height: 96px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 140, 200, 0.08), rgba(15, 140, 200, 0.02));
  overflow: hidden;
}

.logo-card__media img {
  max-height: 76px;
  width: auto;
}

.logo-card__media span {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-dark);
}

.logo-card__footer strong {
  display: block;
  font-size: 1rem;
}

.logo-card__footer a {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
}

.split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}

.organizer-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  margin-top: 26px;
  padding: 18px;
}

.organizer-card__logo {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 140, 200, 0.16), rgba(15, 140, 200, 0.04));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.rules-list {
  display: grid;
  gap: 16px;
}

.rule-card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.rule-card p {
  margin: 0;
  color: var(--muted);
}

.location-card {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(15, 140, 200, 0.96), rgba(3, 44, 72, 0.96)),
    #0f8cc8;
  color: #fff;
}

.location-card .eyebrow,
.location-card p,
.location-card a,
.location-card span {
  color: rgba(255, 255, 255, 0.86);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.metrics-panel__list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.map-panel {
  min-height: 100%;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.map-panel__frame {
  position: relative;
  min-height: 340px;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.map-panel__frame img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
  object-fit: cover;
}

.map-panel__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15, 140, 200, 0.94), rgba(3, 44, 72, 0.94)),
    #0f8cc8;
  color: #fff;
}

.map-panel__fallback .eyebrow,
.map-panel__fallback span {
  color: rgba(255, 255, 255, 0.82);
}

.map-panel__fallback strong {
  font-size: 1.6rem;
}

.search-panel {
  padding: 22px;
  margin-bottom: 22px;
}

.search-panel--registration {
  margin-bottom: 0;
}

.form-card { padding: 28px; }

.form-section + .form-section {
  margin-top: 28px;
}

.form-section__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.form-section__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(15, 140, 200, 0.08);
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.tag--highlight {
  background: rgba(217, 45, 32, 0.1);
  color: var(--primary-dark);
}

.tag--locked {
  background: rgba(20, 33, 61, 0.08);
  color: var(--muted);
}

.tag--ready {
  background: rgba(21, 115, 71, 0.12);
  color: var(--success);
}

.form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid__wide {
  grid-column: span 2;
}

.input-action-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.input-action-row input {
  flex: 1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  min-width: 0;
}

.field-caption {
  display: block;
  margin-top: -2px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--primary);
  opacity: 0.85;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(15, 140, 200, 0.2);
  border-color: rgba(15, 140, 200, 0.5);
}

.field--invalid {
  border-color: rgba(189, 36, 50, 0.65);
  box-shadow: 0 0 0 3px rgba(189, 36, 50, 0.12);
}

.notice,
.upload-row {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(241, 181, 8, 0.14);
  color: #7c5b02;
  font-weight: 700;
}

.terms-box {
  max-height: 180px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  margin-top: 14px;
}

.checkbox input {
  width: 18px;
  min-height: auto;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--primary); color: #fff; }
.button--primary:hover { background: var(--primary-dark); }
.button--secondary { background: var(--accent); color: #fff; }
.button--secondary:hover { background: var(--accent-dark); }
.button--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.button--soft {
  background: rgba(20, 33, 61, 0.08);
  color: var(--text);
}

.menu--light a {
  color: #fff;
}

.registration-page {
  min-height: 100vh;
}

.registration-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0;
  background: linear-gradient(135deg, #091c37, #0b739e);
  color: #fff;
}

.registration-hero__backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.4;
}

.registration-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.registration-hero__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.registration-hero__logo {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background-color: rgba(255, 255, 255, 0.94);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  color: transparent;
  font-weight: 900;
  font-size: 2rem;
  backdrop-filter: blur(6px);
}

.registration-hero__brand strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
}

.registration-layout {
  padding: 42px 0 80px;
}

.registration-intro {
  max-width: 860px;
  margin-bottom: 26px;
}

.registration-intro h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
}

.registration-intro p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.registration-flow {
  display: grid;
  gap: 22px;
}

.registration-form {
  display: grid;
  gap: 22px;
}

.registration-step-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.registration-step {
  display: flex;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.registration-step h2 {
  margin: 0 0 8px;
}

.registration-step p {
  margin: 0;
  color: var(--muted);
}

.registration-step__number {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(217, 45, 32, 0.14), rgba(217, 45, 32, 0.04));
  color: var(--primary);
  font-weight: 900;
  font-size: 1.15rem;
}

.registration-form--hidden,
.registration-success--hidden {
  display: none;
}

.search-inline--stacked {
  align-items: end;
}

.search-panel--registration .search-panel__fields label,
.search-inline--stacked label {
  flex: 1 1 280px;
}

.search-panel--registration .search-panel__fields button,
.search-inline--stacked button {
  flex: 0 1 auto;
}

.registration-success {
  padding: 42px 36px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.registration-success__eyebrow {
  color: #ff4e78;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
}

.registration-success h2 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.registration-success > p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

.registration-success__event {
  margin-top: 26px;
}

.registration-success__event h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.registration-success__event p {
  margin: 4px 0;
  color: var(--muted);
}

.registration-success__notice {
  max-width: 560px;
  margin: 28px auto 0;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(241, 181, 8, 0.18);
  text-align: left;
}

.registration-success__notice strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.registration-success__notice p {
  margin: 10px 0;
  color: #6b5609;
}

.registration-success__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 28px 0 42px;
  border-top: 1px solid rgba(20, 33, 61, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.site-footer__content {
  display: grid;
  gap: 8px;
  text-align: center;
}

.site-footer__content p {
  margin: 0;
  color: var(--muted);
}

.site-footer__content a {
  color: var(--primary);
  font-weight: 800;
}

.privacy-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.18), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--text);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 74px;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.08);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.password-field__toggle:hover {
  background: rgba(20, 33, 61, 0.14);
}

.privacy-hero {
  padding: 22px 0 70px;
  background: linear-gradient(135deg, #0f172a 0%, #17324d 54%, #0c4a6e 100%);
  color: #fff;
}

.privacy-hero .topbar {
  position: relative;
}

.privacy-hero__content {
  padding-top: 72px;
  max-width: 920px;
}

.privacy-hero__content h1 {
  margin: 8px 0 16px;
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.privacy-hero__content p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.privacy-content {
  display: grid;
  gap: 18px;
  margin-top: -42px;
  padding-bottom: 70px;
}

.privacy-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.07);
}

.privacy-card h2 {
  margin: 0 0 10px;
  color: var(--text);
}

.privacy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.form-actions {
  justify-content: space-between;
  margin-top: 28px;
}

.form-actions--compact {
  justify-content: flex-start;
  margin-top: 18px;
}

.registration-stage-group {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.registration-stage-group:disabled {
  opacity: 1;
}

.registration-stage-group:disabled input,
.registration-stage-group:disabled select,
.registration-stage-group:disabled button,
.registration-stage-group:disabled textarea {
  cursor: not-allowed;
}

.registration-step-card--form-block {
  padding: 28px;
}

.registration-full-name-field {
  grid-column: 1 / -1;
}

.registration-step-card--company-data {
  background:
    radial-gradient(circle at top right, rgba(15, 140, 200, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(245, 250, 255, 0.94), rgba(255, 255, 255, 0.98));
}

.registration-step-card--summary {
  background:
    radial-gradient(circle at top right, rgba(15, 140, 200, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

.registration-step-card--decision {
  border: 1px solid rgba(15, 140, 200, 0.12);
  background:
    radial-gradient(circle at top right, rgba(217, 45, 32, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96));
}

.registration-step-card--warning {
  border: 1px solid rgba(189, 36, 50, 0.18);
  box-shadow: 0 0 0 4px rgba(189, 36, 50, 0.08), var(--shadow);
}

.registration-company-terms {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 33, 61, 0.08);
}

.form-section__header--nested {
  margin-bottom: 14px;
}

.registration-company-terms h4 {
  margin: 0;
  font-size: 1.1rem;
}

.search-panel--company {
  display: grid;
  gap: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  background: rgba(251, 253, 255, 0.96);
}

.summary-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.summary-card span {
  display: block;
  font-weight: 800;
  color: var(--text);
  overflow-wrap: anywhere;
}

.warning-box {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(189, 36, 50, 0.08);
  border: 1px solid rgba(189, 36, 50, 0.16);
  color: var(--danger);
}

.warning-box strong,
.warning-box p {
  margin: 0;
}

.warning-box--hidden {
  display: none;
}

.status--success { color: var(--success); }
.status--error { color: var(--danger); }
.button--danger {
  background: rgba(189, 36, 50, 0.1);
  color: var(--danger);
  border: 1px solid rgba(189, 36, 50, 0.18);
}

.button--danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-page {
  min-height: 100vh;
  padding: 34px 0 64px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
}

.admin-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
}

.admin-sidebar nav {
  display: grid;
  gap: 10px;
}

.admin-sidebar a {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(15, 140, 200, 0.08);
  font-weight: 700;
}

.admin-content {
  display: grid;
  gap: 20px;
}

.admin-card h3 {
  margin-top: 0;
}

.sync-indicator {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.sync-indicator__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(20, 33, 61, 0.06);
  grid-row: 1 / span 2;
}

.sync-indicator strong,
.sync-indicator small {
  display: block;
}

.sync-indicator strong {
  color: var(--text);
  font-size: 0.96rem;
}

.sync-indicator small {
  color: var(--muted);
  font-size: 0.82rem;
}

.sync-indicator--ok {
  color: var(--success);
  border-color: rgba(21, 115, 71, 0.18);
  background: rgba(21, 115, 71, 0.08);
}

.sync-indicator--warning {
  color: #9a6700;
  border-color: rgba(241, 181, 8, 0.28);
  background: rgba(241, 181, 8, 0.12);
}

.sync-indicator--error {
  color: var(--danger);
  border-color: rgba(189, 36, 50, 0.22);
  background: rgba(189, 36, 50, 0.08);
}

.sync-indicator--neutral {
  color: var(--accent-dark);
  border-color: rgba(15, 140, 200, 0.18);
  background: rgba(15, 140, 200, 0.08);
}

.admin-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.repeat-list {
  display: grid;
  gap: 16px;
}

.repeat-item {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.repeat-item--selected {
  border-color: rgba(15, 140, 200, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 140, 200, 0.08);
}

.repeat-item--active {
  background: linear-gradient(180deg, rgba(15, 140, 200, 0.12), rgba(255, 255, 255, 0.82));
}

.repeat-item__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.event-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.helper--inline {
  margin: 10px 0 0;
}

.preview-tile {
  width: 100%;
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px dashed rgba(20, 33, 61, 0.18);
  background: rgba(15, 140, 200, 0.04);
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
}

.preview-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.upload-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(241, 181, 8, 0.14);
  color: #7c5b02;
  font-size: 0.92rem;
  font-weight: 700;
}

.upload-hint--hidden {
  display: none;
}

.ops-body {
  background: #eef2f7;
}

.ops-is-locked {
  overflow: hidden;
}

.ops-login {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.22), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 46%, #0b1120 100%);
}

.ops-login.is-visible {
  display: flex;
}

.admin-auth-pending .shell {
  visibility: hidden;
}

.admin-authenticated .shell {
  visibility: visible;
}

.ops-login__card {
  width: min(100%, 460px);
  display: grid;
  gap: 16px;
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.42);
}

.ops-login__card h1,
.ops-login__card p {
  margin: 0;
}

.ops-login__card h1 {
  color: var(--text);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 0.95;
}

.ops-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.ops-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: linear-gradient(180deg, #141b27, #111827);
  color: #f8fafc;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.ops-sidebar__brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.ops-sidebar__brand-mark {
  width: 74px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background-color: rgba(255, 255, 255, 0.94);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-weight: 900;
  overflow: hidden;
}

.ops-sidebar__brand span {
  display: block;
  margin-top: 4px;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.92rem;
}

.ops-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.ops-nav__item {
  border: 0;
  width: 100%;
  text-align: left;
  border-radius: 16px;
  padding: 12px 14px;
  background: transparent;
  color: rgba(248, 250, 252, 0.84);
  font-weight: 700;
  cursor: pointer;
}

.ops-nav__item.is-active,
.ops-nav__item:hover {
  background: rgba(59, 130, 246, 0.16);
  color: #fff;
}

.ops-sidebar__status {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  position: sticky;
  bottom: 0;
  align-self: end;
  z-index: 2;
}

.ops-sidebar__status strong {
  display: inline-flex;
  margin-bottom: 8px;
}

.ops-sidebar__status span {
  display: block;
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.92rem;
}

.ops-sidebar__status-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ops-sidebar__status-actions .button {
  justify-content: center;
}

.ops-badge {
  padding: 8px 12px;
  border-radius: 999px;
}

.ops-badge--online {
  background: rgba(21, 115, 71, 0.2);
  color: #b9f8cf;
}

.ops-badge--offline {
  background: rgba(217, 45, 32, 0.18);
  color: #ffd3ce;
}

.ops-permission-preview {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--text);
}

.ops-permission-preview span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ops-permission-preview small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.ops-main {
  padding: 28px;
  display: grid;
  gap: 24px;
}

.ops-main--module {
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

.ops-main--dashboard {
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.ops-main--dashboard .ops-topbar h1 {
  margin: 4px 0;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
}

.ops-main--dashboard .ops-topbar p:last-child {
  font-size: 0.9rem;
}

.ops-topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.ops-topbar h1 {
  margin: 8px 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.ops-topbar p:last-child {
  margin: 0;
  color: var(--muted);
}

.ops-topbar__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ops-eyebrow {
  color: var(--primary);
}

.ops-section {
  display: none;
}

.ops-section.is-active {
  display: grid;
  gap: 20px;
}

.ops-main--dashboard .ops-section.is-active {
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.ops-main--module .ops-section.is-active {
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

.ops-card,
.ops-stat-card {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(20, 33, 61, 0.07);
}

.ops-card {
  padding: 22px;
}

.ops-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.ops-card__header h2 {
  margin: 0;
  font-size: 1.08rem;
  flex: 1 1 auto;
}

.ops-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.ops-search-bar select,
.ops-search-bar input {
  height: 38px;
  border-radius: 12px;
}

.ops-search-bar select {
  min-width: 110px;
  flex: 0 0 110px;
}

.ops-search-bar input {
  flex: 1;
  min-width: 360px;
}

.ops-search-bar .button {
  flex: 0 0 auto;
}

.ops-button--compact,
.ops-card .button {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.ops-linked-panel {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  background: rgba(247, 250, 255, 0.92);
}

.ops-linked-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.ops-linked-panel__header h3 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

.ops-linked-panel__header small {
  color: var(--muted);
}

.ops-linked-list {
  display: grid;
  gap: 7px;
}

.ops-linked-list--scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.ops-card--company-list,
.ops-card--company-editor {
  min-height: 0;
  overflow: hidden;
  display: grid;
}

.ops-card--company-list {
  grid-template-rows: auto minmax(0, 1fr);
}

.ops-card--company-editor {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}

.ops-form--company {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 7px;
}

.ops-form__scroll {
  min-height: 0;
  overflow: hidden;
}

.ops-form--company .form-grid {
  gap: 7px 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.ops-form--company label {
  gap: 3px;
  font-size: 0.7rem;
  line-height: 1.15;
}

.ops-form--company input,
.ops-form--company select,
.ops-form--company textarea {
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.ops-form--company textarea {
  height: 38px;
  resize: none;
}

.ops-form--company label:nth-child(1),
.ops-form--company label:nth-child(2),
.ops-form--company label:nth-child(4),
.ops-form--company label:nth-child(7) {
  grid-column: span 3;
}

.ops-form--company label:nth-child(3) {
  grid-column: span 6;
}

.ops-form--company label:nth-child(5),
.ops-form--company label:nth-child(6) {
  grid-column: span 3;
}

.ops-form--company label:nth-child(8) {
  grid-column: span 4;
}

.ops-form--company label:nth-child(9),
.ops-form--company label:nth-child(10),
.ops-form--company label:nth-child(11),
.ops-form--company label:nth-child(12) {
  grid-column: span 2;
}

.ops-form--company label:nth-child(13) {
  grid-column: span 12;
}

.ops-form--company .form-actions {
  align-items: center;
  margin-top: 2px;
  gap: 10px;
}

.ops-form--company .form-actions .button {
  min-height: 40px;
  padding: 10px 18px;
}

.ops-form--company .helper {
  min-height: 16px;
  margin: 0;
  font-size: 0.78rem;
}

.ops-linked-panel--company {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-self: stretch;
  overflow: hidden;
  padding: 12px;
}

.ops-search-bar--linked {
  display: grid;
  grid-template-columns: 96px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ops-search-bar--linked select {
  min-width: 0;
  width: 100%;
  flex: none;
  flex-basis: auto;
}

.ops-search-bar--linked input {
  width: 100%;
  min-width: 0;
  flex: none;
}

.ops-search-bar--linked .button {
  min-width: 92px;
}

.ops-linked-item {
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  background: #fff;
}

.ops-linked-item--printed {
  border-color: rgba(21, 115, 71, 0.18);
  background: rgba(21, 115, 71, 0.05);
}

.ops-linked-item__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ops-linked-item__actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ops-linked-item strong,
.ops-linked-item span,
.ops-linked-item small {
  display: block;
}

.ops-linked-item span,
.ops-linked-item small {
  color: var(--muted);
  margin-top: 2px;
}

.ops-print-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(21, 115, 71, 0.12);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
}

.ops-card-grid {
  display: grid;
  gap: 18px;
}

.ops-card-grid--stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ops-stat-card {
  padding: 20px;
}

.ops-stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.ops-stat-card strong {
  font-size: 2.1rem;
}

.ops-event-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.96));
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.ops-event-hero__logo {
  width: 176px;
  height: 116px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background-color: rgba(255, 255, 255, 0.96);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
  padding: 10px 12px;
}

.ops-event-hero__content h2 {
  margin: 6px 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.ops-event-hero__content p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.ops-event-hero--compact {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.ops-event-hero--compact .ops-event-hero__logo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  font-size: 1.35rem;
}

.ops-event-hero--compact .ops-event-hero__content h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.ops-event-hero--compact .ops-event-hero__content p:last-child {
  font-size: 0.92rem;
}

.ops-event-publish-hint {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.96), rgba(255, 255, 255, 0.96));
  position: relative;
  z-index: 0;
}

.ops-event-publish-hint strong,
.ops-event-publish-hint p {
  display: block;
  margin: 0;
}

.ops-event-publish-hint strong {
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: var(--text);
}

.ops-event-publish-hint p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ops-event-publish-hint--active {
  border-color: rgba(15, 159, 103, 0.24);
  background: linear-gradient(180deg, rgba(15, 159, 103, 0.08), rgba(255, 255, 255, 0.96));
}

.ops-event-publish-hint--active strong {
  color: var(--success);
}

.ops-event-publish-hint--warning {
  border-color: rgba(217, 45, 32, 0.2);
  background: linear-gradient(180deg, rgba(217, 45, 32, 0.08), rgba(255, 255, 255, 0.96));
}

.ops-event-publish-hint--warning strong {
  color: var(--primary);
}

.ops-dashboard-grid,
.ops-panel-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

.ops-dashboard-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
}

.ops-main--dashboard .ops-dashboard-grid {
  min-height: 0;
  align-items: stretch;
}

.ops-main--dashboard .ops-card--dashboard-chart,
.ops-main--dashboard .ops-card--dashboard-recent {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.ops-main--dashboard .ops-card-grid--stats {
  gap: 12px;
}

.ops-main--dashboard .ops-event-hero {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 20px;
  border-radius: 24px;
}

.ops-main--dashboard .ops-event-hero__logo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
}

.ops-main--dashboard .ops-event-hero__content h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.ops-main--dashboard .ops-event-hero__content p:last-child {
  font-size: 0.92rem;
}

.ops-main--dashboard .ops-stat-card {
  padding: 14px 16px;
}

.ops-main--dashboard .ops-stat-card span {
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.ops-main--dashboard .ops-stat-card strong {
  font-size: 1.65rem;
  line-height: 1;
}

.ops-panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-main--module .ops-panel-grid {
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.ops-main--module .ops-panel-grid > .ops-card {
  min-height: 0;
  overflow: hidden;
}

.ops-main--module .ops-panel-grid > .ops-card:has(.ops-list--scroll),
.ops-main--module .ops-panel-grid > .ops-card:has(.ops-table--scroll),
.ops-main--module .ops-panel-grid > .ops-card:has(.ops-form--scroll) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.ops-main--module .ops-panel-grid > .ops-card--company-editor {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.ops-main--module .ops-panel-grid > .ops-card--company-list {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.ops-main--module .ops-panel-grid > .ops-card--participant-list {
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
}

.ops-panel-grid--catalog {
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1fr);
}

.ops-panel-grid--standard {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
}

.ops-panel-grid--companies {
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.ops-panel-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.ops-panel-grid--access {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.ops-form {
  display: grid;
  gap: 18px;
}

.ops-form--scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}

.ops-inline-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-self: start;
}

.ops-main--module .form-actions {
  align-items: center;
}

.ops-main--module .form-actions .button,
.ops-main--module .ops-inline-form .button,
.ops-main--module .ops-portaria-shortcuts__button {
  align-self: center;
  flex: 0 0 auto;
  width: auto;
}

.ops-inline-form input,
.ops-inline-form select {
  flex: 1 1 220px;
}

.ops-inline-form--wide input:first-child {
  flex: 2 1 320px;
}

.ops-list {
  display: grid;
  gap: 12px;
}

.ops-list--scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.ops-table--scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}

.ops-table--scroll table {
  min-width: 760px;
}

.ops-list--scroll::-webkit-scrollbar,
.ops-linked-list--scroll::-webkit-scrollbar,
.ops-form__scroll::-webkit-scrollbar,
.ops-form--scroll::-webkit-scrollbar,
.ops-table--scroll::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.ops-list--scroll::-webkit-scrollbar-thumb,
.ops-linked-list--scroll::-webkit-scrollbar-thumb,
.ops-form__scroll::-webkit-scrollbar-thumb,
.ops-form--scroll::-webkit-scrollbar-thumb,
.ops-table--scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.28);
}

.ops-list > .ops-empty,
.ops-list > .helper {
  padding: 4px 2px;
}

.ops-list__item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  background: #fbfdff;
}

.ops-list__item--printed {
  border-color: rgba(21, 115, 71, 0.18);
  background: rgba(21, 115, 71, 0.05);
}

.ops-list__item--clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ops-list__item--clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.ops-list__item strong,
.ops-list__item span,
.ops-list__item small {
  display: block;
}

.ops-list__meta {
  display: grid;
  gap: 2px;
  margin-top: 5px;
}

.ops-list__item span,
.ops-list__item small {
  color: var(--muted);
  margin-top: 2px;
}

.ops-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ops-pending-registration {
  border-color: rgba(216, 38, 30, 0.18);
  background: linear-gradient(135deg, rgba(216, 38, 30, 0.07), rgba(15, 140, 200, 0.05));
}

.ops-participant-company-panel {
  display: grid;
  gap: 10px;
  min-height: 0;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 140, 200, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 140, 200, 0.07), rgba(255, 255, 255, 0.94));
}

.ops-participant-company-panel[hidden] {
  display: none;
}

.ops-participant-company-panel .ops-list--scroll {
  max-height: 34vh;
}

.ops-list--compact .ops-list__item {
  padding: 9px 10px;
}

.ops-list__highlight {
  margin-top: 5px;
  color: var(--text) !important;
  font-weight: 700;
}

.ops-item-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.ops-chart {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.ops-chart__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.ops-chart__summary article {
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 255, 0.88)),
    rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ops-chart__summary span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ops-chart__summary strong {
  display: block;
  margin-bottom: 4px;
  color: #14213d;
  font-size: 1.35rem;
  line-height: 1;
}

.ops-chart__summary small {
  color: var(--muted);
  font-size: 0.78rem;
}

.ops-chart__vertical {
  min-height: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(58px, 1fr);
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 2px;
  overscroll-behavior-inline: contain;
}

.ops-chart__column {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(120px, 1fr) auto auto auto;
  gap: 5px;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
}

.ops-chart__bars {
  min-height: 120px;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(239, 246, 255, 0.86)),
    rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(20, 33, 61, 0.06);
}

.ops-chart__bars i {
  width: min(18px, 38%);
  min-height: 0;
  border-radius: 999px 999px 6px 6px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.ops-chart__bars i[data-kind="entries"] {
  background: linear-gradient(180deg, #60a5fa, #0f8cc8);
}

.ops-chart__bars i[data-kind="exits"] {
  background: linear-gradient(180deg, #fb7185, #dc2626);
}

.ops-chart__column strong {
  color: #14213d;
  font-size: 0.76rem;
}

.ops-chart__column span,
.ops-chart__column small {
  white-space: nowrap;
}

.ops-chart__row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 90px;
  gap: 14px;
  align-items: start;
}

.ops-chart__bar {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(245, 247, 250, 0.95), rgba(236, 242, 248, 0.95));
  border: 1px solid rgba(20, 33, 61, 0.06);
  overflow: hidden;
}

.ops-chart__track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.ops-chart__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: 999px;
}

.ops-chart__bar i[data-kind="entries"] {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.ops-chart__bar i[data-kind="exits"] {
  height: 8px;
  top: 3px;
  background: linear-gradient(90deg, #ef4444, #fb7185);
  opacity: 0.96;
}

.ops-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.ops-chart__legend strong {
  color: #14213d;
  font-size: 0.95rem;
}

.ops-chart__value {
  align-self: center;
  justify-self: end;
  text-align: right;
  font-weight: 800;
  color: #14213d;
}

.ops-chart__value small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.ops-empty {
  color: var(--muted);
}

.ops-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.ops-modal.is-open {
  display: flex;
}

.ops-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
}

.ops-modal__dialog {
  position: relative;
  width: min(100%, 520px);
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.ops-modal__header h2,
.ops-modal__body p {
  margin: 0;
}

.ops-modal__body {
  margin-top: 14px;
  color: var(--muted);
}

.ops-modal__extra {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ops-modal__field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.ops-modal__field input {
  min-height: 44px;
  border: 1px solid rgba(20, 33, 61, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.ops-modal--danger .ops-modal__dialog {
  border-color: rgba(220, 38, 38, 0.2);
  box-shadow: 0 30px 90px rgba(127, 29, 29, 0.24);
}

.ops-modal--danger .ops-modal__header h2 {
  color: #b91c1c;
}

.ops-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.ops-table {
  overflow: auto;
}

.ops-table table {
  width: 100%;
  border-collapse: collapse;
}

.ops-table th,
.ops-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  text-align: left;
}

.ops-table th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ops-reports-workspace {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.ops-report-builder {
  padding-bottom: 16px;
}

.ops-report-controls {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(260px, 2fr);
  gap: 10px;
}

.ops-report-controls label {
  display: grid;
  gap: 5px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.ops-report-controls input,
.ops-report-controls select {
  min-height: 38px;
}

.ops-report-controls__search {
  grid-column: span 1;
}

.ops-report-preview-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.ops-report-preview {
  min-height: 0;
  overflow: auto;
  border-radius: 22px;
  background: #eef3f8;
  padding: 14px;
}

.ops-report-paper {
  width: 100%;
  min-width: 960px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.ops-report-paper--portrait {
  min-width: 760px;
}

.ops-report-paper__header {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(217, 45, 32, 0.16);
}

.ops-report-paper__logo {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #edf4fb;
  color: var(--danger);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.ops-report-paper__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ops-report-paper h1 {
  margin: 2px 0 4px;
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  letter-spacing: -0.03em;
}

.ops-report-paper p {
  margin: 0;
  color: var(--muted);
}

.ops-report-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.ops-report-summary-line span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf4fb;
  color: var(--muted);
  font-size: 0.78rem;
}

.ops-report-table {
  overflow: auto;
}

.ops-report-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.ops-report-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0f172a;
  color: #fff;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.62rem;
}

.ops-report-table th,
.ops-report-table td {
  padding: 8px 7px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
}

.ops-report-table tr:nth-child(even) td {
  background: #f8fafc;
}

.ops-report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ops-report-kpis article {
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
}

.ops-report-kpis span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
}

.ops-report-kpis strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.ops-report-paper__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--muted);
  font-size: 0.72rem;
}

@media print {
  .ops-report-paper {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .ops-report-table {
    overflow: visible;
  }

  .ops-report-table th {
    position: static;
  }
}

@media (max-width: 1080px) {
  .hero__content,
  .split,
  .admin-layout,
  .highlights,
  .logo-grid,
  .logo-grid--compact,
  .form-grid,
  .ops-app,
  .ops-card-grid--stats,
  .ops-dashboard-grid,
  .ops-panel-grid,
  .ops-panel-grid--catalog {
    grid-template-columns: 1fr;
  }

  .ops-event-hero {
    grid-template-columns: 1fr;
  }

  .ops-event-hero__logo {
    width: 136px;
    height: 90px;
  }

  .ops-chart__summary {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar,
  .admin-header,
  .registration-hero__content,
  .ops-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-bottom: 74px;
  }

  .hero__stats,
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button {
    width: 100%;
  }

  .ops-main {
    padding: 18px;
  }

  .ops-inline-form {
    flex-direction: column;
  }

  .ops-modal__actions {
    flex-direction: column;
  }

  .registration-step {
    flex-direction: column;
  }

  .registration-hero__brand strong {
    font-size: 1.55rem;
  }

  .registration-layout {
    padding: 28px 0 56px;
  }

  .registration-step-card,
  .form-card--registration,
  .registration-success {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .form-section__header,
  .search-panel__fields,
  .search-inline,
  .form-actions,
  .registration-success__actions,
  .summary-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-section__meta {
    width: 100%;
  }

  .search-panel__fields label,
  .search-inline label,
  .search-panel__fields button,
  .search-inline button,
  .form-actions button,
  .registration-success__actions button {
    width: 100%;
    flex: 1 1 auto;
  }

  .form-section__header .tag {
    align-self: flex-start;
  }

  .registration-intro h1,
  .registration-success h2 {
    word-break: break-word;
  }

  .registration-success__notice {
    padding: 18px 16px;
  }

  .terms-box {
    max-height: 220px;
  }
}

@media (max-width: 900px) {
  .registration-form .form-grid,
  .registration-step-card .form-grid,
  .registration-flow .form-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .registration-form .form-grid > *,
  .registration-step-card .form-grid > *,
  .registration-flow .form-grid > *,
  .registration-full-name-field,
  .form-grid__wide {
    grid-column: 1 / -1 !important;
    width: 100%;
  }

  .registration-form label,
  .registration-step-card label {
    width: 100%;
  }

  .registration-form input,
  .registration-form select,
  .registration-form textarea,
  .registration-step-card input,
  .registration-step-card select,
  .registration-step-card textarea,
  .search-panel--registration input,
  .search-panel--registration select,
  .search-panel--registration textarea {
    min-height: 52px;
    font-size: 16px;
  }

  .search-panel--registration .search-panel__fields,
  .search-panel--company .search-panel__fields {
    flex-direction: column;
    align-items: stretch;
  }

  .search-panel--registration .search-panel__fields > *,
  .search-panel--company .search-panel__fields > * {
    width: 100%;
    flex: 1 1 auto;
  }
}

.ops-linked-item.is-selected {
  border-color: rgba(15, 140, 200, 0.35);
  box-shadow: 0 0 0 3px rgba(15, 140, 200, 0.08);
}

.ops-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-portaria-shortcuts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ops-portaria-shortcuts__button {
  min-width: 220px;
  justify-content: center;
}

.gate-body {
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.18), transparent 24%),
    linear-gradient(180deg, #eef4ff 0%, #e5edf9 48%, #dfe8f5 100%);
  color: #10203a;
}

.gate-body--exit {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 24%),
    linear-gradient(180deg, #eef5ff 0%, #e3ecfb 48%, #dae5f6 100%);
}

.gate-app {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  gap: 22px;
  box-sizing: border-box;
}

.gate-hero,
.gate-mode-card,
.gate-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(20, 33, 61, 0.08);
}

.gate-hero {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.gate-hero__event {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gate-hero__logo {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.35rem;
  overflow: hidden;
}

.gate-hero__event h1 {
  margin: 6px 0;
  font-size: clamp(2.1rem, 3.8vw, 3.6rem);
}

.gate-hero__event p:last-child {
  margin: 0;
  color: #5f6f88;
  font-size: 1.05rem;
}

.gate-eyebrow {
  color: #e43a2e;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
  margin: 0;
}

.gate-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gate-mode-card {
  padding: 22px 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(255, 255, 255, 0.94) 46%),
    rgba(255, 255, 255, 0.92);
}

.gate-body--exit .gate-mode-card {
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(255, 255, 255, 0.94) 46%),
    rgba(255, 255, 255, 0.92);
}

.gate-mode-card__badge {
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e43a2e, #ff6b57);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 0.88rem;
}

.gate-body--exit .gate-mode-card__badge {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.gate-mode-card h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
}

.gate-mode-card p {
  margin: 0;
  color: #5f6f88;
}

.gate-connection {
  text-align: right;
  display: grid;
  gap: 8px;
}

.gate-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.gate-side {
  display: grid;
  gap: 22px;
}

.gate-panel {
  padding: 24px;
}

.gate-panel__header h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.gate-panel__header p {
  margin: 0;
  color: #5f6f88;
}

.gate-scan-form {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.gate-scan-form input {
  height: 84px;
  border-radius: 24px;
  border: 1px solid rgba(20, 33, 61, 0.12);
  padding: 0 24px;
  font-size: 2rem;
  font-weight: 700;
  background: #fff;
  color: #10203a;
  box-sizing: border-box;
}

.gate-scan-form .button {
  min-width: 220px;
  font-size: 1.05rem;
}

.gate-helper-row {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #64748b;
  font-size: 0.96rem;
}

.gate-result {
  margin-top: 22px;
  border-radius: 26px;
  padding: 24px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.95));
}

.gate-result--idle {
  border-style: dashed;
}

.gate-result--entry {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.96));
  border-color: rgba(16, 185, 129, 0.22);
}

.gate-result--exit {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.14), rgba(255, 255, 255, 0.96));
  border-color: rgba(37, 99, 235, 0.22);
}

.gate-result--error {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12), rgba(255, 255, 255, 0.96));
  border-color: rgba(239, 68, 68, 0.22);
}

.gate-result__state {
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 900;
  color: #e43a2e;
}

.gate-result--entry .gate-result__state {
  color: #0f9f67;
}

.gate-result--exit .gate-result__state {
  color: #2563eb;
}

.gate-result--error .gate-result__state {
  color: #dc2626;
}

.gate-result__message {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
}

.gate-result__hint {
  margin-top: 12px;
  color: #6b7280;
  font-size: 1rem;
}

.gate-result__grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gate-result__grid article,
.gate-stat,
.gate-recent-item {
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(20, 33, 61, 0.07);
}

.gate-result__grid article span,
.gate-stat span,
.gate-recent-item span,
.gate-recent-item small {
  display: block;
  color: #64748b;
}

.gate-result__grid article strong {
  display: block;
  margin-top: 6px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.gate-result__full {
  grid-column: 1 / -1;
}

.gate-stats {
  display: grid;
  gap: 12px;
}

.gate-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 2.1rem;
  color: #10203a;
}

.gate-recent-list {
  display: grid;
  gap: 12px;
}

.gate-recent-item strong {
  display: block;
  font-size: 1.02rem;
  color: #10203a;
}

.gate-recent-item span {
  margin-top: 4px;
}

.gate-recent-item small {
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .gate-grid {
    grid-template-columns: 1fr;
  }

  .gate-mode-card,
  .gate-hero {
    grid-template-columns: 1fr;
  }

  .gate-connection {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .gate-app {
    padding: 16px;
  }

  .gate-scan-form {
    grid-template-columns: 1fr;
  }

  .gate-scan-form input {
    height: 68px;
    font-size: 1.35rem;
  }

  .gate-result__message {
    font-size: 1.4rem;
  }

  .gate-result__grid {
    grid-template-columns: 1fr;
  }
}

.gate-classic {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(95, 146, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #fbfcfe 0%, #f2f5fb 100%);
  color: #10203a;
  font-family: "Segoe UI", Arial, sans-serif;
}

.gate-classic--exit {
  background:
    radial-gradient(circle at top left, rgba(95, 146, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #fbfcfe 0%, #f2f5fb 100%);
}

.gate-classic__shell {
  height: 100vh;
  padding: 12px 16px;
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.gate-classic__event-band,
.gate-classic__hero,
.gate-classic__result,
.gate-classic__recent,
.gate-classic__footer {
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 30px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.gate-classic__event-band {
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(85, 132, 255, 0.12), rgba(255, 255, 255, 0.96) 35%),
    #fff;
}

.gate-classic__event-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbe7ff, #f8fbff);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(20, 33, 61, 0.05);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #3a4a63;
  flex: 0 0 auto;
}

.gate-classic__eyebrow {
  margin: 0 0 8px;
  color: #e43a2e;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

.gate-classic__event-copy strong,
.gate-classic__event-copy span {
  display: block;
}

.gate-classic__event-copy strong {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.gate-classic__event-copy span {
  margin-top: 6px;
  color: #63738c;
  line-height: 1.35;
  font-size: 0.95rem;
}

.gate-classic__hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: start;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.gate-classic__hero-main {
  grid-column: 2;
  text-align: center;
  padding-top: 0;
  justify-self: stretch;
}

.gate-classic__mode {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 400;
}

.gate-classic__time {
  font-size: clamp(4.6rem, 8vw, 7rem);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: 0.06em;
}

.gate-classic__date {
  margin-top: 2px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
}

.gate-classic__sidepanel {
  grid-column: 3;
  display: grid;
  gap: 8px;
  align-content: start;
}

.gate-classic__status-badge {
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
}

.gate-classic__mini-stats {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gate-classic__mini-stat {
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(20, 33, 61, 0.08);
  padding: 8px 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
}

.gate-classic__mini-stat span,
.gate-classic__mini-stat strong {
  display: block;
}

.gate-classic__mini-stat span {
  color: #6b7280;
  font-size: 0.7rem;
}

.gate-classic__mini-stat strong {
  margin-top: 2px;
  font-size: 1.3rem;
}

.gate-classic__result {
  min-height: 0;
  padding: 18px 28px;
  display: grid;
  align-content: center;
  overflow: hidden;
}

.gate-classic__result--idle {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 0;
  display: grid;
  place-items: center;
}

.gate-classic__placeholder,
.gate-classic__feedback {
  text-align: center;
  color: #6b7280;
  width: 100%;
}

.gate-classic__placeholder-title {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  color: #12213d;
  margin-bottom: 8px;
}

.gate-classic__placeholder p,
.gate-classic__feedback-copy {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.gate-classic__result--error {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08), rgba(255, 255, 255, 0.96));
}

.gate-classic__feedback-state {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 12px;
}

.gate-classic__feedback-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.gate-classic__ticket {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  border: 2px solid rgba(17, 24, 39, 0.92);
  border-radius: 34px;
  background: #fff;
  padding: 18px 24px 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.gate-classic__result--entry .gate-classic__ticket {
  border-color: rgba(17, 24, 39, 0.88);
}

.gate-classic__result--exit .gate-classic__ticket {
  border-color: rgba(17, 24, 39, 0.88);
}

.gate-classic__ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.gate-classic__ticket-brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.gate-classic__ticket-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: linear-gradient(135deg, #dbe7ff, #f8fbff);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(20, 33, 61, 0.06);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #3a4a63;
  overflow: hidden;
}

.gate-classic__ticket-event span,
.gate-classic__ticket-event strong,
.gate-classic__ticket-event small,
.gate-classic__ticket-mode span,
.gate-classic__ticket-mode strong {
  display: block;
}

.gate-classic__ticket-event span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e43a2e;
  font-size: 0.74rem;
  font-weight: 800;
}

.gate-classic__ticket-event strong {
  margin-top: 4px;
  font-size: 1.45rem;
  line-height: 1;
}

.gate-classic__ticket-event small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.82rem;
}

.gate-classic__ticket-mode {
  text-align: right;
}

.gate-classic__ticket-mode span {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  font-weight: 700;
}

.gate-classic__ticket-mode strong {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.2;
}

.gate-classic__ticket-body {
  margin-top: 14px;
  text-align: center;
}

.gate-classic__ticket-body h2 {
  margin: 0;
  font-size: clamp(2.4rem, 3.8vw, 3.3rem);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.gate-classic__ticket-body h3 {
  margin: 10px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.08;
  text-transform: uppercase;
  font-weight: 700;
}

.gate-classic__ticket-role {
  margin: 10px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  text-transform: uppercase;
  font-weight: 500;
}

.gate-classic__ticket-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.gate-classic__ticket-grid article {
  min-height: 60px;
  display: block;
  text-align: center;
}

.gate-classic__ticket-grid span,
.gate-classic__ticket-grid strong,
.gate-classic__ticket-grid small {
  display: block;
}

.gate-classic__ticket-grid span {
  color: #6b7280;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.gate-classic__ticket-grid strong {
  margin-top: 6px;
  font-size: 1.15rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.gate-classic__ticket-grid small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.84rem;
}

.gate-classic__ticket-company strong {
  font-size: 1.45rem;
}

.gate-classic__recent {
  padding: 12px 16px;
  overflow: hidden;
}

.gate-classic__recent-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 8px;
}

.gate-classic__recent-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.gate-classic__recent-header small {
  color: #6b7280;
}

.gate-classic__recent-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
}

.gate-classic__recent-item {
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
}

.gate-classic__recent-item strong,
.gate-classic__recent-item span,
.gate-classic__recent-item small {
  display: block;
}

.gate-classic__recent-item span,
.gate-classic__recent-item small {
  color: #6b7280;
  margin-top: 3px;
  font-size: 0.85rem;
}

.gate-classic__footer {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.gate-classic__footer-left {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.gate-classic__hidden-form {
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .gate-classic__hero {
    grid-template-columns: 1fr;
  }

  .gate-classic__hero-main,
  .gate-classic__sidepanel {
    grid-column: auto;
  }

  .gate-classic__sidepanel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .gate-classic__event-band {
    flex-direction: column;
    text-align: center;
  }

  .gate-classic__ticket-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gate-classic__ticket-brand {
    flex-direction: column;
  }

  .gate-classic__ticket-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gate-classic__recent-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .gate-classic__shell {
    padding: 12px;
  }

  .gate-classic__event-band,
  .gate-classic__result,
  .gate-classic__recent {
    border-radius: 24px;
  }

  .gate-classic__hero {
    grid-template-columns: 1fr;
  }

  .gate-classic__sidepanel {
    grid-template-columns: 1fr;
  }

  .gate-classic__time {
    font-size: 4rem;
  }

  .gate-classic__date {
    font-size: 1.8rem;
  }

  .gate-classic__event-logo {
    width: 72px;
    height: 72px;
  }

  .gate-classic__result {
    min-height: 280px;
    padding: 24px 18px;
  }

  .gate-classic__result--idle {
    min-height: 280px;
  }

  .gate-classic__ticket {
    padding: 18px 16px 20px;
  }

  .gate-classic__ticket-body h2 {
    font-size: 2.4rem;
  }

  .gate-classic__ticket-body h3 {
    font-size: 1.4rem;
  }

  .gate-classic__ticket-role {
    font-size: 1.15rem;
  }

  .gate-classic__ticket-grid {
    grid-template-columns: 1fr;
  }

  .gate-classic__ticket-company strong {
    font-size: 1.55rem;
  }
}

.totem-body {
  min-height: 100vh;
  margin: 0;
  background: #08111f;
  color: #fff8ef;
  font-family: "Segoe UI", Arial, sans-serif;
}

.totem-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.totem-hero {
  position: relative;
  width: min(100vw, calc(100vh * 0.6));
  min-height: 100vh;
  padding: 20px 18px 28px;
  background:
    var(--totem-background);
  background-size: cover;
  background-position: center top;
  overflow: hidden;
  background-color: #f4f6fb;
}

.totem-hero__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.totem-hero__content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 48px);
  display: grid;
}

.totem-frame {
  min-height: 100%;
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
}

.totem-hero__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 33, 57, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.totem-hero__logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #23334d;
  box-shadow: inset 0 0 0 1px rgba(17, 33, 57, 0.08);
}

.totem-hero__copy {
  display: grid;
  gap: 6px;
}

.totem-hero__copy span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ff8f7b;
}

.totem-hero__copy strong {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  line-height: 1;
  color: #1c2e4b;
}

.totem-hero__copy small {
  font-size: 0.92rem;
  color: rgba(28, 46, 75, 0.72);
}

.totem-panel {
  width: 100%;
  margin: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.totem-panel__header {
  text-align: center;
  display: grid;
  gap: 6px;
}

.totem-panel__header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: #23334d;
}

.totem-panel__header p,
.totem-helper,
.totem-feedback p,
.totem-release-inline__label {
  margin: 0;
  color: rgba(35, 51, 77, 0.8);
}

.totem-display,
.totem-release-inline__display {
  display: grid;
  place-items: center;
  min-height: 86px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 33, 57, 0.08);
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #23334d;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.totem-helper {
  text-align: center;
  font-size: 0.92rem;
}

.totem-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.totem-keypad button {
  min-height: 74px;
  border: 0;
  border-radius: 22px;
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 239, 246, 0.96));
  color: #21324e;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(17, 33, 57, 0.08);
}

.totem-keypad button:active {
  transform: scale(0.98);
}

.totem-keypad__secondary {
  font-size: 1rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.totem-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.totem-actions .button {
  min-width: 0;
  flex: 1 1 0;
  min-height: 56px;
  font-size: 1rem;
}

.totem-release-inline {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.totem-release-inline__trigger {
  border: 0;
  background: transparent;
  color: rgba(35, 51, 77, 0.72);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.totem-release-inline__panel {
  width: min(460px, 100%);
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 33, 57, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.totem-release-inline__panel.is-hidden {
  display: none;
}

.totem-release-inline__label {
  text-align: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.totem-release-inline__actions {
  display: flex;
  gap: 10px;
}

.totem-release-inline__actions .button {
  flex: 1 1 0;
}

.totem-feedback {
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(17, 33, 57, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.totem-feedback__title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.totem-feedback--success {
  background: rgba(244, 255, 249, 0.92);
  border-color: rgba(31, 166, 102, 0.35);
}

.totem-feedback--warning {
  background: rgba(255, 251, 240, 0.94);
  border-color: rgba(232, 173, 32, 0.35);
}

.totem-feedback--error {
  background: rgba(255, 246, 246, 0.95);
  border-color: rgba(224, 76, 76, 0.35);
}

@media (max-width: 900px) {
  .totem-hero {
    width: 100vw;
    padding: 14px;
  }

  .totem-hero__brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .totem-panel {
    padding: 18px;
  }

  .totem-actions .button {
    width: 100%;
  }

  .totem-release-inline__actions {
    flex-direction: column;
  }
}

.totem-body {
  background: #f1f3f8;
}

.totem-hero {
  width: min(100vw, 460px);
  padding: 24px 14px 20px;
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #ffffff;
}

.totem-hero__content {
  min-height: calc(100vh - 44px);
}

.totem-frame {
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.totem-hero__brand {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.94);
  border: 1px solid rgba(19, 36, 67, 0.08);
  box-shadow: 0 14px 36px rgba(18, 31, 54, 0.12);
}

.totem-hero__logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.totem-hero__copy {
  gap: 4px;
}

.totem-hero__copy span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.totem-hero__copy strong {
  font-size: 1.95rem;
}

.totem-hero__copy small {
  font-size: 0.68rem;
  line-height: 1.35;
}

.totem-stage {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding-top: 8px;
}

.totem-panel {
  width: min(100%, 338px);
  margin: 0 auto;
  padding: 16px 14px 14px;
  border-radius: 18px;
  background: rgba(10, 19, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(7, 12, 23, 0.28);
  gap: 10px;
}

.totem-panel--compact {
  max-width: 338px;
}

.totem-panel__header {
  gap: 4px;
}

.totem-panel__header h1 {
  font-size: 1.7rem;
  color: #ffffff;
}

.totem-panel__header p,
.totem-helper,
.totem-feedback p,
.totem-release-inline__label {
  color: rgba(234, 241, 255, 0.78);
}

.totem-display,
.totem-release-inline__display {
  min-height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1.45rem;
  letter-spacing: 0.16em;
}

.totem-helper {
  font-size: 0.72rem;
}

.totem-keypad {
  gap: 8px;
}

.totem-keypad button {
  min-height: 40px;
  border-radius: 10px;
  font-size: 1rem;
  background: linear-gradient(180deg, rgba(38, 48, 68, 0.98), rgba(19, 27, 42, 0.98));
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.totem-keypad__secondary {
  font-size: 0.72rem !important;
}

.totem-actions {
  gap: 10px;
}

.totem-actions .button {
  min-height: 38px;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0 14px;
}

.totem-release-inline {
  gap: 8px;
}

.totem-release-inline__trigger {
  font-size: 0.68rem;
  color: rgba(234, 241, 255, 0.68);
}

.totem-release-inline__panel {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.totem-release-inline__label {
  font-size: 0.68rem;
}

.totem-release-inline__actions {
  gap: 8px;
}

.totem-release-inline__actions .button {
  min-height: 34px;
  font-size: 0.74rem;
}

.totem-feedback {
  width: min(100%, 338px);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 19, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(7, 12, 23, 0.22);
}

.totem-feedback__title {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 4px;
}

@media (max-width: 520px) {
  .totem-hero {
    width: 100vw;
    padding: 18px 10px 18px;
  }

  .totem-panel,
  .totem-feedback {
    width: min(100%, 332px);
  }
}

/* Totem final layout: poster inteiro ao fundo com painel sobreposto */
.totem-body {
  background: #e9eef6;
  overflow: hidden;
}

.totem-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.totem-hero {
  width: min(100vw, calc(100vh * 0.5625));
  height: 100vh;
  min-height: 100vh;
  padding: 18px 10px 20px;
  background-size: 100% 100%;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #f5f6fa;
  overflow: hidden;
}

.totem-hero__content {
  min-height: 100%;
}

.totem-frame {
  min-height: 100%;
  display: block;
  position: relative;
}

.totem-hero__brand {
  width: calc(100% - 8px);
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 31, 54, 0.08);
  box-shadow: 0 10px 28px rgba(17, 25, 40, 0.12);
}

.totem-hero__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.totem-hero__copy span {
  font-size: 0.55rem;
}

.totem-hero__copy strong {
  font-size: 1.45rem;
}

.totem-hero__copy small {
  font-size: 0.52rem;
  line-height: 1.25;
}

.totem-stage {
  width: 100%;
  margin-top: 8px;
  display: grid;
  justify-items: center;
  gap: 0;
}

.totem-panel {
  width: calc(100% - 34px);
  margin: 0 auto;
  padding: 7px 18px 4px;
  border-radius: 22px;
  background: rgba(11, 20, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 42px rgba(8, 12, 22, 0.28);
}

.totem-panel--wide {
  max-width: none;
}

.totem-panel__header h1 {
  font-size: 1.48rem;
}

.totem-panel__header p {
  font-size: 0.52rem;
  line-height: 1.05;
  max-width: 92%;
  margin-inline: auto;
}

.totem-display,
.totem-release-inline__display {
  min-height: 26px;
  border-radius: 9px;
  font-size: 0.82rem;
}

.totem-helper {
  font-size: 0.42rem;
}

.totem-keypad {
  gap: 4px;
}

.totem-keypad button {
  min-height: 23px;
  border-radius: 7px;
  font-size: 0.68rem;
}

.totem-keypad__secondary {
  font-size: 0.4rem !important;
}

.totem-actions {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 8px;
  align-items: center;
}

.totem-actions .button {
  min-height: 22px;
  font-size: 0.48rem;
  padding: 0 12px;
}

.totem-release-inline__trigger {
  font-size: 0.4rem;
}

.totem-release-inline__panel {
  padding: 4px;
}

.totem-release-inline__label {
  font-size: 0.4rem;
}

.totem-release-inline__actions .button {
  min-height: 20px;
  font-size: 0.42rem;
}

.totem-feedback {
  width: 100%;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(11, 20, 36, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.totem-feedback__title {
  font-size: 0.5rem;
}

.totem-feedback p {
  font-size: 0.38rem;
  line-height: 1.05;
}

.totem-feedback--inline {
  margin-top: 2px;
}

@media (max-width: 520px) {
  .totem-panel {
    width: calc(100% - 28px);
    padding: 10px 12px 8px;
  }

  .totem-actions {
    grid-template-columns: 1fr 1.35fr;
  }
}

