:root {
  color-scheme: light;
  --bg: #f3f6f7;
  --surface: #ffffff;
  --surface-soft: #f4f7f7;
  --surface-strong: #eaf0f1;
  --text: #26343b;
  --muted: #62747b;
  --line: #dce5e7;
  --primary: #00656a;
  --primary-strong: #004f54;
  --primary-soft: #e8f2f1;
  --copper: #a56135;
  --green: #287252;
  --amber: #936317;
  --amber-soft: #faf3e5;
  --red: #b5444c;
  --red-soft: #fbecef;
  --shadow: 0 20px 60px rgba(28, 45, 51, 0.12);
  --shadow-soft: 0 2px 8px rgba(28, 45, 51, 0.035);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, ui-sans-serif, system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

svg { width: 22px; height: 22px; flex-shrink: 0; }
strong { font-weight: 650; }

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.stage {
  width: min(1180px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) 430px;
  align-items: center;
  gap: 52px;
  padding: 38px 0;
}

.prototype-note {
  max-width: 520px;
}

.prototype-note .eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prototype-note h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
}

.prototype-note p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.demo-card {
  max-height: 68vh;
  overflow: auto;
  margin-top: 34px;
  padding: 20px;
  border: 1px solid rgba(216, 223, 220, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(28, 35, 42, 0.08);
}

.demo-card h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.demo-subtitle {
  margin-top: 18px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(216, 223, 220, 0.72);
}

.demo-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.demo-details summary {
  padding: 12px 14px;
  cursor: pointer;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 850;
}

.demo-people-list {
  max-height: 260px;
  overflow: auto;
  padding: 0 10px 10px;
}

.demo-people-list .demo-number {
  min-height: 38px;
  margin-top: 7px;
  padding: 0 10px;
  font-size: 12px;
}

.demo-number {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.demo-number:hover {
  border-color: rgba(0, 101, 106, 0.42);
  box-shadow: 0 10px 22px rgba(0, 101, 106, 0.09);
  transform: translateY(-1px);
}

.mobile-demo-card {
  display: none;
}

.phone-shell {
  display: grid;
  place-items: center;
}

.phone-bezel {
  position: relative;
  width: 390px;
  height: 844px;
  padding: 12px;
  border-radius: 48px;
  background:
    linear-gradient(145deg, #292d33, #090b0d 42%, #30343b),
    #111;
  box-shadow: var(--shadow);
}

.phone-bezel::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  z-index: 2;
  width: 114px;
  height: 32px;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: var(--surface);
}

#app {
  height: 100%;
  min-height: 0;
}

.app-frame {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #fbfcfc;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 12px 25px 0;
  color: #0b1620;
  font-size: 13px;
  font-weight: 800;
}

.status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.signal {
  width: 16px;
  height: 10px;
  background:
    linear-gradient(to top, #111 0 100%) 0 6px / 3px 4px no-repeat,
    linear-gradient(to top, #111 0 100%) 5px 4px / 3px 6px no-repeat,
    linear-gradient(to top, #111 0 100%) 10px 1px / 3px 9px no-repeat;
}

.battery {
  position: relative;
  width: 22px;
  height: 11px;
  border: 1.8px solid #111;
  border-radius: 3px;
}

.battery::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -4px;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: #111;
}

.battery::before {
  content: "";
  display: block;
  width: 13px;
  height: 5px;
  margin: 1.5px;
  border-radius: 1.5px;
  background: #111;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px 22px calc(100px + env(safe-area-inset-bottom, 0px));
}

.content.compact-bottom {
  padding-bottom: 24px;
}

.login-screen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #122025;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -2;
  background-image: url("https://mistralizmir.com.tr/wp-content/uploads/2025/03/bg.jpg");
  background-size: cover;
  background-position: center;
  filter: none;
  opacity: 1;
  transform: scale(1.02);
}

.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 28, 34, 0.12), rgba(10, 28, 34, 0.36) 48%, rgba(10, 28, 34, 0.78));
}

.login-content {
  position: relative;
  z-index: 1;
}

.login-hero {
  min-height: 274px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  margin: -4px -22px 0;
  padding: 32px 24px 24px;
  color: #fff;
  text-align: center;
}

.mistral-login-logo {
  width: 160px;
  max-width: 62vw;
  height: auto;
  display: block;
  margin: 0 auto 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
}

.login-brand-heading,
.brand-heading {
  margin: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  max-width: 100%;
  gap: 10px;
  line-height: 0.9;
  vertical-align: bottom;
}

.brand-wordmark-my {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--text);
  font-family: Michroma, "Arial Black", system-ui, sans-serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.8;
}

.brand-wordmark-mistral {
  display: block;
  width: 176px;
  max-width: 52vw;
  height: auto;
  margin-bottom: 1px;
  object-fit: contain;
}

.brand-wordmark.is-inverted .brand-wordmark-my {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.brand-wordmark.is-inverted .brand-wordmark-mistral {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.36));
}

.brand-wordmark.is-compact {
  gap: 6px;
}

.brand-wordmark.is-compact .brand-wordmark-my {
  font-size: 22px;
}

.brand-wordmark.is-compact .brand-wordmark-mistral {
  width: 112px;
  min-width: 0;
  flex: 0 1 112px;
  max-width: 40vw;
  margin-bottom: 1px;
}

.login-hero .brand-wordmark {
  margin-top: 2px;
}

.login-hero .brand-wordmark-my {
  font-size: 36px;
}

.login-hero .brand-wordmark-mistral {
  width: 182px;
  max-width: 58vw;
}

.brand-slogan {
  margin: 13px 0 0;
  color: #fff;
  font-family: Caveat, "Segoe Print", cursive;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.club-profile-prompt,
.visit-notice-card {
  border-color: rgba(0, 101, 106, 0.28);
  background:
    linear-gradient(135deg, rgba(229, 242, 239, 0.82), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.visit-notice-card p,
.club-profile-prompt p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.visit-notice-card .primary-button,
.club-profile-prompt .primary-button {
  margin-top: 14px;
}

.brand-mark {
  width: 42px;
  height: 50px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 3px;
  margin-bottom: 14px;
}

.brand-mark span {
  display: block;
  border-radius: 999px;
  background: var(--copper);
}

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

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

.brand-mark span:nth-child(3) {
  height: 46px;
  background: var(--primary);
}

.brand-mark span:nth-child(4) {
  height: 30px;
}

.brand-mark span:nth-child(5) {
  height: 40px;
}

.login-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.login-panel {
  margin-top: 18px;
  padding: 18px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.login-screen .field label {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.44);
  text-align: center;
}

.login-screen .field input {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(3px);
}

.login-screen .field input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.login-screen .primary-button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(3px);
}

.login-screen .mobile-demo-card,
.login-screen .mobile-all-demos {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(4, 18, 22, 0.22);
  color: #fff;
  backdrop-filter: blur(3px);
}

.login-screen .mobile-demo-card > summary,
.login-screen .mobile-all-demos > summary,
.login-screen .mobile-demo-heading {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.login-screen .demo-number,
.login-screen .mobile-demo-list .demo-number,
.login-screen .mobile-all-demos .demo-number {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(4, 18, 22, 0.2);
  color: #fff;
}

.login-screen .demo-number span,
.login-screen .demo-number strong {
  color: #fff;
}

.login-screen .primary-button:hover,
.login-screen .demo-number:hover {
  border-color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.08);
}

.login-screen .primary-button:hover { background: #eaf3f2; }
.login-screen .security-note {
  margin-top: 18px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(8, 25, 30, 0.42);
  color: #e2edef;
}
.login-screen .security-note strong { color: #fff; }

.login-screen .login-link,
.login-screen .inline-keyboard-done {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.login-screen .message.is-visible {
  border: 1px solid #b5c4c2;
  background: #fff;
  color: #8b1e24;
}

.login-feedback-slot {
  min-block-size: 76px;
}

.login-screen .login-feedback {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #b5c4c2;
  border-radius: 6px;
  background: #fff;
  color: #203936;
  font-size: 14px;
  line-height: 1.5;
  text-shadow: none;
  overflow-wrap: anywhere;
}
.login-screen .login-feedback[data-kind="error"] { color: #8b1e24; }
.login-screen .login-feedback[data-kind="success"] { color: #155d37; }

.title-row {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -20px -22px 24px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.mistral-header-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.title-row h1,
.screen-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.title-row .brand-heading {
  display: flex;
  align-items: flex-end;
}

.title-row > div {
  min-width: 0;
}

.screen-title {
  margin-bottom: 18px;
}

.title-row-spacer {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.legal-text {
  gap: 12px;
  color: var(--text);
}

.legal-intro h2,
.legal-section h2,
.consent-box h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.legal-intro p,
.legal-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.legal-intro p + p,
.legal-section p + p {
  margin-top: 10px;
}

.legal-intro .eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kvkk-meta {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.legal-list li::marker {
  color: var(--primary);
}

.consent-box {
  display: grid;
  gap: 10px;
}

.consent-box .check-row {
  align-items: flex-start;
  background: #fff;
}

.consent-box .check-row input {
  margin-top: 3px;
}

.legal-actions {
  width: 100%;
}

.subtle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.centered-note {
  text-align: center;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid #e7edef;
  border-radius: 999px;
  background: #f8fafa;
  color: var(--text);
  cursor: pointer;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.notification-bell {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 1px #fff;
}

.incoming-notification {
  position: absolute;
  top: 54px;
  left: 16px;
  right: 16px;
  z-index: 30;
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(0, 101, 106, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(28, 45, 51, 0.12);
  animation: notification-slide 360ms ease-out both;
}

.incoming-notification img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.incoming-notification span,
.incoming-notification small {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
}

.incoming-notification strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.incoming-notification p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.notification-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@keyframes notification-slide {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.unread-label {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(205, 45, 45, 0.1);
  color: var(--red);
  font-size: 10px;
  font-weight: 850;
  vertical-align: middle;
}

.field-stack {
  display: grid;
  gap: 20px;
}

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

.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1b2b34;
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfb;
  color: var(--text);
  outline: none;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input::placeholder, textarea::placeholder { color: #788b92; opacity: 1; }
input:disabled, select:disabled, textarea:disabled { background: #edf1f2; color: var(--muted); }

.field textarea {
  min-height: 106px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 101, 106, 0.12);
}

.generated-code-field input[readonly] {
  border-color: rgba(0, 101, 106, 0.3);
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 850;
  letter-spacing: 0;
}

.generated-code-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 50px;
  width: 100%;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

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

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.secondary-button svg,
.primary-button svg {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -4px;
}

.danger-button {
  border: 1px solid rgba(206, 45, 45, 0.34);
  background: var(--red-soft);
  color: var(--red);
}

.link-button {
  color: var(--primary);
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-link {
  display: block;
  width: max-content;
  margin: 22px auto 0;
}

.message {
  display: none;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 13px;
}

.message.is-visible {
  display: block;
}

.toast {
  margin: 12px 0 0;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--primary-strong);
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 760;
}

.guest-flow-note {
  display: grid;
  gap: 7px;
  color: var(--primary-strong);
  border: 0;
  border-left: 3px solid #8fb4b4;
  background: #f0f6f5;
}

.guest-flow-note strong {
  font-size: 15px;
}

.guest-flow-note span {
  color: var(--muted);
  line-height: 1.5;
}

.guest-window-warning {
  gap: 10px;
  border-color: rgba(182, 111, 0, 0.22);
  background: var(--amber-soft);
}

.guest-window-warning strong {
  color: var(--amber);
}

.guest-window-warning span {
  color: var(--ink);
  line-height: 1.5;
}

.inline-info {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  cursor: pointer;
}

.inline-info svg {
  width: 15px;
  height: 15px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--primary-strong);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.status-chip.green {
  color: var(--green);
  background: #eaf4ee;
}

.status-chip.amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-chip.red {
  color: var(--red);
  background: var(--red-soft);
}

.dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

.card,
.action-card,
.notice-card,
.soft-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section-stack {
  display: grid;
  gap: 20px;
}

.hero-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 112px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 79, 84, 0.08);
}

.hero-action h2 {
  margin: 0;
  font-size: 22px;
}

.hero-action p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.hero-action svg,
.action-card svg,
.list-icon svg,
.tab-button svg {
  width: 22px;
  height: 22px;
}

.arrow-circle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
}

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

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
  min-width: 0;
}

.card-title svg, .reminder-card > svg { width: 22px; height: 22px; flex: 0 0 22px; }
.card-title svg { color: #54767b; }

.mini-link {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.info-row,
.notice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border-top: 1px solid rgba(216, 223, 220, 0.72);
  font-size: 13px;
}

.notice-row-button {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.notice-row-button:hover {
  color: var(--primary-strong);
}

.info-row:first-of-type,
.notice-row:first-of-type {
  border-top: 0;
}

.info-row strong,
.notice-row strong {
  font-weight: 760;
}

.tiny-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
}

.tiny-muted {
  color: var(--muted);
  font-size: 12px;
}

.bottom-tabs {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(76px + env(safe-area-inset-bottom, 0px));
  padding: 4px 2px env(safe-area-inset-bottom, 0px);
  border: 1px solid rgba(216, 223, 220, 0.85);
  border-radius: 0 0 30px 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -3px 14px rgba(28, 45, 51, 0.035);
  backdrop-filter: blur(12px);
}

.bottom-tabs.has-qr-action {
  grid-template-columns: repeat(5, 1fr);
}

.tab-button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 8px 2px 4px;
  min-width: 0;
  color: #667a82;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.tab-button:not(.qr-tab-button).is-active svg {
  border-radius: 4px;
  background: var(--primary-soft);
  box-shadow: 0 0 0 5px var(--primary-soft);
}

.tab-button.is-active {
  color: var(--primary);
}

.qr-tab-button {
  color: var(--primary);
  font-weight: 850;
}

.qr-tab-button svg {
  padding: 5px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 101, 106, 0.12);
}

.company-card {
  overflow: hidden;
  padding: 0;
}

.company-visual {
  padding: 20px;
  border-left: 3px solid #80a8ad;
  color: var(--text);
  background: #edf3f4;
}

.company-visual h2 {
  margin: 0 0 5px;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.3;
}

.company-visual p {
  margin: 3px 0;
  color: #5a7179;
  font-size: 14px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 0 0;
}

.action-grid.reception-grid {
  grid-template-columns: repeat(2, 1fr);
}

.action-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 98px;
  padding: 14px 8px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.action-card svg { color: #3b747a; stroke-width: 1.7; }

.action-card.is-disabled,
.action-card:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  filter: grayscale(0.45);
}

.access-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.access-stat:hover {
  border-color: rgba(0, 101, 106, 0.42);
  box-shadow: 0 10px 22px rgba(0, 101, 106, 0.08);
  transform: translateY(-1px);
}

.list-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
}

.stat-number {
  margin-left: auto;
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.segment {
  min-height: 40px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.segment.is-active {
  color: var(--primary-strong);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.notice-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 16px 14px;
}

.notice-card-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.notice-card-button:hover {
  border-color: rgba(0, 101, 106, 0.42);
  box-shadow: 0 10px 24px rgba(0, 101, 106, 0.08);
}

.notice-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.notice-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.importance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.importance.normal {
  color: var(--primary);
  background: var(--primary-soft);
}

.importance.important {
  color: var(--amber);
  background: var(--amber-soft);
}

.importance.urgent {
  color: var(--red);
  background: var(--red-soft);
}

.qr-panel {
  display: grid;
  gap: 17px;
  justify-items: center;
  padding-top: 16px;
}

.qr-box {
  width: 252px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(28, 35, 42, 0.08);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  gap: 3px;
  aspect-ratio: 1;
}

.mobile-keyboard-done {
  position:fixed;z-index:10000;width:44px;height:44px;padding:10px;
  display:grid;place-items:center;border:1px solid #bad0d0;border-radius:6px;
  color:#075c62;background:#fff;box-shadow:0 2px 8px #163c3c24;
}
.mobile-keyboard-done[hidden] {display:none;}
.mobile-keyboard-done svg {width:22px;height:22px;}
.mobile-keyboard-done:focus-visible {outline:2px solid #075c62;outline-offset:2px;}
.inline-keyboard-done {display:none;}
@media (any-pointer:coarse) {
  .inline-keyboard-done {display:block;align-self:flex-end;min-height:32px;visibility:hidden;}
  .inline-keyboard-done.is-visible {visibility:visible;}
}

.qr-cell {
  border-radius: 1px;
  background: #f2f4f3;
}

.qr-cell.is-dark {
  background: #101418;
}

.countdown {
  font-size: 34px;
  line-height: 1;
  color: var(--primary-strong);
  font-weight: 850;
}

.location-line {
  color: var(--muted);
  font-size: 14px;
}

.soft-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  box-shadow: none;
  background: var(--surface-soft);
}

.toggle-row,
.selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #ccd4d2;
  cursor: pointer;
  transition: background 150ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(28, 35, 42, 0.18);
  transition: transform 150ms ease;
}

.switch.is-on {
  background: var(--primary);
}

.switch.is-on::after {
  transform: translateX(20px);
}

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

.reminder-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  border-radius: 8px;
  color: var(--amber);
  background: var(--amber-soft);
}

.reminder-card strong {
  display: block;
  color: #6f4200;
}

.selector-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.selector-pill {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.selector-pill.is-selected.normal {
  color: var(--primary);
  border-color: rgba(0, 101, 106, 0.45);
  background: var(--primary-soft);
}

.selector-pill.is-selected.important {
  color: var(--amber);
  border-color: rgba(182, 106, 0, 0.45);
  background: var(--amber-soft);
}

.selector-pill.is-selected.urgent {
  color: var(--red);
  border-color: rgba(206, 45, 45, 0.45);
  background: var(--red-soft);
}

.club-illustration {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 8px auto 24px;
  border-radius: 8px;
  background: var(--primary-soft);
}

.club-illustration svg {
  width: 56px;
  height: 56px;
  color: var(--primary);
}

.club-page {
  gap: 14px;
}

.club-hero-offer {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  border-radius: 8px;
  background: #101820;
  box-shadow: var(--shadow-soft);
}

.club-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-hero-offer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 15%, rgba(11, 25, 30, 0.8));
}

.club-hero-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 22px;
  color: #fff;
}

.club-hero-kicker {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 850;
}

.club-hero-overlay h2 {
  margin: 0;
  max-width: 330px;
  color: #fff;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.2;
}

.club-hero-overlay p {
  margin: 0;
  max-width: 310px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
}

.club-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.light-button,
.ghost-light-button {
  min-height: 46px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 650;
  padding: 10px 12px;
  line-height: 1.4;
}

.light-button {
  color: var(--primary-strong);
  background: #fff;
}

.ghost-light-button {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.club-status-card {
  display: grid;
  gap: 14px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.club-status-card h2 {
  margin: 14px 0 8px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 650;
}

.club-status-card p,
.club-benefit-card p,
.club-notification-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.club-status-compact h2 {
  font-size: 20px;
}

.club-benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.club-benefit-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(216, 223, 220, 0.78);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.club-benefit-card strong {
  font-size: 14px;
}

.club-offers-section {
  display: grid;
  gap: 12px;
}

.count-pill {
  min-width: 32px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--primary-strong);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.club-category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.club-category-row::-webkit-scrollbar {
  display: none;
}

.club-category-pill {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(216, 223, 220, 0.95);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.club-category-pill.is-active {
  border-color: rgba(0, 101, 106, 0.5);
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.club-offer-list {
  display: grid;
  gap: 12px;
}

.club-offer-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 126px;
  overflow: hidden;
  border: 1px solid rgba(216, 223, 220, 0.86);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: left;
}

.club-offer-image {
  width: 112px;
  height: 100%;
  min-height: 126px;
  object-fit: cover;
}

.club-offer-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: 106px;
  padding: 5px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 79, 84, 0.88);
  font-size: 10px;
  font-weight: 900;
}

.club-offer-body {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
}

.club-offer-body strong {
  font-size: 15px;
  line-height: 1.2;
}

.club-offer-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.36;
}

.club-benefit-line {
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
}

.club-detail-card {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.club-detail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.club-detail-body {
  display: grid;
  gap: 10px;
  padding: 20px 0;
}

.club-detail-body h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.12;
}

.club-detail-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.club-detail-benefit {
  color: var(--primary-strong);
  font-size: 17px;
}

.club-detail-steps {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.club-detail-steps span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(216, 223, 220, 0.78);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.club-notification-card {
  align-items: flex-start;
  grid-template-columns: 40px 1fr;
}

.club-verify-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.club-verify-card h2 {
  margin: 0;
  font-size: 22px;
}

.club-verify-qr {
  width: 190px;
  height: 190px;
}

.club-code {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed rgba(0, 101, 106, 0.42);
  border-radius: 8px;
  color: var(--primary-strong);
  background: rgba(0, 101, 106, 0.06);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.empty-state {
  text-align: center;
}

.empty-state h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.3;
}

.empty-state p {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.profile-list {
  display: grid;
  gap: 10px;
}

.profile-item {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.profile-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.profile-item strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.guest-process-card {
  display: grid;
  gap: 12px;
}

.guest-notification-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(0, 101, 106, 0.16);
  border-radius: 8px;
  background: rgba(0, 101, 106, 0.05);
}

.guest-notification-box.is-unread {
  border-color: rgba(0, 101, 106, 0.34);
  background: rgba(0, 101, 106, 0.09);
}

.guest-notification-box span,
.guest-notification-box small,
.timeline-list span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.guest-notification-box .secondary-button {
  min-height: 36px;
}

.timeline-list {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.timeline-list span {
  padding-left: 10px;
  border-left: 2px solid rgba(0, 101, 106, 0.18);
  font-size: 12px;
}

.weekly-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.day-pill {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 820;
}

.day-pill.is-on {
  border-color: rgba(0, 101, 106, 0.42);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.message-preview {
  overflow: auto;
  white-space: pre-wrap;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: #23323a;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.upload-drop {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 148px;
  padding: 20px;
  border: 1px dashed rgba(0, 101, 106, 0.45);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  cursor: pointer;
  text-align: center;
}

.upload-drop svg {
  width: 34px;
  height: 34px;
}

.upload-drop span {
  color: var(--muted);
  font-size: 13px;
}

.upload-drop input {
  display: none;
}

.security-note {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(0, 101, 106, 0.22);
  border-radius: 8px;
  background: rgba(0, 101, 106, 0.08);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.security-note strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-strong);
  font-size: 13px;
}

.security-note svg {
  width: 17px;
  height: 17px;
}

.column-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.column-tags span {
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
}

.mini-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mini-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f9f9;
  color: var(--text);
  font-size: 16px;
}

.mini-input:focus { outline: 2px solid #8cb5b9; outline-offset: 1px; }

.log-list {
  display: grid;
  gap: 8px;
}

.log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 12px 0;
  border-top: 1px solid rgba(216, 223, 220, 0.78);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.log-row:first-child {
  border-top: 0;
}

.log-row-button {
  cursor: pointer;
}

.log-row-button:hover strong {
  color: var(--primary);
}

.log-row strong,
.log-row span {
  display: block;
}

.log-row strong {
  font-size: 14px;
}

.log-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.log-row > div { min-width: 0; overflow-wrap: anywhere; }
.log-row > div:first-child { flex: 1 1 56%; }
.log-row > div:last-child { flex: 1 1 40%; }

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

.summary-pill {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #e6edef;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.summary-pill strong {
  color: var(--primary);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.summary-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.module-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.module-tabs button {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 54px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 820;
}

.module-tabs svg {
  width: 18px;
  height: 18px;
}

.module-tabs button.is-active {
  background: var(--primary);
  color: #fff;
}

.qr-admin-metrics {
  margin-bottom: 0;
}

.qr-scan-grid {
  grid-template-columns: 1fr;
}

.qr-scan-card {
  min-height: 132px;
}

.qr-scan-card svg {
  width: 34px;
  height: 34px;
}

.qr-filter-grid {
  grid-template-columns: 1fr 1fr;
}

.compact-button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
}

.compact-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 223, 220, 0.78);
  border-radius: 8px;
  background: #fff;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-top: 1px solid rgba(216, 223, 220, 0.78);
}

.table-row:first-child {
  border-top: 0;
}

.table-row strong,
.table-row span {
  display: block;
}

.table-row strong {
  font-size: 13px;
}

.table-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.count-pair,
.stacked-actions {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.count-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.count-link:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.definition-grid {
  display: grid;
  gap: 10px;
}

.definition-tags,
.permission-tags {
  margin-top: 10px;
}

.definition-tags span,
.definition-tag-button,
.permission-tags span {
  border-radius: 8px;
}

.definition-tag-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.definition-tag-button small {
  color: var(--red);
  font-size: 10px;
  font-weight: 850;
}

.definition-tag-button:hover {
  border-color: rgba(206, 45, 45, 0.25);
  background: var(--red-soft);
}

.definition-confirm {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(206, 45, 45, 0.2);
  border-radius: 8px;
  background: var(--red-soft);
}

.definition-confirm p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.empty-definition,
.missing-definition {
  color: var(--red);
  background: var(--red-soft);
}

.inline-add {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
  margin-top: 12px;
}

.permission-list {
  background: transparent;
}

.permission-row {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  background: #fff;
}

.record-card {
  padding-top: 6px;
}

.qr-record-button {
  width: 100%;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.qr-record-button:hover {
  border-color: rgba(0, 101, 106, 0.42);
  box-shadow: 0 10px 24px rgba(0, 101, 106, 0.08);
}

.asset-edit-link {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.asset-edit-link:hover strong {
  color: var(--primary);
}

.unprocessed-asset-row > div:first-child span + span {
  margin-top: 3px;
}

.dense-profile {
  gap: 6px;
  margin-top: 8px;
}

.dense-profile .profile-item {
  padding: 9px;
}

.dense-profile .profile-item strong {
  font-size: 13px;
}

.camera-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 20, 24, 0.94), rgba(35, 50, 58, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 30px);
  color: #fff;
}

.camera-corners {
  position: absolute;
  inset: 38px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
}

.camera-corners::before,
.camera-corners::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: #8fd8d2;
}

.camera-corners::before {
  top: -2px;
  left: -2px;
  border-top: 4px solid;
  border-left: 4px solid;
}

.camera-corners::after {
  right: -2px;
  bottom: -2px;
  border-right: 4px solid;
  border-bottom: 4px solid;
}

.scan-line {
  position: absolute;
  right: 42px;
  left: 42px;
  top: 46%;
  height: 2px;
  background: #8fd8d2;
  box-shadow: 0 0 18px rgba(0, 155, 150, 0.68);
}

.camera-center {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  z-index: 1;
}

.camera-center svg {
  width: 54px;
  height: 54px;
}

.camera-center span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.qr-photo-drop {
  min-height: 112px;
  margin-top: 12px;
}

.photo-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.photo-preview-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.photo-preview-status.is-error {
  color: var(--red);
}

.photo-placeholder-grid span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px dashed rgba(0, 101, 106, 0.36);
  border-radius: 8px;
  background: rgba(0, 101, 106, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.detail-note {
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: #23323a;
  font-size: 14px;
  line-height: 1.5;
}

.evidence-photo-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.evidence-photo {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 112px;
  padding: 10px;
  border: 1px solid rgba(0, 101, 106, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 101, 106, 0.12), rgba(165, 97, 53, 0.1)),
    var(--surface-soft);
  text-align: center;
}

.evidence-photo svg {
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

.evidence-photo img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.evidence-photo strong {
  font-size: 12px;
}

.evidence-photo small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.photo-preview-tile {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 101, 106, 0.18);
  border-radius: 8px;
  background: #fff;
}

.photo-preview-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.76;
  object-fit: cover;
}

.photo-preview-tile figcaption {
  overflow: hidden;
  padding: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-preview-tile button {
  width: 100%;
  padding: 6px;
  border: 0;
  border-top: 1px solid rgba(216, 223, 220, 0.82);
  background: #fff;
  color: var(--red);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
}

.choice-list {
  display: grid;
  gap: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.check-row:has(input:checked) { border-color: #8ab3b7; background: #f0f7f6; }

.recipient-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.recipient-details + .recipient-details {
  margin-top: 10px;
}

.recipient-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.recipient-details summary span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 101, 106, 0.1);
  color: var(--primary-strong);
  font-size: 12px;
}

.recipient-details .choice-list {
  padding: 0 10px 10px;
}

.staff-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(216, 223, 220, 0.78);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.compact-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 223, 220, 0.82);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.compact-list-row > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.compact-list-row strong,
.compact-list-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-list-row strong {
  font-size: 14px;
}

.compact-list-row small {
  color: var(--muted);
  font-size: 12px;
}

.compact-list-row .status-chip {
  flex: 0 0 auto;
}

.staff-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.staff-head strong,
.staff-head span {
  display: block;
}

.staff-head > div > strong {
  font-size: 15px;
}

.staff-head > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.permission-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  font-size: 13px;
}

.permission-grid span {
  color: var(--muted);
}

.staff-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.section-stack:has(> .compact-list-row) { gap: 8px; }
.staff-card .profile-list { gap: 0; }
.staff-card.is-expanded { border-color: #8eb3b6; }

.visitor-row {
  display: grid;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(216, 223, 220, 0.78);
}

.visitor-row.is-selected {
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 8px;
  background: var(--primary-soft);
  box-shadow: inset 3px 0 0 #4f9499;
}

.visitor-row .log-row-button { padding: 6px 10px; }
.visitor-row.is-selected:first-child { border-top: 0; }

.visitor-row.is-selected .log-row-button strong {
  color: var(--primary);
}

.visitor-row:first-child {
  border-top: 0;
}

.visitor-row strong,
.visitor-row span {
  display: block;
}

.visitor-row strong {
  font-size: 14px;
}

.visitor-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.visitor-row .log-row {
  padding: 0;
  border-top: 0;
}

.selected-record-note .primary-button {
  margin-top: 12px;
}

.visitor-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.visitor-actions.single-action {
  grid-template-columns: 1fr;
}

.visitor-actions .secondary-button,
.visitor-actions .primary-button,
.visitor-actions .danger-button {
  min-height: 44px;
  font-size: 13px;
}

@media (hover: hover) {
  .primary-button:not(:disabled):hover { background: var(--primary-strong); }
  .login-screen .primary-button:not(:disabled):hover { background: #eaf3f2; }
  .secondary-button:not(:disabled):hover,
  .action-card:not(:disabled):hover,
  .compact-list-row:hover { background: #f0f6f6; border-color: #9bbcc0; }
  .icon-button:hover { background: var(--primary-soft); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 360px) {
  .brand-wordmark.is-compact .brand-wordmark-my { font-size: 20px; }
  .brand-wordmark.is-compact .brand-wordmark-mistral { width: 98px; }
  .title-row { gap: 8px; }
  .header-actions { gap: 4px; }
  .notice-card { grid-template-columns: 30px minmax(0, 1fr); }
  .notice-card .importance { grid-column: 2; justify-self: start; }
  .notice-card .list-icon { width: 30px; height: 36px; }
}

@media (max-width: 940px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 22px;
  }

  .prototype-note {
    max-width: none;
  }

  .prototype-note h1 {
    font-size: 34px;
  }
}

@media (max-width: 700px) {
  html,
  body {
    min-height: 100dvh;
    background: var(--surface);
  }

  .stage {
    width: 100%;
    min-height: 100dvh;
    padding: 0;
    display: block;
  }

  .prototype-note {
    display: none;
  }

  .phone-shell {
    display: block;
    width: 100%;
    min-height: 100dvh;
  }

  .phone-bezel {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    border-radius: 0;
    background: var(--surface);
    box-shadow: none;
  }

  .phone-bezel::before {
    display: none;
  }

  .phone-screen {
    height: 100dvh;
    border-radius: 0;
  }

  #app,
  .app-frame {
    height: 100dvh;
  }

  .status-bar {
    display: none;
  }

  .mobile-demo-card {
    display: block;
    margin: 16px 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 8px;
    background: rgba(4, 18, 22, 0.18);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(3px);
  }

  .mobile-demo-card > summary {
    padding: 13px 14px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
  }

  .mobile-demo-list {
    max-height: 42dvh;
    overflow: auto;
    padding: 0 12px 12px;
  }

  .mobile-demo-list .demo-number {
    min-height: 40px;
    margin-top: 8px;
    gap: 10px;
    padding: 8px 10px;
    border-color: rgba(255, 255, 255, 0.46);
    background: rgba(4, 18, 22, 0.2);
    color: #fff;
    font-size: 12px;
  }

  .mobile-demo-list .demo-number span {
    min-width: 0;
    line-height: 1.25;
  }

  .mobile-demo-list .demo-number strong {
    flex: 0 0 auto;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
  }

  .mobile-demo-heading {
    margin: 14px 0 2px;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-all-demos {
    margin-top: 8px;
    background: var(--surface-soft);
  }

  .mobile-all-demos .demo-people-list {
    max-height: 230px;
  }

  .bottom-tabs {
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0;
  }
}
.test-account-panel {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #d5e4e4;
  background: #eef7f6;
  color: #164950;
}
.test-account-panel > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.test-account-panel .link-button { display: inline-flex; align-items: center; gap: 6px; color: #08626a; }
.test-account-panel svg { width: 20px; height: 20px; flex-shrink: 0; }
.test-account-panel p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.app-frame:has(.test-account-panel) .incoming-notification { z-index: 150; background: #fff; }
.diagnostic-screen { display: grid; gap: 20px; min-width: 0; }
.diagnostic-screen h2 { font-size: 18px; margin: 0 0 8px; }
.diagnostic-screen p { margin: 8px 0; }
.diagnostic-screen dl { margin: 10px 0; font-size: 14px; }
.diagnostic-screen dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 5px 0; }
.diagnostic-screen dt { color: #586371; }
.diagnostic-screen dd { margin: 0; overflow-wrap: anywhere; }
.diagnostic-summary { padding-bottom: 16px; border-bottom: 1px solid #d5e4e4; }
.diagnostic-summary button { margin-top: 12px; }
.diagnostic-account { padding: 16px 0; border-bottom: 1px solid #d5e4e4; }
.diagnostic-screen details { padding: 10px 0; border-bottom: 1px solid #e0e5e8; }
.diagnostic-screen summary { cursor: pointer; overflow-wrap: anywhere; font-size: 14px; }
.diagnostic-screen .secondary-button { width: 100%; white-space: normal; }
.diagnostic-events { max-height: 560px; overflow-y: auto; }
/* Refresh feedback is an overlay, never a spacer in the scrolling document. */
.content { overscroll-behavior-y: contain; }
.mobile-refresh-status { position: fixed; z-index: 10000; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: min(90%, 440px); padding: 10px 14px; background: #fff; color: #20343b; border: 1px solid #b9ccce; border-radius: 8px; box-shadow: 0 2px 10px #0002; pointer-events: none; font-size: 14px; }
.mobile-refresh-status[hidden] { display: none; }
.mobile-refresh-status.is-error { border-color: #b33b36; color: #8f2420; }
.mobile-refresh-spinner { width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid #c5d9db; border-top-color: #006d73; border-radius: 50%; transform: rotate(var(--pull-turn, 0turn)); }
