.home-dashboard {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow: auto;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-user-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  align-self: center;
}

.home-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #111827;
  overflow: hidden;
}

.home-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-user-name {
  font-size: 16px;
  font-weight: 800;
}

.home-user-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 12px;
}

.home-user-meta i {
  margin-right: 6px;
}

.home-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #f8f9fb;
}

.home-meta-item i {
  font-size: 16px;
  color: var(--text-secondary);
}

.home-meta-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.home-stats {
  display: flex;
  gap: 10px;
  max-width: 450px;
}

.home-stat-card {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  overflow: hidden;
}

.home-stat-title {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 700;
}

.home-stat-value {
  font-size: 20px;
  font-weight: 800;
  margin-top: 4px;
}

.home-account-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-account-item {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-account-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-account-left i {
  color: #3b82f6;
  width: 14px;
  text-align: center;
}

.home-account-label {
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
}

.home-account-value {
  color: var(--text-primary);
  font-weight: 800;
  text-align: right;
  word-break: break-all;
}

.home-account-avatar {
  min-width: 26px;
  min-height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  overflow: hidden;
}

.home-account-avatar img {
  width: 26px;
  height: 26px;
  object-fit: cover;
}

.home-account-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
}

.home-account-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.home-logout-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 8px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
}

.home-stat-icon {
  position: absolute;
  right: 10px;
  top: 10px;
  opacity: 0.15;
  font-size: 26px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}

.home-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 170px;
}

.home-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  background: #f8f9fb;
}

.home-card-title {
  font-weight: 800;
  font-size: 12px;
}

.home-card-action {
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: not-allowed;
  opacity: 0.6;
}

.home-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-account-card-body {
  justify-content: center;
}

.home-account-panel[hidden] {
  display: none !important;
}

.home-account-panel-ready {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
}

.home-account-ready-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-account-key {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-account-value {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}

.home-account-value-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.home-account-status-row {
  align-items: center;
}

.home-account-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #bbf7d0;
}

.home-account-status-pill i {
  font-size: 13px;
}

.home-account-panel-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border: 1px solid #dbe2ea;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0.92) 36%, rgba(246, 248, 252, 0.96) 100%),
    linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 28px rgba(15, 23, 42, 0.06);
}

.home-account-guest-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3cd;
  color: #c88719;
  font-size: 24px;
}

.home-account-guest-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.home-account-guest-subtitle {
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  max-width: 320px;
}

.home-account-guest-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-account-guest-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.home-account-guest-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.home-account-guest-action-icon.is-install {
  background: #dbeafe;
  color: #2563eb;
}

.home-account-guest-action-icon.is-login {
  background: #dcfce7;
  color: #16a34a;
}

.home-account-guest-action-text {
  min-width: 0;
}

.home-account-guest-action-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.home-account-guest-action-subtitle {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.home-account-guest-btn {
  border: none;
  border-radius: 10px;
  min-width: 92px;
  padding: 10px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.home-account-guest-btn.is-install {
  background: #2563eb;
}

.home-account-guest-btn.is-login {
  background: #16a34a;
}

.home-empty {
  color: var(--text-secondary);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

.home-list-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.home-list-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-list-name {
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-list-sub {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-list-right {
  font-weight: 800;
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
}

.home-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 980px) {
  .home-stats {
    max-width: 100%;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .home-account-guest-action {
    grid-template-columns: auto 1fr;
  }

  .home-account-guest-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
