/* Mishnah Max — the web app's own pieces: Home (/), the account control and
   sign-in dialog in the header, and a mishnah page's bookmark and learned
   mark. Loaded after site.css and reader.css, on their palette and type; the
   shapes follow HomeView.swift (greeting, Continue card, stat chips, seder
   cards, Recently studied). Logical properties throughout, for /he/. */

/* --- Home ------------------------------------------------------------------ */

.reader:has(.home-app) {
  background:
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(201, 161, 58, 0.16), rgba(201, 161, 58, 0) 70%) fixed,
    linear-gradient(180deg, var(--sky) 0%, var(--blush) 55%, var(--paper) 100%) fixed;
}
.home-app { max-width: 900px; margin: 0 auto; }

.home-app__date {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
[dir="rtl"] .home-app__date { font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; }
.goal-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink-700);
}
.goal-badge.is-met { background: var(--olive); color: var(--paper); }
.goal-badge.is-met::before { content: "✓ "; }

.reader .home-app__greeting {
  margin: 8px 0 22px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  font-weight: 500;
  color: var(--ink-900);
}
.home-app__greeting em { color: var(--wine); }

.home-app__top { display: grid; gap: 12px; }
@media (min-width: 760px) {
  .home-app__top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
  .home-app__top .stat-chips { grid-template-columns: 1fr; }
}

.continue-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  color: var(--ink-900);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.continue-card:hover { transform: translateY(-2px); border-color: rgba(92, 35, 24, 0.3); box-shadow: var(--shadow-lift); }
.continue-card__tile {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--wine-2), var(--wine-3));
  color: var(--gold-on-wine);
  font-family: var(--hebrew);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}
.continue-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.continue-card__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
}
[dir="rtl"] .continue-card__eyebrow { font-family: var(--sans); font-size: 13px; letter-spacing: 0; font-weight: 600; }
.continue-card__title { font-size: 21px; line-height: 1.2; }
.continue-card__sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-700);
}
.continue-card__sub:empty { display: none; }
.continue-card__go { font-family: var(--sans); font-size: 20px; color: var(--wine); }

.stat-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat-chip {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
}
.stat-chip__row { display: flex; align-items: center; gap: 8px; }
.stat-chip__icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 9px;
}
.stat-chip__icon svg { width: 15px; height: 15px; }
.stat-chip--streak .stat-chip__icon { background: rgba(201, 161, 58, 0.16); color: var(--gold); }
.stat-chip--read .stat-chip__icon { background: rgba(92, 35, 24, 0.12); color: var(--wine); }
.stat-chip--share .stat-chip__icon { background: rgba(107, 122, 62, 0.16); color: var(--olive); }
.stat-chip__value { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.stat-chip__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}
[dir="rtl"] .stat-chip__label { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; }

.home-sync {
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(201, 161, 58, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}
.home-sync[hidden] { display: none; }
.home-sync__title { margin: 0; font-size: 18px; color: var(--ink-900); }
.home-sync__body { margin: 4px 0 12px; font-family: var(--sans); font-size: 14.5px; line-height: 1.45; color: var(--ink-700); }
.home-sync__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.home-sync__actions [hidden] { display: none; }

.section-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-bar::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
[dir="rtl"] .section-bar::after { background: linear-gradient(270deg, var(--gold), transparent); }
.home-sedarim, .home-recent { margin-top: 40px; }
.home-app__sub { margin: 6px 0 16px; font-family: var(--sans); font-size: 14.5px; color: var(--ink-700); }

.home-sedarim__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 759px) { .home-sedarim__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.home-seder { min-height: 184px; padding: 16px 18px 14px; }
@media (max-width: 459px) {
  .home-seder { min-height: 168px; padding: 14px; }
  .home-seder .seder-card__he { font-size: 28px; }
  .home-seder .seder-card__name { font-size: 18px; }
  .home-seder .seder-card__theme { font-size: 12.5px; }
}
.home-seder__bar {
  display: block;
  height: 4px;
  margin-top: auto;
  border-radius: 2px;
  background: rgba(27, 23, 19, 0.08);
  overflow: hidden;
}
.home-seder__bar span {
  display: block;
  width: calc(var(--p, 0) * 100%);
  min-width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.home-seder .seder-card__foot { margin-top: 0; padding-top: 10px; }

.home-recent__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 12px;
  margin: 14px calc(-1 * var(--gutter)) 0;
  padding: 2px var(--gutter) 12px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
}
.home-recent__list li { scroll-snap-align: start; }
.recent-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 16px 18px 14px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink-900);
  text-decoration: none;
}
.recent-row:hover { border-color: rgba(92, 35, 24, 0.3); }
.recent-row__he { font-family: var(--hebrew); font-size: 24px; line-height: 1.3; }
.recent-row__name { font-size: 17px; }
.recent-row__name:empty { display: none; }
.recent-row__at { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-500); text-transform: uppercase; }
[dir="rtl"] .recent-row__at { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
.recent-row__bar { display: block; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.recent-row__bar span { display: block; width: calc(var(--p, 0) * 100%); height: 100%; background: var(--wine); }

/* --- The account control (header) ------------------------------------------- */

.account { display: flex; align-items: center; min-width: 34px; min-height: 34px; position: relative; }
/* Inside the header's glass: a raised white capsule, the lens made solid. */
.account__signin {
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 0.5px rgba(27, 23, 19, 0.08), 0 4px 12px -6px rgba(27, 23, 19, 0.3);
  color: var(--wine);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.account__signin:hover { color: var(--wine-3); box-shadow: inset 0 1px 0 #fff, 0 0 0 0.5px rgba(92, 35, 24, 0.2), 0 6px 16px -6px rgba(92, 35, 24, 0.4); }
.account__pending { width: 36px; height: 36px; border-radius: 50%; background: rgba(27, 23, 19, 0.06); }
.account__box { position: relative; }
.account__me {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--wine-2), var(--wine-3));
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
/* A small dot on the initial: olive when in step, gold while syncing. */
.account__me::after {
  content: "";
  position: absolute;
  inset-block-end: -1px;
  inset-inline-end: -1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--olive);
}
.account__me--syncing::after { background: var(--gold); }
.account__me--error::after { background: var(--ink-300); }
.account__menu {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 60;
  width: min(280px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: inset 0 1px 0.5px #fff, 0 0 0 0.5px rgba(27, 23, 19, 0.12), var(--shadow-lift);
  font-family: var(--sans);
}
.account__name { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-900); }
.account__email { margin: 2px 0 0; font-size: 13px; color: var(--ink-500); overflow-wrap: anywhere; text-align: start; }
.account__sync { margin: 10px 0 12px; font-size: 13px; color: var(--olive); }
.account__sync--syncing { color: var(--ink-500); }
.account__sync--error { color: var(--wine); }
.account__out {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink-900);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.account__out:hover { border-color: var(--ink-300); }
.account__error {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  width: min(280px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--wine);
}

/* --- The sign-in dialog ------------------------------------------------------ */

.signin {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink-900);
}
.signin::backdrop { background: rgba(27, 23, 19, 0.42); backdrop-filter: blur(3px); }
.signin__card {
  position: relative;
  padding: 30px 28px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--blush) 60%, var(--paper) 100%);
  text-align: center;
}
.signin__close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-500);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.signin__close:hover { background: rgba(27, 23, 19, 0.06); }
.signin__mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--wine-2), var(--wine-3));
  color: var(--gold-on-wine);
  font-family: var(--hebrew);
  font-size: 32px;
  font-weight: 700;
}
.signin h2 { margin: 14px 0 6px; font-size: 26px; font-weight: 500; }
.signin__body { margin: 0 auto 20px; max-width: 32ch; font-family: var(--sans); font-size: 15px; line-height: 1.45; color: var(--ink-700); }
.signin__buttons { display: grid; gap: 10px; }
.signin__provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.signin__provider:hover { border-color: var(--ink-300); }
.signin__provider:disabled { opacity: 0.6; cursor: progress; }
.signin__provider--apple { background: #000; border-color: #000; color: #fff; }
.signin__fine { margin: 18px 0 0; font-family: var(--sans); font-size: 12.5px; color: var(--ink-500); }
.signin__fine a { color: var(--wine); }

/* --- Pro: the account menu's row and the paywall ------------------------------ */

.account__pro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--wine-2), var(--wine-3));
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.account__pro.is-pro { border: 1px solid var(--rule); background: var(--card); color: var(--ink-900); font-weight: 500; }
.account__pro-badge {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(201, 161, 58, 0.18);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.paywall .signin__card { text-align: start; }
.paywall__kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
[dir="rtl"] .paywall__kicker { letter-spacing: 0.08em; }
.paywall h2 { margin: 8px 0 6px; padding-inline-end: 28px; }
.paywall__why { margin: 0 0 10px; font-family: var(--sans); font-size: 14.5px; color: var(--wine); }
.paywall__features { margin: 14px 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.paywall__features li {
  position: relative;
  padding-inline-start: 26px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-900);
}
.paywall__features li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--olive);
  font-weight: 700;
}
.paywall__price { margin: 0 0 10px; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink-900); }
.paywall__cta { width: 100%; min-height: 48px; font-size: 16px; }
.paywall__terms { margin: 8px 0 0; font-family: var(--sans); font-size: 13px; color: var(--ink-700); text-align: center; }
.paywall__note { margin: 10px 0 0; font-family: var(--sans); font-size: 13.5px; color: var(--wine); text-align: center; }
.paywall__sandbox {
  margin: 12px 0 0;
  padding: 8px 10px;
  border: 1px dashed var(--gold);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-700);
}
.paywall__fine { margin: 14px 0 0; font-family: var(--sans); font-size: 11.5px; line-height: 1.45; color: var(--ink-500); }
.paywall__status { margin: 16px 0; font-family: var(--sans); font-size: 15px; color: var(--ink-700); }
.paywall__have { margin: 8px 0 18px; font-family: var(--sans); font-size: 15px; line-height: 1.45; color: var(--ink-700); }
.paywall .button { display: inline-flex; justify-content: center; text-decoration: none; }
.paywall .signin__fine { text-align: center; }

/* --- A mishnah's tools ------------------------------------------------------ */

.mishnah__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; }
.mishnah__tools[hidden] { display: none; }
.mishnah__bookmark {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
}
.mishnah__bookmark::before { content: "☆ "; }
.mishnah__bookmark[aria-pressed="true"] { border-color: rgba(201, 161, 58, 0.6); background: rgba(201, 161, 58, 0.12); color: var(--ink-900); }
.mishnah__bookmark[aria-pressed="true"]::before { content: "★ "; color: var(--gold); }
.mishnah__learned {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(107, 122, 62, 0.14);
  color: var(--olive);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}
.mishnah__learned::before { content: "✓ "; }
.mishnah__learned[hidden] { display: none; }

/* --- The tab bar: the app's FloatingTabBar --------------------------------------- */
/* Home, Learn, Review, You in one glass capsule (site.css .glass). The tab
   you're in is the app's wine pill with its name; on a computer the others
   keep their names too, and a lens glides under the one you point at. On a
   phone the bar floats at the foot of the screen, as in the app: symbols
   only, the current tab opening to show its name. */
.reader-header .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.reader-header .brand { justify-self: start; }
.site-header__aside { display: flex; align-items: center; gap: 12px; justify-self: end; }
.tabbar { border-radius: 999px; padding: 4px; }
.tabbar__list { position: relative; display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tabbar__list li { position: relative; z-index: 1; display: flex; }
.tabbar__tab {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  color: var(--ink-700);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.25s, box-shadow 0.25s, scale 0.42s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tabbar__icon { flex: none; width: 18px; height: 18px; }
/* The app sets tab names in the system face; :lang() would make them serif. */
.tabbar__label { font: inherit; }
.tabbar__tab:hover { color: var(--ink-900); }
.tabbar__list:not(.has-lens) .tabbar__tab:not([aria-current]):hover { background: rgba(255, 255, 255, 0.75); }
.tabbar__tab[aria-current] {
  background: var(--wine);
  color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 14px -8px rgba(92, 35, 24, 0.75);
}
/* The app's press: a quick dip and a springy release. */
.tabbar__tab:active { scale: 0.94; transition-duration: 0.2s, 0.25s, 0.25s, 0.1s; }
.tabbar .nav-badge { margin-inline-start: 0; }
.tabbar__tab[aria-current] .nav-badge { background: var(--cream); color: var(--wine); }

@media (max-width: 760px) {
  .reader-header .site-header__inner { display: flex; justify-content: space-between; }
  .reader-header .brand__name { display: none; }
  .tabbar {
    position: fixed;
    z-index: 55;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: min(296px, calc(100vw - 24px));
    padding: 6px;
    transform: translateX(-50%);
  }
  /* The bar keeps one width whichever tab is current: each other tab is an
     icon-sized slot, and the wine pill takes the rest, room for the longest
     name ("Review"; in Hebrew "פרופיל"). Otherwise the bar grew and shrank
     with the name as you moved between tabs. With no current tab (About),
     the four share the bar evenly. */
  .tabbar__list li { flex: 1 1 0; min-width: 0; }
  .tabbar__list:has([aria-current]) li { flex: 0 0 50px; }
  .tabbar__list li:has(> [aria-current]) { flex: 1 1 auto; }
  .tabbar__tab { width: 100%; justify-content: center; gap: 6px; min-height: 46px; padding: 0 10px; font-size: 13px; }
  .tabbar__icon { width: 20px; height: 20px; }
  /* Unselected, a tab shows its symbol; its name stays for screen readers. */
  .tabbar__tab:not([aria-current]) .tabbar__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .tabbar__tab:not([aria-current]) .nav-badge {
    position: absolute;
    top: 5px;
    inset-inline-end: 5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
  }
  /* Room at the foot of every page for the floating bar. */
  body.reader { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* The App Store badge: Apple's own artwork, on its own beside the glass, as
   Apple's sites set it (inside the pill it crowded the language and Sign in). */
.site-header__aside .badge { flex: none; border-radius: 9px; }
.site-header__aside .badge img { height: 40px; }
.site-header__aside .badge:hover { filter: brightness(1.3); }
.is-android .site-header__aside .badge { display: none; }
@media (max-width: 760px) {
  .site-header__aside { gap: 8px; }
  .site-header__aside .badge img { height: 36px; }
}
@media (max-width: 420px) {
  .site-header__aside .badge img { height: 34px; }
  .reader-header .site-header__end { gap: 4px; padding-inline-start: 11px; }
  .reader-header .account__signin { padding: 0 12px; font-size: 13px; }
}

/* PressableCard (SharedComponents.swift): every tappable card and row dips
   to 96.5% while pressed and springs back on release. */
:is(.continue-card, .seder-card, .tile, .row, .recent-row, .pager__link, .chip, .button, .account__signin, .badge) {
  transition-property: transform, box-shadow, border-color, background-color, color, scale;
  transition-duration: 0.2s, 0.2s, 0.2s, 0.2s, 0.2s, 0.42s;
  transition-timing-function: ease, ease, ease, ease, ease, cubic-bezier(0.3, 1.6, 0.5, 1);
}
:is(.continue-card, .seder-card, .tile, .row, .recent-row, .pager__link, .chip, .button, .account__signin, .badge):active {
  scale: 0.965;
  transition-duration: 0.2s, 0.2s, 0.2s, 0.2s, 0.2s, 0.1s;
  transition-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) {
  :is(.continue-card, .seder-card, .tile, .row, .recent-row, .pager__link, .chip, .button, .account__signin, .tabbar__tab):active { scale: 1; }
}


/* --- "Finished this mishnah?" at a mishnah's end ----------------------------- */

.mishnah__done {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 36px 0 8px;
  padding: 22px 20px 20px;
  border: 1px solid rgba(201, 161, 58, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--fade), var(--paper));
  text-align: center;
}
.mishnah__done[hidden] { display: none; }
.mishnah__done.is-learned { border-color: rgba(107, 122, 62, 0.4); background: rgba(107, 122, 62, 0.07); }
.mishnah__done [hidden] { display: none; }
.mishnah__done-ask { margin: 0; font-size: 21px; color: var(--ink-900); }
.mishnah__done-how { margin: 0 0 10px; max-width: 46ch; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--ink-700); }
.mishnah__done-yes { margin: 0; font-size: 19px; color: var(--olive); }
.mishnah__done-yes::before { content: "✓ "; }
.mishnah__done-undo {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--ink-500);
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mishnah__done-undo:hover { color: var(--wine); }

/* --- Review (chazara) -------------------------------------------------------- */

.reader:has(.review-app) {
  background:
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(201, 161, 58, 0.16), rgba(201, 161, 58, 0) 70%) fixed,
    linear-gradient(180deg, var(--sky) 0%, var(--blush) 55%, var(--paper) 100%) fixed;
}
.review-app { max-width: 760px; margin: 0 auto; }
.review-app__body { margin-top: 26px; }
.review-app__loading, .review-card__loading { font-family: var(--sans); color: var(--ink-500); }

/* The due card: the iPhone's indigo hero. */
.review-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #46437A, #2C2A4A);
  color: #fff;
  text-align: start;
  font: inherit;
  box-shadow: var(--shadow-soft);
}
button.review-hero { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
button.review-hero:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.review-hero > span:nth-child(2), .review-hero > div { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.review-hero__icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
}
.review-hero__title { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.review-hero__sub { font-family: var(--sans); font-size: 14px; line-height: 1.45; opacity: 0.85; }
.review-hero__go { font-size: 16px; opacity: 0.9; }
.review-hero--calm { background: var(--paper); color: var(--ink-900); border: 1px solid var(--rule); }
.review-hero--calm .review-hero__icon { background: rgba(107, 122, 62, 0.14); color: var(--olive); }
.review-hero--calm .review-hero__sub { color: var(--ink-700); opacity: 1; }
.review-hero--muted { background: var(--paper); color: var(--ink-900); border: 1px solid rgba(201, 161, 58, 0.45); flex-wrap: wrap; }
.review-hero--muted .review-hero__sub { color: var(--ink-700); opacity: 1; }

.review-session__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-500); }
.review-session__track { flex: 1; height: 4px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.review-session__track span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--wine); transition: width 0.3s; }
.review-session__close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-500); font-size: 24px; cursor: pointer; }
.review-session__close:hover { background: rgba(27, 23, 19, 0.06); }

.review-card {
  padding: 24px 24px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.review-card__kicker { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); }
[dir="rtl"] .review-card__kicker { font-family: var(--sans); font-size: 13px; letter-spacing: 0; font-weight: 600; }
.review-card--perek .review-card__kicker { color: var(--olive); }
.review-card h2 { margin: 6px 0 14px; font-size: 24px; font-weight: 500; }
.review-card__recall { padding: 18px 0 4px; text-align: center; }
.review-card__cue { margin: 0; font-size: 19px; color: var(--ink-700); }
.review-card__title { margin: 8px 0 0; font-style: italic; color: var(--ink-500); }
[dir="rtl"] .review-card__title { font-style: normal; }
.review-card__then { margin: 14px 0 0; font-family: var(--sans); font-size: 13.5px; color: var(--ink-500); }
.review-card__recall .quiz__foot { justify-content: center; }
.review-card__fail p { font-family: var(--sans); color: var(--wine); }
.review-card__link { margin: 16px 0 0; font-family: var(--sans); font-size: 14px; }
.review-card__link a { color: var(--wine); }
.review-outcome {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(92, 35, 24, 0.07);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-700);
}
.review-outcome strong { font-size: 15px; color: var(--ink-900); }
.review-outcome.is-good { background: rgba(107, 122, 62, 0.10); }
.review-mishnah { display: grid; gap: 18px; }
.review-mishnah__he { margin: 0; font-family: var(--hebrew); font-size: 24px; line-height: 1.75; color: var(--ink-900); text-align: right; }
.review-mishnah__en { margin: 4px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-700); }
.review-mishnah__en strong { color: var(--ink-900); }
.review-card--done { text-align: center; }
.review-done__mark { display: inline-grid; place-items: center; width: 56px; height: 56px; margin: 0; border-radius: 50%; background: var(--olive); color: var(--paper); font-size: 26px; }
.review-done__he { margin: 0; font-family: var(--hebrew); font-size: 26px; color: var(--wine); }
.review-card--done .quiz__foot { justify-content: center; }

/* --- Questions ------------------------------------------------------------------- */

.quiz__q { display: grid; gap: 14px; }
.quiz__meta { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
[dir="rtl"] .quiz__meta { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; }
.quiz__prompt { margin: 0; font-size: 21px; line-height: 1.35; font-weight: 500; outline: none; }
.quiz__hint { margin: -6px 0 0; font-family: var(--sans); font-size: 13px; color: var(--ink-500); }
.quiz__options { display: grid; gap: 8px; }
.quiz__options--tf { grid-template-columns: 1fr 1fr; }
.quiz__options--words { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.quiz__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--serif);
  font-size: 16.5px;
  text-align: start;
  cursor: pointer;
}
[dir="rtl"] .quiz__option { font-family: var(--hebrew); font-size: 18px; }
.quiz__options--words .quiz__option, .quiz__options--tf .quiz__option { align-items: center; text-align: center; }
.quiz__options--words .quiz__option-text { font-family: var(--hebrew); font-size: 24px; }
.quiz__option:hover:not(:disabled) { border-color: var(--ink-300); }
.quiz__option.is-chosen { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); background: rgba(92, 35, 24, 0.04); }
.quiz__option.is-right { border-color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); background: rgba(107, 122, 62, 0.10); }
.quiz__option.is-wrong { border-color: #A4433A; background: rgba(164, 67, 58, 0.08); }
.quiz__option:disabled { cursor: default; }
.quiz__option-gloss { font-family: var(--sans); font-size: 13px; color: var(--ink-500); }
.quiz__match { display: grid; gap: 12px; }
.quiz__match-left { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.quiz__match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-900);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.quiz__match-l { font-size: 17px; }
.quiz__match-l [lang="he"], .quiz__match-l:lang(he) { font-family: var(--hebrew); font-size: 20px; }
.quiz__match-r { font-family: var(--sans); font-size: 14.5px; color: var(--ink-700); }
.quiz__match-row.is-active { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); }
.quiz__match-row.is-right { border-color: var(--olive); background: rgba(107, 122, 62, 0.10); }
.quiz__match-row.is-wrong { border-color: #A4433A; background: rgba(164, 67, 58, 0.06); }
.quiz__match-fix { display: block; margin-top: 2px; color: var(--olive); font-weight: 600; }
.quiz__match-fix::before { content: "→ "; }
.quiz__match-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz__chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
}
.quiz__chip:disabled { opacity: 0.55; cursor: default; }
.quiz__chip.is-used { opacity: 0.45; }
.quiz__because { padding: 12px 14px; border-radius: 12px; font-family: var(--sans); font-size: 14.5px; line-height: 1.5; }
.quiz__because p { margin: 4px 0 0; color: var(--ink-700); }
.quiz__because.is-right { background: rgba(107, 122, 62, 0.10); }
.quiz__because.is-right strong { color: var(--olive); }
.quiz__because.is-wrong { background: rgba(164, 67, 58, 0.07); }
.quiz__because.is-wrong strong { color: #A4433A; }
.quiz__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.quiz__foot .button:disabled { opacity: 0.45; cursor: default; }

.quiz-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink-900);
}
.quiz-dialog::backdrop { background: rgba(27, 23, 19, 0.42); backdrop-filter: blur(3px); }
.quiz-dialog__card { position: relative; padding: 26px 24px 22px; border-radius: 22px; background: var(--paper); }
.quiz-dialog__kicker { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
[dir="rtl"] .quiz-dialog__kicker { font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
.quiz-dialog h2 { margin: 4px 0 18px; padding-inline-end: 36px; font-size: 24px; font-weight: 500; }
.quiz-result { text-align: center; padding: 10px 0 4px; }
.quiz-result__score { margin: 0; font-family: var(--serif); font-size: 30px; }
.quiz-result__verdict { margin: 6px 0 16px; font-family: var(--sans); font-size: 15px; color: var(--wine); }
.quiz-result__verdict.is-pass { color: var(--olive); font-weight: 600; }
.quiz-result .quiz__foot { justify-content: center; }

/* --- Review elsewhere: the header count, tractate pages, a mishnah's check ------- */

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-inline-start: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--wine);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}
.nav-badge[hidden] { display: none; }
.perek__review { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.perek__review[hidden] { display: none; }
.perek__review-button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(107, 122, 62, 0.45);
  border-radius: 999px;
  background: var(--paper);
  color: var(--olive);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.perek__review-button:hover { border-color: var(--olive); }
.perek__review-badge, .mishnah__done-badge { font-family: var(--sans); font-size: 13px; color: var(--ink-500); }
.row.is-learned .row__n::after { content: " ✓"; color: var(--olive); }
.mishnah__done-more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 10px 0 0; }
.mishnah__done-check {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(107, 122, 62, 0.45);
  border-radius: 999px;
  background: var(--paper);
  color: var(--olive);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}


/* --- Chavruta: the buttons, the panel, the AI consent -------------------------- */

.mishnah__chat {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(92, 35, 24, 0.35);
  border-radius: 999px;
  background: linear-gradient(160deg, var(--wine-2), var(--wine-3));
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mishnah__chat::before { content: "✦ "; color: var(--gold-on-wine); }
.mishnah__done-more .mishnah__chat { min-height: 36px; padding: 0 14px; font-size: 14px; }

.account__item {
  display: block;
  width: 100%;
  min-height: 34px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-700);
  font: inherit;
  font-size: 14px;
  text-align: start;
  cursor: pointer;
}
.account__item:hover { background: var(--card); color: var(--ink-900); }

.consent .signin__card { text-align: start; }
.consent h2 { padding-inline-end: 28px; }
.consent__lead { margin: 6px 0 14px; font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-900); }
.consent__providers { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--rule); }
.consent__provider-title { margin: 0; font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: var(--ink-900); }
.consent__provider-detail { margin: 3px 0 0; font-family: var(--sans); font-size: 14px; color: var(--ink-700); }
.consent__note { margin: 14px 0 0; font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--ink-500); }
.consent__status { margin: 14px 0 0; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-900); }
.consent__buttons { display: grid; gap: 8px; margin-top: 18px; }
.consent__buttons .button { justify-content: center; }
.consent__later { min-height: 36px; border: 0; background: transparent; color: var(--ink-500); font-family: var(--sans); font-size: 14.5px; cursor: pointer; }
.consent .signin__fine { text-align: center; }

.chat {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(440px, 100vw);
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-900);
  box-shadow: var(--shadow-lift);
}
[dir="rtl"] .chat { inset: 0 auto 0 0; }
.chat:not([open]) { display: none; }
.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px 18px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--sky), var(--paper));
}
.chat__titles { min-width: 0; }
.chat__head h2 { margin: 0; font-size: 22px; font-weight: 500; }
.chat__ref { margin: 2px 0 0; font-family: var(--sans); font-size: 13px; color: var(--ink-500); }
.chat__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.chat__close { position: static; }
.chat__new, .chat__earlier {
  max-width: 150px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
}
.chat__new { white-space: nowrap; }
.chat__new:disabled { opacity: 0.45; cursor: default; }
.chat__list { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.chat__empty { margin: auto 0; text-align: center; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink-700); }
.chat__suggestions { display: grid; gap: 8px; margin-top: 14px; }
.chat__suggestion {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 14.5px;
  cursor: pointer;
}
.chat__suggestion:hover { border-color: var(--wine); }
.chat__msg { max-width: 88%; font-family: var(--sans); font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.chat__msg p, .chat__msg ul, .chat__msg ol { margin: 0 0 8px; }
.chat__msg > :last-child { margin-bottom: 0; }
.chat__msg ul, .chat__msg ol { padding-inline-start: 20px; }
.chat__msg--user {
  align-self: flex-end;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  background: linear-gradient(160deg, var(--wine-2), var(--wine-3));
  color: var(--paper);
}
[dir="rtl"] .chat__msg--user { border-radius: 18px 18px 18px 4px; }
.chat__msg--chevrusa { align-self: flex-start; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--card); }
[dir="rtl"] .chat__msg--chevrusa { border-radius: 18px 18px 4px 18px; }
.chat__status { color: var(--ink-500); font-style: italic; }
.chat__picture { margin: 0; }
.chat__picture img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--paper); }
.chat__picture-wait { aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(90deg, var(--card), var(--paper), var(--card)); }
.chat__picture figcaption { margin-top: 6px; font-size: 13.5px; color: var(--ink-700); }
.chat__error { align-self: stretch; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(92, 35, 24, 0.3); font-family: var(--sans); font-size: 14.5px; color: var(--wine); }
.chat__error p { margin: 0 0 8px; }
.chat__compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px 6px; border-top: 1px solid var(--rule); }
.chat__compose textarea {
  flex: 1;
  min-height: 46px;
  max-height: 160px;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  resize: vertical;
}
.chat__compose textarea:focus { outline: 2px solid rgba(92, 35, 24, 0.35); outline-offset: 1px; }
.chat__send { min-height: 46px; }
.chat__fine { margin: 0; padding: 4px 16px 14px; font-family: var(--sans); font-size: 11.5px; color: var(--ink-500); }
@media (max-width: 599px) {
  .chat { width: 100vw; border: 0; }
  .chat__earlier { max-width: 96px; }
  .chat__new { max-width: none; }
}

/* --- Profile ------------------------------------------------------------------- */

a.account__item { display: flex; align-items: center; text-decoration: none; }
.profile-app { max-width: 720px; margin: 0 auto; }
.profile { display: grid; gap: 14px; margin-bottom: 48px; }
.profile__me {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--sky), var(--paper));
}
.profile__avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--wine-2), var(--wine-3));
  color: var(--paper);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
}
.profile__name { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--ink-900); }
.profile__email { margin: 2px 0 0; font-family: var(--sans); font-size: 14px; color: var(--ink-500); overflow-wrap: anywhere; text-align: start; }
.profile__section { padding: 18px; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); }
.profile__section h2 { margin: 0; font-size: 19px; font-weight: 500; color: var(--ink-900); }
.profile__hint { margin: 4px 0 12px; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--ink-700); }
.profile__section h2 + .button, .profile__section h2 + .profile__row { margin-top: 12px; }
.profile__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.profile__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 16px;
}
.profile__input:focus { outline: 2px solid rgba(92, 35, 24, 0.35); outline-offset: 1px; }
.profile__textarea { display: block; width: 100%; margin: 10px 0; resize: vertical; line-height: 1.45; }
.profile__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.profile__chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-700);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 36px;
  text-decoration: none;
  cursor: pointer;
}
.profile__chip.is-on { border-color: var(--wine); background: rgba(92, 35, 24, 0.08); color: var(--wine); font-weight: 600; }
.profile__about { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; font-family: var(--sans); font-size: 14px; color: var(--ink-700); }
.profile__link { border: 0; background: none; padding: 0; color: var(--wine); font-family: var(--sans); font-size: 14px; text-decoration: underline; cursor: pointer; }
.profile__ok { font-family: var(--sans); font-size: 14px; color: var(--olive); }
.profile__error { margin: 10px 0 0; font-family: var(--sans); font-size: 14px; color: var(--wine); }
.profile__error a { color: var(--wine); font-weight: 600; }
.profile__fine { margin: 10px 0 0; font-family: var(--sans); font-size: 12px; color: var(--ink-500); }
.profile__danger { border-color: rgba(160, 30, 30, 0.45); color: #A01E1E; }
.profile__confirm { padding: 14px; border: 1px solid rgba(160, 30, 30, 0.35); border-radius: 14px; background: rgba(160, 30, 30, 0.04); }
.profile__confirm-title { margin: 0 0 10px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-900); }
.profile__check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: var(--sans); font-size: 14.5px; color: var(--ink-900); }
.profile__danger-solid { border: 0; background: #A01E1E; color: #fff; }
.profile__danger-solid:disabled { opacity: 0.45; }
.profile__signed-out { margin: 24px 0 48px; font-family: var(--sans); font-size: 16px; color: var(--ink-700); }
.profile__deleted { margin: 24px 0 48px; font-size: 16px; }
