.sm-page { width: 100%; min-width: 0; color: #f3efea; }
.sm-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; margin-bottom: 25px; }
.sm-heading h1 { margin: 8px 0 10px; font-size: clamp(27px,2.5vw,36px); font-weight: 650; letter-spacing: -1px; }
.sm-heading p,.sm-section-heading p { margin: 0; color: #a09b9f; font-size: 13px; line-height: 1.7; }
.sm-page .eyebrow { color: #c09170; font-size: 9px; letter-spacing: 1.8px; }
.sm-role { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #58402e; padding: 10px 13px; border-radius: 8px; color: #d8b599; background: #2b211a; font-size: 11px; white-space: nowrap; }
.sm-notice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #534028; background: #2a241a; color: #d8b683; padding: 17px 19px; border-radius: 10px; margin-bottom: 26px; }
.sm-notice > svg { flex-shrink: 0; margin-top: 1px; }
.sm-notice strong { font-size: 12px; font-weight: 600; }
.sm-notice p { margin: 6px 0 0; font-size: 11px; line-height: 1.8; color: #baa78a; }
.sm-section { margin-bottom: 34px; }
.sm-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.sm-section-heading h2 { margin: 8px 0 7px; font-size: 22px; font-weight: 550; letter-spacing: -.55px; }
.sm-section-heading p { font-size: 12px; max-width: 670px; }
.sm-count { flex-shrink: 0; font-size: 11px; color: #c7a88d; padding: 8px 11px; border: 1px solid #514030; border-radius: 6px; background: #241e19; }
.sm-toolbar { display: flex; gap: 10px; align-items: stretch; margin: 22px 0 18px; }
.sm-search { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 8px; border: 1px solid #3a3436; background: #151416; color: #8a8188; flex: 1 1 320px; max-width: 370px; min-width: 200px; }
.sm-search:focus-within { border-color: #b56b3f; }
.sm-search input { font: inherit; font-size: 12px; border: 0; outline: 0; width: 100%; min-width: 0; background: transparent; color: #f2eae3; }
.sm-search svg { flex-shrink: 0; }
.sm-toolbar .select { flex: 0 1 220px; width: 220px; min-width: 170px; font-size: 12px; }
.sm-toolbar .btn { flex: 0 0 auto; margin-left: auto; font-size: 11px; }
.sm-table-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.sm-table-card { min-width: 0; border: 1px solid #353135; border-radius: 12px; padding: 20px 20px 0; background: #1c1a1d; overflow: hidden; }
.sm-table-card.is-active { border-color: #62442f; background: linear-gradient(145deg,#292019,#1c1a1d 62%); }
.sm-table-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }
.sm-table-icon { display: flex; align-items: center; justify-content: center; height: 43px; width: 43px; color: #d89f77; border: 1px solid #503b2e; border-radius: 10px; background: #2d231d; flex-shrink: 0; }
.sm-status { display: inline-flex; gap: 6px; align-items: center; color: #a59ba5; border: 1px solid #443a44; border-radius: 5px; font-size: 9px; padding: 6px 8px; white-space: nowrap; }
.sm-status i { background: currentColor; width: 5px; height: 5px; border-radius: 50%; }
.sm-status.is-active { color: #a7d2b6; border-color: #37523d; background: #223027; }
.sm-table-card h3 { margin: 0 0 5px; font-size: 22px; letter-spacing: -.4px; font-weight: 600; overflow-wrap: anywhere; }
.sm-room { margin: 0 0 20px; color: #a2989e; font-size: 11px; }
.sm-pin { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #3c3335; padding: 13px 12px; border-radius: 8px; background: #151214; min-height: 75px; }
.sm-pin > div { min-width: 0; }
.sm-pin span { color: #9c8a89; font-size: 9px; display: block; margin-bottom: 7px; }
.sm-pin strong { font-size: 25px; letter-spacing: 4px; color: #f8d0ae; font-variant-numeric: tabular-nums; font-weight: 550; }
.sm-pin .btn { font-size: 9px; gap: 5px; padding: 8px 4px; color: #b6a295; }
.sm-expiry { display: flex; align-items: center; gap: 6px; color: #a5968b; font-size: 10px; margin: 12px 0 19px; line-height: 1.6; }
.sm-expiry svg { flex-shrink: 0; }
.sm-table-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.sm-table-actions .btn { flex: 1; font-size: 10px; justify-content: center; padding: 10px 9px; white-space: nowrap; }
.sm-table-secondary { border-top: 1px solid #3a2e30; display: flex; justify-content: space-between; align-items: center; gap: 7px; min-height: 49px; }
.sm-table-secondary > span { font-size: 9px; color: #998581; line-height: 1.5; }
.sm-table-secondary .btn { color: #b29a88; font-size: 9px; padding: 10px 0; gap: 5px; }
.sm-footnote { display: flex; align-items: flex-start; gap: 8px; margin: 17px 2px 0; color: #9c8c84; font-size: 10px; line-height: 1.8; }
.sm-footnote svg { flex-shrink: 0; margin-top: 2px; }
.sm-empty { padding: 40px 22px; border: 1px dashed #4c3b32; border-radius: 10px; text-align: center; color: #bba18f; }
.sm-empty h3 { font-size: 18px; font-weight: 550; margin: 14px 0 8px; color: #e9d7ca; }
.sm-empty p { font-size: 12px; line-height: 1.8; color: #a99991; }
.sm-error { color: #e9b5a5; border: 1px solid #754a3e; border-radius: 8px; padding: 17px; background: #30201c; font-size: 12px; line-height: 1.7; }
.sm-accounts { padding-top: 25px; border-top: 1px solid #352d2f; }
.sm-section-heading .btn { flex-shrink: 0; font-size: 12px; }
.sm-role-guide { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 0 0 23px; padding: 16px 18px; border: 1px solid #3c302b; border-radius: 9px; background: #211b18; }
.sm-role-guide p { margin: 0; color: #b09a8e; font-size: 11px; line-height: 1.7; }
.sm-role-guide strong { display: block; margin-bottom: 3px; color: #e2b897; font-size: 11px; font-weight: 600; }
.sm-account-toolbar { display: grid; grid-template-columns: minmax(220px,1.4fr) minmax(170px,1fr) minmax(150px,.7fr); align-items: end; gap: 12px; }
.sm-account-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sm-account-field > span:first-child { color: #b6a8a2; font-size: 10px; font-weight: 550; }
.sm-account-field .select { min-width: 0; width: 100%; font-size: 12px; min-height: 44px; }
.sm-account-search { min-width: 0; max-width: none; width: 100%; min-height: 44px; flex: none; }
.sm-account-results-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 15px; min-height: 55px; padding: 9px 0; }
.sm-account-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; font-size: 11px; line-height: 1.6; }
.sm-account-count strong { color: #ddd0c7; font-weight: 550; }
.sm-account-count > span { color: #a58f86; font-size: 10px; }
.sm-account-results-bar .btn { min-height: 30px; padding: 6px 0; font-size: 10px; color: #c9a58b; }
.sm-account-results-bar .btn[hidden] { display: none; }
.sm-account-empty .btn { margin-top: 7px; font-size: 11px; }
.sm-user-list { border: 1px solid #3a3133; border-radius: 11px; background: #1c191b; overflow: hidden; }
.sm-user-row { display: flex; align-items: center; gap: 16px; padding: 19px 21px; border-bottom: 1px solid #342b2f; }
.sm-user-row:last-child { border-bottom: 0; }
.sm-user-avatar { display: flex; align-items: center; justify-content: center; color: #cb9f82; border: 1px solid #543a2d; border-radius: 10px; height: 40px; width: 40px; flex-shrink: 0; background: #30221b; }
.sm-user-name { flex: 1; min-width: 0; }
.sm-user-name h3 { margin: 0 0 6px; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.sm-user-name p { margin: 0; color: #a48f95; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.sm-user-state { font-size: 10px; color: #b09699; border: 1px solid #4e3b41; border-radius: 5px; padding: 6px 8px; }
.sm-user-state.is-active { color: #a7c5b1; border-color: #3a5040; }
.sm-user-actions { display: flex; gap: 6px; }
.sm-user-actions .btn { font-size: 10px; }
.sm-master-label { color: #9b8b86; font-size: 10px; min-width: 161px; text-align: right; }
.sm-user-form { display: flex; flex-direction: column; gap: 18px; }
.sm-help { color: #a3908c; font-size: 11px; line-height: 1.8; margin: 0; }
.field > .sm-help { margin-top: 7px; }
.sm-access-note { border-color: #46382f; background: #211b18; color: #cbae94; }
.sm-qr-sheet { background: #fffaf4; color: #322219; text-align: center; padding: 28px 25px 24px; border-radius: 13px; }
.sm-qr-brand { display: block; font-size: 12px; color: #8b5738; font-weight: 650; letter-spacing: 1px; overflow-wrap: anywhere; }
.sm-qr-sheet h3 { font-size: 30px; font-weight: 650; letter-spacing: -.7px; margin: 8px 0 17px; overflow-wrap: anywhere; }
.sm-qr-image { display: block; width: min(100%,288px); height: auto; aspect-ratio: 1; background: white; margin: auto; border: 1px solid #e6d8cc; }
.sm-qr-sheet h4 { font-size: 19px; font-weight: 600; margin: 23px 0 8px; }
.sm-qr-sheet p { font-size: 12px; line-height: 1.7; color: #756153; max-width: 300px; margin: 0 auto; }
.sm-qr-sheet .sm-qr-test { color: #9b451c; font-weight: 650; border-top: 1px solid #ddc5b4; padding-top: 12px; margin-top: 17px; font-size: 10px; }
.sm-qr-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 20px 0 13px; }
.sm-qr-actions .btn { font-size: 11px; }
.sm-qr-private-note { text-align: center; }
@media (min-width: 1650px) { .sm-table-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1260px) { .sm-table-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 740px) {
  .sm-heading { flex-direction: column; gap: 15px; }
  .sm-heading p { font-size: 12px; }
  .sm-role { padding: 8px 10px; font-size: 10px; }
  .sm-notice { padding: 15px; }
  .sm-section-heading { flex-wrap: wrap; align-items: flex-start; gap: 13px; }
  .sm-section-heading h2 { font-size: 20px; }
  .sm-toolbar { flex-wrap: wrap; gap: 9px; }
  .sm-search { flex: 1 1 100%; max-width: none; min-width: 0; }
  .sm-toolbar .select { flex: 1 1 150px; width: auto; min-width: 0; }
  .sm-toolbar .btn { margin-left: 0; }
  .sm-table-grid { grid-template-columns: 1fr; gap: 14px; }
  .sm-table-card { padding: 18px 17px 0; }
  .sm-user-row { flex-wrap: wrap; padding: 17px; gap: 12px; }
  .sm-role-guide { grid-template-columns: 1fr; gap: 12px; padding: 15px; margin-bottom: 20px; }
  .sm-role-guide strong { margin-bottom: 1px; }
  .sm-account-toolbar { grid-template-columns: 1fr; gap: 12px; }
  .sm-account-field { gap: 6px; }
  .sm-account-search { flex: none; }
  .sm-account-results-bar { padding: 12px 0; }
  .sm-user-name { flex-basis: calc(100% - 55px); }
  .sm-user-actions { margin-left: auto; }
  .sm-master-label { min-width: 0; margin-left: auto; }
  .sm-qr-sheet { padding: 24px 18px; }
  .sm-qr-actions .btn { flex: 1; justify-content: center; white-space: nowrap; padding: 11px 9px; }
}
@media print {
  body.sm-print-qr { background: white !important; color: black !important; overflow: visible !important; height: auto !important; }
  body.sm-print-qr > :not(dialog.sm-qr-dialog) { display: none !important; }
  body.sm-print-qr dialog.sm-qr-dialog { display: block !important; position: static !important; inset: auto !important; width: 100% !important; max-width: none !important; height: auto !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: white !important; overflow: visible !important; }
  body.sm-print-qr dialog::backdrop { background: transparent !important; }
  body.sm-print-qr .modal-header,body.sm-print-qr .modal-actions,body.sm-print-qr .modal-error,body.sm-print-qr .sm-qr-actions,body.sm-print-qr .sm-qr-private-note { display: none !important; }
  body.sm-print-qr .modal-form,body.sm-print-qr .modal-body { display: block !important; padding: 0 !important; overflow: visible !important; max-height: none !important; }
  body.sm-print-qr .sm-qr-sheet { border: 1px solid #ddd; width: 105mm; margin: 15mm auto; padding: 12mm 10mm; break-inside: avoid; background: white; }
  body.sm-print-qr .sm-qr-image { width: 75mm; height: 75mm; }
}
