/* ════════════════════════════════════════════════════
   Flounders Inventory — Refined Bar Tool
   ════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design Tokens ── */
:root {
  --bg: #111113;
  --bg-card: #1a1a1e;
  --bg-elevated: #242428;
  --bg-input: #1c1c21;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.11);

  --text: #ede8df;
  --text-secondary: #9a958f;
  --text-muted: #5f5b57;

  --accent: #c8943a;
  --accent-soft: rgba(200,148,58,0.10);
  --success: #4bb875;
  --success-soft: rgba(75,184,117,0.10);
  --danger: #e05050;
  --danger-soft: rgba(224,80,80,0.08);

  --liquor: #c8943a;
  --draught: #c07830;
  --bottle: #4a9e4a;
  --wine: #9e3e6a;

  --radius: 14px;
  --radius-sm: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Base ── */
html, body {
  height: 100%;
  font-family: var(--font-body);
  background: #0a0a0b;
  color: var(--text);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── App Shell ── */
#app {
  position: relative;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 540px) {
  #app {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 120px rgba(0,0,0,0.6);
  }
}

/* ── Screen System ── */
.screen {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.screen.active {
  display: flex;
  animation: screenIn 0.22s ease-out;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ═══════════════════════════════
   HEADER
   ═══════════════════════════════ */
header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px + var(--safe-top)) 20px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 10;
}

.home-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: calc(20px + var(--safe-top)) 20px 18px;
  border-bottom: none;
}

.home-header h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}

.home-header .header-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

header h2 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  flex: 1;
  letter-spacing: -0.01em;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.back-btn:active {
  background: var(--bg-elevated);
  color: var(--text);
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════
   HOME SCREEN
   ═══════════════════════════════ */
.home-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 8px 20px 20px;
  padding-bottom: calc(24px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}

/* ── Date Row ── */
.date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.date-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.date-row input[type="date"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-align: right;
  outline: none;
  -webkit-appearance: none;
}

.date-row input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  opacity: 0.6;
  cursor: pointer;
}

/* ── Progress ── */
.progress-block {
  margin-bottom: 24px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* ── Section Grid ── */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.section-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--sec-color);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  min-height: 100px;
  gap: 0;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
  overflow: hidden;
  text-align: left;
}

.section-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sec-color);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.section-btn:active {
  transform: scale(0.97);
}

.section-btn:active::after {
  opacity: 0.06;
}

.section-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: auto;
}

.section-btn .badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 12px;
}

.section-btn .badge.has-counts {
  color: var(--success);
}

/* ── Template Status ── */
.template-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--success-soft);
  border: 1px solid rgba(75,184,117,0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--success);
}

.template-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.template-status.missing {
  background: var(--danger-soft);
  border-color: rgba(224,80,80,0.1);
  color: var(--danger);
}

/* ── Action Buttons ── */
.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 18px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, opacity 0.15s;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #111;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:active {
  background: var(--bg-elevated);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(224,80,80,0.12);
}

.btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.btn-small {
  padding: 11px 14px;
  font-size: 13px;
}

/* ═══════════════════════════════
   SECTION LIST SCREEN
   ═══════════════════════════════ */
.search-bar {
  padding: 12px 20px;
  flex-shrink: 0;
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px 13px 42px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-bar input:focus {
  border-color: var(--border-strong);
}

/* ── Item List ── */
.item-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 20px;
  contain: layout style;
}

.item-row {
  display: flex;
  align-items: center;
  padding: 15px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  cursor: pointer;
  gap: 12px;
  transition: transform 0.1s, background 0.12s;
  touch-action: manipulation;
  animation: rowIn 0.2s ease-out backwards;
  animation-delay: calc(var(--i, 0) * 20ms);
}

.item-row:active {
  transform: scale(0.98);
  background: var(--bg-elevated);
}

.item-row.counted {
  border-left: 3px solid var(--success);
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.item-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.item-count {
  font-size: 14px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  min-width: 44px;
  text-align: right;
}

.item-row.counted .item-count {
  color: var(--success);
  font-weight: 600;
}

/* ═══════════════════════════════
   COUNTER SCREEN
   ═══════════════════════════════ */
.counter-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 20px 20px;
  overflow: hidden;
}

.counter-item-name {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.counter-section-tag {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.total-display {
  text-align: center;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  padding: 20px 0 24px;
  color: var(--text-muted);
  letter-spacing: -2px;
  line-height: 1;
  transition: color 0.2s;
}

.total-display.has-value {
  color: var(--accent);
}

.total-display.bump {
  animation: numBump 0.18s ease-out;
}

@keyframes numBump {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ── Increment Grid ── */
.increment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.inc-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius);
  padding: 18px 4px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s, background 0.12s;
  text-align: center;
  touch-action: manipulation;
  -webkit-appearance: none;
}

.inc-btn:active {
  transform: scale(0.92);
  background: var(--bg-elevated);
}

.inc-btn.btn-full {
  grid-column: 1 / -1;
  background: var(--accent-soft);
  border-color: rgba(200,148,58,0.25);
  color: var(--accent);
  padding: 20px 4px;
  font-size: 22px;
}

.inc-btn.btn-full:active {
  background: rgba(200,148,58,0.18);
}

/* ── Custom Increment ── */
.custom-inc {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.custom-inc input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  text-align: center;
}

.custom-inc input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.custom-inc input:focus {
  border-color: var(--accent);
}

.custom-inc input::-webkit-inner-spin-button,
.custom-inc input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-inc-btn {
  min-width: 80px;
  padding: 12px 16px !important;
}

/* ── Counter Controls ── */
.counter-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.counter-controls .btn {
  flex: 1;
}

/* ── Counter Nav ── */
.counter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-bottom: var(--safe-bottom);
}

.counter-nav .btn {
  min-width: 100px;
}

.counter-nav .position {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════
   TOAST
   ═══════════════════════════════ */
.toast {
  position: fixed;
  bottom: calc(28px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  z-index: 200;
  pointer-events: none;
  text-align: center;
  max-width: 85%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════
   MODAL
   ═══════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 340px;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.modal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions .btn {
  flex: 1;
}

/* ═══════════════════════════════
   UTILITIES
   ═══════════════════════════════ */
.hidden-input {
  display: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

/* Focus outlines for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus:not(:focus-visible) {
  outline: none;
}

/* Prevent double-tap zoom on buttons */
button {
  touch-action: manipulation;
}

/* ═══════════════════════════════
   HISTORY TRACK
   ═══════════════════════════════ */
.history-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.history-track::-webkit-scrollbar {
  display: none;
}

.history-chip {
  flex-shrink: 0;
  padding: 3px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  animation: chipIn 0.15s ease-out;
}

.history-chip:last-child {
  background: var(--accent-soft);
  border-color: rgba(200,148,58,0.2);
  color: var(--accent);
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}

.history-empty {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ═══════════════════════════════
   HOVER STATES (pointer devices)
   ═══════════════════════════════ */
@media (hover: hover) {
  .section-btn:hover::after {
    opacity: 0.05;
  }

  .item-row:hover {
    background: var(--bg-elevated);
  }

  .btn-secondary:hover {
    background: var(--bg-elevated);
  }

  .btn-primary:hover {
    filter: brightness(1.08);
  }

  .btn-danger:hover {
    background: rgba(224,80,80,0.14);
  }

  .inc-btn:hover {
    background: var(--bg-elevated);
    border-color: rgba(255,255,255,0.16);
  }

  .inc-btn.btn-full:hover {
    background: rgba(200,148,58,0.16);
  }

  .back-btn:hover {
    background: var(--bg-elevated);
    color: var(--text);
  }

}

/* ═══════════════════════════════
   ACTIVE SECTION INDICATOR
   ═══════════════════════════════ */
.section-btn.selected {
  border-color: var(--sec-color);
  background: rgba(255,255,255,0.03);
}

.section-btn.selected::after {
  opacity: 0.04;
}

/* ═══════════════════════════════
   DESKTOP PLACEHOLDER
   ═══════════════════════════════ */
.desktop-placeholder {
  display: none;
}

/* ═══════════════════════════════
   DESKTOP TWO-PANEL (900px+)
   ═══════════════════════════════ */
@media (min-width: 900px) {
  #app {
    max-width: 1100px;
    flex-direction: row;
    border-radius: 16px;
    margin: 24px auto;
    height: calc(100% - 48px);
    box-shadow: 0 0 0 1px var(--border), 0 24px 80px rgba(0,0,0,0.5);
  }

  /* ── Sidebar (home always visible) ── */
  #screen-home {
    display: flex !important;
    width: 380px;
    min-width: 380px;
    border-right: 1px solid var(--border);
    animation: none !important;
    border-radius: 16px 0 0 16px;
  }

  .home-header h1 {
    font-size: 28px;
  }

  /* ── Right panel ── */
  #screen-section,
  #screen-counter {
    flex: 1;
    min-width: 0;
  }

  /* ── Placeholder (no section selected) ── */
  .desktop-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    min-width: 0;
  }

  .desktop-placeholder svg {
    opacity: 0.25;
    margin-bottom: 4px;
  }

  /* Hide placeholder when right panel is open */
  #app:has(#screen-section.active) .desktop-placeholder,
  #app:has(#screen-counter.active) .desktop-placeholder {
    display: none;
  }

  /* ── Hide section back button on desktop ── */
  #screen-section > header > .back-btn {
    display: none;
  }

  /* ── Counter: wider layout ── */
  .total-display {
    font-size: 96px;
    padding: 32px 0;
  }

  .counter-body {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .increment-grid {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .counter-controls,
  .counter-nav {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ── Item rows: wider padding ── */
  .item-row {
    padding: 16px 20px;
  }
}

/* ═══════════════════════════════
   LARGE DESKTOP (1200px+)
   ═══════════════════════════════ */
@media (min-width: 1200px) {
  #app {
    max-width: 1200px;
  }

  #screen-home {
    width: 420px;
    min-width: 420px;
  }
}

/* ═══════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════ */
#screen-login {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-container {
  width: 100%;
  max-width: 360px;
}

.login-brand {
  text-align: center;
  margin-bottom: 40px;
}

.login-brand h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.login-brand span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-field {
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.login-field input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.login-field input:focus {
  border-color: var(--accent);
}

.login-error {
  font-size: 13px;
  color: var(--danger);
  min-height: 20px;
  margin-bottom: 8px;
  text-align: center;
}

.login-btn {
  width: 100%;
  margin-top: 4px;
}

.login-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.logout-btn {
  margin-top: 6px;
  color: var(--text-muted) !important;
  background: transparent !important;
  border-color: var(--border) !important;
}

/* Desktop: login overlays the two-panel layout */
@media (min-width: 900px) {
  #screen-login {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: var(--bg);
    border-radius: 16px;
  }
}

/* ═══════════════════════════════
   HISTORY SCREEN
   ═══════════════════════════════ */
.history-loading {
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  #screen-history {
    flex: 1;
    min-width: 0;
  }
}
