/* ── 统一卡片组件 ── */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 12px);
  background: var(--surface-solid);
  box-shadow: none;
  padding: var(--space-md, 16px);
}

.card.warn {
  border-left: 4px solid var(--warning);
  background: var(--warning-soft);
}

.card.success {
  border-left: 4px solid var(--success);
  background: var(--success-soft);
}

.card.accent {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

.card.dashed {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}

.card.compact,
.card.card-block-sm {
  padding: var(--space-sm, 10px);
}

.card.is-clickable {
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.card.is-clickable:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.card > .title {
  font-size: var(--text-page-title, 1.6rem);
  font-weight: var(--weight-title, 720);
}

.card :where(.title-sm, .section-title) {
  font-size: var(--text-section-title, 1.05rem);
  font-weight: var(--weight-section, 700);
}

.card :where(.sub, .section-note, .muted, .tip) {
  font-size: var(--text-body, 0.9rem);
}

.empty {
  display: grid;
  gap: var(--space-xs, 8px);
  padding: var(--space-lg, 24px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg, 12px);
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.04), transparent 38%),
    var(--surface-solid);
  color: var(--text-muted);
  line-height: 1.6;
}

.empty strong,
.empty-title {
  color: var(--text);
  font-size: var(--text-card-title, 1rem);
  font-weight: var(--weight-section, 700);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs, 8px);
}

.app-row-list {
  display: grid;
  gap: var(--space-xs, 8px);
}

.apps-group {
  display: grid;
  gap: var(--space-sm, 12px);
}

#apps-grid.module-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.apps-group + .apps-group {
  margin-top: var(--space-lg, 24px);
}

.app-row-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-sm, 12px);
  padding: var(--space-md, 16px);
  color: inherit;
  text-decoration: none;
}

.app-row-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md, 10px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(29, 78, 216, 0.16);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.app-row-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.app-row-title {
  margin: 0;
  color: var(--text);
  font-size: var(--text-card-title, 1rem);
  font-weight: var(--weight-section, 700);
  line-height: 1.25;
}

.app-row-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-aux, 0.82rem);
  line-height: 1.45;
}

.app-row-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
  font-size: var(--text-aux, 0.82rem);
  font-weight: 700;
  white-space: nowrap;
}

.app-row-arrow {
  color: var(--accent-strong);
  font-size: 1.1rem;
  line-height: 1;
}

.checkin-console-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md, 16px);
}

@media (max-width: 520px) {
  .app-row-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .app-row-meta {
    grid-column: 2;
    justify-content: flex-start;
  }

  .checkin-console-entry {
    display: grid;
  }
}
