/* Community UI: responsive navigation, focused practice flows, and honest empty states. */
:root {
  --font-sans: "Inter", sans-serif;
  --sidebar-width: 236px;
  --hq-serif: Georgia, "Times New Roman", serif;
  --bg-dark: #111d19;
  --bg-panel: #182923;
  --sidebar-bg: #14241e;
  --text-primary: #f2f5ef;
  --text-secondary: #b8c8be;
  --text-muted: #a8b9ae;
  --border-color: #334a3d;
  --border-light: #53745f;
  --primary-solid: #8dd6b1;
  --primary-light: #244434;
  --primary-grad: linear-gradient(#307c57, #276d4b);
  --accent-gold: #dbbb7f;
}
body.light-theme {
  --bg-dark: #f7f8f3;
  --bg-panel: #fff;
  --sidebar-bg: #fff;
  --text-primary: #203c30;
  --text-secondary: #64736a;
  --text-muted: #65776b;
  --border-color: #e1e7dd;
  --border-light: #b2c4b5;
  --primary-solid: #276b4b;
  --primary-light: #eaf3e9;
  --bg-card-sub: #f6f8f3;
  --bg-ayah-box: #f8faf5;
  --accent-gold: #906b2b;
}
body {
  font-size: 14px;
  line-height: 1.55;
  overflow-x: visible;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 3px solid #ba7927;
  outline-offset: 4px;
}
a {
  color: inherit;
}
.hq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none !important;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  z-index: 9999;
  padding: 12px 20px;
  background: var(--bg-panel);
}
.skip-link:focus {
  transform: none;
}
.sidebar {
  padding: 32px 22px 20px;
  backdrop-filter: none;
  overflow: auto;
}
.brand {
  text-decoration: none;
  gap: 10px;
  color: var(--text-primary);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 46px;
}
.brand-icon {
  width: 36px;
  height: 40px;
  border-radius: 12px 12px 5px 5px;
  box-shadow: none;
  background: #286147;
  color: #fff;
}
.brand-icon .hq-icon {
  width: 23px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.45px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 1px;
}
.nav-eyebrow,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: var(--text-secondary);
}
.nav-eyebrow {
  padding-left: 13px;
  margin-bottom: 13px;
}
.nav-menu {
  gap: 6px;
}
.nav-item a {
  padding: 12px 14px;
  gap: 12px;
  border-radius: 8px;
  font-size: 13px;
  min-height: 48px;
}
.nav-item.active a {
  border-color: transparent;
  color: var(--primary-solid);
  font-weight: 600;
  background: var(--primary-light);
}
.nav-item.active a:after {
  content: "";
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.sidebar-mission {
  margin: 48px 4px 30px;
  padding: 22px 16px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}
.mission-mark {
  color: var(--primary-solid);
}
.sidebar-mission h3 {
  margin: 12px 0 6px;
  font-size: 14px;
}
.sidebar-mission p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.tag {
  display: inline-flex;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-solid);
  background: var(--primary-light);
  white-space: nowrap;
}
.tag.neutral {
  background: var(--bg-card-sub);
  color: var(--text-secondary);
}
.profile-shortcut {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--border-color);
  background: transparent;
  padding: 20px 0 10px;
  color: var(--text-primary);
  text-align: left;
  width: 100%;
}
.profile-shortcut strong {
  font-size: 12px;
}
.profile-shortcut small {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.theme-shortcut {
  display: flex;
  gap: 10px;
  align-items: center;
  background: none;
  border: 0;
  padding: 12px 0;
  color: var(--text-secondary);
  min-height: 44px;
  font-size: 11px;
}
.theme-shortcut .hq-icon {
  width: 17px;
}
.theme-shortcut svg[hidden] {
  display: none;
}
.main-content {
  min-width: 0;
  width: calc(100% - var(--sidebar-width));
  padding: 0 42px 24px;
}
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}
.topbar-location {
  font-size: 12px;
  color: var(--text-secondary);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.preview-label {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}
.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
  color: var(--text-primary);
  display: grid;
  place-items: center;
}
.icon-button .hq-icon {
  width: 18px;
}
.mobile-brand {
  display: none;
}
.app-section {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.page-intro .eyebrow {
  font-size: 9px;
  letter-spacing: 1.65px;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--hq-serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--primary-solid);
  font-size: 12px;
  font-weight: 600;
  border: 0;
  min-height: 44px;
  padding: 8px 0;
}
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 25px;
}
.home-primary,
.home-secondary {
  min-width: 0;
}
.recite-hero {
  display: flex;
  position: relative;
  overflow: hidden;
  min-height: 302px;
  background: #204d39;
  color: #fff;
  border-radius: 14px;
  padding: 30px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 65%;
}
.hero-kicker {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #c5dfca;
}
.recite-hero h2 {
  font-family: var(--hq-serif);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.14;
  margin: 17px 0 13px;
}
.recite-hero p {
  font-size: 12px;
  line-height: 1.8;
  color: #d4e1d6;
  max-width: 310px;
  margin-bottom: 22px;
}
.btn {
  min-height: 44px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
  padding: 11px 16px;
  gap: 12px;
  white-space: normal;
  line-height: 1.4;
}
.btn-primary {
  background: #2d714e;
  color: white;
  border: 1px solid #2d714e;
}
.btn-primary:hover {
  background: #225a3c;
  box-shadow: none;
  transform: none;
}
.btn-secondary {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.hero-button {
  display: inline-flex;
  background: #e9edcb;
  color: #244330;
}
.hero-button:hover {
  background: #f6f6df;
}
.hero-caption {
  display: block;
  color: #c4d9c8;
  font-size: 9px;
  margin-top: 13px;
}
.arch-art {
  position: absolute;
  right: -28px;
  bottom: -30px;
  width: 240px;
  height: 295px;
  border: 1px solid #ffffff29;
  border-radius: 140px 140px 0 0;
  transform: rotate(9deg);
  padding: 15px;
  background: linear-gradient(155deg, #40795a55, #122e24);
}
.arch-art:after {
  content: "";
  position: absolute;
  inset: 30px -28px -12px 30px;
  border-radius: 140px 140px 0 0;
  border: 1px solid #ffffff1a;
}
.arch-inner {
  height: 100%;
  border: 1px solid #c8d5a643;
  border-radius: 140px 140px 0 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
  color: #d5dab6;
}
.arch-inner > span {
  font-family: var(--font-arabic);
  font-size: 42px;
}
.art-book .hq-icon {
  width: 65px;
  height: 65px;
  stroke-width: 0.7;
}
.arch-inner small {
  font-size: 7px;
  letter-spacing: 1.8px;
}
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-row h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.section-row > span:not(.tag) {
  font-size: 10px;
  color: var(--text-secondary);
}
.home-primary > .section-row {
  margin: 25px 0 13px;
}
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.path-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 19px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  text-align: left;
}
.path-card > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.path-card strong {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}
.path-card small {
  display: block;
  font-size: 9px;
  color: var(--text-secondary);
}
.path-card > .hq-icon {
  width: 16px;
}
.tile-icon {
  width: 39px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
}
.mint {
  background: #edf4e9;
  color: #3b7552;
}
.sand {
  background: #f4eedf;
  color: #8b7046;
}
.path-card:hover,
.tool-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 3px 10px #15372206;
}
.panel,
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 11px;
  padding: 23px;
  backdrop-filter: none;
  box-shadow: none;
}
.panel h2 {
  font-size: 15px;
  font-weight: 600;
}
.next-practice {
  margin-top: 20px;
}
.practice-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 20px;
}
.surah-number {
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--bg-card-sub);
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.practice-row > div {
  flex: 1;
}
.practice-row h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
.practice-row p {
  font-size: 10px;
  color: var(--text-secondary);
}
.quiet-note {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.next-practice > .quiet-note {
  padding-top: 13px;
  border-top: 1px solid var(--border-color);
}
.community-note {
  display: flex;
  gap: 12px;
  margin: 23px 4px 0;
  padding: 0 0 10px;
}
.community-note > .hq-icon {
  width: 18px;
  color: var(--primary-solid);
}
.community-note h3 {
  font-size: 11px;
  margin-bottom: 5px;
}
.community-note p {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 510px;
}
.summary-count {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
}
.summary-count strong {
  font-family: var(--hq-serif);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.1;
}
.summary-count span {
  font-size: 11px;
  color: var(--text-secondary);
}
.revision-summary > p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 15px 0 20px;
}
.revision-summary .btn {
  width: 100%;
  justify-content: space-between;
  font-size: 11px;
}
.weekly-panel {
  margin-top: 20px;
}
.weekly-panel .section-row h2 {
  font-size: 12px;
}
.weekly-panel .hq-icon {
  width: 15px;
  color: var(--text-secondary);
}
.streak-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}
.streak-line strong {
  font-size: 13px;
  font-weight: 500;
}
.streak-line span {
  font-size: 10px;
  color: var(--text-secondary);
}
.weekly-bars {
  height: 100px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin: 15px 0 6px;
}
.day-bar-item {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--text-secondary);
}
.activity-track {
  height: 58px;
  width: 100%;
  max-width: 22px;
  background: var(--bg-card-sub);
  display: flex;
  align-items: flex-end;
  border-radius: 3px;
  overflow: hidden;
}
.activity-fill {
  width: 100%;
  background: #73a983;
  border-radius: 3px;
}
.activity-count {
  font-size: 9px;
}
.weekly-panel .quiet-note {
  font-size: 9px;
}
.free-note {
  margin: 23px 6px;
  padding: 0 12px;
  border-left: 2px solid #d3debd;
}
.free-note .eyebrow {
  font-size: 8px;
}
.free-note h3 {
  font-family: var(--hq-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  margin: 12px 0 10px;
}
.free-note p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.app-footer {
  font-size: 9px;
  margin-top: 34px;
  border-top: 1px solid var(--border-color);
  gap: 12px;
}
.notice {
  padding: 15px 18px;
  border: 1px solid var(--border-color);
  background: var(--primary-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.session-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
}
.session-form > p {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 8px;
}
.session-form fieldset {
  border: 0;
  margin: 24px 0;
}
.session-form legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.radio-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.radio-options label {
  display: flex;
  gap: 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
}
.radio-options label:has(:checked) {
  background: var(--primary-light);
  border-color: var(--primary-solid);
}
input[type="radio"] {
  accent-color: #286b4b;
  width: 18px;
}
.radio-options strong {
  font-size: 12px;
  display: block;
}
.radio-options small {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}
form label {
  font-size: 12px;
  font-weight: 500;
}
form select {
  display: block;
  width: 100%;
  min-height: 46px;
  border-radius: 7px;
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
  color: var(--text-primary);
  padding: 10px;
  margin-top: 8px;
}
.form-status {
  min-height: 24px;
}
.session-steps {
  list-style: none;
  counter-reset: step;
  margin: 22px 0;
}
.session-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 33px;
}
.session-steps li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary-solid);
  border-radius: 50%;
  font-size: 10px;
}
.session-steps strong {
  font-size: 12px;
}
.session-steps span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.session-layout .panel > .tile-icon {
  margin-bottom: 18px;
}
.fallback-card {
  padding: 24px 8px;
}
.fallback-card h3 {
  font-size: 14px;
}
.fallback-card p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 9px 0;
}
.teacher-offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.teacher-offers h2 {
  font-family: var(--hq-serif);
  font-size: 25px;
  font-weight: 400;
  margin: 13px 0 8px;
}
.teacher-offers p {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 420px;
}
.teacher-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0;
}
.empty-teachers {
  text-align: center;
  padding: 45px 25px;
}
.empty-teachers .tile-icon {
  margin-bottom: 18px;
}
.empty-teachers h2 {
  font-family: var(--hq-serif);
  font-size: 27px;
  font-weight: 400;
}
.empty-teachers p {
  max-width: 510px;
  margin: 15px auto 24px;
  color: var(--text-secondary);
  font-size: 12px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}
.tool-card {
  color: var(--text-primary);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.tool-card strong {
  font-size: 17px;
}
.tool-card span {
  font-size: 12px;
  color: var(--text-secondary);
}
/* Existing learning tools adapt to smaller viewports. */
.revision-cards-grid {
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.revision-card {
  min-width: 0;
  text-align: left;
  color: var(--text-primary);
  width: 100%;
  font-family: inherit;
  min-height: 140px;
}
.revision-card-header {
  flex-wrap: wrap;
}
.revision-card:hover {
  transform: none;
}
.reciter-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.reciter-main,
.reciter-sidebar {
  min-width: 0;
}
.ayah-words-deck {
  flex-wrap: wrap;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.ayah-box {
  width: 100%;
  min-width: 0;
}
.audio-player-bar,
.canvas-toolbar,
.canvas-tools-bar {
  flex-wrap: wrap;
}
.audio-ctrl-btn {
  min-height: 44px;
}
.form-input,
.form-select {
  min-height: 44px;
  max-width: 100%;
}
.modal-card {
  width: 100%;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: var(--bg-panel) !important;
}
.modal-close {
  min-width: 44px;
  min-height: 44px;
}
.modal-backdrop {
  padding: 20px;
}
.modal-header {
  gap: 12px;
}
.recording-controls-panel {
  max-width: 100%;
}
#audio-wave {
  max-width: 100%;
}
#writing-board {
  touch-action: none;
}
.canvas-guide {
  font-size: clamp(70px, 18vw, 150px);
}
.reciter-test-bar {
  display: none;
}
.feedback-item:has(#metric-qalqalah),
.feedback-item:has(#metric-ghunnah) {
  display: none;
}
.mobile-bottom-nav .hq-icon {
  stroke: currentColor;
  fill: none;
}
.mobile-nav-item {
  text-decoration: none;
}
.form-status:empty {
  margin: 0;
}
.section-header {
  margin-bottom: 25px;
}
.toast-container {
  max-width: calc(100vw - 32px);
}
@media (min-width: 1600px) {
  .main-content {
    padding-left: 65px;
    padding-right: 65px;
  }
  .home-columns {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .recite-hero {
    min-height: 330px;
  }
  .arch-art {
    right: 25px;
    width: 270px;
    height: 320px;
  }
  .hero-copy {
    max-width: 60%;
  }
  .recite-hero h2 {
    font-size: 45px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 210px;
  }
  .sidebar {
    padding: 28px 16px;
  }
  .main-content {
    padding-left: 26px;
    padding-right: 26px;
  }
  .home-columns {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 18px;
  }
  .recite-hero {
    padding: 25px;
  }
  .arch-art {
    right: -55px;
    opacity: 0.65;
  }
  .hero-copy {
    max-width: 78%;
  }
  .recite-hero h2 {
    font-size: 34px;
  }
  .path-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 20px;
  }
  .practice-row {
    flex-wrap: wrap;
  }
  .practice-row .btn {
    margin-left: 56px;
  }
  .home-primary > .section-row > span {
    display: none;
  }
  .section-title {
    font-size: 32px;
  }
  .revision-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  :root {
    --sidebar-width: 190px;
  }
  .sidebar {
    padding: 25px 13px;
  }
  .brand {
    font-size: 19px;
  }
  .nav-item a {
    font-size: 12px;
    padding: 12px 10px;
  }
  .sidebar-mission {
    margin-top: 30px;
  }
  .home-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .weekly-panel {
    margin: 0;
  }
  .free-note {
    display: none;
  }
  .path-grid {
    grid-template-columns: 1fr 1fr;
  }
  .path-card {
    padding: 15px 12px;
  }
  .path-card .tile-icon {
    display: none;
  }
  .practice-row .btn {
    margin-left: 0;
  }
  .arch-art {
    right: 10px;
    opacity: 1;
  }
  .hero-copy {
    max-width: 62%;
  }
  .session-layout {
    grid-template-columns: 1fr;
  }
  .teacher-offers {
    gap: 15px;
  }
  .teacher-filters {
    gap: 12px;
  }
  .reciter-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .reciter-sidebar {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 0 22px calc(96px + env(safe-area-inset-bottom));
  }
  .topbar {
    height: 72px;
    margin-bottom: 26px;
  }
  .topbar-location {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.7px;
  }
  .mobile-brand .hq-icon {
    width: 22px;
    color: var(--primary-solid);
  }
  .topbar-actions {
    gap: 12px;
  }
  .preview-label {
    font-size: 9px;
  }
  .icon-button {
    width: 42px;
    height: 42px;
  }
  .page-intro {
    align-items: flex-start;
  }
  .page-intro > .text-button {
    display: none;
  }
  .section-title {
    font-size: 32px;
  }
  .section-subtitle {
    font-size: 12px;
  }
  .page-intro .eyebrow {
    font-size: 8px;
  }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--bg-panel) !important;
    border-top: 1px solid var(--border-color);
    backdrop-filter: none;
    box-shadow: 0 -4px 18px #1e3a2910;
    z-index: 100;
  }
  .mobile-nav-item {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    font-family: inherit;
    font-size: 9px;
    color: var(--text-secondary);
    border-radius: 8px;
  }
  .mobile-nav-item.active {
    background: var(--primary-light);
    color: var(--primary-solid);
  }
  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
  }
  .mobile-nav-item span {
    font-size: 9px;
  }
  .home-columns {
    gap: 20px;
  }
  .home-secondary {
    gap: 15px;
  }
  .recite-hero {
    min-height: 290px;
    padding: 27px;
  }
  .hero-copy {
    max-width: 65%;
  }
  .arch-art {
    width: 220px;
    right: -20px;
  }
  .toast-container {
    bottom: 95px;
  }
  .app-footer {
    flex-wrap: wrap;
  }
  .section-header .section-title {
    font-size: 30px;
  }
  .detox-layout {
    grid-template-columns: 1fr;
  }
  .radio-options {
    gap: 9px;
  }
}
@media (max-width: 480px) {
  .main-content {
    padding-left: 18px;
    padding-right: 18px;
  }
  .topbar {
    margin-bottom: 23px;
  }
  .section-title {
    font-size: 29px;
  }
  .section-subtitle {
    max-width: 290px;
  }
  .recite-hero {
    min-height: 324px;
    padding: 25px 22px;
  }
  .hero-copy {
    max-width: 87%;
  }
  .recite-hero h2 {
    font-size: 35px;
  }
  .recite-hero p {
    max-width: 230px;
    font-size: 12px;
  }
  .arch-art {
    right: -124px;
    bottom: -38px;
    width: 240px;
    opacity: 0.45;
  }
  .hero-caption {
    font-size: 8px;
    max-width: 220px;
  }
  .path-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .path-card {
    padding: 16px;
  }
  .path-card .tile-icon {
    display: grid;
  }
  .path-card strong {
    font-size: 13px;
  }
  .path-card small {
    font-size: 10px;
  }
  .panel {
    padding: 20px;
  }
  .next-practice .section-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .practice-row {
    gap: 12px;
    margin-top: 20px;
  }
  .practice-row .btn {
    width: 100%;
    margin-top: 8px;
  }
  .practice-row p {
    font-size: 10px;
  }
  .home-secondary {
    grid-template-columns: 1fr;
  }
  .revision-summary .summary-count {
    margin: 16px 0;
  }
  .weekly-panel {
    margin: 0;
  }
  .page-intro {
    flex-direction: column;
  }
  .page-intro .btn {
    width: 100%;
  }
  .revision-cards-grid {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .radio-options,
  .teacher-offers,
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .teacher-filters {
    grid-template-columns: 1fr;
  }
  .session-form .btn {
    width: 100%;
  }
  .empty-teachers h2 {
    font-size: 25px;
  }
  .preview-label {
    font-size: 8px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal-card {
    padding: 20px;
    max-height: calc(100dvh - 24px);
  }
  .reciter-main {
    padding: 16px;
  }
  .reciter-main .btn {
    padding: 10px 12px;
  }
  .reciter-main .form-select {
    width: 100%;
    max-width: 100% !important;
  }
  .canvas-toolbar {
    gap: 10px;
  }
  .form-input {
    min-width: 0;
  }
  .app-footer {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.detox-left-panel,
.detox-right-panel {
  min-width: 0;
}
.detox-layout .card > div[style*="display:flex"] {
  flex-wrap: wrap;
  gap: 12px;
}
.app-info-left {
  min-width: 0;
}
.app-info-left h4 {
  overflow-wrap: anywhere;
}
.app-toggle-item {
  gap: 8px;
}
.switch {
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .detox-layout .card {
    padding: 16px;
  }
  .focus-timer-dial {
    max-width: 100%;
  }
  form select,
  .form-input,
  .form-select {
    font-size: 16px;
  }
  .radio-options strong {
    font-size: 14px;
  }
  .radio-options small {
    font-size: 12px;
  }
  .session-form > p,
  .notice {
    font-size: 13px;
  }
}
.recall-placeholder {
  display: none;
}
.recall-active .recall-placeholder {
  display: block;
  padding: 24px;
  border: 1px dashed var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}
.recall-active #reciter .ayah-box {
  display: none;
}
