/* Mobile-first styles for AI Camera Prototype */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif; background: #f0fdf4; min-height: 100vh; }
a { color: inherit; text-decoration: none; }

.phone {
  width: 100%;
  height: 100vh;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) {
  .phone {
    width: 375px;
    height: min(812px, 92vh);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    border-radius: 36px;
    margin: 24px auto;
  }
}

/* Status bar */
.status-bar {
  height: 44px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

/* Nav bar */
.nav-bar {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,.04);
  background: #fff;
  position: relative;
}
.nav-bar .title {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}
.nav-bar .back {
  font-size: 26px;
  line-height: 1;
  color: #1e40af;
  width: 28px;
  cursor: pointer;
  user-select: none;
}
.nav-bar .right-btn {
  font-size: 13px;
  color: #10b981;
  font-weight: 500;
}

/* Content area */
.content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 260px);
}

/* Tabbar */
.tabbar {
  height: 60px;
  flex-shrink: 0;
  border-top: 1px solid #f1f5f9;
  background: #fff;
  display: flex;
  position: relative;
  z-index: 100;
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #94a3b8;
  padding: 4px 0;
  text-decoration: none;
}
.tabbar a .ti {
  width: 42px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  margin-bottom: 3px;
  transition: background .15s;
}
.tabbar a .ti svg { width: 22px; height: 22px; display: block; }
.tabbar a.active { color: #059669; font-weight: 600; }
.tabbar a.active .ti { background: #d1fae5; }

/* Card components */
.card {
  background: #fff;
  border-radius: 14px;
  margin: 12px 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* KPI big */
.kpi-big {
  text-align: center;
  padding: 20px 16px;
}
.kpi-big .label { font-size: 13px; color: #64748b; }
.kpi-big .value {
  font-size: 56px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kpi-big .unit { font-size: 18px; color: #64748b; font-weight: 500; }

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.kpi-cell {
  text-align: center;
  padding: 16px 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.kpi-cell .label { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.kpi-cell .value {
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kpi-cell.out .value { color: #10b981; }
.kpi-cell.in .value { color: #1e40af; }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  border: none;
  box-shadow: 0 6px 16px rgba(16,185,129,.28);
  cursor: pointer;
  display: block;
  width: 100%;
}
.btn-outline {
  background: #fff;
  color: #10b981;
  border: 1px solid #10b981;
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}
.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
}

/* List items */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0fdf4;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.list-item .txt { flex: 1; min-width: 0; }
.list-item .txt .t { font-weight: 500; font-size: 14px; color: #0f172a; }
.list-item .txt .s { font-size: 12px; color: #94a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .arrow { color: #cbd5e1; font-size: 14px; margin-left: 4px; }

/* Badges */
.badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.ok { background: #dcfce7; color: #15803d; }
.badge.warn { background: #fef3c7; color: #b45309; }
.badge.danger { background: #fee2e2; color: #b91c1c; }
.badge.info { background: #cffafe; color: #0e7490; }
.badge.offline { background: #f1f5f9; color: #64748b; }

/* Info banner */
.banner-info {
  background: #cffafe;
  color: #0e7490;
  padding: 12px 16px;
  margin: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.banner-warn {
  background: #fef3c7;
  color: #92400e;
  padding: 12px 16px;
  margin: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.banner-danger {
  background: #fee2e2;
  color: #b91c1c;
  padding: 12px 16px;
  margin: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.banner-success {
  background: #dcfce7;
  color: #15803d;
  padding: 12px 16px;
  margin: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Trough tile */
.trough-tile {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  border-radius: 18px;
  padding: 18px;
  margin: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.trough-tile::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.trough-tile.normal { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.trough-tile.fault { background: linear-gradient(135deg, #b45309, #f59e0b); }
.trough-tile.offline { background: linear-gradient(135deg, #475569, #64748b); }
.trough-tile .temp {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.trough-tile .temp .unit { font-size: 16px; opacity: .8; }
.trough-tile .info { flex: 1; }
.trough-tile .info .name { font-size: 15px; font-weight: 600; }
.trough-tile .info .meta { font-size: 12px; opacity: .75; margin-top: 4px; }
.trough-tile .badge {
  background: rgba(255,255,255,.25);
  color: #fff;
  position: absolute;
  top: 14px;
  right: 14px;
}

/* Tabs */
.tabs {
  display: flex;
  background: #fff;
  padding: 0 16px;
  border-bottom: 1px solid #f1f5f9;
}
.tabs .tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: #64748b;
  position: relative;
  cursor: pointer;
}
.tabs .tab.active {
  color: #10b981;
  font-weight: 600;
}
.tabs .tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #10b981;
  border-radius: 2px;
}

/* Login page */
.login-bg {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 32px 40px;
}
.login-logo {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 40px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.login-title {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}
.login-subtitle {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}
.login-card {
  background: rgba(255,255,255,.95);
  border-radius: 24px;
  padding: 28px 24px;
  margin-top: auto;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
}
.login-tenant {
  text-align: center;
  color: #475569;
  font-size: 13px;
  margin: 16px 0;
}
.login-links {
  text-align: center;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.login-links a {
  color: #94a3b8;
  font-size: 12px;
}

/* Filter row */
.filter-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.filter-row select,
.filter-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: #0f172a;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table th,
.data-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}
.data-table th {
  color: #64748b;
  font-weight: 500;
  font-size: 11px;
}
.data-table td { color: #0f172a; font-variant-numeric: tabular-nums; }
.data-table td.net-pos { color: #b91c1c; }
.data-table td.net-neg { color: #15803d; }

/* Modal / Sheet */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 100;
  display: none;
  align-items: flex-end;
}
.sheet-mask.show { display: flex; }
.sheet {
  background: #fff;
  width: 100%;
  border-radius: 20px 20px 0 0;
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}
.sheet-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sheet .form-row {
  margin-bottom: 14px;
}
.sheet .form-row label {
  font-size: 12px;
  color: #64748b;
  display: block;
  margin-bottom: 6px;
}
.sheet .form-row input,
.sheet .form-row textarea,
.sheet .form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}

/* Avatar card */
.avatar-card {
  background: linear-gradient(135deg, #10b981, #059669);
  margin: 16px;
  padding: 24px;
  border-radius: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar-card .avatar {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.avatar-card .info .name { font-size: 18px; font-weight: 600; }
.avatar-card .info .role { font-size: 12px; opacity: .85; margin-top: 4px; }
.avatar-card .info .tenant { font-size: 11px; opacity: .7; margin-top: 2px; }

/* Metric row */
.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.metric-row:last-child { border-bottom: none; }
.metric-row .k { color: #64748b; }
.metric-row .v { color: #0f172a; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Chart container */
.chart-wrap {
  background: #fff;
  border-radius: 14px;
  margin: 12px 16px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.chart-wrap svg { display: block; width: 100%; height: auto; }

/* Expand collapse */
.expandable .expand-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  color: #10b981;
  font-size: 13px;
  cursor: pointer;
  border-top: 1px solid #f1f5f9;
}
.expandable .expand-body { display: none; }
.expandable.open .expand-body { display: block; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
}
.stats-cell {
  text-align: center;
  padding: 12px 4px;
  background: #fff;
  border-radius: 12px;
}
.stats-cell .label { font-size: 11px; color: #64748b; margin-bottom: 4px; }
.stats-cell .value { font-size: 16px; font-weight: 600; color: #0f172a; font-variant-numeric: tabular-nums; }

/* GPS map placeholder */
.map-placeholder {
  background: #e2e8f0;
  height: 260px;
  border-radius: 12px;
  margin: 12px 16px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.map-placeholder svg { width: 100%; height: 100%; }

/* Report card */
.report-card {
  background: #fff;
  margin: 12px 16px;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.report-header .title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}
.report-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.report-kpi {
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
  text-align: center;
}
.report-kpi .label { font-size: 11px; color: #64748b; margin-bottom: 6px; }
.report-kpi .value {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.report-kpi.ai .value { color: #64748b; }
.report-kpi.final .value { color: #10b981; }

/* Fault card */
.fault-card {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 16px;
}
.fault-card .code {
  font-size: 14px;
  font-weight: 700;
  color: #b45309;
}
.fault-card .msg {
  font-size: 13px;
  color: #92400e;
  margin-top: 4px;
}

/* Timeline for alarms */
.alarm-item {
  background: #fff;
  margin: 6px 16px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.alarm-item .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fee2e2;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.alarm-item.warn .ic { background: #fef3c7; }
.alarm-item.info .ic { background: #cffafe; }
.alarm-item.success .ic { background: #dcfce7; }
.alarm-item .txt { flex: 1; min-width: 0; }
.alarm-item .txt .t {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}
.alarm-item .txt .s {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}
.alarm-item .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Control card */
.control-card {
  background: #fff;
  margin: 12px 16px;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.control-card .control-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}
.control-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.control-inputs .ci {
  text-align: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
}
.control-inputs .ci .label { font-size: 11px; color: #64748b; margin-bottom: 4px; }
.control-inputs .ci .value {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* Five check list */
.five-check {
  background: #fff;
  margin: 12px 16px;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.five-check .title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 10px;
}
.five-check ul { list-style: none; }
.five-check li {
  font-size: 12px;
  color: #64748b;
  padding: 4px 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.five-check li .tick { color: #10b981; }

/* Section header */
.section-header {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  padding: 16px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* GPS info row */
.gps-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px;
}
.gps-info .gi {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.gps-info .gi .label { font-size: 11px; color: #64748b; margin-bottom: 4px; }
.gps-info .gi .value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   多租户体验追加样式
   ============================================================ */
.tenant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--brand-soft, #f0fdf4);
  border-radius: 999px;
  font-size: 12px;
  color: var(--brand, #10b981);
  font-weight: 500;
}

/* ---- 租户切换 bottom sheet ---- */
.tenant-switch-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 375px;
  max-width: 100vw;
  max-height: 70vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .15);
  z-index: 100;
  padding: 16px;
  transform: translate(-50%, 100%);
  transition: transform .25s;
}
.tenant-switch-sheet.open { transform: translate(-50%, 0); }
.tenant-switch-sheet .handle {
  width: 40px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 0 auto 12px;
}
.tenant-switch-sheet .row {
  display: flex;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  cursor: pointer;
}
.tenant-switch-sheet .row:last-child { border: none; }
.tenant-switch-sheet .row:hover { background: #f8fafc; }
.tenant-switch-sheet .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.tenant-switch-sheet .meta { flex: 1; min-width: 0; }
.tenant-switch-sheet .name { font-size: 14px; font-weight: 600; }
.tenant-switch-sheet .sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.tenant-switch-sheet .row.active { background: #f0fdf4; }
.tenant-switch-sheet .row.active .ic-right::after { content: '✓'; color: #10b981; font-weight: 700; }

/* ---- 登录页租户选择区块 ---- */
.login-tenant-block {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  padding: 18px 16px;
  margin-top: 20px;
  backdrop-filter: blur(8px);
}
.login-tenant-block .lt-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}
.login-tenant-block .lt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.login-tenant-block .lt-card {
  background: rgba(255,255,255,.95);
  border-radius: 12px;
  padding: 10px 12px;
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
}
.login-tenant-block .lt-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.login-tenant-block .lt-card.selected { border-color: #fff; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.login-tenant-block .lt-card .lt-logo {
  width: 30px; height: 30px; border-radius: 8px; color: #fff;
  font-weight: 700; display: grid; place-items: center; font-size: 14px;
}
.login-tenant-block .lt-card .lt-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 9px; padding: 1px 6px; border-radius: 999px; font-weight: 500;
}
.login-tenant-block .lt-card .lt-name {
  font-size: 12px; font-weight: 600; color: #0f172a; margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.login-tenant-block .lt-card .lt-ind {
  font-size: 10px; color: #94a3b8; margin-top: 1px;
}

/* ---- 角色切换按钮组 ---- */
.role-switch-row {
  display: flex; gap: 6px; margin-top: 14px;
}
.role-switch-row button {
  flex: 1;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.role-switch-row button.active {
  background: #fff;
  color: #059669;
  font-weight: 600;
  border-color: #fff;
}

/* ---- 首页租户切换行 ---- */
.home-tenant-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; margin: 0 16px 4px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  cursor: pointer;
}
.home-tenant-row .ht-info { display:flex; align-items:center; gap:10px; }
.home-tenant-row .ht-logo {
  width: 28px; height: 28px; border-radius: 8px; color: #fff;
  font-weight: 700; display: grid; place-items: center; font-size: 13px;
}
.home-tenant-row .ht-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.home-tenant-row .ht-sub { font-size: 10px; color: #94a3b8; margin-top: 1px; }
.home-tenant-row .ht-action { font-size: 11px; color: #10b981; font-weight: 500; }

/* ---- 我的页租户详情展开卡 ---- */
.tenant-detail-card {
  background: #fff;
  border-radius: 14px;
  margin: 12px 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.tenant-detail-card .td-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.tenant-detail-card .td-logo {
  width: 44px; height: 44px; border-radius: 12px; color: #fff;
  font-weight: 700; display: grid; place-items: center; font-size: 20px;
}
.tenant-detail-card .td-title { font-size: 16px; font-weight: 600; color: #0f172a; }
.tenant-detail-card .td-code { font-size: 11px; color: #94a3b8; margin-top: 2px; font-family: 'SF Mono', Consolas, monospace; }

/* ---- 账号列表条目 ---- */
.user-list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.user-list-row:last-child { border-bottom: none; }
.user-list-row .ul-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 600;
}
.user-list-row .ul-name { font-size: 13px; font-weight: 500; color: #0f172a; }
.user-list-row .ul-sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* sheet mask */
.tenant-sheet-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 99; display: none;
}
.tenant-sheet-mask.show { display: block; }
