/* =====================================================================
   MasjidTimeTable — pages.css
   Page/component-specific styles. Loaded after shared.css on every page.
   ===================================================================== */

/* =======================================================================
   Slide panels (Home slides / Masjid detail / Taqweem-today) — shared
   "arch doorway" motif: SlideBackground.kt / ColorSlideBackground.kt /
   ArchSlideBackground (private, in MasjidDetailScreen.kt & TownTaqweemTodayScreen.kt)
   ======================================================================= */
.slide-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  margin: 8px 18px;
  border-radius: 0 0 var(--arch-radius) var(--arch-radius);
  overflow: hidden;
  background: #06181c;
}
.slide-wrap.compact { margin: 8px 12px; flex: none; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
  /* Invisible (showing the slide-wrap's plain dark placeholder) until the
     photo has fully downloaded and JS adds .loaded — never a partial or
     progressively-rendered frame, just a clean fade once it's ready. */
  opacity: 0; transition: opacity 0.4s ease;
}
.slide-bg.loaded { opacity: 1; }
.slide-wrap.tomorrow .slide-bg { filter: grayscale(1) brightness(0.88); }
.slide-wrap.tomorrow .slide-bg.loaded { opacity: 0.92; }
.slide-arch { position: absolute; top: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; line-height: 0; }
.slide-arch svg { width: 100%; display: block; aspect-ratio: 1296 / 650; }
.slide-content { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; flex-direction: column; }

.slide-header { padding: 15px 16px 0; text-align: center; flex-shrink: 0; }
.slide-header img.bismillah { height: 32px; width: auto; display: block; margin: 0 auto; }
.slide-header .row-text {
  color: #fff; font-size: var(--f-header); line-height: var(--f-header);
  margin: 7px 0;
}
.slide-header hr { width: 70%; margin: 6px auto; background: rgba(255,255,255,0.5); }
.slide-header hr.full { width: 100%; }
.slide-header hr.wide { width: 88%; }
.slide-header .masjid-name-row { color: var(--gold-star); font-weight: 700; }
.slide-header .title-row { text-transform: uppercase; font-weight: 700; }

.slide-list { flex: 1; overflow-y: auto; padding: 4px 16px 8px; -webkit-overflow-scrolling: touch; }

.fav-hint {
  flex-shrink: 0; text-align: center;
  font-size: 11.5px; color: #fff;
  padding: 6px 14px; margin: 0 auto 8px; max-width: 90%;
  background: rgba(0,0,0,0.45); border-radius: 14px;

}
.fav-hint .line1 { font-weight: 700; }
.fav-hint .line2 { font-weight: 600; margin-top: 2px; }
.fav-hint .icon { display: inline-flex; color: var(--gold-star); vertical-align: -3px; }
.fav-hint .icon svg { width: 13px; height: 13px; }
.masjid-row { padding: 1px 0 0; cursor: pointer; }
.masjid-row .row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.masjid-row .m-name {
  color: #fff; font-size: var(--f-slides); line-height: var(--f-slides); font-weight: 700;

  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.masjid-row .m-time {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  color: #fff; font-size: var(--f-slides); line-height: var(--f-slides); font-weight: 700;

}
.masjid-row .m-loc {
  color: #fff; font-weight: 600; font-size: max(12px, calc(var(--f-slides) - 8px));
  margin-top: -2px;
}
.slide-list .hr { background: rgba(255,255,255,0.3); margin: 2px 0; }

.slide-hint {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: center; transition: transform .25s, opacity .25s;
}
.slide-hint.hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
.slide-hint .card {
  width: 78%; background: rgba(255,255,255,0.9); border-radius: 16px 16px 0 0;
  padding: 12px 20px; color: #05242C; font-size: 15px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
}
.slide-hint .card.dark { background: rgba(20,20,20,0.85); color: rgba(255,255,255,0.9); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .slide-hint .card {
    background: rgba(255,255,255,0.55);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
  }
  .slide-hint .card.dark {
    background: rgba(0,0,0,0.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
  }
}
.slide-hint .row { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-weight: 700; }
.slide-hint .row svg { width: 18px; height: 18px; fill: currentColor; }
.slide-hint .legend-line { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-weight: 500; }
.slide-hint hr { margin: 6px 0; }
.slide-hint .note { font-size: 12px; opacity: 0.8; text-align: center; }

/* Floating round buttons over the home slides */
.float-row { position: absolute; top: 25px; left: 24px; right: 24px; z-index: 5; display: flex; justify-content: space-between; }
.float-btn {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(158,158,158,0.9);
  display: flex; align-items: center; justify-content: center; cursor: pointer; border: none;
}
.float-btn svg { width: 22px; height: 22px; fill: #fff; }
.float-btn.legend-dot span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.9); display: block; }

/* =======================================================================
   Home page — slide pager + top bar
   ======================================================================= */
/* Exactly fills the app-shell (100dvh) — same size the slider/topbar/dots
   ever had, unaffected by whatever's appended below (e.g. #visitorStats). */
.viewport-fill { height: 100%; display: flex; flex-direction: column; }
.pager-wrap { position: relative; flex: 1; min-height: 0; display: flex; }
.pager { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.pager::-webkit-scrollbar { display: none; }
.pager .slide-page { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; min-width: 100%; position: relative; }
.pager-dots { display: flex; justify-content: center; gap: 6px; padding: 6px 0; flex-shrink: 0; }
.pager-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,0.2); }
.pager-dots span.active { background: var(--teal-topbar); width: 16px; border-radius: 3px; }
.last-updated { flex-shrink: 0; text-align: center; font-size: 11px; color: rgba(0,0,0,0.45); padding: 2px 0 6px; }
.visitor-stats {
  flex-shrink: 0; text-align: center; font-size: 11px; color: rgba(0,0,0,0.45);
  padding: 2px 12px 8px; line-height: 16px;
}
.visitor-stats .vs-duas { font-style: italic; color: rgba(0,0,0,0.5); margin-bottom: 5px; }
.visitor-stats .vs-title { font-weight: 700; color: rgba(0,0,0,0.55); margin-bottom: 1px; }

/* =======================================================================
   Picker modals (favourites / town picker) — MasjidPickerPopup / TownPickerPopup
   ======================================================================= */
.picker-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; cursor: pointer; border-bottom: 0.5px solid rgba(255,255,255,0.2); }
.picker-row:last-child { border-bottom: none; }
.picker-row .info { min-width: 0; }
.picker-row .name { color: #fff; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-row .loc { color: #fff; font-weight: 600; font-size: 12px; opacity: 0.85; }
.picker-row .icon { color: #fff; flex-shrink: 0; }
.picker-row .icon svg { width: 22px; height: 22px; fill: currentColor; }
.picker-row .icon.fav { color: var(--gold-star); }
.picker-list { flex: 1; overflow-y: auto; padding: 0 16px; }

/* =======================================================================
   Notice / Eid popups — NoticeboardPopup.kt / EidPosterScreen.kt
   ======================================================================= */
.notice-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.0); z-index: 150; display: none; align-items: center; justify-content: center; padding: 20px; }
.notice-overlay.open { display: flex; }
.notice-card { background: #fff; border-radius: 16px; padding: 24px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .notice-card {
    background: rgba(255,255,255,0.82);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    backdrop-filter: blur(22px) saturate(1.4);
  }
}
.notice-card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: #000; }
.notice-card p { margin: 0; font-size: 15px; line-height: 22px; color: #333; white-space: pre-line; text-align: left; }
.notice-card img { width: 100%; border-radius: 8px; margin-top: 12px; }
.notice-actions { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 20px; }
.notice-actions .circle { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.notice-actions .circle.whatsapp { background: var(--whatsapp); }
.notice-actions .circle.close { background: #eee; }
.notice-actions .circle svg { width: 28px; height: 28px; fill: #333; }
.notice-actions .circle.whatsapp img { width: 34px; height: 34px; }

.eid-overlay { position: fixed; inset: 0; background: rgba(5,36,44,0.96); z-index: 150; display: none; flex-direction: column; padding: 20px 16px; }
.eid-overlay.open { display: flex; }
/* Wraps title+table+body only (excludes the share/close buttons below) so
   this whole element can be captured directly as the share screenshot. */
.eid-card { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--page-navy); border-radius: 12px; }
.eid-overlay .eid-title { color: #fff; font-size: 22px; font-weight: 800; text-align: center; text-transform: uppercase; }
.eid-table-head, .eid-row { display: flex; align-items: center; padding: 6px 0; }
.eid-table-head { color: rgba(255,255,255,0.7); font-weight: 700; font-size: 13px; border-bottom: 0.5px solid rgba(255,255,255,0.3); margin-top: 8px; }
.eid-row { border-bottom: 0.5px solid rgba(255,255,255,0.15); color: #fff; font-size: 15px; }
.eid-col-venue { flex: 3; padding-left: 8px; font-weight: 600; }
.eid-col-fajr { flex: 1; }
.eid-col-eid { flex: 1; text-align: right; padding-right: 8px; font-weight: 700; color: var(--green-alt); }
.eid-table-head .eid-col-venue,.eid-table-head .eid-col-fajr,.eid-table-head .eid-col-eid{color:inherit;font-weight:700;}
.eid-body { flex: 1; overflow-y: auto; margin-top: 4px; }

/* =======================================================================
   Masjid detail — MasjidDetailScreen.kt
   ======================================================================= */
.detail-tabs { display: flex; gap: 6px; padding: 8px 12px 0; flex-shrink: 0; }
.detail-tabs button {
  flex: 1; padding: 10px; border-radius: 10px; border: none; background: rgba(0,0,0,0.06);
  font-family: inherit; font-weight: 700; font-size: 13px; color: #333; cursor: pointer;
}
.detail-tabs button.active { background: var(--teal-topbar); color: #fff; }

.time-row { display: flex; justify-content: space-between; align-items: center; padding: 2px 0 6px; }
.time-row .label { color: #fff; font-size: var(--f-detail); line-height: var(--f-detail); font-weight: 700; }
.time-row .value { display: flex; align-items: center; gap: 6px; color: #fff; font-size: var(--f-detail); line-height: var(--f-detail); font-weight: 700; }
.time-row.compact { padding: 1px 0 3px; }
.jamaat-panel, .taqweem-panel { padding: 6px 16px 12px; }
.jamaat-panel .hr, .taqweem-panel .hr { background: rgba(255,255,255,0.3); }

.detail-actions { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; flex-shrink: 0; }
.swipe-caption { text-align: center; font-size: 12px; color: rgba(0,0,0,0.7); padding: 4px 0; flex-shrink: 0; }

/* =======================================================================
   Taqweem today (year screen's "today" companion) & masjid taqweem panel
   ======================================================================= */
.taqweem-empty { color: rgba(255,255,255,0.8); padding: 16px; text-align: center; }

/* =======================================================================
   Taqweem year table — TownTaqweemYearScreen.kt
   ======================================================================= */
.tq-year-toolbar { display: flex; align-items: center; gap: 2px; padding: 8px; background: var(--dark-bg); flex-shrink: 0; }
.tq-table-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px; background: var(--dark-bg); }

/* Single 2-D scroll container; date column + header row are pinned via
   position:sticky instead of each row owning its own scrollbar. */
.tq-scroll { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.tq-row { display: flex; align-items: center; width: max-content; min-width: 100%; }
.tq-row.header {
  position: sticky; top: 0; z-index: 3;
  color: var(--green-alt); font-size: 11px; font-weight: 700;
  background: var(--dark-bg); padding: 4px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.3);
}
.tq-date-col {
  position: sticky; left: 0; z-index: 2;
  width: 46px; flex: 0 0 46px; text-align: center;
  color: var(--green-alt); font-size: 11px;
  background: inherit;
}
.tq-row.header .tq-date-col { z-index: 4; }
.tq-row.data { color: #fff; padding: 3px 0; background: var(--dark-bg); }
.tq-row.data:nth-child(odd) { background: #17191a; }
.tq-row.data.today { background: #8BC34A; color: #000; }
.tq-row.data.today .tq-date-col { color: #000; }
.tq-col { width: 46px; flex: 0 0 46px; text-align: center; font-size: 11px; padding: 0 1px; }
.tq-zoom .tq-row.header { font-size: 20px; }
.tq-zoom .tq-date-col { width: 92px; flex-basis: 92px; font-size: 20px; }
.tq-zoom .tq-col { width: 92px; flex-basis: 92px; font-size: 20px; }
.tq-year-menu-btn { margin-left: auto; }

/* =======================================================================
   Jumuah table — JumuahTableScreen.kt
   ======================================================================= */
.jumuah-list { flex: 1; overflow-y: auto; padding: 8px 16px; }
.jumuah-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; color: #fff; }
.jumuah-row .name { font-size: 24px; line-height: 28px; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.jumuah-row .time { font-size: 24px; line-height: 28px; margin-left: 12px; white-space: nowrap; }
.jumuah-list .hr { background: rgba(255,255,255,0.12); }

/* =======================================================================
   Settings — SettingsScreen.kt
   ======================================================================= */
.settings-body { flex: 1; overflow-y: auto; padding: 24px 16px; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--glass); border: 0.8px solid var(--glass-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px;
  color: #fff; cursor: pointer; text-align: center;
}
.tile svg { width: 40px; height: 40px; fill: #fff; }
.tile img.wa { width: 56px; height: 56px; }
.tile .label { font-size: 14px; font-weight: 500; line-height: 18px; }
.mini-row { display: flex; gap: 12px; margin-top: 12px; }
.mini-tile {
  flex: 1; height: 56px; border-radius: var(--radius-md); background: var(--glass); border: 0.8px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; cursor: pointer; font-size: 14px; font-weight: 500;
}
.mini-tile svg { width: 22px; height: 22px; fill: #fff; }
.mini-tile .stars svg { width: 11px; height: 11px; fill: var(--green-alt); }
.mini-tile .stars { display: flex; gap: 1px; }
.mini-tile.stack { flex-direction: column; height: auto; padding: 8px 4px; gap: 2px; }
.ver-row { display: flex; justify-content: center; gap: 4px; margin-top: 16px; font-size: 16px; }
.ver-row .ver { color: rgba(255,255,255,0.5); }
.ver-row .whatsnew { color: var(--gold); opacity: 0.85; cursor: pointer; }

.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.settings-row .lbl { color: #fff; flex: 1; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: rgba(255,255,255,0.22); border-radius: 20px; transition: .2s; cursor: pointer; }
.switch .track::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .track { background: var(--green-accent); }
.switch input:checked + .track::before { transform: translateX(20px); }

.gold-slider-wrap { padding-top: 8px; }
.gold-slider-wrap .row { display: flex; justify-content: space-between; }
.gold-slider-wrap .row .lbl { color: rgba(255,255,255,0.55); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.gold-slider-wrap .row .val { color: var(--green-alt); font-size: 11px; font-weight: 700; }
input[type=range].gold {
  -webkit-appearance: none; width: 100%; height: 20px; background: transparent; margin: 4px 0;
}
input[type=range].gold::-webkit-slider-runnable-track { height: 3px; background: rgba(255,255,255,0.2); border-radius: 4px; }
input[type=range].gold::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--green-alt); margin-top: -5.5px;
}
input[type=range].gold::-moz-range-track { height: 3px; background: rgba(255,255,255,0.2); border-radius: 4px; }
input[type=range].gold::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--green-alt); border: none; }
input[type=range].gold:disabled::-webkit-slider-thumb { background: rgba(139,195,74,0.3); }

.section-title { color: #fff; font-weight: 700; font-size: 16px; margin: 4px 0; }
.outline-btn { width: 100%; border: 1px solid rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); color: #fff; border-radius: 999px; height: 46px; font-family: inherit; font-size: 15px; cursor: pointer; margin: 4px 0; }

.appear-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; }
.appear-row .title { color: #fff; font-size: 16px; font-weight: 600; }
.appear-row .sub { color: rgba(255,255,255,0.5); font-size: 12px; }

.guide-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.guide-row svg { width: 28px; height: 28px; fill: var(--green-accent); flex-shrink: 0; }
.guide-row .g-label { color: #fff; font-weight: 600; font-size: 14px; }
.guide-row .g-desc { color: rgba(255,255,255,0.7); font-size: 12px; line-height: 16px; }

/* =======================================================================
   Livestreams — LiveStreamsScreen.kt
   ======================================================================= */
.stream-list { flex: 1; overflow-y: auto; padding: 8px 16px; display: flex; flex-direction: column; gap: 8px; }
.stream-card { background: var(--card-dark); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stream-card .name { color: #fff; font-size: 22px; font-weight: 600; }
.stream-card .loc { color: #fff; font-weight: 600; font-size: 13px; opacity: 0.85; }
.stream-card .play { width: 48px; height: 48px; border-radius: 50%; background: var(--red-dot); flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; }
.stream-card .play svg { width: 26px; height: 26px; fill: #fff; }
.stream-empty { text-align: center; color: rgba(255,255,255,0.5); padding: 64px 20px 0; }

.audio-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 180; display: none; align-items: center; justify-content: center; padding: 16px; }
.audio-modal.open { display: flex; }
.audio-card { width: 100%; max-width: 420px; height: 85vh; max-height: 520px; background: #1A3A3A; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .audio-card {
    background: rgba(255,255,255,0.22);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    backdrop-filter: blur(22px) saturate(1.4);
  }
}
.audio-card .a-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: rgba(0,0,0,0.15); }
.audio-card .a-head span { color: #fff; font-size: 16px; }
.audio-card .a-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px; }
.audio-card .a-body svg.big { width: 80px; height: 80px; fill: #fff; }
.audio-card .a-body .a-title { color: #fff; font-size: 18px; font-weight: 700; }
.audio-card .a-body .a-sub { color: rgba(255,255,255,0.7); font-size: 13px; text-align: center; }
.audio-controls { display: flex; gap: 24px; margin-top: 24px; }
.audio-controls button { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.2); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.audio-controls svg { width: 36px; height: 36px; fill: #fff; }

/* =======================================================================
   Contact page
   ======================================================================= */
.contact-body { flex: 1; min-height: 0; overflow-y: auto; padding: 32px 24px; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact-body .app-logo { width: 84px; height: 84px; border-radius: 20px; margin-bottom: 4px; }
.contact-body h1 { font-size: 22px; margin: 0; color: var(--gold); }
.contact-body p { margin: 0; color: rgba(255,255,255,0.8); font-size: 15px; line-height: 22px; }
.contact-links { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.contact-links a.btn { width: 100%; }
.contact-info-list { width: 100%; text-align: left; margin-top: 12px; }
.contact-info-list .row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 0.5px solid rgba(255,255,255,0.12); }
.contact-info-list svg { width: 20px; height: 20px; fill: var(--green-accent); flex-shrink: 0; }

/* =======================================================================
   Downloads page
   ======================================================================= */
.downloads-body { flex: 1; overflow-y: auto; padding: 20px 16px; color: #fff; }
.dl-field { margin-bottom: 14px; }
.dl-field label { display: block; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.dl-field select {
  width: 100%; height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08); color: #fff; font-family: inherit; font-size: 15px; padding: 0 12px;
}
/* Scrollable instead of squeezed to fit — forcing the canvas down to the
   narrow app-shell width was shrinking the text right back down every time
   its font size was increased, especially on phones where the shrink
   factor is more aggressive. It now renders close to its true pixel size;
   swipe/scroll to see the rest. */
.dl-preview-wrap { margin-top: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; text-align: center; }
.dl-preview-wrap canvas { max-width: none; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.dl-actions { display: flex; gap: 10px; margin-top: 14px; }
.dl-note { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 17px; margin-top: 14px; }

/* =======================================================================
   Responsive niceties
   ======================================================================= */
@media (max-width: 340px) {
  .tile .label { font-size: 12.5px; }
}
