.approval-notice { padding: 0; overflow: hidden; }
.pending-details { width: 100%; }
.pending-details summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}
.pending-details summary::-webkit-details-marker { display: none; }
.pending-details summary::after { content: "⌄"; font-size: 1.1rem; transition: transform .2s ease; }
.pending-details[open] summary::after { transform: rotate(180deg); }
.pending-details-body { padding: 0 18px 16px; display: grid; gap: 8px; }
.pending-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 15%, transparent);
}
.pending-detail-row b { white-space: nowrap; }
.pending-helper { display: block; opacity: .78; line-height: 1.45; margin-top: 2px; }

.barcode-modal-card { width: min(560px, calc(100vw - 24px)); }
.barcode-shell {
  margin: 18px 0 12px;
  padding: 20px 12px;
  overflow-x: auto;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #d7e4df;
  text-align: center;
}
#approvalBarcodeSvg { min-width: 310px; max-width: 100%; height: 100px; }
.approval-code-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f2f7f4;
  font-size: .8rem;
}
.approval-code-line strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.approval-barcode-btn { width: 100%; margin-top: 8px; }

.owner-scanner-card { border-color: #b9d9ca; }
.owner-scan-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: #10261f;
  color: #f0ca89;
  font-size: .72rem;
  font-weight: 900;
  white-space: nowrap;
}
.owner-scanner-grid { display: grid; grid-template-columns: minmax(260px, .9fr) 1.1fr; gap: 20px; align-items: center; }
.owner-video-shell {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 18px;
  background: #08110e;
  border: 1px solid #24453a;
}
#ownerScannerVideo { width: 100%; height: 100%; min-height: 230px; object-fit: cover; display: block; }
.scan-guide {
  position: absolute;
  inset: 26% 10%;
  border: 2px solid #e8c88c;
  border-radius: 12px;
  box-shadow: 0 0 0 999px #0005;
  pointer-events: none;
}
.owner-scan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.owner-code-label { display: grid; gap: 6px; margin: 12px 0 8px; font-weight: 800; }
.owner-code-label input { width: 100%; }
#ownerScannerStatus { margin-top: 12px; line-height: 1.45; }
.owner-exception-details { margin-top: 12px; }
.owner-exception-details > summary { cursor: pointer; font-weight: 850; color: #496158; }
.legacy-approval-buttons { opacity: .82; }

.selfcare-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff8e9, #f0f8f4);
  border: 1px solid #dec998;
}
.selfcare-panel h4 { margin: 5px 0 10px; }
.selfcare-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.selfcare-chips span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d7e4df;
  font-size: .78rem;
  font-weight: 800;
}

.mobile-lotus-dock { display: none; }
.lotus-standalone .topbar { padding-top: env(safe-area-inset-top); height: calc(74px + env(safe-area-inset-top)); }

@media (max-width: 800px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .container { width: min(100% - 18px, 1180px); }
  .approval-notice { top: calc(74px + env(safe-area-inset-top)); margin: 8px 0; }
  .pending-details summary { padding: 12px 14px; }
  .pending-details-body { padding: 0 14px 13px; }
  .owner-scanner-grid { grid-template-columns: 1fr; }
  .owner-video-shell, #ownerScannerVideo { min-height: 210px; }
  .mobile-lotus-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 6px;
    border-radius: 18px;
    background: #08110ef2;
    border: 1px solid #d8b16c38;
    box-shadow: 0 14px 40px #0005;
    backdrop-filter: blur(18px);
  }
  .mobile-lotus-dock button {
    min-height: 45px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #eff5f1;
    font-weight: 850;
  }
  .mobile-lotus-dock button:active { background: #ffffff16; }
}

@media (max-width: 500px) {
  .topbar nav { gap: 4px; }
  .topbar .ghost { padding-inline: 8px; font-size: .78rem; }
  .pending-detail-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .barcode-modal-card { padding: 18px; }
  #approvalBarcodeSvg { min-width: 280px; }
  .owner-video-shell, #ownerScannerVideo { min-height: 190px; }
}
