@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500&family=IBM+Plex+Mono:wght@400&display=swap');

:root {
  --navy: #060e1a;
  --dark-blue: #0f1b30;
  --navy-gate: #040a12;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #d1d5db;
  --border-light: #e5e7eb;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-section: #f1f5f9;
  --radius: 8px;
  --tab-height: 60px;
}

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

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

body {
  font-family: 'IBM Plex Sans', Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* === GATE OVERLAY === */

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
  min-height: 100vh;
  min-height: 100dvh;
}

.gate {
  text-align: center;
  width: 260px;
}

.gate h1 {
  color: #f0f0f3;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.8px;
  margin-bottom: 40px;
}

/* Hidden input covers the gate area for tap-to-focus */
.input-wrap { position: relative; height: 44px; }
.gate input {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  font-size: 16px;
  -webkit-appearance: none;
}

/* Dot indicators */
.dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  height: 44px;
  align-items: center;
  pointer-events: none;
}
.dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid #333;
  background: transparent;
  transition: background .15s ease-out, border-color .15s ease-out, transform .15s ease-out;
}
.dots span.filled {
  background: var(--fill, #60a5fa);
  border-color: var(--fill, #60a5fa);
  transform: scale(1.1);
}

/* States */
.gate.error .dots span { --fill: #ef4444; }
.gate.success .dots span.filled { --fill: #10b981; }

/* Shake on wrong code */
.shake { animation: shake .4s ease-out; }

.err {
  color: #ef4444;
  font-size: 12px;
  margin-top: 18px;
  min-height: 16px;
  transition: opacity .2s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(7px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* === TAB BAR NAVIGATION === */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tab-height);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.15s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.tab-item svg {
  opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s;
}

.tab-item:hover {
  color: rgba(255,255,255,0.7);
}

.tab-item:hover svg {
  opacity: 0.7;
}

.tab-item:active {
  transform: scale(0.92);
}

.tab-item.active {
  color: var(--accent);
}

.tab-item.active svg {
  opacity: 1;
  stroke: var(--accent);
}

.tab-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 4px;
}

/* === PAGE LAYOUT === */

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px calc(var(--tab-height) + 24px);
  min-height: 100vh;
}

.page-header {
  margin-bottom: 24px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* === HEADINGS === */

h1 {
  font-family: Inter, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

h2 {
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

h3 {
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-blue);
  margin-top: 20px;
  margin-bottom: 8px;
}

.page-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* === BREADCRUMB === */

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* === CARDS === */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37,99,235,0.10);
  transform: translateY(-2px);
}

.card:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(37,99,235,0.08);
}

.card-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 6px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--navy);
}

.card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* === WEEK CARDS === */

.week-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.week-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.week-card .desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

/* === PROGRESS === */

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === DOC VIEWER === */

.pdf-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
}

.pdf-container iframe {
  width: 100%;
  height: 80vh;
  border: none;
  display: block;
}

.doc-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: #1e40af; transform: scale(0.97); }
.btn-primary.marked { background: #16a34a; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }
.btn-outline:active { background: #bfdbfe; transform: scale(0.97); }

.btn-mark {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 8px 16px;
}
.btn-mark.marked {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

/* === TABLES === */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13.5px;
}

thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

tbody tr:nth-child(even) { background: var(--bg-section); }

/* === STATS ROW === */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  transition: border-color 0.15s;
}

.stat-card:first-child {
  border-color: var(--accent);
  background: linear-gradient(to bottom, #f0f5ff, var(--bg-card));
}

.stat-num {
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === SEARCH (Library) === */

.library-search {
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(37,99,235,0.12); }

/* === TODAY PAGE === */

.today-section {
  margin-bottom: 32px;
}

.today-section h2 {
  margin-top: 0;
  font-size: 16px;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.today-content { margin-bottom: 16px; }
.today-day-title { font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 16px; }

.today-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.today-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s;
}

.today-item:hover { border-color: var(--accent); background: #f8faff; }
.today-item:active { transform: scale(0.99); }
.today-item.done { opacity: 0.6; }
.today-item.done .today-check { color: #16a34a; }
.today-item.practice { border-left: 3px solid var(--accent); }
.today-item-time { margin-left: auto; color: var(--text-muted); font-size: 12px; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: border-color 0.15s, transform 0.15s;
}

.action-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.action-card:hover .action-icon-svg { color: var(--accent); }
.action-card:active { transform: translateY(0); }
.action-icon-svg { flex-shrink: 0; color: var(--text-muted); transition: color 0.15s; }
.action-text { font-size: 12px; font-weight: 600; }

.continue-card {
  display: block;
  position: relative;
  padding: 16px 40px 16px 16px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}

.continue-card:hover { background: var(--accent-light); }
.continue-card::after { content: '\2192'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 18px; }
.continue-title { font-weight: 600; font-size: 15px; }
.continue-cat { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.muted { color: var(--text-muted); font-size: 14px; }

/* === LEARN PAGE === */

.week-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.week-tab {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.week-tab:hover { border-color: var(--accent); }
.week-tab:active { transform: scale(0.95); }
.week-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.week-header { margin-bottom: 20px; }
.week-header h2 { margin-top: 0; border-bottom: none; padding-bottom: 0; }

.mastery-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0 4px;
}

.mastery-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.mastery-label {
  font-size: 12px;
  color: var(--text-muted);
}

.day-list { display: flex; flex-direction: column; gap: 8px; }

.day-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.day-card:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(37,99,235,0.06); }
.day-card:active { transform: scale(0.99); }
.day-card.locked { opacity: 0.5; pointer-events: none; }
.day-card.complete { border-left: 3px solid #16a34a; }

.day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.day-num { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.lock-icon { font-size: 14px; }
.check-icon { color: #16a34a; font-size: 16px; }

.day-title { margin: 4px 0 8px; font-size: 15px; }

.day-bar {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.day-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.day-detail {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.day-card.expanded .day-detail { display: block; }

.day-items { display: flex; flex-direction: column; gap: 4px; }

.day-item {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s;
}

.day-item:hover { background: var(--bg-section); }
.day-item.done { color: var(--text-muted); }
.day-item.practice { color: var(--accent); font-weight: 500; }
.practice-items { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-light); }

/* === REVIEW PAGE === */

.review-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.review-stat { font-size: 14px; color: var(--text-muted); }
.review-num { font-weight: 700; color: var(--navy); font-size: 20px; }

.review-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.review-mode {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.review-mode:hover { border-color: var(--accent); }
.review-mode:active { transform: scale(0.95); }
.review-mode.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.review-container { margin-bottom: 20px; }

.review-empty { text-align: center; padding: 40px; color: var(--text-muted); }

.review-fc { text-align: center; }
.review-fc-counter { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; font-weight: 500; letter-spacing: 0.02em; }
.review-fc-card {
  perspective: 800px;
  margin: 0 auto;
  max-width: 500px;
  min-height: 240px;
  cursor: pointer;
}

.review-fc-inner {
  position: relative;
  width: 100%;
  min-height: 240px;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.review-fc-card.flipped .review-fc-inner { transform: rotateY(180deg); }

.review-fc-front, .review-fc-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.6;
}

.review-fc-front { background: var(--bg-card); border: 1px solid var(--border-light); }
.review-fc-back { background: var(--dark-blue); color: #fff; transform: rotateY(180deg); }
.review-fc-source { font-size: 12px; color: var(--text-muted); margin: 8px 0 16px; }

.review-fc-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.review-complete { text-align: center; padding: 40px; }
.review-complete h2 { margin-top: 0; border-bottom: none; color: #16a34a; }

.review-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 16px;
}

.review-mcq-list { display: flex; flex-direction: column; gap: 16px; }

/* === LIBRARY PAGE === */

.filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-pill:hover { border-color: var(--accent); color: var(--text); }
.filter-pill:active { transform: scale(0.95); }
.filter-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.sort-row {
  margin-bottom: 16px;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.doc-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.doc-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(37,99,235,0.08); }
.doc-card:active { transform: translateY(0); box-shadow: none; }
.doc-card.read { border-left: 3px solid #16a34a; }

.doc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.doc-card h3 { margin: 0 0 6px; font-size: 15px; }
.doc-card p { font-size: 13px; color: var(--text-muted); line-height: 1.4; margin: 0; }

.doc-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-cat {
  background: var(--accent-light);
  color: var(--accent);
}

.diff-row { display: inline-flex; gap: 3px; align-items: center; }

.diff-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
}

.diff-dot.filled { background: var(--accent); }

.time-est { font-size: 12px; color: var(--text-muted); }
.week-badge { font-size: 11px; font-weight: 600; color: var(--accent); }

.read-check { color: #16a34a; font-size: 14px; }

.empty-state { text-align: center; padding: 40px; color: var(--text-muted); }

/* === PROGRESS PAGE === */

.progress-overview {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.progress-ring-wrap { position: relative; flex-shrink: 0; }

.progress-ring-bg {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 8;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.5s ease;
}

.progress-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.progress-summary { display: flex; flex-direction: column; gap: 6px; }
.progress-detail { font-size: 14px; color: var(--text); }
.progress-detail span { font-weight: 700; color: var(--navy); }

.progress-section { margin-bottom: 32px; }
.progress-section h2 { margin-top: 0; border-bottom: none; padding-bottom: 0; margin-bottom: 16px; }

.cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cat-label { font-size: 13px; min-width: 140px; color: var(--text); }

.cat-bar-wrap { display: flex; align-items: center; gap: 8px; flex: 1; }

.cat-bar {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.cat-pct { font-size: 12px; color: var(--text-muted); min-width: 36px; text-align: right; }

.settings-group { margin-bottom: 16px; }
.settings-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.settings-row { display: flex; gap: 8px; }
.settings-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
}

.btn-small {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-small:hover { background: var(--accent-hover); }

.btn-danger {
  padding: 8px 16px;
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
}

.btn-danger:hover { background: #fef2f2; }

/* === DOC PAGE === */

.doc-page .doc-header {
  margin-bottom: 16px;
}

.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.back-link:hover { text-decoration: underline; }

.doc-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.doc-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; line-height: 1.5; }

.doc-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* === DOC LIST === */

.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.doc-list li:last-child { border-bottom: none; }

.doc-list .check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
}

.doc-list .check.done {
  background: var(--accent);
  border-color: var(--accent);
}

.doc-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.doc-list a:hover { color: var(--accent); }

.doc-list .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

/* === MOBILE === */

@media (max-width: 768px) {
  .page-content { padding: 16px 16px calc(var(--tab-height) + 16px); }

  h1 { font-size: 22px; }

  .card-grid, .doc-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .pdf-container iframe {
    height: 60vh;
  }

  .gate-box h1 { font-size: 22px; }
}

@media (max-width: 480px) {
  .page-content { padding: 12px 12px calc(var(--tab-height) + 12px); }
  .pdf-container iframe { height: 50vh; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* === LEARNING WIDGETS === */

.learn-section {
  margin-top: 40px;
  border-top: 2px solid var(--border-light);
  padding-top: 32px;
}

.learn-heading {
  margin-top: 40px;
}

.widget-section {
  margin-bottom: 32px;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.widget-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* ── Flashcards ── */

.fc-deck {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}

.fc-due-badge {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.fc-viewport {
  perspective: 800px;
  margin: 16px 0;
}

.fc-card {
  width: 100%;
  min-height: 180px;
  cursor: pointer;
  position: relative;
}

.fc-inner {
  position: relative;
  width: 100%;
  min-height: 180px;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.fc-card.flipped .fc-inner {
  transform: rotateY(180deg);
}

.fc-front, .fc-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.fc-front {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  color: var(--text);
}

.fc-back {
  background: var(--dark-blue);
  color: #fff;
  transform: rotateY(180deg);
}

.fc-counter {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0;
}

.fc-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.fc-rate {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.fc-rate:hover {
  background: var(--bg-section);
  border-color: var(--accent);
}

.fc-rate:active {
  transform: scale(0.95);
}

.fc-rate[data-q="0"] { border-color: #ef4444; color: #ef4444; }
.fc-rate[data-q="2"] { border-color: #f59e0b; color: #f59e0b; }
.fc-rate[data-q="3"] { border-color: var(--accent); color: var(--accent); }
.fc-rate[data-q="4"] { border-color: #16a34a; color: #16a34a; }
.fc-rate[data-q="5"] { border-color: #7c3aed; color: #7c3aed; }

/* ── Multiple Choice ── */

.mcq-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}

.mcq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.mcq-item:last-child { border-bottom: none; }

.mcq-item.mastered {
  opacity: 0.6;
}

.mcq-question {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text);
}

.mcq-mastery {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.mcq-streak {
  font-size: 12px;
  color: var(--text-muted);
}

.mcq-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.mcq-option {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
}

.mcq-option:hover {
  background: var(--bg-section);
  border-color: var(--accent);
}

.mcq-option.selected {
  background: #dbeafe;
  border-color: var(--accent);
  font-weight: 500;
}

.mcq-option.correct {
  background: #dcfce7;
  border-color: #16a34a;
}

.mcq-option.incorrect {
  background: #fef2f2;
  border-color: #ef4444;
}

.mcq-lock-btn {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mcq-lock-btn:hover { background: var(--accent-hover); }
.mcq-lock-btn:active { background: #1e40af; transform: scale(0.97); }

.mcq-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
}

.mcq-correct { background: #dcfce7; border: 1px solid #16a34a; }
.mcq-incorrect { background: #fef2f2; border: 1px solid #ef4444; }

/* ── Fill in the Blank ── */

.fill-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}

.fill-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.fill-item:last-child { border-bottom: none; }

.fill-template {
  font-size: 15px;
  line-height: 2.2;
  color: var(--text);
}

.fill-input {
  width: 120px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: 'IBM Plex Mono', monospace;
  background: var(--bg-section);
  text-align: center;
}

.fill-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.fill-input.fill-correct {
  border-color: #16a34a;
  background: #dcfce7;
}

.fill-input.fill-wrong {
  border-color: #ef4444;
  background: #fef2f2;
}

.fill-hint-btn, .fill-check-btn {
  margin-top: 8px;
  margin-right: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.fill-check-btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.fill-hint {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  font-size: 13px;
  color: #92400e;
}

.fill-result {
  margin-top: 8px;
  font-size: 13px;
}

.fill-pass { color: #16a34a; font-weight: 600; }
.fill-fail { color: #ef4444; }
.fill-answer { color: var(--text-muted); font-size: 12px; }

/* ── AI Response / Feedback ── */

.ai-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}

.ai-prompt-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.ai-prompt-item:last-child { border-bottom: none; }

.ai-prompt-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.ai-textarea, .cold-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  background: var(--bg-section);
}

.ai-textarea:focus, .cold-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.ai-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-submit-btn, .cold-submit-btn {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ai-submit-btn:hover, .cold-submit-btn:hover { background: var(--accent-hover); }
.cold-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ai-loading {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.ai-feedback, .cold-feedback {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.ai-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  border: 3px solid;
  border-radius: 12px;
  padding: 6px 14px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.ai-section {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text);
}

.ai-error {
  color: #dc2626;
  font-size: 13px;
}

.ai-retry-btn {
  margin-left: 8px;
  padding: 4px 10px;
  border: 1px solid #dc2626;
  border-radius: 4px;
  background: transparent;
  color: #dc2626;
  font-size: 12px;
  cursor: pointer;
}

.ai-history-toggle {
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

.ai-history {
  margin-top: 8px;
  padding: 8px;
  background: var(--bg-section);
  border-radius: var(--radius);
}

.ai-hist-entry {
  font-size: 13px;
  padding: 4px 0;
  color: var(--text-muted);
}

.ai-hist-score {
  font-weight: 600;
  color: var(--text);
}

/* ── Cold Read Timer ── */

.cold-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}

.cold-item {
  padding: 16px 0;
}

.cold-prompt {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cold-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cold-timer-display {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  min-width: 120px;
}

.cold-timer-display.cold-warning { color: #f59e0b; }
.cold-timer-display.cold-urgent { color: #ef4444; }

.cold-start-btn, .cold-pause-btn, .cold-reset-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.cold-start-btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.cold-result-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.cold-time {
  font-size: 14px;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

/* ── Widget responsive ── */

@media (max-width: 768px) {
  .fc-controls {
    gap: 6px;
  }
  .fc-rate {
    padding: 6px 10px;
    font-size: 12px;
  }
  .cold-timer-display {
    font-size: 28px;
  }
  .ai-score {
    font-size: 16px;
    padding: 4px 10px;
  }
}

/* === ENTRANCE ANIMATIONS === */

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

.page-header {
  animation: fadeInUp 0.35s ease both;
}

.stats-row {
  animation: fadeInUp 0.35s ease 0.05s both;
}

.today-section,
.week-tabs,
.library-search,
.review-stats,
.progress-overview {
  animation: fadeInUp 0.35s ease 0.1s both;
}

.action-grid,
.filter-pills,
.review-mode-tabs,
.progress-section {
  animation: fadeInUp 0.35s ease 0.15s both;
}

.day-list,
.doc-grid,
.review-container {
  animation: fadeInUp 0.35s ease 0.2s both;
}

/* Staggered card entrance in doc grid */
.doc-card {
  animation: fadeInUp 0.3s ease both;
}

/* === PRINT === */

@media print {
  .tab-bar, .gate-overlay { display: none !important; }
}

/* === DAY HUB === */

.day-hub-header { padding: 16px 16px 12px; }
.day-hub-header h1 { font-size: 22px; margin: 4px 0 2px; }
.day-hub-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.day-hub-progress .day-bar { flex: 1; }
.day-hub-pct { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

.day-hub-section { padding: 0 16px 16px; }
.day-hub-section h2 { font-size: 16px; margin-bottom: 8px; }
.day-hub-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.day-hub-section-header h2 { margin-bottom: 0; }

.day-hub-items { display: flex; flex-direction: column; gap: 6px; }

.day-hub-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: border-color 0.15s; cursor: pointer;
}
.day-hub-item:hover { border-color: var(--accent); }
.day-hub-item.done { opacity: 0.7; }
.day-hub-item.done .day-hub-check { color: var(--accent); }
.day-hub-item.practice .day-hub-check { color: var(--text-muted); }

.day-hub-check { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.day-hub-item-info { flex: 1; min-width: 0; }
.day-hub-item-title { display: block; font-weight: 500; font-size: 14px; }
.day-hub-item-meta { display: block; font-size: 12px; color: var(--text-muted); }

.day-hub-dl {
  width: 32px; height: 32px; border-radius: 6px; display: flex;
  align-items: center; justify-content: center; font-size: 16px;
  color: var(--text-muted); background: var(--bg-section); text-decoration: none; flex-shrink: 0;
}
.day-hub-dl:hover { background: var(--accent); color: white; }

.day-hub-nav {
  display: flex; justify-content: space-between; padding: 16px;
  padding-bottom: calc(16px + var(--tab-height));
}

.today-view-day {
  font-size: 13px; font-weight: 500; color: var(--accent);
  text-decoration: none; margin-left: 8px;
}
.today-view-day:hover { text-decoration: underline; }

.widget-complete-btn {
  margin-top: 24px; width: 100%; padding: 14px;
  font-size: 16px; font-weight: 600;
}

.day-title a { color: inherit; text-decoration: none; }
.day-title a:hover { color: var(--accent); }

/* === AUDIO PLAYER === */
.audio-player-wrap {
  margin: 0 16px 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.audio-btn {
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: var(--accent);
  color: white; font-size: 16px;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.audio-btn:hover { background: var(--accent-hover); }
.audio-progress-wrap { flex: 1; min-width: 0; }
.audio-progress {
  height: 6px; background: var(--border-light);
  border-radius: 3px; cursor: pointer;
  position: relative; margin-bottom: 4px;
}
.audio-progress-fill {
  height: 100%; background: var(--accent);
  border-radius: 3px; width: 0%;
  transition: width 0.1s linear;
}
.audio-time {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}
.audio-speed {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  padding: 4px 8px; border-radius: 4px;
  background: var(--bg-section); flex-shrink: 0;
}
.audio-speed:hover { color: var(--accent); }

/* === CALC SCENARIO === */

.calc-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.calc-scenario-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-section);
  border-radius: var(--radius);
}

.calc-params {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.calc-param-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.calc-param-row:last-child { border-bottom: none; }
.calc-param-label { color: var(--text-muted); }
.calc-param-value { font-weight: 600; font-family: 'IBM Plex Mono', monospace; }

.calc-question { margin-bottom: 16px; }
.calc-q-prompt { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.calc-q-input-row { display: flex; align-items: center; gap: 8px; }

.calc-q-input {
  width: 120px;
  padding: 8px 12px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  background: var(--bg-card);
}

.calc-q-input:focus { border-color: var(--accent); outline: none; }
.calc-q-input.calc-correct { border-color: #16a34a; background: #f0fdf4; }
.calc-q-input.calc-wrong { border-color: #dc2626; background: #fef2f2; }
.calc-q-unit { font-size: 13px; color: var(--text-muted); }

.calc-q-check {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.calc-q-check:hover { background: var(--accent-hover); }
.calc-q-check:disabled { opacity: 0.5; cursor: default; }

.calc-q-result {
  margin-top: 8px;
  font-size: 13px;
  padding: 10px;
  border-radius: 6px;
}

.calc-pass { background: #f0fdf4; color: #166534; }
.calc-fail { background: #fef2f2; color: #991b1b; }

.calc-derivation {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .calc-q-input { width: 100px; font-size: 14px; }
  .calc-q-check { padding: 6px 12px; font-size: 12px; }
  .calc-param-row { font-size: 12px; }
}

/* === FEEDBACK FAB OVERRIDE (fix #8) ===
   Raises the feedback button above the 60px tab bar with a 20px gap,
   and pulls it 4px from the edge for better clearance. */
.fb-widget-btn {
  bottom: 80px !important;
  right: 20px !important;
}

/* === READER MODE OVERRIDES (BUILD 5 P1 / P2) ===
   When reader.js mounts, body[data-reader-mounted="true"] is set. The reader's
   own topbar replaces the global tab-bar at viewport top, and the inline PDF
   anchors in .doc-actions fold into a single chip inside the settings sheet
   (P2). Mark-as-Read button stays visible.
   Class hook for less-strict matchers: body.reader-mounted (mirror flag). */
body[data-reader-mounted="true"] .tab-bar,
body.reader-mounted .tab-bar {
  display: none !important;
}
body[data-reader-mounted="true"] .doc-actions a.btn-outline,
body.reader-mounted .doc-actions a.btn-outline {
  display: none !important;
}
body[data-reader-mounted="true"] .fb-widget-btn,
body.reader-mounted .fb-widget-btn {
  bottom: 70px !important;
}
/* P6 / RW-2726: hide legacy inline audio-player when reader-shell's listen
   chip + mini-player are active. Legacy audio-player.js continues loading
   the audio source via the manifest; visually demoted so the reader is
   the single audio surface. */
body[data-reader-mounted="true"] .audio-player-wrap,
body.reader-mounted .audio-player-wrap {
  display: none !important;
}

/* === REFINE PASS POLISH ===
   Targeted micro-improvements from REFINE audit. */

/* Mark as Read button — ensure it stays visible in dark reader mode */
body[data-reader-mounted="true"] .btn-primary#mark-btn,
body.reader-mounted .btn-primary#mark-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
body[data-reader-mounted="true"] .btn-primary#mark-btn:hover,
body.reader-mounted .btn-primary#mark-btn:hover {
  background: #1d4ed8;
}
body[data-reader-mounted="true"] .btn-primary#mark-btn.marked,
body.reader-mounted .btn-primary#mark-btn.marked {
  background: #16a34a;
}

/* Flashcard: softer shadow for premium feel */
.review-fc-front {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04) !important;
}

/* Review stats row: make timer sit flush with the counts */
.review-stats {
  align-items: baseline;
}
