@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Outfit:wght@600;700&display=swap');

/* ── Tokens NTT DATA ─────────────────────────────────────────── */
:root {
  --navy:   #003b5c;
  --blue:   #007fba;
  --cyan:   #00a9ce;
  --ink:    #10242e;
  --muted:  #5d707b;
  --surface:#fff;
  --soft:   #eef7fa;
  --line:   #d7e4e9;
  --shadow: 0 16px 42px rgba(0,59,92,.08);

  /* Sidebar */
  --sidebar-w: 268px;
  --sidebar-bg: var(--navy);
  --sidebar-hover: rgba(255,255,255,.08);
  --sidebar-active: rgba(0,169,206,.18);
  --sidebar-active-border: var(--cyan);
}

[hidden] { display: none !important }
* { box-sizing: border-box }

body {
  margin: 0;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  background: #f6fafb;
}

/* ── Header ──────────────────────────────────────────────────── */
header {
  min-height: 72px;
  padding: 10px clamp(24px,6vw,96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}




/* Account dialog */
.account-dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16,36,46,.48);
}
.account-card {
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.account-card small { font-weight: 400; color: var(--muted) }

/* Brand */
.brand { display: flex; align-items: center }
.brand img { display: block; width: 132px; height: auto }

/* ── Buttons ─────────────────────────────────────────────────── */
button, .button-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 16px;
  color: var(--navy);
  font: 700 14px 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: .2s ease;
}
button:hover, .button-link:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  padding: 13px 22px;
}
.primary:hover { background: var(--navy) }

.danger { color: #a13030; border-color: #dca9a9 }
.danger:hover { background: #fff1f1; border-color: #a13030 }

/* ── Main / Layout ───────────────────────────────────────────── */
main {
  max-width: 1120px;
  margin: auto;
  padding: 52px 24px 64px;
}

footer {
  padding: 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ── Views ───────────────────────────────────────────────────── */
.view { display: none }
.view.active { display: block }

/* ── Hero (visitor) ──────────────────────────────────────────── */
.hero {
  padding: 68px 0 56px;
  max-width: 760px;
}
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 12px;
}
.hero h1, h1, h2, h3 { font-family: Outfit, sans-serif }
.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: .98;
  letter-spacing: -2px;
  margin: 16px 0 22px;
  color: var(--navy);
}
.hero p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  max-width: 610px;
  margin: 0 0 34px;
}

/* ── Booking flow ────────────────────────────────────────────── */
.booking-flow {
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.booking-screen {
  min-height: 560px;
  padding: clamp(28px,5vw,58px);
  animation: screen-in .24s ease-out;
}
.booking-flow[hidden], .booking-screen[hidden], .loading[hidden] { display: none !important }

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(34px, 6vw, 64px);
}
.back-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.back-button:hover { color: var(--navy); border: 0; transform: none }

.screen-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
}
.screen-copy { max-width: 650px; margin-bottom: 34px }
.screen-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  color: var(--navy);
}
.screen-copy p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55 }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px }
.topic, .consultant-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 180px;
  text-align: left;
  gap: 8px;
}
.topic h3, .consultant-option strong { margin: 0; font-size: 18px }
.topic p, .consultant-option span { margin: 0; color: var(--muted); line-height: 1.45 }
.topic b, .consultant-option b { margin-top: auto; padding-top: 18px; color: var(--blue); font-size: 14px }

.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px,1fr)); gap: 10px }
.time-slot { display: grid; gap: 4px; text-align: left }
.time-slot span { font-size: 18px }
.time-slot small { color: var(--muted) }

.consultant-options { display: grid; gap: 12px; max-width: 640px }

/* ── Forms ───────────────────────────────────────────────────── */
.data-form { max-width: 720px }
.form-fields, form { display: grid; gap: 16px }
label { display: grid; gap: 7px; color: var(--navy); font-size: 14px; font-weight: 700 }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 15px 'DM Sans', sans-serif;
}
textarea { min-height: 92px; resize: vertical }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(0,127,186,.2);
  border-color: var(--blue);
}
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px }
.privacy-disclaimer { font-size: 0.78rem; color: var(--text-muted, #888); line-height: 1.5; margin: 16px 0 4px; }
.privacy-disclaimer a { color: var(--accent, #1a73e8); text-decoration: underline; }

.confirmation {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.empty {
  padding: 28px;
  background: var(--soft);
  border-radius: 12px;
  color: var(--muted);
}

.auth {
  max-width: 520px;
  margin: 36px auto;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.auth h1 { margin: 10px 0 }
.auth p { color: var(--muted); line-height: 1.5 }

/* ── Section heading ─────────────────────────────────────────── */
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
}
.section-heading h1, .section-heading h2 { margin: 0 }
.section-heading p { margin: 6px 0 0; color: var(--muted) }
.management-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }

/* ── Booking list ────────────────────────────────────────────── */
.booking-list, .management-list { display: grid; gap: 12px }
.booking, .management-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.booking time { min-width: 106px; font-weight: 700; color: var(--blue) }
.details { display: grid; gap: 5px; flex: 1 }
.details span { color: var(--muted); font-size: 14px }

/* ── Panel layout (admin + consultor) ────────────────────────── */
#admin-panel,
#consultant-panel {
  position: relative;
  display: flex;
  min-height: calc(100vh - 72px);
}

/* Hamburger button (panel level) */
.panel-hamburger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 12;
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 4px 18px rgba(0,59,92,.32);
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.panel-hamburger:hover {
  background: var(--blue);
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(0,127,186,.38);
}
.panel-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
/* Animated X when open */
.panel-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.panel-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.panel-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Panel overlay */
.panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(16,36,46,.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: overlay-in .2s ease;
}
.panel-overlay.open { display: block }

/* ── Sidebar ─────────────────────────────────────────────────── */
.panel-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: var(--sidebar-w);
  z-index: 11;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.panel-sidebar.open {
  transform: translateX(0);
  box-shadow: 4px 0 32px rgba(0,0,0,.32);
}
.panel-hamburger.sidebar-open { display: none }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.sidebar-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}
.sidebar-close {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sidebar-close:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  transform: none;
}

/* User block */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cyan);
  display: grid;
  place-items: center;
  font: 700 15px 'Outfit', sans-serif;
  color: var(--navy);
  flex-shrink: 0;
}
.sidebar-user strong {
  display: block;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.sidebar-user span {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  display: block;
  margin-top: 2px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

/* Nav items */
.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.7);
  font: 500 14px 'DM Sans', sans-serif;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s, border-color .15s;
}
.sidebar-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}
.sidebar-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.1);
  margin: 6px 4px;
}
a.sidebar-nav-item {
  text-decoration: none;
}
.sidebar-nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
  transform: none;
  border-left-color: rgba(0,169,206,.4);
}
.sidebar-nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  border-left-color: var(--sidebar-active-border);
}

/* Footer actions */
.sidebar-footer {
  padding: 10px 10px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.sidebar-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.6);
  font: 500 13px 'DM Sans', sans-serif;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}
.sidebar-action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
}
.sidebar-action:hover {
  background: var(--sidebar-hover);
  color: #fff;
  transform: none;
}
.sidebar-action--danger { color: rgba(255,120,120,.7) }
.sidebar-action--danger:hover {
  background: rgba(161,48,48,.25);
  color: #ff9f9f;
}

/* ── Panel body (right of sidebar) ──────────────────────────── */
.panel-body {
  flex: 1;
  min-width: 0;
  padding: 0 clamp(20px, 4vw, 56px) 64px;
}

.panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.panel-title {
  font-family: Outfit, sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

/* ── Admin / Consultant sections ─────────────────────────────── */
.admin-section, .consultant-section { display: none }
.admin-section.active, .consultant-section.active { display: block }

/* Legacy tabs (hidden but kept for JS compatibility) */
.admin-tabs, .consultant-tabs { display: none }

.admin-layout { display: grid; grid-template-columns: minmax(280px,.8fr) 1.2fr; gap: 28px }
.admin-layout form, #consultant-edit-form, #consultant-topics-form {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.management-item { justify-content: space-between }
.management-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px }
.checkbox { display: flex; align-items: center; gap: 9px }
.checkbox input { width: auto }

/* ── Schedule grid ───────────────────────────────────────────── */
.schedule-panel {
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.schedule-panel h2 { margin: 0 }
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px,1fr));
  gap: 8px;
  margin-top: 18px;
}
.schedule-slot { display: grid; gap: 3px; min-height: 56px; padding: 8px; text-align: left }
.schedule-slot small { color: var(--muted) }
.schedule-slot.blocked { background: #a13030; border-color: #a13030; color: #fff }
.schedule-slot.blocked small { color: #fff }
.schedule-slot.booked, .schedule-slot:disabled {
  background: var(--soft);
  color: var(--muted);
  cursor: not-allowed;
}
.schedule-slot:hover { transform: none }

/* ── Lead share ──────────────────────────────────────────────── */
.lead-share {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin: 0 0 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.lead-share h2 { margin: 0 }
.lead-share p { margin: 6px 0 0; color: var(--muted) }
.lead-link { display: flex; gap: 8px }
.lead-link input { min-width: 280px }
.lead-comment-form { margin-top: 10px }
.lead-comment-form button { justify-self: start }
.lead-registration { max-width: 620px }

/* ── QR Code ─────────────────────────────────────────────────── */
.qrcode-fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
.qrcode-fullscreen img {
  display: block;
  width: min(480px, 100%);
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* ── Loading ─────────────────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
  color: var(--muted);
  font-weight: 700;
}
.loading span {
  width: 20px;
  height: 20px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Phone input validation feedback ────────────────────────── */
input.phone-input:not(:placeholder-shown):valid {
  border-color: #2e9e5b;
  background: #f4fcf7;
}
input.phone-input:not(:placeholder-shown):invalid {
  border-color: #c0392b;
  background: #fff5f5;
}

/* ── Lead manual panel ───────────────────────────────────────── */
.lead-manual-panel {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.lead-manual-panel summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.lead-manual-panel summary::-webkit-details-marker { display: none }
.lead-manual-panel summary:hover { background: var(--soft) }
.lead-manual-panel[open] summary {
  border-bottom: 1px solid var(--line);
}
.lead-manual-form {
  padding: 20px;
}
.lead-manual-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.label-full { grid-column: 1 / -1 }

/* ── Lead card header & status ───────────────────────────────── */
.lead-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lead-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.lead-hot       { background: #fde8e8; color: #a13030 }
.lead-warm      { background: #fef3cd; color: #7a5800 }
.lead-cold      { background: var(--soft); color: var(--muted) }
.lead-converted { background: #fff8e1; color: #7a5800 }

.lead-source {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.lead-status-select {
  width: auto;
  padding: 8px 10px;
  font-size: 13px;
}

/* ── Audit log ───────────────────────────────────────────────── */
.audit-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.audit-filters select {
  width: auto;
  padding: 9px 12px;
  font-size: 13px;
}
.audit-log-list {
  display: grid;
  gap: 10px;
}
.audit-entry {
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s;
}
.audit-entry:hover { border-left-color: var(--cyan) }
.audit-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 148px;
  flex-shrink: 0;
}
.audit-time time {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
.audit-ip {
  font-size: 11px;
  color: var(--muted);
  font-family: monospace;
}
.audit-body {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.audit-actor {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.audit-description {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.audit-meta span {
  font-size: 12px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 6px;
  padding: 2px 8px;
}
.audit-meta b { color: var(--navy); font-weight: 600 }

/* Role badges */
.audit-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
}
.badge-admin    { background: #003b5c; color: #fff }
.badge-coord    { background: #007fba; color: #fff }
.badge-consultant { background: #00a9ce; color: #fff }
.badge-anon     { background: var(--line); color: var(--muted) }

/* Pagination */
.audit-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 0 4px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .audit-entry { flex-direction: column; gap: 8px }
  .audit-time { min-width: 0; flex-direction: row; align-items: center; gap: 8px }
  .audit-filters { flex-direction: column; align-items: stretch }
  .audit-filters select { width: 100% }
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px) }
  to   { opacity: 1; transform: translateY(0) }
}
@keyframes overlay-in {
  from { opacity: 0 }
  to   { opacity: 1 }
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 700px) {
  header { align-items: center; padding: 12px 16px; gap: 12px }
  .brand img { width: 104px }


  .account-card { padding: 22px 18px }
  .account-card .section-heading { flex-direction: row }
  .account-card .section-heading button { padding: 8px 10px }

  main { padding: 32px 16px 48px }

  /* Panel on mobile: full-width body, sidebar slides over */
  #admin-panel, #consultant-panel { flex-direction: column; min-height: auto }
  .panel-body { padding: 0 16px 56px }
  .panel-hamburger { bottom: 20px; left: 20px }

  .section-heading, .booking { flex-direction: column }
  .admin-layout { grid-template-columns: 1fr }
  .schedule-panel { padding: 20px }
  .schedule-grid { grid-template-columns: repeat(3,1fr) }
  .lead-share { grid-template-columns: 1fr }
  .lead-link { flex-direction: column }
  .lead-link input { min-width: 0 }
  .booking time { min-width: 0 }

  /* QR Code fullscreen on mobile */
  body.qrcode-open { overflow: hidden }
  body.qrcode-open header,
  body.qrcode-open footer,
  body.qrcode-open .panel-topbar,
  body.qrcode-open .consultant-section:not(#consultant-qrcode-section) { display: none !important }
  body.qrcode-open main { max-width: none; height: 100dvh; padding: 0 }
  body.qrcode-open #consultant,
  body.qrcode-open #consultant-panel,
  body.qrcode-open #consultant-qrcode-section { height: 100%; margin: 0 }
  body.qrcode-open #consultant-qrcode-section { display: block !important }
  body.qrcode-open .qrcode-fullscreen {
    position: relative;
    min-height: 100dvh;
    padding: 24px;
    background: var(--surface);
  }
  body.qrcode-open .qrcode-fullscreen img {
    width: min(100%, calc(100dvh - 96px));
    height: min(100%, calc(100dvh - 96px));
    object-fit: contain;
  }
}
