/* Shared component styles. Measurements follow the Pencil frames (390 × 844). */
.app, .app * { box-sizing: border-box; }
.app { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--surface); color: var(--onSurface);
  font-family: var(--fontFamilyBody); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
:where(.app) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:where(.app) input, :where(.app) textarea { font: inherit; color: inherit; }
.app :focus-visible { outline: 2px solid var(--tertiary); outline-offset: 2px; }
.ic { flex-shrink: 0; display: block; }

/* screen + transitions */
.stage { position: absolute; inset: 0; }
.screen-host { position: absolute; inset: 0; background: var(--surface); }
.screen-host.active { z-index: 1; }
/* kept mounted for tab/back state; visibility (not display) so scroll positions survive */
.screen-host.hidden { visibility: hidden; pointer-events: none; }
.screen-host.push { animation: pushIn .32s cubic-bezier(.2,.8,.2,1); }
.screen-host.pop { animation: popIn .28s cubic-bezier(.2,.8,.2,1); }
.screen-host.fade { animation: fadeIn .2s ease-out; }
@keyframes pushIn { from { transform: translateX(100%); box-shadow: -10px 0 30px #0002; } }
@keyframes popIn { from { transform: translateX(-30%); opacity: .6; } }
@keyframes fadeIn { from { opacity: 0; } }
.scr { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--surface); overflow: hidden; }

/* status bar: drawn in the desktop frame, replaced by the real one on a phone */
.statusbar { height: 62px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space24);
  font-family: var(--fontFamilyStatus); font-size: 16px; font-weight: var(--fontWeightSemiBold); position: relative; z-index: 6; color: var(--onSurface); }
.statusbar.light { color: #fff; }
.sb-ind { display: flex; gap: var(--space4); align-items: center; }
.device .statusbar { height: env(safe-area-inset-top, 0px); padding: 0; overflow: hidden; }
.device .statusbar > * { display: none; }
/* small preview frame: a home-button phone (iPhone SE) has a 20px status bar and no home indicator */
.sb-pct { display: none; }
/* home-button iPhone: signal + Wi-Fi left, time centred, battery % + battery right, 20pt tall */
.compact .statusbar { height: 20px; padding: 0 6px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 12px; font-weight: var(--fontWeightSemiBold); letter-spacing: -.1px; }
.compact .sb-ind { display: contents; }
.compact .sb-time { grid-column: 2; grid-row: 1; }
.compact .sb-sig, .compact .sb-wifi { grid-column: 1; grid-row: 1; justify-self: start; width: 15px; height: 15px; }
.compact .sb-wifi { margin-left: 19px; width: 14px; height: 14px; }
.compact .sb-pct { display: block; grid-column: 3; grid-row: 1; justify-self: end; margin-right: 30px; }
.compact .sb-bat { grid-column: 3; grid-row: 1; justify-self: end; width: 26px; height: 26px; }
.compact .toast-wrap { top: 92px; }
.compact .bottom, .compact .sheet { padding-bottom: var(--space24); }
.compact .tabbar-wrap, .compact .player-wrap { padding-bottom: var(--space16); }
.compact .play-fab { bottom: 16px; }

/* nav bar */
.nav { height: 64px; flex-shrink: 0; display: flex; align-items: center; gap: var(--space12); padding: 0 var(--space16); background: var(--surface); position: relative; z-index: 3; }
.nav .grow { flex: 1; min-width: 0; }
.nav-trailing { display: flex; gap: var(--space8); align-items: center; justify-content: flex-end; }
.wordmark { font-family: var(--fontFamilyDisplay); font-size: var(--fontSizeTitleLarge); line-height: var(--lineHeightTitleLarge); font-weight: var(--fontWeightMedium); color: var(--primary); }
.nav-title { font-family: var(--fontFamilyDisplay); font-size: var(--fontSizeHeadlineSmall); line-height: var(--lineHeightHeadlineSmall); font-weight: var(--fontWeightMedium); letter-spacing: var(--letterSpacingHeadlineSmall); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-title-lg { font-family: var(--fontFamilyDisplay); font-size: var(--fontSizeDisplaySmall); line-height: var(--lineHeightDisplaySmall); font-weight: var(--fontWeightMedium); letter-spacing: -.6px; }
.overline { font-family: var(--fontFamilyMono); font-size: var(--fontSizeLabelExtraSmall); line-height: var(--lineHeightLabelExtraSmall); font-weight: var(--fontWeightSemiBold); letter-spacing: var(--letterSpacingOverline); color: var(--onTertiaryContainer); text-transform: uppercase; }

/* scrolling content */
.content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: var(--space12) var(--space16) var(--space20); display: flex; flex-direction: column; gap: var(--space24); scrollbar-width: none; }
.content::-webkit-scrollbar { display: none; }
.content > * { flex-shrink: 0; }
.bottom { flex-shrink: 0; display: flex; flex-direction: column; gap: var(--space12); padding: var(--space12) var(--space16) var(--space40); background: var(--surface); }
.device .bottom { padding-bottom: max(var(--space24), env(safe-area-inset-bottom, 0px)); }

/* type */
.kicker { font-family: var(--fontFamilyMono); font-size: var(--fontSizeLabelExtraSmall); line-height: var(--lineHeightLabelExtraSmall); font-weight: var(--fontWeightSemiBold); letter-spacing: var(--letterSpacingOverline); color: var(--onTertiaryContainer); text-transform: uppercase; }
.h-xl { font-family: var(--fontFamilyDisplay); font-size: var(--fontSizeDisplaySmall); font-weight: var(--fontWeightMedium); letter-spacing: -.6px; line-height: var(--lineHeightDisplaySmall); }
.h-l { font-family: var(--fontFamilyDisplay); font-size: var(--fontSizeHeadlineSmall); line-height: var(--lineHeightHeadlineSmall); font-weight: var(--fontWeightMedium); letter-spacing: var(--letterSpacingHeadlineSmall); }
.h-m { font-family: var(--fontFamilyDisplay); font-size: var(--fontSizeTitleLarge); line-height: var(--lineHeightTitleLarge); font-weight: var(--fontWeightMedium); }
.h-s { font-family: var(--fontFamilyDisplay); font-size: var(--fontSizeTitleMedium); line-height: var(--lineHeightTitleMedium); font-weight: var(--fontWeightMedium); letter-spacing: -.2px; }
.t-title { font-size: var(--fontSizeTitleSmall); line-height: var(--lineHeightTitleSmall); font-weight: var(--fontWeightBold); }
.t-body { font-size: var(--fontSizeBodyMedium); line-height: var(--lineHeightBodyMedium); }
.t-sub { font-size: var(--fontSizeLabelMedium); font-weight: var(--fontWeightMedium); line-height: var(--lineHeightLabelMedium); color: var(--outline); }
.t-cap { font-size: var(--fontSizeLabelSmall); line-height: var(--lineHeightLabelSmall); color: var(--onSurfaceVariant); }
.muted { color: var(--onSurfaceVariant); }
.arabic { font-family: var(--fontFamilyArabic); direction: rtl; line-height: var(--lineHeightArabicTight); }

/* buttons */
.btn { height: 52px; border-radius: var(--radiusFull); display: inline-flex; align-items: center; justify-content: center; gap: var(--space8); padding: 0 var(--space24); width: 100%;
  font-size: var(--fontSizeTitleSmall); line-height: var(--lineHeightTitleSmall); font-weight: var(--fontWeightBold); transition: transform .1s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--onPrimary) !important; }
.btn-primary:disabled { opacity: .4; }
.btn-text { color: var(--primary) !important; font-size: var(--fontSizeBodyMedium); line-height: var(--lineHeightBodyMedium); font-weight: var(--fontWeightSemiBold); padding: 0 var(--space12); gap: var(--space4); }
.btn-outline { background: var(--surfaceContainerLowest); outline: 1px solid var(--outlineVariant); outline-offset: -1px; }
.btn-danger { background: var(--error); color: var(--onError) !important; }
.round { border-radius: var(--radiusFull); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--surfaceContainerLowest); outline: 1px solid var(--outlineVariant); outline-offset: -1px; color: var(--onSurface); }
.round.filled { background: var(--primary); color: var(--onPrimary); outline: 0; }
.round:active, .pressable:active { filter: brightness(.95); }
.chip-btn { height: 34px; border-radius: var(--radiusFull); padding: 0 var(--space12); display: inline-flex; align-items: center; gap: var(--space4); flex-shrink: 0;
  background: var(--surfaceContainerLowest); outline: 1px solid var(--outlineVariant); outline-offset: -1px; font-size: var(--fontSizeBodySmall); line-height: var(--lineHeightBodySmall); font-weight: var(--fontWeightBold); }
.chip-btn.ok { background: var(--primaryContainer); color: var(--primary); outline: 0; }

/* cards + rows */
.card { background: var(--surfaceContainerLowest); border-radius: var(--radius20); outline: 1px solid var(--outlineVariant); outline-offset: -1px; padding: var(--space16); }
.icon-wrap { width: 40px; height: 40px; border-radius: var(--radiusFull); background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
.row { display: flex; align-items: center; gap: var(--space12); }
.col { display: flex; flex-direction: column; }
.grow { flex: 1; min-width: 0; }
.divided > * + * { border-top: 1px solid var(--outlineVariant); }
.info-box { display: flex; gap: var(--space8); padding: var(--space8) var(--space12); border-radius: var(--radius12); background: var(--tertiaryContainer); color: var(--onSurface); font-size: var(--fontSizeLabelSmall); line-height: var(--lineHeightLabelSmall); }
.info-box .ic { color: var(--onTertiaryContainer); margin-top: 1px; }

/* radio / check / switch */
.radio { width: 22px; height: 22px; border-radius: var(--radiusFull); outline: 1.5px solid var(--outline); outline-offset: -1.5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.radio.on { outline: 2px solid var(--primary); outline-offset: -2px; }
.radio .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.check { width: 22px; height: 22px; border-radius: var(--radius4); outline: 1.5px solid var(--outline); outline-offset: -1.5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check.on { background: var(--primary); outline: 0; color: var(--onPrimary); }
.switch { width: 52px; height: 32px; border-radius: var(--radiusFull); background: var(--outlineVariant); position: relative; flex-shrink: 0; transition: background .2s; }
.switch .knob { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--surfaceContainerLowest); box-shadow: 0 1px 3px #0003; transition: transform .2s; }
.switch.on { background: var(--primary); }
.switch.on .knob { transform: translateX(20px); }

/* segmented */
.seg { display: flex; height: 44px; padding: var(--space4); border-radius: var(--radiusFull); background: var(--primaryContainer); flex-shrink: 0; }
.seg-item { flex: 1; height: 100%; padding: 0 var(--space12); border-radius: var(--radiusFull); font-size: var(--fontSizeBodySmall); line-height: var(--lineHeightBodySmall); font-weight: var(--fontWeightBold); color: var(--primary); transition: background .2s, color .2s; text-align: center; }
.seg-item.on { background: var(--primary); color: var(--onPrimary); }

/* slider */
.slider { display: flex; align-items: center; gap: var(--space12); }
.sl-min { font-size: var(--fontSizeLabelMedium); font-weight: var(--fontWeightSemiBold); color: var(--onSurfaceVariant); }
.sl-max { font-size: var(--fontSizeTitleLarge); font-weight: var(--fontWeightSemiBold); color: var(--onSurfaceVariant); }
.sl-track-wrap { position: relative; flex: 1; height: 28px; display: flex; align-items: center; }
.sl-track { height: 4px; width: 100%; border-radius: var(--radiusFull); background: var(--outlineVariant); overflow: hidden; }
.sl-fill { height: 100%; background: var(--primary); }
.sl-knob { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: var(--surfaceContainerLowest); outline: 2px solid var(--primary); outline-offset: -2px; box-shadow: 0 2px 6px #0002; pointer-events: none; }
.sl-track-wrap input { position: absolute; inset: 0; width: 100%; opacity: 0; margin: 0; cursor: pointer; }

/* star ornament */
.star { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.star svg { position: absolute; inset: 0; overflow: visible; }
.star-num { position: relative; font-family: var(--fontFamilyArabic); font-size: 13px; color: var(--onTertiaryContainer); line-height: 1; padding-top: var(--space2); }
.ayah-marker.active .star-num { color: var(--onPrimary); }

/* logo */
.logo-mark { border-radius: var(--radiusFull); outline: 3.06px solid var(--primary); display: flex; flex-shrink: 0; }
.logo-ring { flex: 1; border-radius: var(--radiusFull); outline: .92px solid var(--brandGold); display: flex; align-items: center; justify-content: center; }
.logo-ring img { width: 100%; height: 100%; display: block; }
.app[data-theme="dark"] .logo-ring img { filter: invert(78%) sepia(15%) saturate(700%) hue-rotate(100deg); }

/* tab bar */
.tabbar-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space32) var(--space16) var(--space40); z-index: 5; display: flex; flex-direction: column; gap: var(--space8);
  background: linear-gradient(180deg, var(--surfaceFade0) 0%, var(--surfaceFade60) 55%, var(--surface) 100%); pointer-events: none; }
.device .tabbar-wrap { padding-bottom: max(var(--space16), env(safe-area-inset-bottom, 0px)); }
.tabbar { pointer-events: auto; height: 60px; border-radius: var(--radiusFull); display: flex; align-items: center; padding: var(--space4);
  background: var(--surfaceTranslucent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  outline: 1px solid var(--surfaceContainerLowest); outline-offset: -.5px; box-shadow: var(--elevation1); }
.tab { flex: 1; height: 100%; border-radius: var(--radiusFull); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space4);
  font-size: var(--fontSizeLabelExtraSmall); line-height: var(--lineHeightLabelExtraSmall); font-weight: var(--fontWeightSemiBold); color: var(--outline) !important; }
.content.has-tabs { padding-bottom: 150px; }
.screen-host:has(.tabbar-wrap .mini-player) .content.has-tabs { padding-bottom: 210px; }
.tab.on { background: var(--primaryContainer); color: var(--primary) !important; }

/* sheets */
.sheet-layer { position: absolute; inset: 0; z-index: 20; container: sheet-layer / size; display: flex; flex-direction: column; justify-content: flex-end; }
.backdrop { position: absolute; inset: 0; background: var(--backdrop); animation: fadeIn .25s ease-out; }
.backdrop.light { background: var(--backdropLight); }
.sheet { position: relative; max-height: calc(100% - 70px); display: flex; flex-direction: column; gap: var(--space20); padding: var(--space8) var(--space16) var(--space40);
  background: var(--surface); border-radius: var(--radius28) var(--radius28) 0 0; box-shadow: var(--elevation4); animation: sheetUp .32s cubic-bezier(.2,.8,.2,1);
  transition: transform .2s ease; touch-action: none; }
.device .sheet { padding-bottom: max(var(--space24), env(safe-area-inset-bottom, 0px)); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.grabber-row { display: flex; justify-content: center; flex-shrink: 0; }
.grabber { width: 36px; height: 4px; border-radius: var(--radiusFull); background: var(--outlineVariant); }
.sheet-head { display: flex; align-items: center; gap: var(--space12); flex-shrink: 0; }
.sheet-head .titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space2); }
.sheet-title { font-family: var(--fontFamilyDisplay); font-size: var(--fontSizeHeadlineSmall); line-height: var(--lineHeightHeadlineSmall); font-weight: var(--fontWeightMedium); letter-spacing: var(--letterSpacingHeadlineSmall); }
.sheet-body { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: var(--space20); margin: 0 -16px; padding: 0 var(--space16); touch-action: pan-y; scrollbar-width: none; }
.sheet-body > * { flex-shrink: 0; }
.sheet-foot { flex-shrink: 0; display: flex; flex-direction: column; gap: var(--space12); }
/* Sheet motion (ui.sheetAnim / ui.sheetClosing, see core.js). Swaps keep the panel and backdrop in place:
   the panel resizes (ui.js) while its content slides in from the side it came from. */
.sheet-host { display: contents; }
.sheet-host:not(.anim-up) .sheet, .sheet-host:not(.anim-up) .backdrop { animation: none; }
.sheet-host.anim-forward .sheet > :not(.grabber-row) { animation: sheetFwd .28s cubic-bezier(.2,.8,.2,1); }
.sheet-host.anim-back .sheet > :not(.grabber-row) { animation: sheetBack .28s cubic-bezier(.2,.8,.2,1); }
.sheet-host.closing .sheet-layer { pointer-events: none; }
.sheet-host.closing .sheet { animation: sheetDown .2s cubic-bezier(.4,0,1,1) forwards; }
.sheet-host.closing .backdrop { animation: fadeOut .2s ease-in forwards; }
@keyframes sheetFwd { from { opacity: 0; transform: translateX(32px); } }
@keyframes sheetBack { from { opacity: 0; transform: translateX(-32px); } }
@keyframes sheetDown { to { transform: translateY(110%); } }
@keyframes fadeOut { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .sheet-host .sheet, .sheet-host .backdrop, .sheet-host .sheet > * { animation-duration: .01s !important; }
}

/* dialogs + menus */
.dialog-layer { position: absolute; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; padding: var(--space24); }
.dialog { position: relative; width: 342px; max-width: 100%; border-radius: var(--radius28); background: var(--surface); padding: var(--space24); display: flex; flex-direction: column; gap: var(--space16); animation: popUp .22s ease-out; box-shadow: 0 12px 40px color-mix(in srgb, var(--shadow) 18%, transparent); }
@keyframes popUp { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.menu-layer { position: absolute; inset: 0; z-index: 22; }
.menu-layer .backdrop { background: color-mix(in srgb, var(--scrim) 15%, transparent); }
.menu { position: absolute; border-radius: var(--radius16); background: var(--surfaceContainerLowest); outline: 1px solid var(--outlineVariant); outline-offset: -1px;
  box-shadow: var(--elevation2); padding: var(--space4); gap: var(--space2); display: flex; flex-direction: column; animation: popUp .18s ease-out; }
/* 04.1d: the long-pressed row raised above a lighter scrim */
.menu-layer.lifted .backdrop { background: color-mix(in srgb, var(--scrim) 10%, transparent); }
.menu-lift { position: absolute; padding: 0 var(--space16); border-radius: var(--radius16); background: var(--surfaceContainerLowest); outline: 1px solid var(--outlineVariant); outline-offset: -1px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--shadow) 12%, transparent); pointer-events: none; animation: lift .18s ease-out; }
@keyframes lift { from { box-shadow: none; transform: scale(.98); } }
.menu-item { display: flex; align-items: center; gap: var(--space12); padding: var(--space12); border-radius: var(--radius12); font-size: var(--fontSizeBodyMedium); font-weight: var(--fontWeightMedium); line-height: var(--lineHeightBodyMedium); text-align: left; }
.menu-item:hover { background: var(--surface); }
.menu-item.danger { color: var(--error) !important; }

/* toast */
/* 8px under the app bar (status bar 62 + nav 64) */
.toast-wrap { position: absolute; left: 16px; right: 16px; top: 134px; z-index: 30; display: flex; justify-content: center; pointer-events: none; animation: dropIn .25s ease-out; }
.device .toast-wrap { top: calc(env(safe-area-inset-top, 0px) + 72px); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.toast { pointer-events: auto; width: 100%; display: flex; align-items: center; gap: var(--space12); padding: var(--space12); border-radius: var(--radius16);
  background: var(--inverseSurface); color: var(--onInverseSurface); box-shadow: var(--elevation2); }
.toast-ic { width: 32px; height: 32px; border-radius: var(--radius12); background: color-mix(in srgb, var(--onInverseSurface) 10%, transparent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space2); }
.toast-title { font-size: var(--fontSizeBodySmall); line-height: var(--lineHeightBodySmall); font-weight: var(--fontWeightSemiBold); }
.toast-body { font-size: var(--fontSizeLabelSmall); line-height: var(--lineHeightLabelSmall); opacity: .8; }
/* drawn flush like the pen's text Action; the padding only widens the tap area */
.toast-action { flex-shrink: 0; margin: calc(-1 * var(--space8)); padding: var(--space8); color: var(--inverseTertiary) !important; font-size: var(--fontSizeBodyMedium); line-height: var(--lineHeightBodyMedium); font-weight: var(--fontWeightSemiBold); }
.switch { width: 44px !important; height: 26px !important; }
.switch .knob { top: 3px !important; left: 3px !important; width: 20px !important; height: 20px !important; }
.switch.on .knob { transform: translateX(18px) !important; }

/* wheel picker */
.wheel { background: var(--surfaceContainerLowest); border-radius: var(--radius20); outline: 1px solid var(--outlineVariant); outline-offset: -1px;
  padding: var(--space12) var(--space12) var(--space8); display: flex; flex-direction: column; gap: var(--space4); touch-action: none; user-select: none; cursor: ns-resize; }
.wheel-labels { display: flex; gap: var(--space8); padding: 0 var(--space4); }
.wheel-labels span { flex: 1; text-align: center; font-family: var(--fontFamilyMono); font-size: var(--fontSizeLabelExtraSmall); line-height: var(--lineHeightLabelExtraSmall); font-weight: var(--fontWeightSemiBold); letter-spacing: var(--letterSpacingOverline); color: var(--onTertiaryContainer); }
.wheel-row { height: 34px; border-radius: var(--radius12); display: flex; align-items: center; gap: var(--space8); padding: 0 var(--space4); position: relative; }
.wheel-cell { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--space8); font-family: var(--fontFamilyDisplay); font-size: var(--fontSizeTitleMedium); line-height: var(--lineHeightTitleMedium); font-weight: var(--fontWeightMedium); white-space: nowrap; overflow: hidden; }
.wheel-row.sel { height: 52px; background: var(--primaryContainer); }
.wheel-row.sel .wheel-cell { font-size: var(--fontSizeDisplaySmall); line-height: var(--lineHeightDisplaySmall); color: var(--primary); }
/* surah + ayat wheel (04.2) */
.wheel.surah .wheel-row.sel .wheel-cell { font-size: var(--fontSizeHeadlineSmall); line-height: var(--lineHeightHeadlineSmall); }
.wheel .left { justify-content: flex-start; padding: 0 var(--space8); }
.wheel .w-num { font-family: var(--fontFamilyMono); font-size: var(--fontSizeLabelMedium); line-height: var(--lineHeightLabelMedium); font-weight: var(--fontWeightBold); color: var(--onSurfaceVariant); }
.wheel .sel .w-num { color: var(--primary); }
/* single number wheel (juz, halaman, 04.3/04.4): neighbours step down Headline → Title Large, the outer pair faded */
.wheel.single .wheel-labels span { text-align: center; }
.wheel.single .wheel-row { justify-content: center; }
.wheel.single .wheel-row.d1 .wheel-cell > b { font-size: var(--fontSizeHeadlineSmall); line-height: var(--lineHeightHeadlineSmall); letter-spacing: var(--letterSpacingHeadlineSmall); color: var(--onSurfaceVariant); }
.wheel.single .wheel-row.d2 .wheel-cell > b { opacity: .25; font-size: var(--fontSizeTitleLarge); line-height: var(--lineHeightTitleLarge); }
.wheel.single .wheel-cell > b { font-weight: var(--fontWeightMedium); }
.wheel.single .wheel-row.sel .wheel-cell { letter-spacing: -.6px; }
.wheel .w-of { font-family: var(--fontFamilyMono); font-size: var(--fontSizeLabelExtraSmall); line-height: var(--lineHeightLabelExtraSmall); font-weight: var(--fontWeightSemiBold); letter-spacing: var(--letterSpacingOverline); color: var(--onTertiaryContainer); }
.wheel-div { width: 1px; height: 28px; }
.wheel-row.sel .wheel-div { background: color-mix(in srgb, var(--primary) 15%, transparent); }
.wheel-suffix { position: absolute; right: 16px; font-size: var(--fontSizeLabelMedium); line-height: var(--lineHeightLabelMedium); font-weight: var(--fontWeightSemiBold); color: var(--primary); }

/* text fields */
.field { height: 52px; border-radius: var(--radius16); background: var(--surfaceContainerLowest); outline: 1.5px solid var(--outlineVariant); outline-offset: -1.5px;
  display: flex; align-items: center; gap: var(--space12); padding: 0 var(--space16); }
.field:focus-within { outline: 2px solid var(--primary); outline-offset: -2px; }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--fontSizeTitleSmall); line-height: var(--lineHeightTitleSmall); font-weight: var(--fontWeightMedium); }
.field input::placeholder { color: var(--outline); }
.wheel.surah .wheel-labels span:first-child { text-align: left; padding-left: var(--space8); }

/* slider (07 Ukuran teks) */
.slider { gap: var(--space8); }
.slider .sl-track-wrap { height: 24px; }
.slider .sl-knob { width: 22px; height: 22px; box-shadow: none; }
.slider.ar .sl-min { font-family: var(--fontFamilyArabic); font-size: 15px; font-weight: var(--fontWeightRegular); }
.slider.ar .sl-max { font-family: var(--fontFamilyArabic); font-size: 24px; font-weight: var(--fontWeightRegular); }

/* stepper */
.stepper { display: flex; align-items: center; height: 36px; padding: var(--space2); border-radius: var(--radiusFull); background: var(--surface); flex-shrink: 0; }
.st-btn { width: 32px; height: 32px; border-radius: var(--radiusFull); background: var(--surfaceContainerLowest); color: var(--primary) !important; display: flex; align-items: center; justify-content: center; }
.st-btn.off { background: transparent; color: var(--outline) !important; }
.st-val { width: 34px; text-align: center; font-family: var(--fontFamilyMono); font-size: var(--fontSizeLabelMedium); line-height: var(--lineHeightLabelMedium); font-weight: var(--fontWeightBold); }
/* text size (07.1, 15.2d): roomier, plain numbers */
.stepper.size { height: 40px; padding: var(--space4); gap: var(--space4); }
.stepper.size .st-val { width: 28px; font-family: var(--fontFamilyBody); font-size: var(--fontSizeTitleSmall); line-height: var(--lineHeightTitleSmall); font-weight: var(--fontWeightMedium); }
.stepper.size .st-btn.off { background: var(--surfaceContainerLowest); opacity: .45; }
.switch-slot { width: 44px; flex-shrink: 0; }
.group-kicker { display: flex; align-items: center; gap: var(--space4); padding: 0 var(--space4); font-family: var(--fontFamilyMono); font-size: var(--fontSizeLabelExtraSmall); line-height: var(--lineHeightLabelExtraSmall); font-weight: var(--fontWeightSemiBold); letter-spacing: var(--letterSpacingOverline); text-transform: uppercase; color: var(--onTertiaryContainer); }

/* list rows inside cards */
.lrow { display: flex; align-items: center; gap: var(--space12); padding: var(--space12) 0; text-align: left; }
.lrow + .lrow { border-top: 1px solid var(--outlineVariant); }
.lrow.tap { cursor: pointer; }
.lrow.tap:active { opacity: .7; }
.lrow-title { font-family: var(--fontFamilyDisplay); font-size: var(--fontSizeTitleMedium); line-height: var(--lineHeightTitleMedium); font-weight: var(--fontWeightMedium); letter-spacing: -.2px; }
.lrow-sub { font-size: var(--fontSizeLabelSmall); line-height: var(--lineHeightLabelSmall); color: var(--onSurfaceVariant); }
.checkbox { width: 22px; height: 22px; border-radius: var(--radius4); outline: 1.5px solid var(--outline); outline-offset: -1.5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checkbox.on { background: var(--primary); outline: 0; color: var(--onPrimary); }
