.study-page {
  min-width: 320px;
  color: #12373a;
  background: #fff;
  font-family: var(--sans);
  overflow-x: hidden;
}

.study-page main {
  min-height: calc(100vh - 66px);
}

.study-header {
  height: 66px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 44px;
  background: #fff;
  border-bottom: 1px solid #d9e3e3;
  position: relative;
  z-index: 40;
}

.study-header .brand {
  margin: 0;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.study-header .brand__mark {
  width: 42px;
  height: 38px;
}

.study-header__nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 58px;
}

.study-header a {
  color: #111;
  text-decoration: none;
}

.study-header__nav a {
  font-size: 16px;
}

.study-header__account {
  margin-left: 84px;
  display: flex;
  align-items: center;
  gap: 38px;
}

.study-header__tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.study-header svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #07585a;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-profile {
  max-width: 190px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #154448;
  white-space: nowrap;
}

.study-profile > svg {
  width: 39px;
  height: 39px;
  padding: 5px;
  border: 1px solid #8db9b9;
  border-radius: 50%;
}

.study-profile > span:nth-child(2) {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.study-login {
  padding: 9px 20px;
  border: 1px solid #08706d;
  border-radius: 5px;
}

.study-controls {
  height: 110px;
  padding: 17px 32px;
  background: #fff;
  border-bottom: 1px solid #d1dddd;
  position: sticky;
  top: 0;
  z-index: 30;
}

.study-controls__form {
  height: 76px;
  display: grid;
  grid-template-columns: minmax(250px, 304px) 122px 132px 268px 160px 187px 58px;
  align-items: end;
  gap: 32px;
}

.study-select {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #17383b;
  font-size: 12px;
}

.study-select select {
  width: 100%;
  height: 49px;
  padding: 0 17px;
  color: #153c40;
  background: #fff;
  border: 1px solid #b9d1d2;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
}

.study-select select:focus {
  border-color: #087975;
  box-shadow: 0 0 0 3px rgba(8, 121, 117, .1);
}

.study-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.study-pager a {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #17484b;
  background: #fff;
  border: 1px solid #b7d0d1;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}

.study-pager a span {
  font-size: 31px;
  font-weight: 200;
}

.study-pager .study-pager__next {
  color: #fff;
  background: linear-gradient(135deg, #087a75, #00615e);
  border-color: #056b67;
}

.study-settings {
  width: 58px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #07585a;
  background: #f8fbfb;
  border: 1px solid #bfd4d5;
  border-radius: 6px;
  cursor: pointer;
}

.study-settings svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-app {
  min-height: calc(100vh - 176px);
  display: grid;
  grid-template-columns: 328px minmax(0, 1fr);
  background: linear-gradient(90deg, #f4fbfb 0, #fff 28%, #fff);
}

.study-sidebar {
  padding: 32px 22px;
  border-right: 1px solid #d4e0e0;
  background: linear-gradient(135deg, #f8fcfc, #f1f9f8 65%, #fff);
}

.continue-card {
  height: 160px;
  padding: 19px 20px 17px;
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  grid-template-rows: 38px 26px 18px 23px;
  align-items: center;
  color: #13474a;
  background: rgba(255, 255, 255, .46);
  border: 1px solid #c2dada;
  border-radius: 7px;
  text-decoration: none;
  position: relative;
}

.study-round-icon {
  grid-row: 1;
  display: grid;
  place-items: center;
}

.study-round-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #096062;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.continue-card strong {
  font-size: 15px;
}

.continue-card > span:nth-of-type(2) {
  grid-column: 1/3;
  font-size: 14px;
}

.continue-card i {
  grid-column: 1/3;
  height: 6px;
  display: block;
  background: #d5e2e2;
  border-radius: 5px;
  overflow: hidden;
}

.continue-card i b {
  height: 100%;
  display: block;
  background: #05726d;
  border-radius: inherit;
}

.continue-card small {
  grid-column: 1/3;
  font-size: 12px;
}

.continue-card em {
  grid-column: 3;
  grid-row: 2/4;
  font-size: 32px;
  font-style: normal;
  font-weight: 200;
}

.study-shortcuts {
  margin-top: 31px;
  display: flex;
  flex-direction: column;
}

.study-shortcuts a {
  height: 58px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #174b4e;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.study-shortcuts a > span, .study-shortcuts a > svg {
  width: 27px;
  font: 25px var(--serif);
  text-align: center;
}

.study-shortcuts svg {
  height: 27px;
  fill: none;
  stroke: #075e60;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-progress-card {
  height: 135px;
  margin-top: 30px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid #c5dcdc;
  border-radius: 7px;
}

.study-progress-card strong {
  font-size: 14px;
  font-weight: 500;
}

.study-progress-card strong i {
  margin: 0 7px;
  font-style: normal;
}

.study-progress-card > span {
  height: 9px;
  margin: 18px 0 15px;
  display: block;
  background: #fff;
  border: 1px solid #cad6d6;
  border-radius: 8px;
  overflow: hidden;
}

.study-progress-card > span b {
  height: 100%;
  display: block;
  background: #08736f;
  border-radius: inherit;
}

.study-progress-card small {
  font-size: 12px;
}

.study-reading {
  min-width: 0;
  padding: 0 48px 36px 24px;
}

.study-guidance {
  height: 68px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #2e4043;
  font-size: 14px;
}

.study-guidance svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #08706e;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-ayat {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.study-ayah {
  min-height: 132px;
  padding: 17px 26px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 15px;
  background: #fffefa;
  border: 1px solid #e6ded1;
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}

.study-ayah:focus-within, .study-ayah.is-selected {
  border-color: #08736f;
  box-shadow: 0 0 0 1px #08736f;
}

.study-ayah__number {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0b817b, #00615e);
  border: 0;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.study-ayah__number:hover {
  outline: 3px dashed #75c7c3;
  outline-offset: 4px;
}

.study-ayah__body {
  min-width: 0;
}

.study-ayah__arabic {
  min-height: 46px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0;
  color: #050505;
  font-family: "Traditional Arabic", "Arabic Typesetting", "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.35;
}

.study-word {
  margin: 0;
  padding: 3px 9px 3px 9px;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  /*border-radius: 6px;*/
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  position: relative;
}

    .study-word:hover, .study-word:focus {
        background: #FFF6D8 !important;
        border-color: #b3d4d1;
        outline: 0;
    }

    .study-word.mark-0 { /* unmarked */
        background: transparent;
        color: #171717;
    }

    .study-word.mark-1 { /* known */
        background: #e6f4f8; /* ##EEF7FA */
        color: #0B6685;
    }

    .study-word.mark-2 { /* underline */
        border-bottom: 2px solid #3B8A40;
        background: #e6f4f8;
        color: #0B6685;
   }

    .study-word.mark-3 { /* hilite */
        background: #FFF0B5;
        color: #0B6685;
    }

    .study-word.mark-6 { /* boxed */
        background: #e6f4f8; 
        color: #0B6685;
        border: 1px solid #3D8798;
    }

.study-word__tooltip {
    width: 160px;
    padding: 10px 12px;
    display: none;
    color: #142f32;
    background: #fff; 
    border: 1px solid #B7D3D8;
    box-shadow: 0 5px 15px rgba(0, 40, 42, .13);
    border-radius: 7px;
    direction: ltr;
    font: 13px/1.35 var(--sans);
    text-align: center;
    position: absolute;
    z-index: 25;
    left: 50%;
    top: calc(100% + 7px);
    transform: translateX(-50%);
}

.study-word__tooltip:before {
  content: "";
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid #9ec6c6;
  border-top: 1px solid #9ec6c6;
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%) rotate(45deg);
}

.study-word__tooltip strong, .study-word__tooltip small {
  display: block;
}

.study-word__tooltip small {
  margin-top: 5px;
}

.study-word:hover .study-word__tooltip, .study-word:focus .study-word__tooltip {
  display: block;
}

.study-ayah__translation {
  max-width: 830px;
  margin: 2px 0 10px;
  color: #25363a;
  font-size: 15px;
  line-height: 1.5;
}

.study-ayah__tools {
  display: flex;
  align-items: center;
  gap: 37px;
}

.study-ayah__tools button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #075b5d;
  background: none;
  border: 0;
  font-size: 13px;
  cursor: pointer;
}

.study-ayah__tools svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-setup-message {
  width: min(760px, calc(100% - 40px));
  margin: 80px auto;
  padding: 35px;
  background: #eff9f8;
  border: 1px solid #b9d7d6;
  border-radius: 10px;
}

.study-setup-message h1 {
  margin-top: 0;
  font: 600 34px var(--serif);
}

.study-antiforgery {
  display: none;
}

.study-drawer-backdrop {
  display: none;
  position: fixed;
  z-index: 89;
  inset: 0;
  background: rgba(6, 38, 40, .08);
}

.study-drawer-backdrop.is-open {
  display: block;
}

.study-drawer {
  width: 430px;
  height: calc(100vh - 62px);
  padding: 26px 25px 0;
  color: #14373a;
  background: #fff;
  border: 1px solid #cbdcdc;
  border-radius: 11px 0 0 0;
  box-shadow: -8px 0 25px rgba(8, 51, 53, .1);
  overflow-y: auto;
  position: fixed;
  z-index: 90;
  right: 0;
  top: 62px;
  transform: translateX(103%);
  transition: transform .22s ease;
}

.study-drawer.is-open {
  transform: translateX(0);
}

.study-drawer__close {
  width: 40px;
  height: 40px;
  color: #0e5053;
  background: none;
  border: 0;
  font: 35px/1 var(--sans);
  cursor: pointer;
  position: absolute;
  right: 17px;
  top: 15px;
}

.study-drawer h2 {
  margin: 0;
  color: #112f32;
  font-size: 21px;
}

.study-drawer h3, .study-drawer label {
  margin: 0 0 11px;
  display: block;
  color: #173b3e;
  font-size: 14px;
  font-weight: 600;
}

.word-drawer__heading {
  min-height: 145px;
  padding: 24px 0 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #c7dada;
}

.word-drawer__heading strong {
  font: 47px/1.2 "Traditional Arabic", "Arabic Typesetting", serif;
}

.word-drawer__heading span {
  margin-top: 12px;
  color: #111;
  font-size: 15px;
}

.drawer-section {
  padding: 20px 0;
  border-bottom: 1px solid #c7dada;
}

.drawer-section p {
  margin: 0 0 10px;
}

.drawer-section > a, .drawer-section > div > a {
  display: block;
  margin: 7px 0;
  color: #0963b7;
  font-size: 13px;
}

.drawer-arabic {
  font: 31px/1.2 "Traditional Arabic", "Arabic Typesetting", serif;
  text-align: left;
}

.drawer-root {
  font-size: 25px;
  word-spacing: 10px;
}

.drawer-segments {
  display: grid;
  border: 1px solid #94b9b9;
  border-radius: 6px;
  overflow: hidden;
}

.word-mark-buttons {
  grid-template-columns: repeat(4, 1fr);
}

.ayah-mark-buttons {
  grid-template-columns: 1fr 1.45fr 1fr .72fr;
}

.drawer-segments button {
  min-height: 49px;
  padding: 5px;
  color: #16474a;
  background: #fff;
  border: 0;
  border-right: 1px solid #aac7c7;
  font-size: 13px;
  cursor: pointer;
}

.drawer-segments button:last-child {
  border-right: 0;
}

.drawer-segments button.is-active {
  background: #e2f2e8;
  box-shadow: inset 0 0 0 1px #e0b056;
}

.drawer-remove {
  margin-top: 11px;
  padding: 0;
  color: #07585b;
  background: none;
  border: 0;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}

.ayah-drawer .drawer-remove {
  color: #1269c0;
  text-decoration: underline;
}

.drawer-section textarea {
  width: 100%;
  height: 82px;
  padding: 11px;
  color: #1b373a;
  background: #fff;
  border: 1px solid #aebfc0;
  border-radius: 5px;
  resize: vertical;
  font: 13px/1.5 var(--sans);
}

.drawer-save {
  min-width: 104px;
  height: 40px;
  margin: 10px 0 0 auto;
  display: block;
  color: #fff;
  background: linear-gradient(135deg, #07756f, #00625f);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.drawer-status {
  height: 18px;
  margin-top: 7px;
  display: block;
  color: #14705f;
  font-size: 12px;
  text-align: right;
}

.drawer-lexicon {
  border-bottom: 0;
}

.study-drawer__footer {
  height: 70px;
  margin: 0 -25px;
  padding: 14px 25px;
  display: flex;
  justify-content: space-between;
  background: #fff;
  border-top: 1px solid #cadada;
  position: sticky;
  bottom: 0;
}

.study-drawer__footer button {
  height: 42px;
  padding: 0 17px;
  color: #154b4e;
  background: #fff;
  border: 1px solid #abc8c8;
  border-radius: 5px;
  cursor: pointer;
}

.study-drawer__footer .primary {
  min-width: 116px;
  color: #fff;
  background: linear-gradient(135deg, #08756f, #00605d);
  border-color: #06706c;
}

.ayah-drawer__location {
  margin: 3px 0 16px;
  font-size: 14px;
}

.ayah-bookmark-button {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #164d50;
  background: #fff;
  border: 1px solid #0a6664;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.ayah-bookmark-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.drawer-wide-action {
  width: 100%;
  height: 50px;
  margin-top: 22px;
  color: #164d50;
  background: #fff;
  border: 1px solid #0a6664;
  border-radius: 5px;
  cursor: pointer;
}

.ayah-drawer audio {
  width: 100%;
  height: 49px;
}

.ayah-drawer [data-tafsir-section] a {
  padding-left: 24px;
  position: relative;
}

.ayah-drawer [data-tafsir-section] a:before {
  content: "↗";
  position: absolute;
  left: 0;
}

.study-toast {
  max-width: 370px;
  padding: 12px 18px;
  color: #fff;
  background: #075f5c;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 15px);
  transition: .18s;
}

.study-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1250px) {
  .study-header__nav {
    gap: 25px;
  }

  .study-header__account {
    margin-left: 20px;
    gap: 18px;
  }

  .study-controls__form {
    grid-template-columns: minmax(220px, 1.8fr) 105px 115px 240px 130px 150px 52px;
    gap: 13px;
  }

  .study-app {
    grid-template-columns: 285px;
  }

  .study-reading {
    padding-right: 24px;
  }

  .study-ayah__arabic {
    font-size: 31px;
  }

}

@media (max-width: 950px) {
  .study-header {
    height: auto;
    min-height: 66px;
    padding: 10px 18px;
    flex-wrap: wrap;
  }

  .study-header__nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .study-header__account {
    margin-left: auto;
  }

  .study-header__tool {
    display: none;
  }

  .study-controls {
    height: auto;
    padding: 12px 18px;
    position: relative;
  }

  .study-controls__form {
    height: auto;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: end;
  }

  .study-pager {
    grid-column: 1/3;
  }

  .study-select--font, .study-select--translation {
    grid-row: 2;
  }

  .study-settings {
    grid-row: 2;
  }

  .study-app {
    grid-template-columns: 1fr;
  }

  .study-sidebar {
    display: none;
  }

  .study-reading {
    padding: 0 16px 30px;
  }

  .study-drawer {
    top: 0;
    height: 100vh;
  }

  .study-ayah {
    padding: 15px 14px;
    grid-template-columns: 43px 1fr;
  }

  .study-ayah__tools {
    gap: 18px;
  }

}

@media (max-width: 620px) {
  .study-header .brand {
    font-size: 25px;
  }

  .study-header .brand__mark {
    width: 36px;
  }

  .study-header__account {
    gap: 10px;
  }

  .study-profile > span:nth-child(2) {
    display: none;
  }

  .study-controls__form {
    grid-template-columns: 1fr 1fr;
  }

  .study-select--surah {
    grid-column: 1/3;
  }

  .study-pager {
    grid-column: 1/3;
  }

  .study-select--font, .study-select--translation {
    grid-row: auto;
  }

  .study-settings {
    grid-row: auto;
  }

  .study-reading {
    padding-inline: 10px;
  }

  .study-guidance {
    height: auto;
    padding: 15px 3px;
  }

  .study-ayah {
    grid-template-columns: 36px 1fr;
  }

  .study-ayah__number {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .study-ayah__arabic {
    font-size: 27px;
  }

  .study-ayah__translation {
    font-size: 13px;
  }

  .study-ayah__tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .study-drawer {
    width: 100%;
    padding-inline: 18px;
    border-radius: 0;
  }

  .study-drawer__footer {
    margin-inline: -18px;
    padding-inline: 18px;
  }

}

.study-ayah[data-bookmarked="true"] [data-toggle-bookmark] svg {
  fill: currentColor;
}

/* Authenticated Study account pages */

.study-profile {
  position: relative;
  max-width: 220px;
  display: block;
}

.study-profile summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #154448;
  list-style: none;
  cursor: pointer;
}

.study-profile summary::-webkit-details-marker {
  display: none;
}

.study-profile summary > svg {
  width: 38px;
  height: 38px;
  padding: 5px;
  border: 1px solid #8db9b9;
  border-radius: 50%;
}

.study-profile summary > span:nth-child(2) {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.study-profile__menu {
  width: 160px;
  padding: 7px;
  background: #fff;
  border: 1px solid #c7dada;
  border-radius: 6px;
  box-shadow: 0 9px 24px rgba(7, 55, 57, .15);
  position: absolute;
  right: 0;
  top: 48px;
  z-index: 60;
}

.study-profile__menu a, .study-profile__menu button {
  width: 100%;
  padding: 9px 10px;
  display: block;
  color: #16484a;
  background: none;
  border: 0;
  border-radius: 4px;
  text-align: left;
  font: 14px var(--sans);
  cursor: pointer;
}

.study-profile__menu a:hover, .study-profile__menu button:hover {
  background: #edf7f6;
}

.account-shell {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  background: #fff;
}

.account-sidebar {
  padding: 33px 21px 25px;
  background: linear-gradient(145deg, #f9fdfd, #f2f9f8);
  border-right: 1px solid #d5e2e2;
  position: relative;
  overflow: hidden;
}

.account-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.account-sidebar__nav a {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 19px;
  color: #153f42;
  border-radius: 7px;
  text-decoration: none;
  font-size: 16px;
  position: relative;
}

.account-sidebar__nav a.is-active {
  background: #e9f6f5;
}

.account-sidebar__nav a.is-active:before {
  content: "";
  width: 3px;
  height: 30px;
  background: #08736f;
  position: absolute;
  left: 0;
}

.account-sidebar__nav svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #075c5d;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-sidebar__ornament {
  width: 260px;
  height: 300px;
  display: grid;
  place-items: end center;
  opacity: .12;
  position: absolute;
  left: 4px;
  bottom: 0;
  transform: scale(1.65);
}

.account-sidebar__ornament .brand span {
  display: none;
}

.account-sidebar__ornament .brand__mark {
  width: 118px;
  height: 100px;
}

.account-content {
  min-width: 0;
  padding: 27px 39px 42px;
  color: #17383b;
}

.account-content--list {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

.account-page-heading {
  margin-bottom: 17px;
}

.account-page-heading h1 {
  margin: 0 0 3px;
  color: #084f50;
  font: 700 39px/1.1 var(--serif);
  letter-spacing: -.01em;
}

.account-page-heading p {
  margin: 0;
  color: #47575a;
  font-size: 15px;
}

.account-page-heading--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.account-page-heading--actions .account-button {
  flex: none;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 13px;
}

.metric-card {
  min-height: 115px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 17px;
  background: #fff;
  border: 1px solid #c8dcdc;
  border-radius: 8px;
}

.metric-card > div:last-child {
  display: flex;
  flex-direction: column;
}

.metric-card strong {
  color: #075456;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.metric-card span {
  margin-top: 5px;
  color: #415356;
  font-size: 13px;
}

.metric-card a {
  width: max-content;
  margin-top: 5px;
  color: #086c6a;
  font-size: 12px;
  text-underline-offset: 3px;
}

.metric-card--progress strong {
  font-size: 20px;
  font-weight: 600;
}

.progress-ring {
  --progress: 0;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(#08746f calc(var(--progress)*1%), #e5eeee 0);
  position: relative;
}

.progress-ring:after {
  content: "";
  width: 51px;
  height: 51px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
}

.progress-ring span {
  margin: 0;
  color: #0c4c4e;
  font-size: 18px;
  z-index: 1;
}

.progress-ring--large {
  width: 130px;
  height: 130px;
}

.progress-ring--large:after {
  width: 99px;
  height: 99px;
}

.progress-ring--large span {
  font-size: 28px;
}

.account-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: none;
  background: #eaf6f4;
  border-radius: 50%;
}

.account-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #07595b;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-icon--small {
  width: 45px;
  height: 45px;
}

.account-icon--small svg {
  width: 29px;
  height: 29px;
}

.dashboard-primary-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 13px;
}

.account-panel {
  background: #fff;
  border: 1px solid #c8dcdc;
  border-radius: 8px;
}

.account-panel h2 {
  margin: 0;
  color: #103f42;
  font: 600 22px/1.2 var(--serif);
}

.continue-panel {
  min-height: 240px;
  padding: 17px 21px;
}

.continue-panel > header {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.continue-panel header p {
  margin: 4px 0;
  color: #4d5e60;
  font-size: 13px;
}

.continue-panel__arabic {
  margin: 8px 0 2px;
  font: 27px/1.5 "Traditional Arabic", "Arabic Typesetting", serif;
}

.continue-panel > p:not(.continue-panel__arabic) {
  margin: 2px 0 12px;
  font-size: 13px;
}

.continue-panel__label {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.account-progress {
  height: 7px;
  margin: 8px 0;
  background: #e8efef;
  border-radius: 9px;
  overflow: hidden;
}

.account-progress span, .account-progress i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #087a75, #00635f);
  border-radius: inherit;
}

.continue-panel > footer {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #617072;
  font-size: 12px;
}

.account-button {
  min-height: 42px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff!important;
  background: linear-gradient(135deg, #087872, #00605d);
  border: 1px solid #076a67;
  border-radius: 6px;
  text-decoration: none;
  font: 600 14px var(--sans);
  cursor: pointer;
}

.account-button--small {
  min-height: 35px;
  padding-inline: 15px;
  font-size: 12px;
}

.activity-panel {
  min-height: 240px;
  padding: 17px 20px;
}

.activity-panel > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.activity-panel header span {
  font-size: 12px;
}

.activity-chart {
  height: 172px;
  margin-top: 14px;
  padding: 11px 4px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  border-top: 1px solid #e0e8e8;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 41px, #edf2f2 42px);
}

.activity-chart__day {
  height: 100%;
  width: 11%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.activity-chart__day i {
  width: 30px;
  max-height: 115px;
  min-height: 1px;
  display: block;
  background: linear-gradient(#087773, #09615f);
  border-radius: 3px 3px 0 0;
}

.activity-chart__day small {
  margin-top: 5px;
}

.activity-chart__value {
  margin-bottom: 4px;
  color: #617173;
  font-size: 10px;
}

.dashboard-secondary-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1.2fr .65fr .6fr;
  gap: 13px;
}

.dashboard-secondary-grid > .account-panel {
  min-height: 250px;
  padding: 14px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading a {
  color: #08706e;
  font-size: 12px;
}

.recent-word-table {
  margin-top: 9px;
  border: 1px solid #d3e1e1;
  border-radius: 7px;
  overflow: hidden;
}

.recent-word-table > a {
  min-height: 39px;
  padding: 5px 9px;
  display: grid;
  grid-template-columns: 70px 1fr 1.15fr 83px;
  align-items: center;
  gap: 8px;
  color: #233f42;
  border-bottom: 1px solid #e2eaea;
  text-decoration: none;
  font-size: 11px;
}

.recent-word-table > a:last-child {
  border-bottom: 0;
}

.arabic-inline {
  font: 21px "Traditional Arabic", "Arabic Typesetting", serif;
}

.state-pill {
  padding: 4px 9px;
  color: #17604f;
  background: #e6f4eb;
  border-radius: 12px;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.state-pill.state-2 {
  color: #8a6500;
  background: #fff2cc;
}

.state-pill.state-3 {
  color: #865c00;
  background: #fff0b7;
}

.state-pill.state-6 {
  color: #155b7b;
  background: #e8f5fa;
}

.recent-bookmark {
  min-height: 63px;
  padding: 9px 3px;
  display: grid;
  grid-template-columns: 29px 1fr 12px;
  gap: 8px;
  align-items: start;
  color: #273e41;
  border-bottom: 1px solid #dce7e7;
  text-decoration: none;
  font-size: 11px;
}

.recent-bookmark small {
  margin-top: 4px;
  display: block;
  color: #617072;
}

.mini-bookmark {
  font-size: 24px;
  color: #08706e;
}

.quick-actions-panel > a {
  min-height: 48px;
  margin-top: 5px;
  padding: 7px 9px;
  display: flex;
  gap: 10px;
  color: #234246;
  border: 1px solid #d3e1e1;
  border-radius: 6px;
  text-decoration: none;
}

.quick-actions-panel > a > span {
  font-size: 26px;
}

.quick-actions-panel b {
  font-size: 12px;
  font-weight: 500;
}

.quick-actions-panel small {
  display: block;
  color: #697679;
  font-size: 10px;
  font-weight: 400;
}

.account-academy-banner {
  min-height: 112px;
  margin-top: 14px;
  padding: 15px 31px 15px 23px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(100deg, #f7faf6, #f4f8f4);
  border: 1px solid #becfc2;
  border-radius: 12px;
}

.account-academy-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: #e0a928;
  background: linear-gradient(135deg, #00615e, #034e4d);
  border-radius: 13px;
  font-size: 42px;
}

.account-academy-banner h2 {
  margin: 0 0 5px;
  color: #104b4a;
  font: 600 25px var(--serif);
}

.account-academy-banner p {
  max-width: 650px;
  margin: 0;
  color: #3f5254;
  font-size: 13px;
  line-height: 1.45;
}

.account-academy-banner > a {
  min-width: 275px;
  min-height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #08746f, #005b59);
  border-radius: 6px;
  text-decoration: none;
}

.account-summary-grid {
  margin: 19px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.account-summary-grid--five {
  grid-template-columns: repeat(5, 1fr);
}

.account-summary-grid--six {
  grid-template-columns: repeat(6, 1fr);
}

.account-summary-grid article {
  min-height: 87px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f4faf9;
  border: 1px solid #c8dcdc;
  border-radius: 8px;
}

.account-summary-grid strong {
  color: #075557;
  font-size: 28px;
  font-weight: 500;
}

.account-summary-grid span {
  margin-top: 3px;
  color: #59686a;
  font-size: 12px;
}

.account-tabs {
  margin: 22px 0 17px;
  display: flex;
  border-bottom: 1px solid #cbdcdc;
}

.account-tabs button {
  min-width: 180px;
  padding: 12px 20px;
  color: #4a5c5e;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  font: 600 15px var(--sans);
  cursor: pointer;
}

.account-tabs button.is-active {
  color: #075e5d;
  border-color: #08746f;
}

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

.filter-pills a {
  padding: 8px 16px;
  color: #17494a;
  border: 1px solid #b8d1d1;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
}

.filter-pills a.is-active {
  color: #fff;
  background: #08716d;
  border-color: #08716d;
}

.account-empty {
  min-height: 310px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f8fbfb;
  border: 1px dashed #bcd5d5;
  border-radius: 9px;
}

.account-empty > span {
  color: #0a6b68;
  font: 42px var(--serif);
}

.account-empty h2 {
  margin: 10px 0 5px;
  font: 600 25px var(--serif);
}

.account-empty p {
  margin: 0 0 17px;
  color: #5d6b6d;
}

.account-empty--compact {
  min-height: 90px;
  padding: 18px;
}

.account-empty--compact p {
  margin-bottom: 9px;
}

.word-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.word-review-card {
  padding: 17px 19px;
  border: 1px solid #c8dcdc;
  border-radius: 8px;
}

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

.arabic-word {
  font: 35px/1.2 "Traditional Arabic", "Arabic Typesetting", serif;
}

.word-review-card > div {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}

.word-review-card > div span, .word-review-card > p {
  color: #657275;
  font-size: 12px;
}

.word-review-card blockquote {
  margin: 11px 0;
  padding: 9px 12px;
  background: #f3f9f8;
  border-left: 3px solid #8dbfbc;
  font-size: 12px;
}

.word-review-card footer, .hifd-card footer, .bookmark-card footer, .note-card footer {
  margin-top: 13px;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dde7e7;
}

.word-review-card footer a {
  color: #08706e;
  font-size: 12px;
}

.word-review-card button, .hifd-card button, .bookmark-card button, .note-card footer > button:not(.account-button) {
  color: #96524e;
  background: none;
  border: 0;
  font-size: 12px;
  cursor: pointer;
}

.account-pagination {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
}

.account-pagination a {
  color: #08706e;
}

.account-pagination a:last-child {
  text-align: right;
}

.account-pagination a:first-child {
  text-align: left;
}

.hifd-list, .bookmark-list, .notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hifd-card, .bookmark-card, .note-card {
  padding: 18px 21px;
  border: 1px solid #c8dcdc;
  border-radius: 8px;
}

.hifd-card > header {
  display: flex;
  justify-content: space-between;
}

.hifd-card header em {
  color: #08706e;
  font-size: 12px;
}

.hifd-card__arabic, .bookmark-card__arabic, .note-card__arabic {
  margin: 12px 0 4px;
  font: 30px/1.5 "Traditional Arabic", "Arabic Typesetting", serif;
}

.hifd-card > p:not(.hifd-card__arabic), .bookmark-card > p:not(.bookmark-card__arabic) {
  margin: 0;
  color: #45575a;
  font-size: 13px;
}

.hifd-card__progress {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
}

.hifd-card__progress .account-progress {
  margin: 0;
}

.hifd-card__progress > span {
  font-size: 11px;
}

.bookmark-card > header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bookmark-card h2, .note-card h2 {
  margin: 0;
  font: 600 20px var(--serif);
}

.bookmark-card h2 small, .note-card h2 small {
  font: 12px var(--sans);
}

.bookmark-card time, .note-card time {
  color: #68777a;
  font-size: 11px;
}

.bookmark-card blockquote {
  margin: 13px 0 0;
  padding: 10px 13px;
  background: #f3f9f8;
  border-left: 3px solid #91bfbd;
}

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

.note-card header > a {
  color: #08706e;
  font-size: 12px;
}

.note-card__translation {
  margin: 0 0 12px;
  color: #59686a;
  font-size: 12px;
}

.note-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.note-card textarea {
  width: 100%;
  min-height: 80px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #bed1d1;
  border-radius: 6px;
  resize: vertical;
  font: 13px/1.5 var(--sans);
}

.note-word-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.note-word-title .arabic-word {
  min-width: 75px;
}

.note-word-title small {
  color: #657477;
}

.progress-hero {
  min-height: 190px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 25px 33px;
  background: linear-gradient(135deg, #eff9f7, #fafdfd);
  border: 1px solid #c2dada;
  border-radius: 10px;
}

.progress-hero > div:last-child {
  flex: 1;
}

.progress-hero h2 {
  margin: 0 0 7px;
  font: 600 28px var(--serif);
}

.progress-hero p {
  margin: 0;
  color: #526265;
}

.progress-distributions {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.progress-distributions .account-panel {
  padding: 18px;
}

.distribution-row {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}

.distribution-row > div {
  height: 7px;
  background: #e5eeee;
  border-radius: 5px;
  overflow: hidden;
}

.distribution-row i {
  height: 100%;
  display: block;
  background: #08746f;
  border-radius: inherit;
}

.distribution-row strong {
  text-align: right;
}

.surah-progress-panel {
  padding: 20px;
}

.panel-heading p {
  margin: 3px 0 0;
  color: #657477;
  font-size: 12px;
}

.surah-search {
  font-size: 11px;
}

.surah-search input {
  width: 180px;
  height: 36px;
  margin-left: 7px;
  padding: 0 10px;
  border: 1px solid #bed2d2;
  border-radius: 5px;
}

.surah-progress-list {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.surah-progress-list > a {
  min-height: 65px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 1.15fr .85fr 42px;
  align-items: center;
  gap: 12px;
  color: #274447;
  border: 1px solid #d3e1e1;
  border-radius: 7px;
  text-decoration: none;
}

.surah-progress-list > a > span {
  display: flex;
  align-items: center;
  gap: 11px;
}

.surah-progress-list b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #08736f;
  border-radius: 50%;
  font-size: 11px;
}

.surah-progress-list strong {
  font-size: 13px;
}

.surah-progress-list small {
  margin-top: 3px;
  display: block;
  color: #657477;
  font-size: 9px;
  font-weight: 400;
}

.surah-progress-list .account-progress {
  margin: 0;
}

.surah-progress-list em {
  font-size: 11px;
  font-style: normal;
  text-align: right;
}

.account-toast {
  max-width: 390px;
  padding: 12px 18px;
  color: #fff;
  background: #075f5c;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 15px);
  transition: .18s;
}

.account-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.account-setup-required {
  width: min(690px, calc(100% - 40px));
  margin: 90px auto;
  padding: 45px;
  text-align: center;
  background: #f2faf9;
  border: 1px solid #bdd8d7;
  border-radius: 10px;
}

.account-setup-required > span {
  width: 55px;
  height: 55px;
  margin: auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: #08716d;
  border-radius: 50%;
  font-size: 30px;
}

.account-setup-required h1 {
  font: 600 31px var(--serif);
}

@media (max-width: 1250px) {
  .account-shell {
    grid-template-columns: 235px;
  }

  .account-content {
    padding-inline: 25px;
  }

  .account-sidebar__nav a {
    padding-inline: 12px;
    gap: 12px;
    font-size: 14px;
  }

  .dashboard-secondary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-actions-panel {
    grid-column: 1/3;
  }

  .account-summary-grid--six {
    grid-template-columns: repeat(3, 1fr);
  }

  .study-header__account {
    margin-left: 20px;
  }

  .account-academy-banner {
    grid-template-columns: 70px 1fr;
  }

  .account-academy-banner > a {
    grid-column: 2;
    min-width: 240px;
    width: max-content;
  }

}

@media (max-width: 950px) {
  .account-shell {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid #d5e2e2;
  }

  .account-sidebar__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .account-sidebar__nav a {
    height: 48px;
    justify-content: center;
  }

  .account-sidebar__nav svg {
    width: 22px;
  }

  .account-sidebar__ornament {
    display: none;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-primary-grid, .dashboard-secondary-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-panel {
    grid-column: auto;
  }

  .progress-distributions {
    grid-template-columns: 1fr;
  }

  .word-review-grid {
    grid-template-columns: 1fr;
  }

  .surah-progress-list {
    grid-template-columns: 1fr;
  }

  .account-summary-grid--five {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 620px) {
  .study-profile summary > span:nth-child(2) {
    display: none;
  }

  .study-profile__menu {
    right: -8px;
  }

  .account-sidebar__nav {
    grid-template-columns: 1fr 1fr;
  }

  .account-sidebar__nav a {
    justify-content: flex-start;
    font-size: 12px;
  }

  .account-content {
    padding: 20px 13px 32px;
  }

  .account-page-heading h1 {
    font-size: 31px;
  }

  .account-page-heading--actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-primary-grid {
    grid-template-columns: 1fr;
  }

  .account-summary-grid, .account-summary-grid--five, .account-summary-grid--six {
    grid-template-columns: 1fr 1fr;
  }

  .account-tabs button {
    min-width: 0;
    flex: 1;
    padding-inline: 6px;
  }

  .metric-card {
    min-height: 90px;
  }

  .account-academy-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .account-academy-mark {
    margin: auto;
  }

  .account-academy-banner > a {
    grid-column: auto;
    min-width: 0;
    width: 100%;
  }

  .recent-word-table > a {
    grid-template-columns: 55px 1fr;
  }

  .recent-word-table > a > span:nth-child(3) {
    display: none;
  }

  .progress-hero {
    padding: 22px 17px;
    flex-direction: column;
    text-align: center;
  }

  .surah-progress-list > a {
    grid-template-columns: 1fr 42px;
  }

  .surah-progress-list .account-progress {
    display: none;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .surah-search, .surah-search input {
    width: 100%;
    margin-left: 0;
  }

  .bookmark-card footer, .hifd-card footer, .word-review-card footer {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .note-card header {
    gap: 10px;
    flex-direction: column;
  }

  .dashboard-secondary-grid {
    display: block;
  }

  .dashboard-secondary-grid > .account-panel {
    margin-top: 12px;
  }

}

.study-progress-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Match the shared site header palette while preserving the Study layout. */

.study-header {
  color: #fff;
  background: linear-gradient(100deg, #075854 0%, #004b48 48%, #003f3d 100%);
  border-bottom-color: rgba(239, 189, 83, .42);
  box-shadow: 0 7px 18px rgba(0, 45, 42, .16);
}

.study-header .brand {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .14);
}

.study-header .brand__mark {
  content: url("../images/logo-book-home-inverse.svg");
}

.study-header a, .study-header .study-profile summary {
  color: #f7fbf9;
}

.study-header a:hover, .study-header .study-profile summary:hover {
  color: #f4c55f;
}

.study-header svg, .study-header .study-profile summary > svg {
  color: inherit;
  stroke: currentColor;
}

.study-header .study-profile summary > svg {
  border-color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .045);
}

.study-header .study-login {
  color: #fff;
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .8);
}

.study-header .study-login:hover {
  color: #fff8e8;
  background: rgba(255, 255, 255, .12);
  border-color: #f0c567;
}

.study-header .study-profile__menu a, .study-header .study-profile__menu button {
  color: #16484a;
  text-shadow: none;
}

.study-header .study-profile__menu a:hover, .study-header .study-profile__menu button:hover {
  color: #075854;
  background: #edf7f6;
}
