/**
 * Q-Wash Core — UI base H6 (shortcodes qwc_checkin / qwc_board)
 * Depende de tokens.css. Sin teal.
 */
@import url("./tokens.css");

/* ——— Check-in page shell: fluid violet / video + glass card ——— */
/* H1.6: viewport full-bleed when data-qwc-bg=fluid|video; glass only on card */
/* H1.7: shell position:fixed viewport lock; paint absolute in shell; form flex-centered */

.qwc-checkin-shell {
  --qwc-glass-bg: rgba(255, 255, 255, 0.10);
  --qwc-glass-border: rgba(255, 255, 255, 0.28);
  --qwc-glass-text: #ffffff;
  --qwc-glass-mute: rgba(255, 255, 255, 0.72);
  --qwc-glass-radius: 22px;
  --qwc-fluid-1: #2e1065;
  --qwc-fluid-2: #5b21b6;
  --qwc-fluid-3: #a21caf;
  --qwc-fluid-4: #fb7185;

  position: relative;
  z-index: 1;
  isolation: isolate;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: clamp(24px, 5vw, 56px) 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 80% at 50% 20%, #3b0764 0%, #0a0118 55%, #000 100%);
  color: var(--qwc-glass-text);
  overflow: hidden;
}

/* H1.7: viewport lock — shell IS the viewport; form flex-centered inside */
.qwc-checkin-shell[data-qwc-bg="fluid"],
.qwc-checkin-shell[data-qwc-bg="video"] {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  z-index: 100; /* above theme chrome; WP admin bar ~99999 stays above */
  box-sizing: border-box;
  isolation: auto;
  display: flex;
	flex-direction: column;
  align-items: center;
	justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto; /* shell scrolls if form taller than viewport */
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
  padding: max(24px, env(safe-area-inset-top, 0px), env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-right, 0px), env(safe-area-inset-left, 0px));
}

/* Deep brand wash behind fixed shell; do NOT lock body overflow (shell scrolls) */
html:has(.qwc-checkin-shell[data-qwc-bg="fluid"]),
html:has(.qwc-checkin-shell[data-qwc-bg="video"]),
body:has(.qwc-checkin-shell[data-qwc-bg="fluid"]),
body:has(.qwc-checkin-shell[data-qwc-bg="video"]) {
  background: #05010d !important;
  min-height: 100%;
}

.entry-content:has(.qwc-checkin-shell),
.wp-block-post-content:has(.qwc-checkin-shell),
.site-main:has(.qwc-checkin-shell),
.site-content:has(.qwc-checkin-shell),
#content:has(.qwc-checkin-shell),
#primary:has(.qwc-checkin-shell),
.ast-container:has(.qwc-checkin-shell),
.ast-container-fluid:has(.qwc-checkin-shell),
.container:has(.qwc-checkin-shell),
.content-area:has(.qwc-checkin-shell) {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Optional: collapse page title block sitting just above the shell */
.entry-header:has(+ .entry-content .qwc-checkin-shell),
.page-header:has(+ .entry-content .qwc-checkin-shell) {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Base paint layers — absolute; shell is viewport under H1.7 */
.qwc-checkin-shell__fluid,
.qwc-checkin-shell__video,
.qwc-checkin-shell__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* H1.7: paint fills the fixed shell (absolute again — not fixed) */
.qwc-checkin-shell[data-qwc-bg="fluid"] > .qwc-checkin-shell__fallback,
.qwc-checkin-shell[data-qwc-bg="fluid"] > .qwc-checkin-shell__fluid,
.qwc-checkin-shell[data-qwc-bg="fluid"] > .qwc-checkin-shell__video,
.qwc-checkin-shell[data-qwc-bg="video"] > .qwc-checkin-shell__fallback,
.qwc-checkin-shell[data-qwc-bg="video"] > .qwc-checkin-shell__fluid,
.qwc-checkin-shell[data-qwc-bg="video"] > .qwc-checkin-shell__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.qwc-checkin-shell[data-qwc-bg="fluid"] > .qwc-checkin-shell__scrim,
.qwc-checkin-shell[data-qwc-bg="video"] > .qwc-checkin-shell__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.qwc-checkin-shell__fluid {
  display: block;
}

.qwc-checkin-shell__fallback {
  object-fit: cover;
  background:
    center / cover no-repeat var(--qwc-checkin-fallback, none),
    linear-gradient(165deg, #4c1d95 0%, #1e0538 45%, #05010d 100%);
}

.qwc-checkin-shell__video {
  object-fit: cover;
}

.qwc-checkin-shell__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(91, 33, 182, 0.15), transparent 70%),
    rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

/* Glass ONLY on form card (.qwc-app); shell stays fluid/gradient — not glass.
   Live markup: form.qwc-form.qwc-glass-form sits inside .qwc-app (marker class). */
.qwc-checkin-shell > .qwc-app {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
	margin-block: auto;
	margin-inline: auto;
	flex: 0 0 auto;
  padding: clamp(28px, 4vw, 40px);
  color: var(--qwc-glass-text);
  background: var(--qwc-glass-bg);
  border: 1px solid var(--qwc-glass-border);
  border-radius: var(--qwc-glass-radius);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.qwc-checkin-shell .qwc-logo,
.qwc-checkin-shell h1,
.qwc-checkin-shell .qwc-lead,
.qwc-checkin-shell .qwc-muted,
.qwc-checkin-shell .qwc-consent,
.qwc-checkin-shell .qwc-contact-hint,
.qwc-checkin-shell label {
  color: var(--qwc-glass-text);
}

.qwc-checkin-shell .qwc-lead,
.qwc-checkin-shell .qwc-muted,
.qwc-checkin-shell .qwc-contact-hint {
  color: var(--qwc-glass-mute);
}

.qwc-checkin-shell .qwc-grid input,
.qwc-checkin-shell .qwc-grid select {
  color: #0a0118;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
}

.qwc-checkin-shell .qwc-grid input:focus,
.qwc-checkin-shell .qwc-grid select:focus {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 2px rgba(91, 33, 182, 0.45);
}

.qwc-checkin-shell .qwc-consent {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.qwc-checkin-shell .qwc-primary {
  background: #ffffff;
  color: #4c1d95;
  border-color: #ffffff;
}

.qwc-checkin-shell .qwc-primary:hover:not(:disabled) {
  background: #ede9fe;
  border-color: #ede9fe;
  color: #4c1d95;
}

.qwc-checkin-shell .qwc-next-step {
  background: rgba(237, 233, 254, 0.18);
  border-left-color: #c4b5fd;
  color: #fff;
}

.qwc-checkin-shell .qwc-error {
  background: rgba(254, 242, 242, 0.95);
}

@media (prefers-reduced-motion: reduce) {
  .qwc-checkin-shell__video,
  .qwc-checkin-shell__fluid {
    display: none !important;
  }
}

/* ——— Check-in ——— */
.qwc-app {
  max-width: 880px;
  margin: 24px auto;
  padding: 28px;
  background: var(--qwc-paper);
  border: 1px solid var(--qwc-line);
  border-radius: var(--qwc-radius);
  box-shadow: var(--qwc-shadow);
}

.qwc-logo {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qwc-app h1,
.qwc-board h1 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 10px 0;
}

.qwc-lead,
.qwc-muted {
  color: var(--qwc-mute);
}

.qwc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.qwc-grid label {
  font-weight: 600;
  font-size: 0.875rem;
}

.qwc-full {
  grid-column: 1 / -1;
}

.qwc-plate-field {
  grid-column: 1 / -1;
}

.qwc-plate-field input,
.qwc-plate {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 1.25rem;
}

.qwc-grid input,
.qwc-grid select {
  width: 100%;
  margin-top: 7px;
  padding: 14px;
  min-height: 52px;
  font: 400 1rem/1.4 var(--qwc-font);
  border: 1px solid #c4c4c4;
  border-radius: var(--qwc-radius-touch);
  background: var(--qwc-paper);
  color: var(--qwc-ink);
}

.qwc-grid input:focus,
.qwc-grid select:focus {
  outline: none;
  border-color: var(--qwc-accent);
  box-shadow: 0 0 0 2px var(--qwc-accent-soft);
}

.qwc-contact-or {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.qwc-contact-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.875rem;
  color: var(--qwc-mute);
}

.qwc-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
  padding: 14px;
  font-size: 0.875rem;
  background: var(--qwc-wash);
  border: 1px solid var(--qwc-line);
  border-radius: var(--qwc-radius);
}

.qwc-primary,
.qwc-secondary {
  border: 1px solid transparent;
  border-radius: var(--qwc-radius);
  padding: 15px 18px;
  font: 700 0.9375rem/1 var(--qwc-font);
  cursor: pointer;
  min-height: 50px;
}

.qwc-primary {
  background: var(--qwc-accent);
  color: var(--qwc-paper);
  border-color: var(--qwc-accent);
}

.qwc-primary:hover:not(:disabled) {
  background: var(--qwc-accent-deep);
  border-color: var(--qwc-accent-deep);
}

.qwc-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qwc-secondary {
  background: var(--qwc-wash);
  color: var(--qwc-ink);
  border-color: var(--qwc-line);
}

.qwc-checkin .qwc-primary {
  width: 100%;
}

.qwc-error {
  background: var(--qwc-danger-soft);
  color: var(--qwc-danger);
  padding: 13px;
  border-radius: var(--qwc-radius);
  margin-top: 15px;
  border: 1px solid rgba(185, 28, 28, 0.25);
}

.qwc-success {
  text-align: center;
  padding: 18px 0;
}

.qwc-check {
  margin: auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--qwc-ok-soft);
  color: var(--qwc-ok);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
}

.qwc-total {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 15px;
  letter-spacing: -0.02em;
}

.qwc-next-step {
  margin: 16px 0;
  padding: 16px;
  background: var(--qwc-accent-soft);
  border-left: 4px solid var(--qwc-accent);
  border-radius: var(--qwc-radius);
  font-weight: 600;
}

.qwc-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--qwc-mute);
  border: 1px dashed var(--qwc-line);
  border-radius: var(--qwc-radius);
  background: var(--qwc-wash);
}

.qwc-empty-services {
  border-color: rgba(180, 83, 9, 0.35);
  background: var(--qwc-pay-soft);
  color: var(--qwc-pay);
}

/* ——— Board ——— */
.qwc-board {
  max-width: 1280px;
  margin: 20px auto;
  padding: 20px;
  background: var(--qwc-wash);
}

.qwc-board header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qwc-live {
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qwc-live i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  margin-right: 6px;
}

.qwc-board #qwc-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.qwc-stat {
  border: 1px solid var(--qwc-line);
  border-radius: var(--qwc-radius);
  padding: 16px;
  background: var(--qwc-paper);
}

.qwc-stat b {
  font-size: 1.75rem;
  display: block;
}

.qwc-stat span {
  color: var(--qwc-mute);
  font-size: 0.8125rem;
}

.qwc-op {
  background: var(--qwc-paper);
  border: 1px solid var(--qwc-line);
  border-left: 6px solid #d1d5db;
  border-radius: var(--qwc-radius);
  padding: 18px;
  margin: 12px 0;
  box-shadow: var(--qwc-shadow);
}

.qwc-op.status-waiting_payment {
  border-left-color: var(--qwc-pay);
}
.qwc-op.status-waiting {
  border-left-color: var(--qwc-wait);
}
.qwc-op.status-in_progress {
  border-left-color: var(--qwc-wash-state);
}
.qwc-op.status-completed {
  border-left-color: var(--qwc-ok);
}

.qwc-op-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qwc-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--qwc-wash);
  color: var(--qwc-ink);
}

.qwc-badge.status-waiting_payment {
  background: var(--qwc-pay-soft);
  color: var(--qwc-pay);
}
.qwc-badge.status-waiting {
  background: var(--qwc-wait-soft);
  color: var(--qwc-wait);
}
.qwc-badge.status-in_progress {
  background: var(--qwc-wash-soft);
  color: var(--qwc-wash-state);
}
.qwc-badge.status-completed {
  background: var(--qwc-ok-soft);
  color: var(--qwc-ok);
}

.qwc-time {
  font-size: 0.8125rem;
  color: var(--qwc-mute);
}

.qwc-plate-big {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.125rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 12px;
}

.qwc-name {
  font-weight: 700;
}

.qwc-service {
  color: var(--qwc-mute);
  margin: 4px 0 15px;
}

.qwc-service b {
  color: var(--qwc-ink);
}

.qwc-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 15px 0 10px;
  padding: 0;
}

.qwc-progress li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--qwc-mute);
  font-size: 0.75rem;
}

.qwc-progress li span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid var(--qwc-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--qwc-wash);
}

.qwc-progress li.is-done,
.qwc-progress li.is-current {
  color: var(--qwc-ink);
}

.qwc-progress li.is-done span {
  background: var(--qwc-ok-soft);
  border-color: var(--qwc-ok);
  color: var(--qwc-ok);
}

.qwc-progress li.is-current span {
  background: var(--qwc-accent);
  border-color: var(--qwc-accent);
  color: var(--qwc-paper);
}

.qwc-stage-help {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(91, 33, 182, 0.08);
  color: var(--qwc-ink);
  font-size: 0.8125rem;
  font-weight: 650;
}

.qwc-notified {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: var(--qwc-radius);
  background: var(--qwc-ok-soft);
  color: var(--qwc-ok);
  text-align: center;
  font-weight: 800;
}

.qwc-actions {
  display: flex;
  gap: 9px;
}

.qwc-actions .qwc-primary {
  flex: 1;
}

@media (max-width: 650px) {
  .qwc-checkin-shell {
	padding: max(10px, env(safe-area-inset-top, 0px))
	  max(10px, env(safe-area-inset-right, 0px))
	  max(10px, env(safe-area-inset-bottom, 0px))
	  max(10px, env(safe-area-inset-left, 0px));
	align-items: center;
  }
  .qwc-checkin-shell > .qwc-app {
	margin-block: auto;
	margin-inline: auto;
	min-height: auto;
	padding: 16px 14px;
	border-radius: 18px;
  }
	.qwc-checkin-shell .qwc-header {
		margin-bottom: 0.7rem;
		text-align: center;
	}
	.qwc-checkin-shell .qwc-brand-image {
		margin-bottom: 0.4rem;
	}
	.qwc-checkin-shell .qwc-brand-logo {
		max-width: min(151px, 47vw);
		max-height: 38px;
		margin-inline: auto;
	}
	.qwc-checkin-shell .qwc-title {
		font-size: clamp(1.3rem, 6.3vw, 1.62rem);
		margin-bottom: 0;
	}
	.qwc-checkin-shell .qwc-lead {
		margin: 0;
		font-size: 0.82rem;
	}
	.qwc-checkin-shell .qwc-form {
		gap: 8px;
	}
	.qwc-checkin-shell .qwc-field label {
		margin-bottom: 0.16rem;
		font-size: 0.72rem;
	}
	.qwc-checkin-shell .qwc-field input,
	.qwc-checkin-shell .qwc-field select {
		min-height: 38px;
		padding: 0.4rem 0.54rem;
		font-size: 16px; /* avoids Safari zooming the page while typing */
	}
	.qwc-checkin-shell .qwc-contact-or {
		gap: 8px;
		padding-top: 8px;
	}
	.qwc-checkin-shell .qwc-contact-hint {
		font-size: 0.75rem;
	}
	.qwc-checkin-shell .qwc-consent {
		padding: 8px 9px;
		font-size: 0.68rem;
		line-height: 1.3;
	}
	.qwc-checkin-shell .qwc-btn {
		min-height: 40px;
		padding: 0.54rem 0.76rem;
		font-size: 0.83rem;
	}
  .qwc-app:not(.qwc-checkin-shell *) {
    margin: 0;
    border: 0;
    border-radius: 0;
    min-height: 100vh;
    box-shadow: none;
  }
  .qwc-grid,
  .qwc-contact-or {
    grid-template-columns: 1fr;
  }
  .qwc-board {
    padding: 12px;
  }
  .qwc-actions {
    flex-direction: column;
  }
}

@media (max-width: 390px), (max-height: 760px) {
	.qwc-checkin-shell > .qwc-app {
		padding: 12px;
	}
	.qwc-checkin-shell .qwc-brand-logo {
		max-width: min(133px, 43vw);
		max-height: 32px;
	}
	.qwc-checkin-shell .qwc-header {
		margin-bottom: 0.5rem;
	}
	.qwc-checkin-shell .qwc-title {
		font-size: 1.26rem;
	}
	.qwc-checkin-shell .qwc-form {
		gap: 6px;
	}
	.qwc-checkin-shell .qwc-contact-or {
		gap: 6px;
		padding-top: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
  .qwc-live i {
    animation: none;
  }
}

/* ——— H1.5 bridge: plugin markup (.qwc-form / .qwc-field / .qwc-btn) inside glass shell ——— */
.qwc-checkin-shell .qwc-brand,
.qwc-checkin-shell .qwc-title {
  color: var(--qwc-glass-text);
}
.qwc-checkin-shell .qwc-form {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 16px;
}
.qwc-checkin-shell .qwc-field label {
  color: var(--qwc-glass-text);
}
.qwc-checkin-shell .qwc-field input,
.qwc-checkin-shell .qwc-field select {
  color: #0a0118;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
}
.qwc-checkin-shell .qwc-field input:focus,
.qwc-checkin-shell .qwc-field select:focus {
  outline: none;
  border-color: #c4b5fd;
  box-shadow: 0 0 0 2px rgba(91, 33, 182, 0.45);
}
.qwc-checkin-shell .qwc-contact-or {
  border-top-color: rgba(255, 255, 255, 0.18);
}
.qwc-checkin-shell .qwc-btn-primary {
  background: #ffffff;
  color: #4c1d95;
  border-color: #ffffff;
}
.qwc-checkin-shell .qwc-btn-primary:hover:not(:disabled) {
  background: #ede9fe;
  border-color: #ede9fe;
  color: #4c1d95;
}
.qwc-checkin-shell .qwc-btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.qwc-checkin-shell .qwc-consent {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--qwc-glass-radius, 22px);
  padding: 14px;
  color: var(--qwc-glass-text);
}
.qwc-checkin-shell .qwc-diag {
  background: rgba(255, 248, 200, 0.92);
  color: #1a1a1a;
}
.qwc-checkin-shell .qwc-success {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--qwc-glass-text);
}
.qwc-checkin-shell .qwc-confirmation .qwc-code-label,
.qwc-checkin-shell .qwc-confirmation .qwc-service-name {
  color: var(--qwc-glass-mute);
}
.qwc-checkin-shell .qwc-operator {
  max-width: 1180px;
}
.qwc-checkin-shell .qwc-board {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
.qwc-checkin-shell .qwc-board > header h1,
.qwc-checkin-shell .qwc-live {
  color: var(--qwc-glass-text);
}
.qwc-checkin-shell .qwc-board #qwc-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.qwc-checkin-shell .qwc-stat {
  color: var(--qwc-glass-text);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.qwc-checkin-shell .qwc-stat span {
  color: var(--qwc-glass-mute);
}
.qwc-checkin-shell .qwc-board > .qwc-empty {
  color: var(--qwc-glass-mute);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}
.qwc-checkin-shell[data-qwc-bg="none"] {
  background: transparent;
  min-height: 0;
  padding: 0;
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.qwc-checkin-shell[data-qwc-bg="none"] > .qwc-app {
  background: var(--qwc-paper, #fff);
  color: var(--qwc-ink, #000);
  border: 1px solid var(--qwc-line, rgba(0,0,0,.14));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--qwc-shadow, 0 8px 28px rgba(0,0,0,.06));
}

/* Keep H1.3/H1.4 form layout helpers used by shortcode */
.qwc-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.qwc-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.qwc-field input,
.qwc-field select {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  font-family: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--qwc-line, #c4c4c4);
  border-radius: var(--qwc-radius-touch, 6px);
  background: var(--qwc-paper, #fff);
  color: var(--qwc-ink, #000);
}
.qwc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.qwc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--qwc-radius, 2px);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.qwc-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.qwc-btn-primary {
  background: var(--qwc-accent, #5b21b6);
  color: var(--qwc-paper, #fff);
  border-color: var(--qwc-accent, #5b21b6);
}
.qwc-btn-secondary {
  background: var(--qwc-wash, #f2f2f2);
  color: var(--qwc-ink, #000);
  border-color: var(--qwc-line, rgba(0,0,0,.14));
}
.qwc-banner {
  padding: 0.75rem 0.85rem;
  border-radius: var(--qwc-radius, 2px);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.35;
}
.qwc-header {
  margin-bottom: 1.25rem;
}
.qwc-brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}
.qwc-brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(220px, 60vw);
  max-height: 80px;
  object-fit: contain;
}
.qwc-brand-image {
  margin-bottom: 0.75rem;
}
.qwc-title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.qwc-diag {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1a1a1a;
  background: rgba(255, 248, 200, 0.92);
  border: 1px solid rgba(180, 140, 20, 0.45);
  border-radius: 8px;
  word-break: break-word;
}
.qwc-diag strong {
  display: block;
  margin-bottom: 0.25rem;
}
.qwc-empty-admin-link {
  color: var(--qwc-accent, #5b21b6);
  font-weight: 700;
  text-decoration: underline;
}
.qwc-code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--qwc-mute, #555);
  margin: 0;
}
.qwc-code {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0.15rem 0 0.75rem;
}
.qwc-service-name {
  color: var(--qwc-mute, #555);
  margin: 0 0 0.85rem;
}
.qwc-op-stub {
  background: var(--qwc-paper, #fff);
  border: 1px solid var(--qwc-line, rgba(0,0,0,.14));
  border-radius: var(--qwc-radius, 2px);
  padding: 1rem;
}
@media (max-width: 650px) {
  .qwc-row {
    grid-template-columns: 1fr;
  }
	/* Keep the short name fields side by side in check-in to fit the full flow. */
	.qwc-checkin-shell .qwc-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
	}
}
