.sidebar-head h2 { font-size: 18px; }
.direct-scan-mode { min-width: 0; background: linear-gradient(145deg, #eef7ff, #f8fbff 55%, #eefaf6); }
.direct-scan-guide { display: grid; min-height: 100dvh; padding: 28px; place-items: center; }
.direct-scan-card { width: min(440px, 100%); padding: 34px 28px 28px; border: 1px solid #dce7f2; border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 24px 70px rgba(29,69,122,.13); text-align: center; }
.direct-scan-card > img { width: 58px; height: 58px; border-radius: 16px; box-shadow: 0 9px 24px rgba(47,128,237,.2); }
.direct-scan-eyebrow { margin: 14px 0 7px; color: #2f80ed; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.direct-scan-card h1 { margin: 0; color: #1d2a3a; font-size: 25px; }
.direct-scan-copy { margin: 12px 0 20px; color: #68798e; font-size: 13px; line-height: 1.75; }
.direct-scan-card ol { display: grid; margin: 0; padding: 0; gap: 9px; list-style: none; text-align: left; }
.direct-scan-card li { display: flex; padding: 12px 13px; align-items: center; gap: 12px; border-radius: 12px; background: #f6f9fd; }
.direct-scan-card li > i { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 50%; background: #e7f1ff; color: #2f80ed; font-size: 12px; font-style: normal; font-weight: 700; }
.direct-scan-card li span,.direct-scan-card li strong,.direct-scan-card li small { display: block; }
.direct-scan-card li strong { color: #344054; font-size: 13px; }
.direct-scan-card li small { margin-top: 3px; color: #8792a2; font-size: 11px; }
.direct-scan-launch { display: flex; width: 100%; min-height: 46px; margin-top: 18px; align-items: center; justify-content: center; border-radius: 12px; background: #07c160; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px rgba(7,193,96,.2); }
.direct-scan-launch:active { background: #06ad56; }
.direct-scan-note { margin: 16px 0 0; color: #98a2b3; font-size: 11px; line-height: 1.6; }
.login-brand-page .login-qr-panel { padding-bottom: 14px; }
.login-brand-page .qr-actions { margin-bottom: 10px; transform: translateY(-9px); }
#topNewReportButton { display: inline-flex; align-items: center; gap: 7px; }
.create-report-plus { font-size: 21px; font-weight: 400; line-height: 1; }
.topbar { position: relative; z-index: 1120; }
.topbar-actions { gap: 14px; }
.clinic-account { position: relative; }
.clinic-menu-button { display: flex; max-width: 300px; min-height: 38px; padding: 6px 8px; align-items: center; gap: 10px; border: 0; border-radius: 9px; background: transparent; color: #475467; font-size: 13px; }
.clinic-menu-button:hover, .clinic-menu-button[aria-expanded="true"] { background: #f7f9fc; }
.clinic-menu-chevron { width: 7px; height: 7px; margin: -4px 3px 0 0; flex: 0 0 7px; border: solid #8792a2; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.clinic-menu-button[aria-expanded="true"] .clinic-menu-chevron { transform: translateY(4px) rotate(225deg); }
.membership-badge { padding: 5px 9px; border: 1px solid #d6e8ff; border-radius: 7px; background: #eef6ff; color: #2f80ed; font-size: 11px; white-space: nowrap; }
.membership-badge.is-expired { border-color: #f6d9ac; background: #fff7e8; color: #946016; }
.clinic-menu { position: absolute; top: calc(100% + 12px); right: 0; width: 284px; padding: 8px; border: 1px solid #e6eaf0; border-radius: 13px; background: #fff; box-shadow: 0 12px 40px #1f2a371f; }
.clinic-menu > button { display: block; width: 100%; padding: 13px 12px; border: 0; border-radius: 8px; background: #fff; text-align: left; color: #344054; font-size: 14px; }
.clinic-menu > button:hover { background: #eef6ff; color: #2f80ed; }
.clinic-menu-membership { margin-top: 7px; padding: 16px 12px 9px; border-top: 1px solid #e6eaf0; }
.clinic-menu-membership strong, .clinic-menu-membership small { display: block; }
.clinic-menu-membership strong { font-size: 13px; }
.clinic-menu-membership small { margin-top: 6px; color: #8792a2; font-size: 11px; line-height: 1.7; }
.clinic-menu-membership button { padding: 8px 0 0; font-size: 12px; }
.membership-notice { display: flex; height: 42px; padding: 0 28px; justify-content: center; align-items: center; gap: 18px; border-bottom: 1px solid #f4e4c6; background: #fff9ee; color: #946016; font-size: 12px; }
.membership-notice .text-button { padding: 0; font-size: 12px; }
.workspace { height: calc(100dvh - var(--topbar-height) - var(--membership-notice-height, 0px)); }
.membership-modal { z-index: 1540; }
.membership-dialog { width: min(460px, calc(100vw - 48px)); padding: 28px; border: 1px solid #e6eaf0; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px #1f2a3729; }
.membership-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.membership-dialog header h2 { margin: 0; color: #1f2a37; font-size: 21px; }
.membership-dialog header button { min-height: 32px; padding: 0 10px; font-size: 12px; }
.membership-expiry { margin: 16px 0 6px; color: #2f80ed; font-size: 13px; }
.membership-description { color: #6b7280; font-size: 13px; line-height: 1.8; }
.membership-form { margin-top: 24px; }
.membership-form label { display: grid; gap: 10px; font-size: 13px; color: #344054; }
.membership-form input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d7e1ed; border-radius: 10px; font-size: 16px; letter-spacing: .08em; }
.membership-form .primary-button { width: 100%; margin-top: 14px; }
.membership-feedback { min-height: 22px; margin: 9px 0; font-size: 12px; line-height: 1.7; color: #946016; }
.membership-help { margin: 12px 0 0; color: #8792a2; font-size: 12px; line-height: 1.9; }
.membership-help a { color: #2f80ed; text-decoration: none; }
.logout-modal { z-index: 1540; }
.logout-dialog { width: min(400px, calc(100vw - 48px)); padding: 30px; border: 1px solid #e6eaf0; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px #1f2a3729; text-align: center; }
.logout-dialog-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 18px; place-items: center; border-radius: 50%; background: #eef6ff; color: #2f80ed; font-size: 22px; font-weight: 600; }
.logout-dialog h2 { margin: 0; color: #1f2a37; font-size: 21px; }
.logout-dialog p { margin: 12px auto 24px; color: #6b7280; font-size: 13px; line-height: 1.8; }
.logout-dialog #logoutDescription { white-space: nowrap; }
.logout-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.logout-dialog-actions button { width: 100%; }
@media (max-width: 1200px) { .topbar-actions { gap: 9px; } .clinic-menu-button { max-width: 220px; } }
