@import url("/static/css/barang-ui.css");

body.app-root,
body.standalone-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: block;
  background: var(--surface2);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body.standalone-body.auth-body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 36%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.06), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

body.standalone-body.qr-body {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.app-topbar .topbar-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.app-topbar .topbar-breadcrumb a:hover {
  text-decoration: underline;
}

.avatar-link,
.a-row,
.loc-row,
.bp-nav-item {
  text-decoration: none;
  color: inherit;
}

.sn {
  text-decoration: none;
}

.page-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  position: relative;
}

.ops-workpane {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.profile-body {
  overflow: visible;
  width: min(100%, 560px);
  max-width: 560px;
}

.settings-layout,
.bp-layout,
.ops-layout {
  min-height: 0;
}

.standalone-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  position: relative;
  background: var(--surface2);
  overflow: auto;
}

.standalone-scroll {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.auth-shell {
  width: min(1120px, calc(100% - 48px));
  min-height: min(720px, calc(100dvh - 48px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
  align-items: stretch;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 36px 84px rgba(15, 23, 42, 0.16);
}

.auth-shell.auth-shell-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-page {
  background: transparent;
  padding: 24px;
}

.auth-page .standalone-scroll {
  justify-content: center;
}

@media (min-width: 721px) {
  body.org-select-body .auth-shell {
    overflow: visible;
  }
}

.mobile-shell {
  width: min(420px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.mobile-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 14px calc(88px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(var(--mobile-nav-columns, 5), minmax(0, 1fr));
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 0.5px solid var(--border);
  background: var(--surface);
  position: sticky;
  bottom: 0;
  flex: 0 0 auto;
}

.auth-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.92) 0%, rgba(37, 99, 235, 0.86) 100%);
  position: relative;
  overflow: hidden;
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(2px);
}

.auth-hero::before {
  width: 260px;
  height: 260px;
  top: -90px;
  right: -80px;
}

.auth-hero::after {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: -40px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.auth-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.auth-hero-copy {
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.auth-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.auth-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.auth-points {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.auth-point {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.auth-point-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.auth-point-copy {
  min-width: 0;
}

.auth-point strong {
  font-size: 13px;
  display: block;
}

.auth-point span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 54px;
  background: rgba(255, 255, 255, 0.96);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.auth-card.compact {
  max-width: 420px;
}

.auth-card.auth-card-centered {
  max-width: 420px;
}

.auth-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.auth-card-header.auth-card-header-stack {
  display: grid;
  gap: 8px;
}

.auth-card-title {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 8px 0 8px;
  color: var(--text);
}

.auth-card-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.auth-brand.auth-brand-dark {
  color: var(--text);
  margin-bottom: 20px;
}

.auth-brand.auth-brand-dark .auth-brand-mark {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.auth-field-row label {
  margin-bottom: 0;
}

.auth-inline-link {
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
}

.auth-inline-link:hover {
  text-decoration: underline;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input {
  padding-right: 68px;
}

.auth-input-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auth-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 18px;
}

.auth-step {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--muted);
  background: #fff;
}

.auth-step.is-active,
.auth-step.is-done {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.auth-step-line {
  height: 1px;
  flex: 1 1 0;
  background: rgba(15, 23, 42, 0.1);
}

.auth-step-line.is-done {
  background: var(--blue);
}

.auth-stepper.auth-stepper-labeled {
  gap: 12px;
  margin: 10px 0 24px;
}

.auth-step-marker {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.auth-step-caption {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.auth-step-caption.is-active {
  color: var(--blue);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-grid {
  display: grid;
  gap: 14px;
}

.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.auth-actions.auth-actions-stack {
  flex-direction: column;
}

.auth-actions .btn-primary,
.auth-actions .btn-secondary {
  flex: 1 1 0;
}

.auth-links {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.auth-links a {
  color: var(--blue);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: rgba(37, 99, 235, 0.06);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.auth-status.is-error {
  border-color: rgba(220, 38, 38, 0.16);
  background: rgba(220, 38, 38, 0.06);
}

.auth-status.is-success {
  border-color: rgba(5, 150, 105, 0.18);
  background: rgba(5, 150, 105, 0.08);
}

.auth-status.is-warn {
  border-color: rgba(217, 119, 6, 0.22);
  background: rgba(217, 119, 6, 0.08);
}

.auth-form-link-row {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.auth-form-link-row a {
  color: var(--blue);
  text-decoration: none;
}

.auth-form-link-row a:hover {
  text-decoration: underline;
}

.auth-form-link-row.is-muted {
  color: var(--faint);
}

.auth-text-button {
  border: 0;
  background: transparent;
  color: var(--faint);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.auth-text-button:hover {
  color: var(--text);
}

.auth-panel-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.auth-choice-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-choice-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
}

.auth-choice-card.is-selected {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.05);
}

.auth-choice-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-choice-icon.auth-choice-icon-muted {
  background: rgba(8, 145, 178, 0.1);
  color: #0e7490;
}

.auth-choice-main {
  min-width: 0;
  flex: 1 1 auto;
}

.auth-choice-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.auth-choice-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.auth-choice-radio {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 23, 42, 0.2);
  position: relative;
}

.auth-choice-radio.is-selected {
  border-color: var(--blue);
  background: var(--blue);
}

.auth-choice-radio.is-selected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #fff;
}

.auth-invite-card {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface2);
}

.auth-invite-card.auth-invite-card-compact {
  margin-bottom: 14px;
}

.auth-invite-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-invite-card-copy {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}

.auth-success-card {
  text-align: center;
  padding: 10px 0 8px;
}

.auth-success-card.auth-success-card-muted {
  padding-top: 6px;
}

.auth-success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-success-icon.auth-success-icon-muted {
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
}

.auth-success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.auth-success-copy {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.auth-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 18px;
}

.auth-phase-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--amber);
}

.auth-field.auth-field-disabled input {
  background: rgba(15, 23, 42, 0.03);
  color: var(--muted);
}

.auth-pending-banner {
  margin-bottom: 14px;
}

.auth-pending-banner-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

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

.auth-pending-item {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.auth-pending-item.is-highlighted {
  border: 1.5px solid var(--blue);
  background: #EFF6FF;
}

.auth-pending-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}

.auth-pending-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
}

.auth-pending-link {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.auth-mobile-pending-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid var(--blue);
  background: #EFF6FF;
}

.auth-mobile-pending-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.auth-password-meter {
  display: grid;
  gap: 8px;
  margin-top: -2px;
}

.auth-password-meter-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.auth-password-meter-bar span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #f97316 0%, #2563eb 100%);
  border-radius: inherit;
  transition: width 0.18s ease;
}

.auth-password-meter-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.auth-password-meter-copy strong {
  color: var(--text);
}

.auth-org-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.auth-org-form {
  display: block;
}

.auth-org-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
}

.auth-org-card.is-current {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.04);
}

.auth-org-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.auth-org-main {
  flex: 1 1 auto;
  min-width: 0;
}

.auth-org-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.auth-org-meta {
  font-size: 11px;
  color: var(--muted);
}

.auth-role-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
}

.auth-role-badge.owner {
  background: rgba(37, 99, 235, 0.12);
  color: var(--blue);
}

.auth-role-badge.manager {
  background: rgba(8, 145, 178, 0.12);
  color: #0e7490;
}

.auth-role-badge.operator {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.auth-role-badge.borrower {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}

.auth-mobile-only {
  display: none;
}

.auth-mobile-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.auth-mobile-band {
  flex: 0 0 auto;
  padding: 20px 24px 28px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.98) 0%, rgba(37, 99, 235, 0.88) 100%);
}

.auth-mobile-band-title {
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.auth-mobile-band-sub {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.auth-mobile-body {
  flex: 1 1 auto;
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.auth-mobile-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-mobile-copy {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.auth-mobile-alert,
.auth-mobile-invite-card,
.auth-mobile-empty {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--surface2);
  font-size: 12px;
  line-height: 1.6;
}

.auth-mobile-alert {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.auth-mobile-alert::before {
  content: attr(data-icon);
  flex: 0 0 auto;
}

.auth-mobile-alert.is-error {
  border-color: rgba(220, 38, 38, 0.16);
  background: rgba(220, 38, 38, 0.06);
}

.auth-mobile-alert.is-info {
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(37, 99, 235, 0.08);
}

.auth-mobile-alert.is-success {
  border-color: rgba(5, 150, 105, 0.16);
  background: rgba(5, 150, 105, 0.08);
}

.auth-mobile-alert.is-warn {
  border-color: rgba(217, 119, 6, 0.18);
  background: rgba(217, 119, 6, 0.08);
}

.auth-mobile-field {
  margin-bottom: 14px;
}

.auth-mobile-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.auth-mobile-field-top label {
  font-size: 12px;
  color: var(--muted);
}

.auth-mobile-field-top a {
  color: var(--blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.auth-mobile-input-wrap {
  position: relative;
}

.auth-mobile-input,
.auth-mobile-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 11px 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.auth-mobile-input:focus,
.auth-mobile-select:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-mobile-input[readonly] {
  background: var(--surface2);
  color: var(--muted);
}

.auth-mobile-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

.auth-mobile-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
}

.auth-mobile-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.auth-mobile-actions .btn-primary,
.auth-mobile-actions .btn-secondary {
  width: 100%;
}

.auth-mobile-subaction {
  margin-top: 10px;
}

.auth-mobile-subaction .btn-secondary,
.auth-mobile-subaction .btn-primary {
  width: 100%;
}

.auth-mobile-links {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.auth-mobile-links a,
.auth-mobile-link-row a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.auth-mobile-link-row {
  margin-top: 4px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-mobile-link-row.is-muted a {
  color: var(--faint);
}

.auth-mobile-stepper {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 4px 0 22px;
}

.auth-mobile-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.auth-mobile-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.auth-mobile-step-dot.is-active,
.auth-mobile-step-dot.is-done {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.auth-mobile-step-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--faint);
  white-space: nowrap;
}

.auth-mobile-step-label.is-active {
  color: var(--blue);
}

.auth-mobile-step-line {
  flex: 1 1 0;
  height: 1px;
  margin-top: 13px;
  background: rgba(15, 23, 42, 0.12);
}

.auth-mobile-step-line.is-done {
  background: var(--blue);
}

.auth-mobile-password-meter {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.auth-mobile-password-meter-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.auth-mobile-password-meter-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316 0%, #2563eb 100%);
  transition: width 0.18s ease;
}

.auth-mobile-password-meter-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

.auth-mobile-password-meter-copy strong {
  color: var(--text);
}

.auth-mobile-option-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-mobile-option-card,
.auth-mobile-org-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font: inherit;
  text-align: left;
}

.auth-mobile-option-card.is-selected,
.auth-mobile-org-card.is-current {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.05);
}

.auth-mobile-org-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-mobile-org-card.is-current {
  border: 0;
  background: transparent;
}

.auth-mobile-option-icon,
.auth-mobile-org-dot {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-mobile-option-icon {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-size: 16px;
}

.auth-mobile-org-dot {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.auth-mobile-option-main,
.auth-mobile-org-main {
  min-width: 0;
  flex: 1 1 auto;
}

.auth-mobile-option-title,
.auth-mobile-org-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.auth-mobile-option-sub,
.auth-mobile-org-meta {
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted);
}

.auth-mobile-radio {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 23, 42, 0.2);
  position: relative;
}

.auth-mobile-radio.is-selected {
  border-color: var(--blue);
  background: var(--blue);
}

.auth-mobile-radio.is-selected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #fff;
}

.auth-mobile-invite-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.auth-mobile-invite-card-copy {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.auth-mobile-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
}

.auth-mobile-phase-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--amber);
}

@media (max-width: 1040px) {
  .auth-shell {
    width: min(960px, calc(100% - 32px));
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
  }

  .auth-hero {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  body.standalone-body.auth-body {
    background: var(--surface);
    overflow: hidden;
  }

  .auth-desktop-only {
    display: none !important;
  }

  .auth-mobile-only {
    display: block;
  }

  .standalone-page.auth-page,
  .standalone-page.auth-page .standalone-scroll {
    background: var(--surface);
  }

  .auth-shell {
    width: 100%;
    min-height: 100%;
    display: block;
    margin: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: var(--surface);
  }

  .auth-page .standalone-scroll {
    justify-content: flex-start;
  }

  .auth-shell.auth-shell-centered {
    padding: 0;
  }

  .auth-panel {
    padding: 0;
  }

  .auth-page {
    padding: 0;
  }
}

.org-panel-backdrop {
  position: fixed;
  inset: 0;
}

.org-panel {
  position: fixed;
  top: 62px;
  right: 16px;
}

.create-org-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
}

.org-switch-toast {
  position: fixed;
  bottom: 24px;
}

#bp-toast {
  bottom: 70px;
}

body.standalone-body.mobile-body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.16), transparent 26%),
    linear-gradient(180deg, #0f172a 0%, #dbe4f0 36%, #f8fafc 100%);
  overflow: hidden;
}

body.standalone-body.mobile-body .standalone-page.mobile-page {
  background: transparent;
  overflow: hidden;
}

body.standalone-body.mobile-body .mobile-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 14%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  box-shadow: none;
  overflow: hidden;
}

body.standalone-body.mobile-body .mobile-appbar {
  flex: 0 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  border-bottom: 0.5px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.standalone-body.mobile-body .mobile-appbar-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.standalone-body.mobile-body .mobile-appbar-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

body.standalone-body.mobile-body .mobile-appbar-title {
  margin-top: 4px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

body.standalone-body.mobile-body .mobile-appbar-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

body.standalone-body.mobile-body .mobile-org-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0.5px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.standalone-body.mobile-body .mobile-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 14px calc(98px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, #f8fafc 18%, #eef2f7 100%);
}

body.standalone-body.mobile-body .mobile-section {
  margin-bottom: 14px;
}

body.standalone-body.mobile-body .mobile-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 10px;
}

body.standalone-body.mobile-body .mobile-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

body.standalone-body.mobile-body .mobile-section-sub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

body.standalone-body.mobile-body .mobile-section-link {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

body.standalone-body.mobile-body .mobile-home-hero,
body.standalone-body.mobile-body .mobile-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98) 0%, rgba(37, 99, 235, 0.92) 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

body.standalone-body.mobile-body .mobile-home-hero::before,
body.standalone-body.mobile-body .mobile-home-hero::after,
body.standalone-body.mobile-body .mobile-detail-hero::before,
body.standalone-body.mobile-body .mobile-detail-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(2px);
}

body.standalone-body.mobile-body .mobile-home-hero::before,
body.standalone-body.mobile-body .mobile-detail-hero::before {
  width: 150px;
  height: 150px;
  top: -60px;
  right: -50px;
}

body.standalone-body.mobile-body .mobile-home-hero::after,
body.standalone-body.mobile-body .mobile-detail-hero::after {
  width: 120px;
  height: 120px;
  bottom: -42px;
  left: -34px;
}

body.standalone-body.mobile-body .mobile-home-kicker {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

body.standalone-body.mobile-body .mobile-home-user,
body.standalone-body.mobile-body .mobile-detail-title {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

body.standalone-body.mobile-body .mobile-home-org,
body.standalone-body.mobile-body .mobile-detail-sub {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

body.standalone-body.mobile-body .mobile-home-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

body.standalone-body.mobile-body .mobile-mini-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

body.standalone-body.mobile-body .mobile-hero-actions,
body.standalone-body.mobile-body .mobile-quick-grid,
body.standalone-body.mobile-body .mobile-action-grid,
body.standalone-body.mobile-body .mobile-borrow-stack,
body.standalone-body.mobile-body .mobile-list,
body.standalone-body.mobile-body .mobile-attachment-list,
body.standalone-body.mobile-body .mobile-notification-stack,
body.standalone-body.mobile-body .mobile-org-list {
  display: grid;
  gap: 10px;
}

body.standalone-body.mobile-body .mobile-hero-actions,
body.standalone-body.mobile-body .mobile-quick-grid,
body.standalone-body.mobile-body .mobile-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.standalone-body.mobile-body .mobile-hero-actions {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

body.standalone-body.mobile-body .mobile-hero-action,
body.standalone-body.mobile-body .mobile-action-card,
body.standalone-body.mobile-body .mobile-list-item,
body.standalone-body.mobile-body .mobile-nav-item {
  text-decoration: none;
}

body.standalone-body.mobile-body .mobile-hero-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

body.standalone-body.mobile-body .mobile-hero-action.is-primary {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

body.standalone-body.mobile-body .mobile-quick-card,
body.standalone-body.mobile-body .mobile-action-card,
body.standalone-body.mobile-body .mobile-list-item,
body.standalone-body.mobile-body .mobile-form-card,
body.standalone-body.mobile-body .mobile-borrow-card,
body.standalone-body.mobile-body .mobile-notification-card,
body.standalone-body.mobile-body .mobile-profile-card,
body.standalone-body.mobile-body .mobile-org-card {
  border: 0.5px solid rgba(15, 23, 42, 0.08);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

body.standalone-body.mobile-body .mobile-quick-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
}

body.standalone-body.mobile-body .mobile-quick-card.is-accent {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04));
}

body.standalone-body.mobile-body .mobile-quick-icon,
body.standalone-body.mobile-body .mobile-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  flex: 0 0 auto;
}

body.standalone-body.mobile-body .mobile-icon {
  width: 100%;
  height: 100%;
  display: block;
}

body.standalone-body.mobile-body .mobile-quick-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

body.standalone-body.mobile-body .mobile-quick-label {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

body.standalone-body.mobile-body .mobile-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border-radius: 20px;
  color: var(--text);
}

body.standalone-body.mobile-body .mobile-action-card .mobile-action-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

body.standalone-body.mobile-body .mobile-action-card .mobile-action-desc {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

body.standalone-body.mobile-body .mobile-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  color: var(--text);
}

body.standalone-body.mobile-body .mobile-list-thumb {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0.06));
  color: var(--blue);
  font-size: 18px;
}

body.standalone-body.mobile-body .mobile-list-main {
  flex: 1 1 auto;
  min-width: 0;
}

body.standalone-body.mobile-body .mobile-list-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.standalone-body.mobile-body .mobile-list-meta {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.standalone-body.mobile-body .mobile-list-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

body.standalone-body.mobile-body .mobile-detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

body.standalone-body.mobile-body .mobile-detail-fact {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
}

body.standalone-body.mobile-body .mobile-detail-fact-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

body.standalone-body.mobile-body .mobile-detail-fact-value {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
  color: #fff;
}

body.standalone-body.mobile-body .mobile-form-card,
body.standalone-body.mobile-body .mobile-borrow-card,
body.standalone-body.mobile-body .mobile-notification-card,
body.standalone-body.mobile-body .mobile-profile-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
}

body.standalone-body.mobile-body .mobile-form-hd,
body.standalone-body.mobile-body .mobile-borrow-hd {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

body.standalone-body.mobile-body .mobile-form-sub {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

body.standalone-body.mobile-body .mobile-fieldset {
  display: grid;
  gap: 10px;
}

body.standalone-body.mobile-body .mobile-fieldset label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

body.standalone-body.mobile-body .mobile-form-actions,
body.standalone-body.mobile-body .mobile-borrow-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

body.standalone-body.mobile-body .mobile-form-actions .btn-primary,
body.standalone-body.mobile-body .mobile-form-actions .btn-secondary,
body.standalone-body.mobile-body .mobile-borrow-actions .btn-primary,
body.standalone-body.mobile-body .mobile-borrow-actions .btn-secondary {
  flex: 1 1 0;
  min-width: 0;
}

body.standalone-body.mobile-body .mobile-inline-details {
  border-top: 0.5px solid rgba(15, 23, 42, 0.08);
  padding-top: 10px;
}

body.standalone-body.mobile-body .mobile-inline-summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  user-select: none;
}

body.standalone-body.mobile-body .mobile-inline-summary::-webkit-details-marker {
  display: none;
}

body.standalone-body.mobile-body .mobile-inline-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.96);
  border: 0.5px solid rgba(15, 23, 42, 0.08);
}

body.standalone-body.mobile-body .mobile-borrow-card {
  gap: 14px;
}

body.standalone-body.mobile-body .mobile-borrow-top,
body.standalone-body.mobile-body .mobile-notification-head,
body.standalone-body.mobile-body .mobile-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body.standalone-body.mobile-body .mobile-borrow-main,
body.standalone-body.mobile-body .mobile-notification-main,
body.standalone-body.mobile-body .mobile-org-main {
  flex: 1 1 auto;
  min-width: 0;
}

body.standalone-body.mobile-body .mobile-borrow-name,
body.standalone-body.mobile-body .mobile-notification-title,
body.standalone-body.mobile-body .mobile-profile-name,
body.standalone-body.mobile-body .mobile-org-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

body.standalone-body.mobile-body .mobile-borrow-meta,
body.standalone-body.mobile-body .mobile-notification-body,
body.standalone-body.mobile-body .mobile-profile-email,
body.standalone-body.mobile-body .mobile-org-meta {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

body.standalone-body.mobile-body .mobile-borrow-meta.is-emphasis {
  color: var(--navy);
  font-weight: 600;
}

body.standalone-body.mobile-body .mobile-notification-meta {
  font-size: 11px;
  color: var(--muted);
}

body.standalone-body.mobile-body .mobile-notification-card .state-pill {
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
}

body.standalone-body.mobile-body .mobile-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(160deg, var(--navy), var(--blue));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

body.standalone-body.mobile-body .mobile-org-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
}

body.standalone-body.mobile-body .mobile-org-card.is-current {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.05);
}

body.standalone-body.mobile-body .mobile-org-dot {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

body.standalone-body.mobile-body .mobile-nav {
  display: grid;
  grid-template-columns: repeat(var(--mobile-nav-columns, 5), minmax(0, 1fr));
  gap: 6px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  border-top: 0.5px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
}

body.standalone-body.mobile-body .mobile-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 6px;
  border-radius: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

body.standalone-body.mobile-body .mobile-nav-item.is-active {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
}

body.standalone-body.mobile-body .mobile-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.standalone-body.mobile-body .mobile-nav-badge {
  position: absolute;
  top: 8px;
  right: 14px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}

body.standalone-body.mobile-body .mobile-page .btn-primary,
body.standalone-body.mobile-body .mobile-page .btn-secondary,
body.standalone-body.mobile-body .mobile-page .btn-danger {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 14px;
}

body.standalone-body.mobile-body .mobile-page .btn-secondary {
  background: rgba(15, 23, 42, 0.04);
}

body.standalone-body.mobile-body .mobile-page .form-input,
body.standalone-body.mobile-body .mobile-page .sheet-textarea {
  border-radius: 16px;
  border-color: rgba(15, 23, 42, 0.12);
}

body.standalone-body.mobile-body .mobile-page .form-input {
  min-height: 44px;
}

body.standalone-body.mobile-body .mobile-page .sheet-textarea {
  min-height: 96px;
  padding: 12px 14px;
}

body.standalone-body.mobile-body .mobile-page .state-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

@media (min-width: 720px) {
  body.standalone-body.mobile-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 16px 44px;
    overflow: auto;
  }

  body.standalone-body.mobile-body .standalone-page.mobile-page {
    width: min(430px, calc(100vw - 32px));
    height: calc(100dvh - 64px);
    min-height: 780px;
    max-height: 940px;
    border-radius: 38px;
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.22);
    border: 8px solid var(--navy);
  }
}

@media (max-width: 480px) {
  body.standalone-body.mobile-body .mobile-home-hero,
  body.standalone-body.mobile-body .mobile-detail-hero,
  body.standalone-body.mobile-body .mobile-form-card,
  body.standalone-body.mobile-body .mobile-borrow-card,
  body.standalone-body.mobile-body .mobile-notification-card,
  body.standalone-body.mobile-body .mobile-profile-card {
    border-radius: 22px;
  }

  body.standalone-body.mobile-body .mobile-hero-actions,
  body.standalone-body.mobile-body .mobile-quick-grid,
  body.standalone-body.mobile-body .mobile-action-grid,
  body.standalone-body.mobile-body .mobile-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   MOBILE MOCKUP COMPONENT CLASSES  (FB-020 — v2 align)
   ═══════════════════════════════════════════════════════ */
:root {
  --faint: #9CA3AF;
  --green-bg: #F0FDF4;
  --red-bg: #FEF2F2;
  --amber-bg: #FFFBEB;
  --border-med: rgba(15,23,42,0.14);
}
body.standalone-body.mobile-body .m-screen {
  flex: 1 1 0; min-height: 0; display: flex; flex-direction: column;
  overflow: hidden; background: var(--surface2); position: relative;
}
body.standalone-body.mobile-body .m-topbar {
  height: 52px; padding: 0 18px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-bottom: 0.5px solid var(--border);
  flex-shrink: 0; position: relative; z-index: 10;
}
body.standalone-body.mobile-body .m-topbar-back {
  width: 30px; height: 30px; border-radius: 50%; background: var(--surface2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 18px; flex-shrink: 0; border: none; color: var(--text);
  text-decoration: none; line-height: 1;
}
body.standalone-body.mobile-body .m-topbar-title { font-size: 15px; font-weight: 600; color: var(--text); flex: 1; }
body.standalone-body.mobile-body .m-topbar-icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 15px; flex-shrink: 0; position: relative; color: var(--text); text-decoration: none;
}
body.standalone-body.mobile-body .m-topbar-markall {
  font-size: 12px; color: var(--blue); cursor: pointer; font-weight: 500;
  background: none; border: none; padding: 0;
}
body.standalone-body.mobile-body .m-fscroll {
  flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden;
  background: var(--surface2); -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
}
body.standalone-body.mobile-body .m-fscroll::-webkit-scrollbar { display: none; }
body.standalone-body.mobile-body .m-bottom-nav {
  height: 72px; padding: 0 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom,0px));
  background: var(--surface); border-top: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  flex-shrink: 0; position: relative; z-index: 10;
}
body.standalone-body.mobile-body .m-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; padding: 6px 14px; border-radius: 10px; transition: background .15s;
  flex: 1; text-decoration: none; color: var(--faint);
}
body.standalone-body.mobile-body .m-nav-item:active { background: var(--surface2); }
body.standalone-body.mobile-body .m-nav-ico { font-size: 20px; line-height: 1; position: relative; }
body.standalone-body.mobile-body .m-nav-lbl { font-size: 10px; color: var(--faint); font-weight: 500; }
body.standalone-body.mobile-body .m-nav-item.is-active .m-nav-lbl { color: var(--blue); font-weight: 600; }
body.standalone-body.mobile-body .m-nav-badge {
  position: absolute; top: -4px; right: -8px; min-width: 16px; height: 16px;
  border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 1.5px solid var(--surface);
}
body.standalone-body.mobile-body .m-section-label {
  font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase;
  letter-spacing: .07em; padding: 14px 16px 6px;
}
body.standalone-body.mobile-body .m-card {
  background: var(--surface); border-radius: 10px; padding: 14px; margin-bottom: 10px;
  border: 0.5px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
body.standalone-body.mobile-body .m-list-group {
  background: var(--surface); border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border); margin-bottom: 10px;
}
body.standalone-body.mobile-body .m-asset-row {
  display: flex; align-items: center; gap: 11px; padding: 12px 16px;
  border-bottom: 0.5px solid var(--border); cursor: pointer; transition: background .1s;
  background: var(--surface); text-decoration: none; color: inherit;
}
body.standalone-body.mobile-body .m-asset-row:last-child { border-bottom: none; }
body.standalone-body.mobile-body .m-asset-row:active { background: var(--surface2); }
body.standalone-body.mobile-body .m-asset-thumb {
  width: 42px; height: 42px; border-radius: 8px; background: var(--surface3);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
body.standalone-body.mobile-body .m-asset-name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
body.standalone-body.mobile-body .m-asset-meta { font-size: 11px; color: var(--muted); }
body.standalone-body.mobile-body .m-asset-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
body.standalone-body.mobile-body .m-chevron { color: var(--faint); font-size: 14px; }
body.standalone-body.mobile-body .m-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px;
  border-radius: 12px; font-size: 11px; font-weight: 600; flex-shrink: 0;
}
body.standalone-body.mobile-body .m-pill.available { background: var(--green-bg); color: var(--green); }
body.standalone-body.mobile-body .m-pill.borrowed  { background: rgba(37,99,235,.1); color: var(--blue); }
body.standalone-body.mobile-body .m-pill.overdue   { background: var(--red-bg); color: var(--red); }
body.standalone-body.mobile-body .m-pill.pending   { background: var(--amber-bg); color: var(--amber); }
body.standalone-body.mobile-body .m-pill.repair    { background: rgba(124,58,237,.1); color: #7C3AED; }
body.standalone-body.mobile-body .m-pill.inspection{ background: rgba(14,116,144,.1); color: #0E7490; }
body.standalone-body.mobile-body .m-borrow-card {
  background: var(--surface); border-radius: 10px; margin: 0 14px 10px;
  border: 0.5px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.07); overflow: hidden;
}
body.standalone-body.mobile-body .m-bc-header { padding: 12px 14px 10px; border-bottom: 0.5px solid var(--border); display: flex; align-items: flex-start; gap: 10px; }
body.standalone-body.mobile-body .m-bc-thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--surface3); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
body.standalone-body.mobile-body .m-bc-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
body.standalone-body.mobile-body .m-bc-meta { font-size: 11px; color: var(--muted); }
body.standalone-body.mobile-body .m-bc-body { padding: 10px 14px; }
body.standalone-body.mobile-body .m-bc-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
body.standalone-body.mobile-body .m-bc-row:last-child { margin-bottom: 0; }
body.standalone-body.mobile-body .m-bc-key { color: var(--muted); }
body.standalone-body.mobile-body .m-bc-val { color: var(--text); font-weight: 500; }
body.standalone-body.mobile-body .m-bc-val.red { color: var(--red); }
body.standalone-body.mobile-body .m-bc-val.amber { color: var(--amber); }
body.standalone-body.mobile-body .m-bc-footer { padding: 10px 14px; border-top: 0.5px solid var(--border); display: flex; gap: 8px; }
body.standalone-body.mobile-body .m-bc-btn { flex: 1; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 600; text-align: center; cursor: pointer; border: none; font-family: inherit; }
body.standalone-body.mobile-body .m-bc-btn.primary { background: var(--blue); color: #fff; }
body.standalone-body.mobile-body .m-bc-btn.secondary { background: var(--surface2); color: var(--text); border: 0.5px solid var(--border-med); }
body.standalone-body.mobile-body .m-bc-btn.warn { background: var(--amber-bg); color: var(--amber); }
body.standalone-body.mobile-body .m-bc-btn.danger { background: var(--red-bg); color: var(--red); }
body.standalone-body.mobile-body .m-info-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 9px 0; border-bottom: 0.5px solid var(--border); gap: 8px; }
body.standalone-body.mobile-body .m-info-row:last-child { border-bottom: none; padding-bottom: 0; }
body.standalone-body.mobile-body .m-info-lbl { font-size: 12px; color: var(--muted); flex-shrink: 0; }
body.standalone-body.mobile-body .m-info-val { font-size: 13px; color: var(--text); text-align: right; font-weight: 500; }
body.standalone-body.mobile-body .m-alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 10px; font-size: 12px; line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
body.standalone-body.mobile-body .m-alert.err  { background: var(--red-bg);   border: 0.5px solid rgba(220,38,38,.18); color: #991B1B; }
body.standalone-body.mobile-body .m-alert.warn { background: var(--amber-bg); border: 0.5px solid rgba(217,119,6,.18); color: #92400E; }
body.standalone-body.mobile-body .m-alert.ok   { background: var(--green-bg); border: 0.5px solid rgba(22,163,74,.18); color: #166534; }
body.standalone-body.mobile-body .m-alert.info { background: rgba(37,99,235,.08); border: 0.5px solid rgba(37,99,235,.15); color: #1E40AF; }
body.standalone-body.mobile-body .m-search-bar { margin: 10px 14px; display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--surface); border-radius: 10px; border: 0.5px solid var(--border-med); }
body.standalone-body.mobile-body .m-search-bar input { flex: 1; border: none; outline: none; font-size: 13px; color: var(--text); font-family: inherit; background: transparent; }
body.standalone-body.mobile-body .m-filter-row { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; flex-shrink: 0; }
body.standalone-body.mobile-body .m-filter-row::-webkit-scrollbar { display: none; }
body.standalone-body.mobile-body .m-fpill { padding: 5px 12px; border-radius: 16px; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; border: 0.5px solid var(--border-med); background: var(--surface); color: var(--muted); transition: all .15s; flex-shrink: 0; }
body.standalone-body.mobile-body .m-fpill.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
body.standalone-body.mobile-body .m-field { margin-bottom: 13px; }
body.standalone-body.mobile-body .m-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
body.standalone-body.mobile-body .m-field input,
body.standalone-body.mobile-body .m-field select,
body.standalone-body.mobile-body .m-field textarea { width: 100%; padding: 10px 12px; font-size: 14px; border: 0.5px solid var(--border-med); border-radius: 8px; background: var(--surface); color: var(--text); outline: none; font-family: inherit; -webkit-appearance: none; transition: border-color .15s; box-sizing: border-box; }
body.standalone-body.mobile-body .m-field input:focus,
body.standalone-body.mobile-body .m-field select:focus,
body.standalone-body.mobile-body .m-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
body.standalone-body.mobile-body .m-field textarea { resize: none; height: 76px; }
body.standalone-body.mobile-body .m-btn-p { width: 100%; padding: 13px; font-size: 14px; font-weight: 600; border-radius: 10px; background: var(--blue); color: #fff; border: none; cursor: pointer; font-family: inherit; margin-bottom: 9px; }
body.standalone-body.mobile-body .m-btn-p:active { opacity: .85; }
body.standalone-body.mobile-body .m-btn-p.red { background: var(--red); }
body.standalone-body.mobile-body .m-btn-s { width: 100%; padding: 12px; font-size: 14px; border-radius: 10px; background: var(--surface); color: var(--text); border: 0.5px solid var(--border-med); cursor: pointer; font-family: inherit; margin-bottom: 9px; }
body.standalone-body.mobile-body .m-btn-p[disabled],
body.standalone-body.mobile-body .m-btn-s[disabled] { opacity: .48; cursor: not-allowed; }
body.standalone-body.mobile-body .m-btn-danger { width: 100%; padding: 12px; font-size: 14px; border-radius: 10px; background: var(--red-bg); color: var(--red); border: 0.5px solid rgba(220,38,38,.18); cursor: pointer; font-family: inherit; }
body.standalone-body.mobile-body .m-asset-hero {
  margin: 0 14px 10px;
  padding: 20px 16px;
  color: #fff;
  background: linear-gradient(160deg, rgba(15,23,42,.98) 0%, rgba(37,99,235,.9) 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
body.standalone-body.mobile-body .m-asset-hero::before,
body.standalone-body.mobile-body .m-asset-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}
body.standalone-body.mobile-body .m-asset-hero::before { top: -42px; right: -28px; width: 124px; height: 124px; }
body.standalone-body.mobile-body .m-asset-hero::after { bottom: -26px; left: -18px; width: 88px; height: 88px; }
body.standalone-body.mobile-body .m-asset-hero-body { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
body.standalone-body.mobile-body .m-asset-hero-thumb {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0;
}
body.standalone-body.mobile-body .m-asset-hero-copy { min-width: 0; }
body.standalone-body.mobile-body .m-asset-hero-kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
body.standalone-body.mobile-body .m-asset-hero-name { font-size: 18px; font-weight: 700; line-height: 1.2; margin-top: 2px; }
body.standalone-body.mobile-body .m-asset-hero-meta { font-size: 12px; color: rgba(255,255,255,.76); margin-top: 4px; }
body.standalone-body.mobile-body .m-asset-overdue-alert { margin-top: 12px; margin-bottom: 0; }
body.standalone-body.mobile-body .m-asset-action-stack { padding: 0 14px 4px; }
body.standalone-body.mobile-body .m-asset-incident-actions { display: flex; gap: 8px; align-items: stretch; }
body.standalone-body.mobile-body .m-asset-incident-actions > * { flex: 1; }
body.standalone-body.mobile-body .m-attachment-input { display: none; }
body.standalone-body.mobile-body .m-attachment-status { margin-top: 10px; font-size: 11px; color: var(--muted); line-height: 1.5; }
body.standalone-body.mobile-body .m-attachment-status.error { color: var(--red); }
body.standalone-body.mobile-body .m-attachment-status.success { color: var(--green); }
body.standalone-body.mobile-body .m-pf-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 0.5px solid var(--border); cursor: pointer; background: var(--surface); text-decoration: none; color: var(--text); }
body.standalone-body.mobile-body .m-pf-row:last-child { border-bottom: none; }
body.standalone-body.mobile-body .m-pf-row.sn,
body.standalone-body.mobile-body .m-asset-row.sn,
body.standalone-body.mobile-body .m-notif-row.sn {
  width: 100%;
  height: auto;
  box-sizing: border-box;
}
body.standalone-body.mobile-body .m-pf-ico { width: 34px; height: 34px; border-radius: 8px; background: var(--surface3); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
body.standalone-body.mobile-body .m-pf-lbl { flex: 1; font-size: 13px; color: var(--text); }
body.standalone-body.mobile-body .m-pf-val { font-size: 12px; color: var(--muted); }
body.standalone-body.mobile-body .m-pf-arr { color: var(--faint); font-size: 14px; }
body.standalone-body.mobile-body .m-notif-row { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 0.5px solid var(--border); background: var(--surface); cursor: pointer; transition: background .1s; text-decoration: none; color: inherit; }
body.standalone-body.mobile-body .m-notif-row.unread { background: rgba(37,99,235,.06); }
body.standalone-body.mobile-body .m-notif-row:active { background: var(--surface2); }
body.standalone-body.mobile-body .m-notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
body.standalone-body.mobile-body .m-notif-dot.blue  { background: var(--blue); }
body.standalone-body.mobile-body .m-notif-dot.red   { background: var(--red); }
body.standalone-body.mobile-body .m-notif-dot.amber { background: var(--amber); }
body.standalone-body.mobile-body .m-notif-dot.gray  { background: var(--faint); }
body.standalone-body.mobile-body .m-notif-content { flex: 1; min-width: 0; }
body.standalone-body.mobile-body .m-notif-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 1px; }
body.standalone-body.mobile-body .m-notif-sub { font-size: 11px; color: var(--muted); line-height: 1.5; }
body.standalone-body.mobile-body .m-notif-time { font-size: 10px; color: var(--faint); flex-shrink: 0; margin-top: 2px; }
body.standalone-body.mobile-body .m-log-list { background: transparent; border: none; margin: 10px 14px 0; display: grid; gap: 8px; }
body.standalone-body.mobile-body .m-log-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
body.standalone-body.mobile-body .m-log-row1 { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
body.standalone-body.mobile-body .m-log-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-text);
  background: var(--blue-bg);
  border-radius: 999px;
  padding: 3px 7px;
  white-space: nowrap;
}
body.standalone-body.mobile-body .m-log-target {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.standalone-body.mobile-body .m-log-time { font-size: 10px; color: var(--faint); white-space: nowrap; }
body.standalone-body.mobile-body .m-log-row2 { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
body.standalone-body.mobile-body .m-log-detail {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.standalone-body.mobile-body .m-log-source {
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.standalone-body.mobile-body .m-log-card.is-highlight {
  border-color: rgba(37, 99, 235, .45);
  background: rgba(37, 99, 235, .08);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .16);
}
body.standalone-body.mobile-body .m-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 14px 0; }
body.standalone-body.mobile-body .m-summary-card { background: var(--surface); border-radius: 10px; padding: 14px; border: 0.5px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.07); }
body.standalone-body.mobile-body .m-summary-label { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
body.standalone-body.mobile-body .m-summary-value { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1; }
body.standalone-body.mobile-body .m-summary-sub { font-size: 11px; margin-top: 4px; font-weight: 500; }
body.standalone-body.mobile-body .m-quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 0 14px 10px; }
body.standalone-body.mobile-body .m-quick-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; background: var(--surface); border-radius: 8px; cursor: pointer; border: 0.5px solid var(--border); text-decoration: none; position: relative; }
body.standalone-body.mobile-body .m-quick-btn .m-qb-ico { font-size: 22px; }
body.standalone-body.mobile-body .m-quick-btn .m-qb-lbl { font-size: 10px; color: var(--muted); text-align: center; font-weight: 500; }
body.standalone-body.mobile-body .m-timeline { background: var(--surface); border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); margin-bottom: 20px; }
body.standalone-body.mobile-body .m-tl-row { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 0.5px solid var(--border); }
body.standalone-body.mobile-body .m-tl-row:last-child { border-bottom: none; }
body.standalone-body.mobile-body .m-tl-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
body.standalone-body.mobile-body .m-tl-event { font-size: 12px; font-weight: 500; color: var(--text); }
body.standalone-body.mobile-body .m-tl-meta { font-size: 11px; color: var(--muted); }
body.standalone-body.mobile-body .m-fab-register {
  position: absolute;
  right: 14px;
  bottom: calc(82px + env(safe-area-inset-bottom,0px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(37,99,235,.3);
  z-index: 20;
}
body.standalone-body.mobile-body .m-return-toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(88px + env(safe-area-inset-bottom,0px));
  background: #0F172A;
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
body.standalone-body.mobile-body .m-return-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
body.standalone-body.mobile-body .m-scan-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 68px 16px 20px;
  z-index: 20;
}
body.standalone-body.mobile-body .m-scan-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}
body.standalone-body.mobile-body .m-scan-caption {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: .04em;
}
body.standalone-body.mobile-body .m-scan-box {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,.5);
  border: 2px solid rgba(255,255,255,.3);
}
body.standalone-body.mobile-body .m-scan-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-style: solid;
  border-color: #fff;
}
body.standalone-body.mobile-body .m-scan-corner.tl { top: 8px; left: 8px; border-width: 2.5px 0 0 2.5px; border-radius: 4px 0 0 0; }
body.standalone-body.mobile-body .m-scan-corner.tr { top: 8px; right: 8px; border-width: 2.5px 2.5px 0 0; border-radius: 0 4px 0 0; }
body.standalone-body.mobile-body .m-scan-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 4px; }
body.standalone-body.mobile-body .m-scan-corner.br { bottom: 8px; right: 8px; border-width: 0 2.5px 2.5px 0; border-radius: 0 0 4px 0; }
body.standalone-body.mobile-body .m-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(37,99,235,.85);
  top: 50%;
  animation: m-scan-move 1.6s ease-in-out infinite;
}
@keyframes m-scan-move {
  0%,100% { top: 15%; }
  50% { top: 85%; }
}
body.standalone-body.mobile-body .m-scan-help {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  margin-top: 18px;
  text-align: center;
  line-height: 1.5;
}
body.standalone-body.mobile-body .m-scan-tools {
  margin-top: 18px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
body.standalone-body.mobile-body .m-scan-tool {
  border: none;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
}
body.standalone-body.mobile-body .m-scan-tool:disabled { opacity: .45; cursor: not-allowed; }
body.standalone-body.mobile-body .m-scan-tool-ico { font-size: 18px; line-height: 1; }
body.standalone-body.mobile-body .m-scan-tool-lbl { font-size: 10px; color: rgba(255,255,255,.78); }
body.standalone-body.mobile-body .m-scan-input-wrap {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(255,255,255,.1);
  border-radius: 12px;
}
body.standalone-body.mobile-body .m-scan-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}
body.standalone-body.mobile-body .m-scan-input-wrap button {
  padding: 6px 14px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
body.standalone-body.mobile-body .m-scan-buffer {
  width: 100%;
  margin-top: 10px;
  height: 56px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 8px;
  box-sizing: border-box;
  resize: none;
}
body.standalone-body.mobile-body .m-scan-status {
  width: 100%;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,.64);
}
body.standalone-body.mobile-body .m-scan-stats {
  width: 100%;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}
body.standalone-body.mobile-body .m-scan-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
body.standalone-body.mobile-body .m-scan-stat-value { font-size: 16px; font-weight: 700; color: #fff; line-height: 1; }
body.standalone-body.mobile-body .m-scan-stat-label { font-size: 10px; color: rgba(255,255,255,.62); margin-top: 3px; }
body.standalone-body.mobile-body .m-scan-log {
  width: 100%;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 130px;
  overflow: auto;
}
body.standalone-body.mobile-body .m-scan-log li {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 11px;
  color: rgba(255,255,255,.78);
}
body.standalone-body.mobile-body .m-scan-inline-card {
  width: 100%;
  margin-top: 10px;
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
}
body.standalone-body.mobile-body .m-scan-error-toast {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 74px;
  background: var(--red-bg);
  border: 1px solid rgba(220,38,38,.3);
  border-radius: 10px;
  padding: 12px 14px;
  z-index: 60;
}
body.standalone-body.mobile-body .m-scan-error-toast > a {
  display: block;
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  background: #991B1B;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}
body.standalone-body.mobile-body .m-tab-bar { display: flex; border-bottom: 0.5px solid var(--border); background: var(--surface); flex-shrink: 0; }
body.standalone-body.mobile-body .m-tab-item { flex: 1; text-align: center; padding: 10px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
body.standalone-body.mobile-body .m-tab-item.is-active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
body.standalone-body.mobile-body .m-step-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
body.standalone-body.mobile-body .m-step-circle { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
body.standalone-body.mobile-body .m-step-circle.done { background: var(--green); }
body.standalone-body.mobile-body .m-step-circle.active { background: var(--blue); }
body.standalone-body.mobile-body .m-step-circle.pending { background: rgba(15,23,42,.1); color: var(--muted); }
body.standalone-body.mobile-body .m-step-line { flex: 1; height: 2px; border-radius: 1px; }
body.standalone-body.mobile-body .m-step-line.done { background: var(--blue); }
body.standalone-body.mobile-body .m-step-line.pending { background: rgba(15,23,42,.1); }
body.standalone-body.mobile-body .m-user-header { padding: 20px 16px 16px; background: var(--surface); border-bottom: 0.5px solid var(--border); display: flex; align-items: center; gap: 14px; }
body.standalone-body.mobile-body .m-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; flex-shrink: 0; }
body.standalone-body.mobile-body .m-user-name { font-size: 16px; font-weight: 700; color: var(--text); }
body.standalone-body.mobile-body .m-user-email { font-size: 12px; color: var(--muted); }
body.standalone-body.mobile-body .m-queue-list { background: var(--surface); border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); margin-bottom: 8px; }
body.standalone-body.mobile-body .m-approval-card { margin: 0 14px 10px; background: var(--surface); border: 0.5px solid var(--border); border-radius: 10px; padding: 14px; }
body.standalone-body.mobile-body .m-fs-step { display: none; }
body.standalone-body.mobile-body .m-fs-step.active { display: block; }

.session-expired-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 20px;
  z-index: 9999;
  background: #0F172A;
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.session-expired-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
