@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #F5F3EE;
  --panel: #FFFFFF;
  --ink: #201F2B;
  --ink-soft: #6A687A;
  --denim: #AE294A;
  --denim-dark: #DD808B;
  --denim-press: #701A30;
  --denim-tint: #FAE8ED;
  --mustard: #D9A441;
  --rust: #B84B32;
  --rust-tint: #F7E8E3;
  --sage: #5E8567;
  --line: #E1DCCF;
  --font-display: 'Fraunces', serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior-y: contain;
}
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.hidden { display: none !important; }

/* ---------- Login ---------- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 50% at 15% 100%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(ellipse 60% 45% at 55% 108%, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(ellipse 65% 45% at 92% 100%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #E98D98 0%, #EFA0AB 45%, #F6C4CB 75%, #FCE7EA 100%);
}
.login-box { width: 100%; max-width: 340px; }
.login-box .login-logo { display: block; width: 96px; height: 96px; object-fit: contain; margin: 0 auto 12px; }
.login-box .brand { font-family: var(--font-display); color: #fff; font-size: 28px; text-align: center; margin-bottom: 4px; text-shadow: 0 1px 6px rgba(0,0,0,0.12); }
.login-box .tagline { color: #fff; opacity: 0.85; text-align: center; font-size: 13.5px; margin-bottom: 28px; }
.login-version { color: #fff; opacity: 0.7; text-align: center; font-size: 11.5px; margin-top: 16px; }
.login-card { background: var(--panel); border-radius: 14px; padding: 26px 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 16px; background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--denim); box-shadow: 0 0 0 3px var(--denim-tint); }
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; padding: 8px; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.password-toggle:active { color: var(--ink); }
.btn-primary {
  width: 100%; padding: 14px; border: none; border-radius: 9px;
  background: var(--denim); color: #fff; font-size: 15.5px; font-weight: 600;
}
.btn-primary:active { background: var(--denim-press); }
.btn-primary:disabled { opacity: 0.6; }
.btn-outline {
  padding: 12px; border: 1.5px solid var(--denim); border-radius: 9px;
  background: #fff; color: var(--denim); font-size: 15px; font-weight: 600;
}
.btn-outline:active { background: var(--denim-tint); }
.btn-outline:disabled { opacity: 0.6; }
.login-error { background: var(--rust-tint); color: var(--rust); padding: 10px 12px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; }

/* ---------- App shell ---------- */
.app-screen { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: calc(64px + var(--safe-bottom)); }

.pos-sticky-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
}
.topbar {
  background: var(--denim-dark); color: var(--ink);
  padding: 14px 16px 12px;
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; }
.topbar .store-name { font-family: var(--font-display); font-size: 18px; }
.topbar .cashier-name { font-size: 12px; color: #4A2530; }
.topbar .icon-btn { background: none; border: none; color: #4A2530; padding: 6px; display: flex; align-items: center; justify-content: center; }
.topbar .icon-btn:active { color: var(--ink); }
.topbar .logout-text-btn {
  font-size: 13.5px; font-weight: 600; padding: 6px 10px; border-radius: 6px;
  border: 1px solid rgba(32,31,43,0.28); white-space: nowrap;
}

.search-row { margin-top: 12px; display: flex; gap: 8px; }
.search-row input {
  flex: 1; padding: 10px 14px; border-radius: 20px; border: none;
  font-size: 14.5px; background: rgba(255,255,255,0.6); color: var(--ink);
}
.search-row input::placeholder { color: var(--ink-soft); }
.scan-btn {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.6); color: var(--ink);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.scan-btn:active { opacity: 0.85; }
#refreshProductsIcon.spinning { animation: spin 0.8s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.scanner-box {
  width: 100%; border-radius: 10px; overflow: hidden; background: #000;
  min-height: 260px; position: relative;
}
.scanner-box video { width: 100% !important; }
.scan-status { text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

.connection-badge {
  text-align: center; font-size: 12px; font-weight: 600; padding: 6px 10px;
  color: #fff; letter-spacing: .2px;
}
.connection-badge.offline { background: var(--rust); }
.connection-badge.syncing { background: var(--mustard); color: var(--ink); }

.offline-note {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; text-align: center;
  font-size: 12.5px; font-weight: 500; background: #FBF1DF; color: #8A6414;
}

.chip-scroller { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px; scrollbar-width: none; }
.chip-scroller::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 15px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--panel); font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
}
.chip.active { background: var(--denim); border-color: var(--denim); color: #fff; }

/* ---------- Product grid ---------- */
.product-grid {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 12px 16px 20px;
  align-content: start;
}
.product-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 4px;
}
.product-card .swatch {
  width: 100%; aspect-ratio: 1.3; border-radius: 7px; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--denim-tint), var(--paper));
  display: flex; align-items: center; justify-content: center;
  color: var(--denim); font-family: var(--font-display); font-size: 22px;
}
.product-card .info { display: contents; } /* di mode grid, isi .info menyatu langsung dengan .product-card */
.product-card .name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.product-card .category { font-size: 11.5px; color: var(--ink-soft); }
.product-card .price { font-family: var(--font-display); font-size: 15.5px; color: var(--denim); margin-top: 2px; }
.product-card .stock-note { font-size: 11.5px; }
.stock-note.low { color: var(--rust); }
.stock-note.ok { color: var(--sage); }
.stock-note.out { color: var(--rust); font-weight: 600; }
/* Produk stok habis: nama/kategori/harga jadi abu-abu, tulisan "Stok habis" tetap merah (.stock-note.out di atas). */
.product-card.out-of-stock .name,
.product-card.out-of-stock .category,
.product-card.out-of-stock .price { color: #9CA3AF; }
.product-card.out-of-stock .swatch { opacity: 0.6; }

/* ---------- Mode tampilan List ---------- */
.product-grid.view-list {
  display: flex; flex-direction: column; grid-template-columns: none;
}
.product-grid.view-list .product-card {
  flex-direction: row; align-items: center; gap: 12px; padding: 8px 10px; text-align: left;
}
.product-grid.view-list .product-card .swatch {
  width: 48px; height: 48px; aspect-ratio: 1; margin-bottom: 0; flex-shrink: 0; font-size: 17px;
}
.product-grid.view-list .product-card .info {
  display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 1px;
}
.product-grid.view-list .product-card .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-grid.view-list .product-card .price { margin-top: 0; }

.empty-note { grid-column: 1/-1; text-align: center; padding: 40px 16px; color: var(--ink-soft); font-size: 14px; }

/* ---------- Cart bar ---------- */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom));
  z-index: 25;
  background: var(--denim-dark); color: var(--ink); border-radius: 14px;
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 6px 20px rgba(112,26,48,0.35);
}
.cart-bar .cart-info .count { font-size: 12px; color: #4A2530; }
.cart-bar .cart-info .total { font-family: var(--font-display); font-size: 17px; }
.cart-bar .cart-btn { background: var(--mustard); color: var(--ink); border: none; border-radius: 9px; padding: 10px 18px; font-weight: 700; font-size: 14px; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; background: var(--panel); border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
}
.bottom-nav button {
  flex: 1; background: none; border: none; padding: 10px 4px 8px;
  font-size: 12px; color: var(--ink-soft); font-weight: 500;
}
.bottom-nav button.active { color: var(--denim); }
.bottom-nav .nav-icon { display: block; margin: 0 auto 3px; }

/* ---------- Sheets / Modals ---------- */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(28,27,35,0.45); z-index: 40;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 480px; background: var(--panel);
  border-radius: 18px 18px 0 0; max-height: 88vh; overflow-y: auto;
  padding: 18px 18px calc(18px + var(--safe-bottom));
}
/* Animasi kecil saat jendela (sheet) muncul & saat dibatalkan/ditutup. */
@keyframes sheetOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetOverlayOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes sheetSlideIn { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes sheetSlideOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(28px); opacity: 0; } }
.sheet-overlay:not(.hidden) { animation: sheetOverlayIn 0.18s ease-out; }
.sheet-overlay:not(.hidden) .sheet { animation: sheetSlideIn 0.22s cubic-bezier(.22,.8,.32,1); }
.sheet-overlay.closing { animation: sheetOverlayOut 0.16s ease-in forwards; }
.sheet-overlay.closing .sheet { animation: sheetSlideOut 0.18s ease-in forwards; }
@media (prefers-reduced-motion: reduce) {
  .sheet-overlay:not(.hidden), .sheet-overlay:not(.hidden) .sheet,
  .sheet-overlay.closing, .sheet-overlay.closing .sheet { animation: none !important; }
}
.sheet-handle { width: 40px; height: 4px; background: var(--line); border-radius: 4px; margin: 0 auto 14px; }
.sheet h2 { font-family: var(--font-display); font-size: 19px; margin: 0 0 14px; }
.sheet-close { float: right; background: none; border: none; font-size: 20px; color: var(--ink-soft); }

/* Variant picker */
.variant-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.variant-option:last-child { border-bottom: none; }
.variant-option .info .label { font-weight: 600; font-size: 14.5px; }
.variant-option .info .sub { font-size: 12.5px; color: var(--ink-soft); }
.qty-stepper { display: flex; align-items: center; gap: 10px; }
.qty-stepper button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 16px; font-weight: 700; color: var(--denim);
}
.qty-stepper button:disabled { opacity: 0.35; }
.qty-stepper .qty-val { min-width: 20px; text-align: center; font-weight: 600; }

/* Cart list */
.cart-item { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: none; }
.cart-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cart-item .name { font-weight: 600; font-size: 14px; }
.cart-item .sub { font-size: 12px; color: var(--ink-soft); }
.cart-item .subtotal { font-weight: 600; font-size: 14px; white-space: nowrap; }
.cart-item .remove-btn { background: none; border: none; color: var(--rust); font-size: 12px; padding: 0; line-height: 30px; }

/* Diskon produk otomatis: badge kecil di kartu produk & harga coret di sheet varian/keranjang */
.badge-discount {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 20px;
  background: var(--mustard); color: var(--ink); font-family: var(--font-body, inherit);
  font-size: 10.5px; font-weight: 700; vertical-align: middle;
}
/* Di tampilan grid, label ini terlihat sedikit lebih ke kanan dibanding label nama/harga/stok
   di bawahnya -- geser tipis ke kiri supaya lebih rata. Tampilan list sudah pas, tidak diubah. */
.product-grid:not(.view-list) .badge-discount { margin-left: 2px; }
.price-original { text-decoration: line-through; color: var(--ink-soft); font-size: 0.92em; margin-right: 5px; }
.price-final { color: var(--rust); font-weight: 700; }
.cart-item .discount-note { font-size: 11px; color: var(--rust); }

.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.summary-row.total { font-family: var(--font-display); font-size: 19px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }

/* ---------- Member (kasir) ---------- */
.member-field { position: relative; }
#memberPickerWrap { position: relative; }
#memberSearchInput {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; background: var(--paper); color: var(--ink);
}
#memberSearchInput:focus { outline: none; border-color: var(--denim); box-shadow: 0 0 0 3px var(--denim-tint); }
.member-search-results {
  margin-top: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  max-height: 220px; overflow-y: auto;
}
.member-search-results .member-result {
  display: block; width: 100%; text-align: left; padding: 10px 13px; border: none; background: none;
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink);
}
.member-search-results .member-result:last-child { border-bottom: none; }
.member-search-results .member-result:active { background: var(--denim-tint); }
.member-search-results .member-result .phone { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.member-offline-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; background: var(--mustard); color: var(--ink); vertical-align: middle;
}
.member-points-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; background: var(--denim-tint); color: var(--denim-press); vertical-align: middle;
}
.member-search-results .member-empty { padding: 12px 13px; font-size: 13px; color: var(--ink-soft); }
.member-selected-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 8px; padding: 10px 13px; background: var(--denim-tint); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--denim-press);
}
.member-selected-chip button { background: none; border: none; font-size: 15px; color: var(--denim-press); line-height: 1; padding: 4px; }

/* Checkout keypad */
.paid-display { text-align: center; margin: 10px 0 16px; }
.paid-display .label { font-size: 12.5px; color: var(--ink-soft); }
.paid-display .amount { font-family: var(--font-display); font-size: 30px; color: var(--denim); }
/* Tab pilihan metode pembayaran (Tunai / Transfer) */
.payment-method-tabs { display: flex; gap: 8px; margin: 14px 0 4px; }
.pm-tab {
  flex: 1; padding: 10px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.pm-tab.active { border-color: var(--denim); background: var(--denim-tint); color: var(--denim); }
.transfer-hint { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin: 0 0 6px; line-height: 1.5; }

.proof-upload { margin-top: 14px; }
.hidden-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.proof-btn { display: inline-flex; align-items: center; width: 100%; justify-content: center; cursor: pointer; }
.proof-preview { position: relative; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.proof-preview img { display: block; width: 100%; max-height: 220px; object-fit: contain; background: #f4f2ec; }
.remove-proof-btn {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  border: none; background: rgba(28,27,35,0.65); color: #fff; font-size: 14px;
}
.proof-status { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.quick-amounts { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.quick-amounts button { flex: 1; min-width: 80px; padding: 9px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--denim); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { padding: 16px 0; font-size: 18px; font-weight: 600; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.keypad button.clear { color: var(--rust); font-size: 14px; }

/* Receipt (mengikuti desain struk cetak admin: rapi, gaya kertas kasir) */
.receipt-box { border: 1px dashed var(--line); border-radius: 10px; padding: 16px; font-family: 'Courier New', ui-monospace, monospace; background: #fff; }
.receipt-box .center { text-align: center; }
.receipt-logo { max-width: 140px; max-height: 60px; object-fit: contain; margin-bottom: 6px; }
.receipt-store-name { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; }
.receipt-store-info { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.receipt-box .invoice-no { font-weight: 700; font-size: 14px; color: var(--denim); }
.receipt-meta { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.receipt-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; }
.receipt-line.receipt-total { font-weight: 700; font-size: 15px; padding-top: 6px; }
.receipt-note { font-size: 11.5px; color: var(--ink-soft); padding: 0 0 4px; }
.receipt-thanks { font-size: 13px; font-weight: 600; }
.receipt-divider { border-top: 1px dashed var(--line); margin: 10px 0; }
#receiptItems .receipt-line span:first-child { max-width: 68%; }
.receipt-item { margin-bottom: 4px; }
.receipt-item-discount { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--rust); padding: 0 0 2px; }

/* History */
.history-list { padding: 4px 16px 20px; }
.history-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
}
.history-item .invoice { font-weight: 600; font-size: 14px; }
.history-item .time { font-size: 12px; color: var(--ink-soft); }
.history-item .amount { font-family: var(--font-display); font-size: 16px; color: var(--denim); }
.history-summary { padding: 14px 16px 4px; }
.history-date { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; text-transform: capitalize; }
.history-summary .value { font-family: var(--font-display); font-size: 24px; color: var(--denim); }
.history-summary .label { font-size: 12.5px; color: var(--ink-soft); }

/* Absensi */
.attendance-card { margin: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; }
.attendance-date { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; text-transform: capitalize; }
.attendance-status { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.attendance-times { display: flex; gap: 10px; }
.attendance-time-block { flex: 1; background: var(--denim-tint); border-radius: 10px; padding: 10px 12px; text-align: center; }
.attendance-time-block .label { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 2px; }
.attendance-time-block .value { font-family: var(--font-display); font-size: 19px; color: var(--denim); }
.attendance-hint { font-size: 12px; color: var(--ink-soft); margin-top: 10px; text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 20px;
  font-size: 13.5px; z-index: 60; max-width: 85vw; text-align: center;
}
.toast.toast-success { background: #1BB906; }


/* ===== V5 responsive cleanup ===== */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
.app-screen { width: 100%; max-width: none; min-width: 0; }
.topbar { width: 100%; }
.topbar-row { min-width: 0; gap: 10px; }
.topbar-row > div:first-child { min-width: 0; }
.topbar .store-name { white-space: normal; overflow-wrap: anywhere; }
.search-row { min-width: 0; }
.search-row input { min-width: 0; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet-overlay { width: 100vw; }
.sheet { width: min(100%, 520px); max-width: 520px; }
.history-item { min-width: 0; }
.history-item > div:first-child { min-width: 0; }
.history-item .invoice { color: var(--denim); }
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 24px; padding-right: 24px; }
  .chip-scroller { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 420px) {
  .topbar { padding-left: 12px; padding-right: 12px; }
  .product-grid { gap: 9px; padding-left: 12px; padding-right: 12px; }
  .product-card { padding: 10px; }
  .product-card .name { font-size: 13px; }
  .cart-bar { left: 8px; right: 8px; }
}

.history-status { display:inline-block; margin-top:4px; font-size:10.5px; line-height:1.25; }
.history-status.offline { color:var(--rust); font-weight:600; }
.history-status.synced { color:#518a63; }
