/* ============================================================
   SiftLog — Styles
   Log File Viewer & Analyzer
   ============================================================ */

/* ----- CSS Variables / Theme ----- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --transition: 0.15s ease;
  --radius: 6px;
  --radius-sm: 4px;
  --topbar-h: 46px;
  --stats-h: 32px;
  --timeline-h: 50px;
  --filter-h: 44px;
  --pagination-h: 36px;
}

/* Arctic Stream — crisp cyan on deep navy */
[data-theme="dark"] {
  --bg: #06101c;
  --surface: #0b1a2e;
  --surface-alt: #102440;
  --surface-hover: #142d4c;
  --border: #1a3a5c;
  --border-light: #224870;
  --text: #c8dce8;
  --text-secondary: #7a9ab8;
  --text-muted: #4a6a88;
  --accent: #22d3ee;
  --accent-hover: #4adeea;
  --accent-text: #06101c;
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --info: #60a5fa;
  --info-bg: rgba(96, 165, 250, 0.1);
  --debug: #7a9ab8;
  --debug-bg: rgba(122, 154, 184, 0.08);
  --trace: #4a6a88;
  --trace-bg: rgba(74, 106, 136, 0.08);
  --success: #34d399;
  --badge-bg: rgba(255,255,255,0.06);
  --scrollbar-track: #0b1a2e;
  --scrollbar-thumb: #1a3a5c;
  --scrollbar-thumb-hover: #2a5278;
  --overlay-bg: rgba(4, 8, 18, 0.8);
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --row-selected: rgba(34, 211, 238, 0.08);
  --row-hover: rgba(34, 211, 238, 0.03);
}

[data-theme="light"] {
  --bg: #e8f0f6;
  --surface: #ffffff;
  --surface-alt: #eef5fa;
  --surface-hover: #e2ecf4;
  --border: #bed0e0;
  --border-light: #d0dfe8;
  --text: #1a2a3a;
  --text-secondary: #506878;
  --text-muted: #8aa0b0;
  --accent: #0891b2;
  --accent-hover: #0e7490;
  --accent-text: #ffffff;
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.08);
  --warn: #d97706;
  --warn-bg: rgba(217, 119, 6, 0.08);
  --info: #2563eb;
  --info-bg: rgba(37, 99, 235, 0.06);
  --debug: #6b8298;
  --debug-bg: rgba(107, 130, 152, 0.06);
  --trace: #8aa0b0;
  --trace-bg: rgba(138, 160, 176, 0.06);
  --success: #059669;
  --badge-bg: rgba(0,0,0,0.04);
  --scrollbar-track: #eef5fa;
  --scrollbar-thumb: #b0c8d8;
  --scrollbar-thumb-hover: #90aec4;
  --overlay-bg: rgba(10, 40, 70, 0.3);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --row-selected: rgba(8, 145, 178, 0.08);
  --row-hover: rgba(8, 145, 178, 0.03);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

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

.btn-secondary {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ----- Topbar ----- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.logo svg {
  flex-shrink: 0;
}

.logo-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.topbar-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--success);
  background: rgba(78, 202, 139, 0.08);
  border: 1px solid rgba(78, 202, 139, 0.2);
  border-radius: 20px;
  user-select: none;
}

/* Theme toggle */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Export dropdown */
.export-dropdown {
  position: absolute;
  top: 100%;
  right: 60px;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  padding: 4px;
  z-index: 200;
}

.export-dropdown.open {
  display: flex;
}

.export-dropdown .btn {
  justify-content: flex-start;
  width: 100%;
  border-radius: var(--radius-sm);
}

/* ----- Welcome Screen ----- */
.welcome-screen {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.welcome-content {
  text-align: center;
  max-width: 400px;
  padding: 40px;
}

.welcome-icon {
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.7;
}

.welcome-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.welcome-content p {
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.welcome-formats {
  font-size: 12px;
  color: var(--text-muted) !important;
  margin-bottom: 20px !important;
}

.welcome-formats strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ----- Drop Overlay ----- */
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--overlay-bg);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.drop-overlay.active {
  display: flex;
}

.drop-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  padding: 48px;
  border: 2px dashed var(--accent);
  border-radius: 16px;
  background: var(--surface);
}

/* ----- Main Content ----- */
.main-content {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ----- Stats Bar ----- */
.stats-bar {
  height: var(--stats-h);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  transition: background var(--transition), border-color var(--transition);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.stat-item:last-child {
  border-right: none;
}

.stat-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.stat-value {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text);
}

.stat-error .stat-value { color: var(--error); }
.stat-warn .stat-value { color: var(--warn); }
.stat-info .stat-value { color: var(--info); }
.stat-debug .stat-value { color: var(--debug); }
.stat-filename .stat-value { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

/* ----- Timeline Sparkline ----- */
.timeline {
  height: var(--timeline-h);
  padding: 6px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.timeline-bars {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 100%;
  overflow: hidden;
}

.timeline-bar {
  flex: 1;
  min-width: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 1px 1px 0 0;
  overflow: hidden;
  cursor: pointer;
  transition: opacity var(--transition);
}

.timeline-bar:hover {
  opacity: 0.8;
}

.tbar-error { background: var(--error); }
.tbar-warn  { background: var(--warn); }
.tbar-info  { background: var(--info); }
.tbar-debug { background: var(--debug); }
.tbar-trace { background: var(--trace); }

.tbar-segment {
  width: 100%;
  min-height: 0;
  transition: height var(--transition);
}

/* ----- Filter Bar ----- */
.filter-bar {
  height: var(--filter-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.filter-levels {
  display: flex;
  gap: 4px;
}

.level-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.level-toggle:hover {
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.level-toggle.active {
  background: var(--badge-bg);
  border-color: var(--border-light);
  color: var(--text);
}

.level-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.level-dot-error { background: var(--error); }
.level-dot-warn  { background: var(--warn); }
.level-dot-info  { background: var(--info); }
.level-dot-debug { background: var(--debug); }
.level-dot-trace { background: var(--trace); }

.level-toggle:not(.active) .level-dot {
  opacity: 0.3;
}

.filter-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 360px;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 5px 60px 5px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.search-input::placeholder {
  color: var(--text-muted);
}

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

.regex-toggle {
  position: absolute;
  right: 4px;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  padding: 2px 6px !important;
  opacity: 0.5;
}

.regex-toggle.active {
  opacity: 1;
  color: var(--accent) !important;
  background: var(--row-selected) !important;
}

.filter-count {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ----- Log Table ----- */
.log-table-wrap {
  flex: 1;
  overflow: auto;
  background: var(--bg);
  position: relative;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.log-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.log-table th {
  padding: 6px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
  transition: background var(--transition);
}

.col-num   { width: 52px; }
.col-time  { width: 170px; }
.col-level { width: 72px; }
.col-source { width: 130px; }
.col-msg   { width: auto; }

.log-table td {
  padding: 4px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition);
}

.log-table tbody tr {
  cursor: pointer;
  transition: background var(--transition);
}

.log-table tbody tr:hover {
  background: var(--row-hover);
}

.log-table tbody tr.selected {
  background: var(--row-selected);
}

.log-table tbody tr.level-error {
  border-left: 2px solid var(--error);
}

.log-table tbody tr.level-warn {
  border-left: 2px solid var(--warn);
}

.row-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.row-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.row-msg {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}

.row-source {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Level badges */
.level-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.level-badge-error { background: var(--error-bg); color: var(--error); }
.level-badge-warn  { background: var(--warn-bg); color: var(--warn); }
.level-badge-info  { background: var(--info-bg); color: var(--info); }
.level-badge-debug { background: var(--debug-bg); color: var(--debug); }
.level-badge-trace { background: var(--trace-bg); color: var(--trace); }

.table-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* Search highlight */
.search-highlight {
  background: rgba(232, 164, 76, 0.3);
  border-radius: 2px;
  padding: 0 1px;
}

/* ----- Pagination ----- */
.pagination {
  height: var(--pagination-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.page-info {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ----- Detail Panel ----- */
.detail-panel {
  height: 200px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), border-color var(--transition);
}

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

.detail-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.detail-actions {
  display: flex;
  gap: 4px;
}

.detail-body {
  flex: 1;
  overflow: auto;
  padding: 10px 16px;
  display: flex;
  gap: 20px;
}

.detail-fields {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-content: flex-start;
}

.detail-field {
  display: flex;
  gap: 6px;
  font-size: 12px;
}

.detail-field-key {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 70px;
}

.detail-field-value {
  font-family: var(--font-mono);
  color: var(--text);
  word-break: break-all;
}

.detail-raw {
  flex: 1;
  min-width: 0;
}

.detail-raw-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.detail-raw-content {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 120px;
}

/* ----- Modal ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay-bg);
  backdrop-filter: blur(6px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 440px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  overflow: hidden;
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-body {
  padding: 16px 20px;
}

.tour-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tour-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tour-step-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--accent);
}

.tour-step strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.tour-step p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-footer {
  padding: 12px 20px 16px;
  display: flex;
  justify-content: flex-end;
}

/* ----- Toast ----- */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  pointer-events: auto;
  animation: toastIn 0.2s ease, toastOut 0.2s ease 2.6s forwards;
}

.toast-success { border-color: var(--success); color: var(--success); }
.toast-error   { border-color: var(--error); color: var(--error); }
.toast-info    { border-color: var(--info); color: var(--info); }

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

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(12px); }
}

/* ----- Welcome Buttons ----- */
.welcome-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- Paste Modal ----- */
.paste-modal {
  width: 640px;
  max-width: 92vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.paste-modal .modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.paste-textarea {
  flex: 1;
  min-height: 280px;
  max-height: 50vh;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.65;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease;
}

.paste-textarea:focus {
  border-color: var(--accent);
}

.paste-textarea::placeholder {
  color: var(--text-muted);
}

.paste-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.paste-modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.paste-line-count {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

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

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .topbar-subtitle { display: none; }
  .privacy-badge { display: none; }
  .col-source { display: none; }
  .col-time { width: 130px; }

  .filter-bar {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 12px;
    gap: 8px;
  }

  .filter-levels {
    flex-wrap: wrap;
  }

  .filter-search {
    max-width: none;
    order: -1;
    width: 100%;
  }

  .detail-body {
    flex-direction: column;
  }

  .stats-bar {
    height: auto;
    flex-wrap: wrap;
    padding: 6px 12px;
    gap: 4px;
  }

  .stat-item {
    padding: 2px 8px;
  }
}

@media (max-width: 480px) {
  .col-time { width: 100px; }
  .col-level { width: 56px; }
  .level-badge { font-size: 9px; padding: 1px 4px; }
  .topbar { padding: 0 10px; }
}

/* ----- Utility ----- */
.hidden { display: none !important; }
