/* === 紫微斗數命盤資料庫 — 白底淡雅主題 === */

:root {
  --bg-primary: #f4f5f7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f0f1f4;
  --bg-hover: #e8e9ee;
  --border: #d4d6dc;
  --border-focus: #7c5cbf;
  --text-primary: #1c1e2a;
  --text-secondary: #555770;
  --text-muted: #8c8ea0;
  --accent-gold: #b07818;
  --accent-gold-dim: #8a5e10;
  --accent-purple: #6b4fa0;
  --accent-purple-dim: #4a3578;
  --tag-main: #8b5e10;
  --tag-main-bg: #fdf5e6;
  --tag-main-border: #e0c88c;
  --tag-helper: #555770;
  --tag-helper-bg: #f0f0f4;
  --tag-helper-border: #d0d0d8;
  --tag-mutagen-color: #b03030;
  --tag-mutagen-bg: #fde8e8;
  --tag-mutagen-border: #e8a0a0;
  --tag-self-color: #2860a0;
  --tag-self-bg: #e8f0fc;
  --tag-self-border: #a0c0e0;
  --status-todo: #888;
  --status-progress: #1870c0;
  --status-done: #18854a;
  --danger: #c83030;
  --danger-hover: #e04040;
  --modal-backdrop: rgba(0, 0, 0, 0.35);
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.15s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* === Header === */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header h1 {
  font-size: 1.2rem;
  color: var(--accent-purple);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.demo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #b07818, #d4a030);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* === Buttons === */
.btn {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover { background: var(--bg-hover); border-color: #bbb; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-purple-dim); }

.btn-gold {
  background: #fef8ec;
  border-color: var(--tag-main-border);
  color: var(--accent-gold);
  font-weight: 600;
}
.btn-gold:hover { background: #fdf0d8; }

.btn-danger {
  background: #fef0f0;
  border-color: #e0a0a0;
  color: var(--danger);
}
.btn-danger:hover { background: #fde0e0; }

.btn-sm { padding: 4px 10px; font-size: 0.78rem; }
.btn-icon { padding: 6px 8px; line-height: 1; }

/* === Main Content === */
.main { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* === Toolbar === */
.toolbar-primary {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.btn-filter-active {
  border-color: var(--accent-purple) !important;
  color: var(--accent-purple) !important;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-purple);
  color: #fff;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: 4px;
}

.record-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
}

.search-input:focus { outline: none; border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(107, 79, 160, 0.1); }
.search-input::placeholder { color: var(--text-muted); }

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 32px;
  text-align: right;
  flex-shrink: 0;
}

.filter-group-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-select {
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.filter-select:focus { outline: none; border-color: var(--border-focus); }

/* === Table === */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: #fafafa;
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

thead th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color var(--transition), background var(--transition);
}

thead th.sortable:hover {
  color: var(--accent-purple);
  background: #f0eef6;
}

.sort-icon {
  font-size: 0.7rem;
  opacity: 0.4;
  margin-left: 2px;
}

thead th.sortable:hover .sort-icon { opacity: 0.8; }

tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid #eee;
  font-size: 0.88rem;
}

tbody tr { transition: background var(--transition); }
tbody tr:nth-child(even) { background: #fafafc; }
tbody tr:hover { background: #f0eef6; }
tbody tr:last-child td { border-bottom: none; }

.cell-actions { display: flex; gap: 6px; white-space: nowrap; }

/* === Status Badge === */
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
}

.status-todo { background: #f0f0f0; color: var(--status-todo); }
.status-progress { background: #e8f0fc; color: var(--status-progress); }
.status-done { background: #e6f5ec; color: var(--status-done); }

/* === Pattern Badge === */
.pattern-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--tag-main-bg);
  color: var(--tag-main);
  border: 1px solid var(--tag-main-border);
}

/* === Modal === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px;
  overflow-y: auto;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 1000px;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.05rem;
  color: var(--accent-purple);
  font-weight: 700;
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  padding: 0 24px;
  gap: 0;
  background: var(--bg-primary);
}

.modal-tab {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  position: relative;
}

.modal-tab:hover { color: var(--text-primary); }

.modal-tab.active {
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
}

.tab-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  margin-left: 4px;
  vertical-align: middle;
}

.modal-body { padding: 24px; max-height: calc(100vh - 250px); overflow-y: auto; }

/* Consultation Cards */
.consult-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consult-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-primary);
}

.consult-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.consult-number {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-purple);
}
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: #fafafa;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* === Form === */
.form-section {
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 0.9rem;
  color: var(--accent-purple);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ece4f6;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.form-group { display: flex; flex-direction: column; gap: 4px; }

.form-group label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(107, 79, 160, 0.08);
}

.form-group textarea { resize: vertical; min-height: 80px; }

/* === Palace Grid (十二宮) === */
.palace-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.palace-cell {
  background: #fafbfd;
  border: 1px solid #e0e2e8;
  border-radius: var(--radius-sm);
  padding: 8px;
}

.palace-cell-title {
  font-size: 0.75rem;
  color: var(--accent-purple);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* === Tag Input === */
.tag-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  min-height: 34px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: text;
  position: relative;
}

.tag-input-wrapper:focus-within { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(107, 79, 160, 0.08); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  font-weight: 500;
}

.tag-main {
  background: var(--tag-main-bg);
  color: var(--tag-main);
  border: 1px solid var(--tag-main-border);
}

.tag-helper {
  background: var(--tag-helper-bg);
  color: var(--tag-helper);
  border: 1px solid var(--tag-helper-border);
}

/* 四化/自化標籤 */
.tag-mutagen {
  background: var(--tag-mutagen-bg);
  color: var(--tag-mutagen-color);
  border: 1px solid var(--tag-mutagen-border);
  font-weight: 700;
}

/* 自化標籤（藍色系） */
.tag-self {
  background: var(--tag-self-bg);
  color: var(--tag-self-color);
  border: 1px solid var(--tag-self-border);
  font-weight: 700;
}

.tag-remove {
  cursor: pointer;
  font-size: 0.65rem;
  opacity: 0.4;
  line-height: 1;
}

.tag-remove:hover { opacity: 1; }

.tag-input-field {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.78rem;
  outline: none;
  flex: 1;
  min-width: 60px;
  padding: 2px 4px;
}

/* === Autocomplete === */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 180px;
  overflow-y: auto;
  z-index: 50;
  margin-top: 2px;
}

.autocomplete-item {
  padding: 6px 12px;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background var(--transition);
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--bg-hover);
}

.autocomplete-item .star-type {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 8px;
}

/* === Event List === */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.event-item input,
.event-item select {
  padding: 7px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.event-item input:focus,
.event-item select:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* === Bazi Display === */
.bazi-display {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
}

.bazi-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bazi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.bazi-stem,
.bazi-branch {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.bazi-stem {
  background: var(--bg-card);
  color: var(--accent-gold);
  border: 1px solid var(--tag-main-border);
}

.bazi-branch {
  background: var(--bg-card);
  color: var(--accent-purple);
  border: 1px solid var(--border);
}

.bazi-daymaster {
  background: var(--bg-hover);
  border-color: var(--accent-gold-dim);
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(176, 120, 24, 0.3);
}

.bazi-info {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.bazi-nayin {
  text-align: center;
  margin-top: 4px;
}

.bazi-cell {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.bazi-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fef8ec;
  color: var(--accent-gold);
  border: 1px solid var(--tag-main-border);
}

/* === Family Badge === */
.family-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* === Record Tags === */
.tag-record {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  white-space: nowrap;
  margin: 1px 2px;
}

.cell-tags { max-width: 150px; }

/* === CRM Summary === */
.crm-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.crm-card {
  text-align: center;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
}

.crm-card-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-purple);
}

.crm-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.client-tier-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* === Stats === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #fafbfd;
}

.stat-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ece4f6;
}

.stat-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  width: 60px;
  text-align: right;
  flex-shrink: 0;
}

.stat-bar {
  flex: 1;
  height: 14px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.stat-fill-purple { background: var(--accent-purple); opacity: 0.7; }
.stat-fill-gold { background: var(--accent-gold); opacity: 0.7; }

.stat-value {
  font-size: 0.78rem;
  color: var(--text-primary);
  font-weight: 600;
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* === Star Filter Group === */
.star-filter-group {
  display: flex;
  gap: 4px;
  align-items: center;
}

.filter-select-sm {
  max-width: 100px;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; }

/* === Auth Bar === */
.auth-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-status {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-status.connected { color: var(--status-done); font-weight: 600; }

/* === Settings Panel === */
.settings-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.settings-panel h3 {
  color: var(--accent-purple);
  margin-bottom: 16px;
}

.settings-row {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.settings-row .form-group { flex: 1; }

/* === Toast === */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  animation: toastIn 0.3s ease;
}

.toast-success { border-left: 3px solid var(--status-done); color: var(--status-done); }
.toast-error { border-left: 3px solid var(--danger); color: var(--danger); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === Source Badge === */
.source-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  background: #f0ecf8;
  color: var(--accent-purple);
  border: 1px solid #d4cce8;
}

/* === Manual Override (details/summary) === */
.manual-override {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
}

.manual-override summary {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #fafafa;
  border-radius: var(--radius-sm);
  user-select: none;
}

.manual-override summary:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
}

.manual-override[open] summary {
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.manual-override[open] {
  padding-bottom: 12px;
}

.manual-override .form-grid {
  padding: 0 12px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .header { flex-direction: column; gap: 12px; }
  .toolbar-primary { flex-direction: column; }
  .toolbar-filters { gap: 8px; }
  .filter-group { flex-direction: column; align-items: flex-start; }
  .filter-group-label { text-align: left; }
  .palace-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .settings-row { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .palace-grid { grid-template-columns: 1fr; }
  .main { padding: 12px; }
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #c8c8d0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0a0b0; }

/* === Loading === */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-muted);
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #e0e0e8;
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }
