/* Minimal tab layout */

:root {
  --bg: #09090b;
  --bg-elevated: #111114;
  --surface: #141417;
  --surface-2: #1a1a1f;
  --surface-3: #242429;
  --accent: #fafafa;
  --accent-brand: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.1);
  --text: #fafafa;
  --text-muted: #71717a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: none;
  --shadow-lg: none;
  --transition: 0.18s ease;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: #fff;
  --surface: #fff;
  --surface-2: #f4f4f5;
  --surface-3: #e4e4e7;
  --accent: #18181b;
  --accent-brand: #0891b2;
  --accent-soft: rgba(8, 145, 178, 0.08);
  --text: #18181b;
  --text-muted: #71717a;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
}

body {
  background: var(--bg);
  padding: 0 1rem 4rem;
}

body::before {
  display: none;
}

.container {
  max-width: min(1200px, calc(100vw - 2rem));
  padding-top: 0.75rem;
}

/* Header */
.site-header {
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.site-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.site-brand h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: unset;
}

.site-header-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.site-header-meta .dot {
  opacity: 0.4;
  margin: 0 0.2rem;
}

/* App tabs */
.app-tabs {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  margin-bottom: 1.25rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.app-tabs-scroll {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.app-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

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

.app-tab.active {
  color: var(--text);
  background: var(--surface-2);
}

.app-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0.15rem;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--accent-brand);
  border-radius: 999px;
}

.app-tabs-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.app-icon-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.app-icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* Tab panels */
.app-tab-panel {
  animation: tabIn 0.2s ease both;
}

.app-tab-panel[hidden] {
  display: none !important;
}

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

/* Workout tab */
.workout-subtabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  padding: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.workout-subtab {
  appearance: none;
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

.workout-subtab.active {
  background: var(--surface-2);
  color: var(--text);
}

.workout-progress {
  margin-bottom: 1.25rem;
}

.workout-progress .progress-bar {
  height: 3px;
  background: var(--surface-3);
}

.workout-progress .progress-fill {
  background: var(--accent-brand);
  box-shadow: none;
}

.day-select-row {
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.day-select-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-size: 0.82rem;
  padding: 0.75rem 0.85rem;
}

.day-select-btn.active {
  border-color: var(--border-strong);
  box-shadow: none;
  background: var(--surface-2);
  color: var(--text);
}

.day-select-btn.active::after {
  display: none;
}

.active-day-banner {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0 0 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Cards — flat minimal */
.program-section,
.score-section,
.body-panel,
.day-card,
.schedule-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.program-section::before {
  display: none;
}

.program-section-head h3,
.score-section-head h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.finish-session-btn {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-size: 0.82rem;
}

[data-theme="light"] .finish-session-btn {
  background: #18181b;
  color: #fff;
}

.finish-session-btn:not(:disabled):hover {
  opacity: 0.88;
  transform: none;
}

.program-ring {
  background: conic-gradient(
    from -90deg,
    var(--accent-brand) 0%,
    var(--accent-brand) calc(var(--program-pct, 0) * 1%),
    var(--surface-3) calc(var(--program-pct, 0) * 1%)
  ) !important;
}

.exercise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.exercise-card:hover {
  transform: none;
  border-color: var(--border-strong);
  box-shadow: none;
}

.exercise-card.is-done {
  background: var(--surface-2);
}

.exercise-card.is-done .complete-btn {
  background: var(--accent-brand);
  box-shadow: none;
}

.complete-btn {
  border-color: var(--border-strong);
}

.score-explainer {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0 0 0.85rem;
}

.score-flow-step {
  background: transparent;
  border: 1px solid var(--border);
  font-size: 0.72rem;
}

.score-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.muscle-score-card {
  border-radius: var(--radius-sm);
}

.muscle-score-card:hover {
  transform: none;
}

.body-panel-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.body-panel-header h2 {
  font-size: 1rem;
}

.week-day {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
  min-height: 100px;
}

.week-day:hover {
  transform: none;
  border-color: var(--border-strong);
}

.week-day.is-today {
  border-color: var(--accent-brand);
  box-shadow: none;
}

.week-day-trained {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.week-day-active {
  border-color: var(--accent-brand);
  background: color-mix(in srgb, var(--accent-brand) 8%, var(--surface));
}

.week-day-future {
  opacity: 0.7;
}

.week-day-date {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.schedule-week-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

#scheduleWeekRange {
  flex: 1;
  min-width: 8rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.session-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.session-date-row .program-date-label {
  margin-bottom: 0;
}

.schedule-section h2 {
  font-size: 0.95rem;
  background: none;
  font-weight: 700;
}

.schedule-note {
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  border: none;
}

.program-days-section {
  margin-bottom: 0.85rem;
}

.program-days-tabs-wrap {
  padding: 0.75rem 0.85rem 0.25rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.program-days-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: min-content;
}

.program-day-tab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 2.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.program-day-tab.active {
  border-color: var(--accent-brand, var(--accent));
  background: var(--accent-soft);
  color: var(--accent-brand, var(--accent));
}

.program-day-tab.is-completed .program-day-tab-num::after {
  content: " ✓";
  color: var(--green);
  font-size: 0.65rem;
}

.program-day-detail {
  padding: 0.85rem;
}

.program-day-detail-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.program-day-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.program-day-detail-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.program-day-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.program-day-status.is-completed {
  background: var(--green-soft);
  color: var(--green);
}

.program-day-status.is-current {
  background: var(--orange-soft);
  color: var(--orange);
}

.program-day-status.is-pending {
  background: var(--surface-3);
  color: var(--text-muted);
}

.program-day-date-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.program-day-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.program-day-go-btn {
  align-self: flex-start;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--accent-brand, var(--accent));
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-brand, var(--accent));
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.tab-program-actions {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.program-date-block {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.program-date-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.program-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.program-date-input {
  flex: 1;
  min-width: 140px;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
}

.program-date-input:focus {
  outline: none;
  border-color: var(--accent-brand);
}

.program-date-current {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.program-date-current strong {
  color: var(--text);
  font-weight: 700;
}

.program-date-calendar {
  font-size: 0.75rem;
  color: var(--accent-brand);
  margin-bottom: 0.25rem;
}

.program-date-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.data-btn {
  border-radius: 6px;
  font-size: 0.72rem;
}

.toast {
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.fab {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.fab:hover {
  background: var(--surface-3);
  color: var(--text);
  transform: none;
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.75rem;
}

/* PDF export tab */
.export-section-head h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.export-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.export-controls {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.export-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.export-day-select {
  flex: 1;
  min-width: 10rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.export-preview-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}

.export-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.export-preview-head h4 {
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.export-preview-head p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.export-workout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.export-full-preview .print-day-section + .print-day-section {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.print-day-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.print-day-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 0.55rem;
}

.print-exercise-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.export-exercise-row,
.print-exercise-row {
  display: grid;
  grid-template-columns: 1.75rem 4.5rem 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.print-ex-num {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-brand);
  text-align: center;
  line-height: 1;
}

.print-ex-icons {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}

.print-ex-body {
  min-width: 0;
}

.print-ex-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.print-ex-body .export-ex-en {
  margin-bottom: 0.15rem;
}

.print-ex-body .export-ex-reps {
  margin-bottom: 0;
}

.export-exercise-card,
.print-exercise-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.export-ex-icons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.export-tool-icon,
.export-body-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.export-tool-icon {
  width: 56px;
  height: 56px;
}

.export-tool-icon svg {
  width: 48px;
  height: 48px;
}

.export-tool-icon img,
.export-ex-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.export-body-icon {
  width: 44px;
  height: 72px;
}

.export-body-icon svg {
  width: 100%;
  height: 100%;
}

.export-ex-group {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-brand);
  margin-bottom: 0.2rem;
}

.export-ex-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.export-ex-en {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  direction: ltr;
  text-align: right;
}

.export-ex-reps {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.export-ex-equipment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.export-eq-tag {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.export-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
}

#printReportRoot {
  display: none;
}

body.is-printing-report #printReportRoot {
  display: block;
}

@media print {
  body.is-printing-report .container,
  body.is-printing-report .fab,
  body.is-printing-report .toast {
    display: none !important;
  }

  body.is-printing-report #printReportRoot {
    display: block !important;
  }

  .print-report {
    font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    direction: rtl;
    color: #111;
    max-width: 100%;
    padding: 0;
  }

  .print-full-program {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .print-report-header {
    text-align: center;
    margin-bottom: 3mm;
    padding-bottom: 2mm;
    border-bottom: 2px solid #0891b2;
  }

  .print-report-brand {
    font-size: 8pt;
    color: #0891b2;
    font-weight: 600;
    margin-bottom: 0.5mm;
  }

  .print-report-header h1 {
    font-size: 14pt;
    margin: 0 0 0.5mm;
    color: #111;
  }

  .print-report-meta {
    font-size: 8pt;
    color: #555;
    margin: 0;
  }

  .print-day-section {
    margin-bottom: 2.5mm;
  }

  .print-day-section + .print-day-section {
    margin-top: 1.5mm;
    padding-top: 1.5mm;
    border-top: 1px dashed #ccc;
  }

  .print-day-title {
    font-size: 8.5pt;
    font-weight: 800;
    margin: 0 0 0.3mm;
    color: #111;
  }

  .print-day-meta {
    font-size: 7pt;
    color: #666;
    margin: 0 0 1.2mm;
  }

  .print-exercise-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1mm;
  }

  .print-exercise-row {
    display: grid;
    grid-template-columns: 5mm 14mm 1fr;
    gap: 1.5mm;
    align-items: center;
    padding: 1mm 1.5mm;
    border: 1px solid #ddd;
    border-radius: 2px;
    break-inside: avoid;
    page-break-inside: avoid;
    background: #fff;
  }

  .print-ex-num {
    font-size: 7pt;
    font-weight: 800;
    color: #0891b2;
    text-align: center;
  }

  .print-exercise-row .print-ex-icons {
    display: flex;
    flex-direction: column;
    gap: 0.5mm;
    align-items: center;
  }

  .print-exercise-row .export-tool-icon {
    width: 11mm;
    height: 11mm;
    border-color: #ddd;
  }

  .print-exercise-row .export-tool-icon svg {
    width: 9mm;
    height: 9mm;
  }

  .print-exercise-row .export-body-icon {
    width: 11mm;
    height: 14mm;
    border-color: #ddd;
  }

  .print-exercise-row .export-ex-group {
    font-size: 6pt;
    color: #0891b2;
    margin-inline-end: 1mm;
  }

  .print-exercise-row .export-ex-name {
    font-size: 7.5pt;
    margin: 0;
    display: inline;
  }

  .print-exercise-row .export-ex-en {
    font-size: 6pt;
    margin: 0;
    color: #666;
    line-height: 1.2;
  }

  .print-exercise-row .export-ex-reps {
    font-size: 7pt;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
  }

  .print-ex-title-line {
    margin-bottom: 0.3mm;
  }

  .print-workout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5mm;
  }

  .print-exercise-card {
    display: grid;
    grid-template-columns: 14mm 1fr;
    gap: 2mm;
    padding: 2mm;
    border: 1px solid #ddd;
    border-radius: 3px;
    break-inside: avoid;
    page-break-inside: avoid;
    background: #fff;
  }

  .print-exercise-card .export-ex-icons {
    gap: 1mm;
  }

  .print-exercise-card .export-tool-icon {
    width: 12mm;
    height: 12mm;
    border-color: #ddd;
  }

  .print-exercise-card .export-tool-icon svg {
    width: 10mm;
    height: 10mm;
  }

  .print-exercise-card .export-body-icon {
    width: 12mm;
    height: 18mm;
    border-color: #ddd;
  }

  .print-exercise-card .export-ex-group {
    font-size: 7pt;
    color: #0891b2;
  }

  .print-exercise-card .export-ex-name {
    font-size: 8.5pt;
    margin: 0;
  }

  .print-exercise-card .export-ex-en {
    font-size: 6.5pt;
    margin: 0 0 0.5mm;
    color: #666;
  }

  .print-exercise-card .export-ex-reps {
    font-size: 7.5pt;
    margin: 0 0 0.5mm;
  }

  .print-exercise-card .export-eq-tag {
    font-size: 6pt;
    padding: 0.3mm 1mm;
    border-color: #ddd;
    background: #f8f8f8;
  }

  .print-report-footer {
    margin-top: 2mm;
    padding-top: 1.5mm;
    border-top: 1px solid #ddd;
    font-size: 6.5pt;
    color: #888;
    text-align: center;
  }

  @page {
    size: A4 portrait;
    margin: 6mm;
  }
}

@media (max-width: 640px) {
  .app-tab {
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
  }

  .site-brand h1 {
    font-size: 1.2rem;
  }
}
