#alarmView .al-list{gap:0!important}
/* ===== Em Tasks alarm styles - built to Emad's five approved screens ===== */
#alarmView .al-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;
  background:transparent!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.055)!important;border-radius:0!important;
  box-shadow:none!important;padding:16px 4px!important;margin:0!important}
#alarmView .al-row:last-child{border-bottom:0!important}
#alarmView .al-row::before{display:none!important}
#alarmView .al-row.al-hid{display:none!important}
#alarmView .al-info{flex:1 1 auto!important;display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;
  justify-content:flex-start!important;column-gap:7px!important;row-gap:4px!important;min-width:0!important}
#alarmView .al-time{flex:0 0 100%!important;display:flex!important;align-items:baseline!important;gap:6px!important;justify-content:flex-start!important}
#alarmView .al-hm{font-size:30px!important;font-weight:800!important;color:#fff!important;background:none!important;
  -webkit-text-fill-color:#fff!important;letter-spacing:-.5px!important;line-height:1.05!important}
#alarmView .al-ap{font-size:18px!important;font-weight:700!important;color:#e8eef7!important;background:none!important;-webkit-text-fill-color:#e8eef7!important}
#alarmView .al-name{font-size:15px!important;font-weight:800!important;color:#c98cff!important;margin:0!important}
#alarmView .al-name,#alarmView .al-sub,#alarmView .al-days-t,#alarmView .al-left-t,#alarmView .al-sep{white-space:nowrap!important;flex:0 0 auto!important;min-width:0!important}
#alarmView .al-sub{font-size:13px!important;color:#8f9ab0!important}
#alarmView .al-days-t{font-size:13px!important;color:#8f9ab0!important}
#alarmView .al-left-t{font-size:13px!important;font-weight:600!important;color:#8f9ab0!important;margin:0!important}
#alarmView .al-left-t.dim{color:#6f7a92!important}
#alarmView .al-sep{color:#39435a!important;font-size:12px!important;display:inline!important}
#alarmView .al-acts{display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important}
#alarmView .al-del{width:32px!important;height:32px!important;border-radius:10px!important;border:1px solid rgba(255,255,255,.08)!important;
  background:#2c3745!important;font-size:13px!important;line-height:1!important;padding:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important}
#alarmView .al-sw{width:50px!important;height:29px!important;border-radius:15px!important;box-shadow:none!important}
#alarmView .al-sw::after{width:21px!important;height:21px!important;top:3px!important;right:3px!important}
#alarmView .al-sw[aria-checked="true"]{background:#9e50b3!important;border-color:#9e50b3!important;box-shadow:none!important}
#alarmView .al-sw[aria-checked="true"]::after{right:24px!important;background:#fff!important}
#alarmView .al-next{border-radius:14px!important;background:#161f2e!important;border:1px solid rgba(255,255,255,.05)!important;
  box-shadow:none!important;color:#eef2f9!important;font-size:13px!important;font-weight:700!important;padding:0 14px!important;
  height:27px!important;text-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important}

/* ---- flat + neon : card rows ---- */
html[data-alst="flat"] #alarmView .al-next{background:#161f2e!important;border-color:rgba(255,255,255,.05)!important}
html[data-alst="flat"] #alarmView .al-row{background:#161f2e!important;border:1px solid rgba(255,255,255,.05)!important;
  border-radius:18px!important;padding:12px 13px!important;margin:0 0 7px!important;box-shadow:none!important;gap:8px!important}
html[data-alst="flat"] #alarmView .al-name{font-size:14px!important}
html[data-alst="flat"] #alarmView .al-sub,html[data-alst="flat"] #alarmView .al-days-t,html[data-alst="flat"] #alarmView .al-left-t{font-size:11.5px!important}
html[data-alst="flat"] #alarmView .al-sep{font-size:11px!important}
html[data-alst="flat"] #alarmView .al-info{column-gap:5px!important;row-gap:2px!important}
html[data-alst="flat"] #alarmView .al-hm{font-size:28px!important}
html[data-alst="flat"] #alarmView .al-ap{font-size:17px!important}

html[data-alst="flat"] #alarmView .al-row:last-child{border-bottom:1px solid rgba(255,255,255,.05)!important}

html[data-alst="flat"] #alarmView .al-row.off .al-hm{color:#e6eaf2!important;-webkit-text-fill-color:#e6eaf2!important}

/* ---- count down : countdown hero + single line rows ---- */
html[data-alst="count"] #alarmView .al-next{display:none!important}
html[data-alst="count"] #alarmView .al-info{flex-wrap:nowrap!important;align-items:center!important}
html[data-alst="count"] #alarmView .al-time{flex:0 0 auto!important;margin-inline-end:auto!important}
html[data-alst="count"] #alarmView .al-left-t{display:none!important}
html[data-alst="count"] #alarmView .al-row{padding:11px 4px!important}
html[data-alst="count"] #alarmView .al-name{margin-inline-start:auto!important}
html[data-alst="count"] #alarmView .al-hm{font-size:27px!important}
html[data-alst="count"] #alarmView .al-ap{font-size:16px!important}
html[data-alst="count"] #alarmView .al-sep:nth-of-type(2){display:none!important}
html[data-alst="count"] .al-hero{padding:4px 0 18px!important;text-align:center!important;border-bottom:1px solid rgba(255,255,255,.055)!important}
html[data-alst="count"] .ah-lbl{font-size:15px!important;color:#93a0b6!important;font-weight:700!important}
html[data-alst="count"] .ah-big{font-size:70px!important;font-weight:800!important;color:#fff!important;line-height:1.02!important;
  letter-spacing:-2px!important;direction:ltr!important;margin:8px 0 0!important;font-variant-numeric:tabular-nums}
html[data-alst="count"] .ah-unit{font-size:14px!important;color:#8b96ac!important;margin-top:2px!important}
html[data-alst="count"] .ah-meta{margin-top:16px!important;font-size:15px!important;color:#cfd8e6!important}
html[data-alst="count"] .ah-meta b{color:#c98cff!important;font-weight:800!important}
html[data-alst="count"] .ah-sep{color:#39435a!important;margin:0 7px!important}

/* ---- hero card : active row becomes the big card ---- */
html[data-alst="hero"] #alarmView .al-next{display:none!important}
html[data-alst="hero"] #alarmView .al-row:not(.off){position:relative!important;flex-wrap:wrap!important;
  background:#161f2e!important;border:1px solid rgba(255,255,255,.05)!important;
  border-radius:18px!important;padding:50px 16px 18px!important;margin:0 0 6px!important;box-shadow:none!important}
html[data-alst="hero"] #alarmView .al-row:not(.off) .al-info{flex:1 1 100%!important;justify-content:center!important;text-align:center!important;row-gap:10px!important}
html[data-alst="hero"] #alarmView .al-row:not(.off) .al-time{flex:0 0 100%!important;justify-content:center!important;gap:8px!important}
html[data-alst="hero"] #alarmView .al-row:not(.off) .al-hm{font-size:62px!important;letter-spacing:-2px!important}
html[data-alst="hero"] #alarmView .al-row:not(.off) .al-ap{font-size:34px!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-alst="hero"] #alarmView .al-row:not(.off) .al-acts{position:absolute!important;top:16px;inset-inline-end:16px!important}
html[data-alst="hero"] .ah-lbl{position:absolute!important;top:18px;inset-inline-start:18px;font-size:13px!important;color:#93a0b6!important;font-weight:600!important}
html[data-alst="hero"] .al-sec-lbl{font-size:15px!important;color:#93a0b6!important;font-weight:700!important;margin:20px 4px 4px!important;text-align:start}
html[data-alst="hero"] #alarmView .al-row.off .al-acts{display:contents!important}
html[data-alst="hero"] #alarmView .al-row.off .al-sw{order:1!important}
html[data-alst="hero"] #alarmView .al-row.off .al-info{order:2!important;flex-wrap:nowrap!important;align-items:center!important}
html[data-alst="hero"] #alarmView .al-row.off .al-time{order:9!important;flex:0 0 auto!important}
html[data-alst="hero"] #alarmView .al-row.off .al-del{order:3!important}

/* ---- analog face : clock hero on the active row ---- */
html[data-alst="face"] #alarmView .al-next{display:none!important}
html[data-alst="face"] #alarmView .al-row:not(.off){position:relative!important;flex-wrap:wrap!important;
  border-bottom:1px solid rgba(255,255,255,.075)!important;padding:2px 4px 22px!important;margin-bottom:2px!important}
html[data-alst="face"] #alarmView .al-row:not(.off) .al-info{flex:1 1 100%!important;justify-content:center!important;text-align:center!important;row-gap:8px!important}
html[data-alst="face"] #alarmView .al-row:not(.off) .al-time{flex:0 0 100%!important;justify-content:center!important;gap:8px!important}
html[data-alst="face"] #alarmView .al-row:not(.off) .al-hm{font-size:34px!important}
html[data-alst="face"] #alarmView .al-row:not(.off) .al-ap{font-size:22px!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-alst="face"] #alarmView .al-row:not(.off) .al-acts{position:absolute!important;top:0;inset-inline-end:0!important;opacity:.85}

html[data-alst="face"] .al-facewrap{flex:0 0 100%!important;display:flex!important;justify-content:center!important;margin-bottom:6px}
html[data-alst="face"] .al-facewrap svg{width:180px!important;height:180px!important}
html[data-alst="face"] .al-facewrap svg{display:block;width:180px;height:180px;flex:0 0 auto}
html[data-alst="face"] #alarmView .al-row.off .al-info{flex-wrap:nowrap!important;align-items:center!important}
html[data-alst="face"] #alarmView .al-row.off .al-time{flex:0 0 auto!important}
html[data-alst="face"] #alarmView .al-row.off .al-name{margin-inline-start:auto!important}
html[data-alst="face"] #alarmView .al-row.off .al-hm{font-size:27px!important}
html[data-alst="face"] #alarmView .al-row.off .al-ap{font-size:16px!important}
html[data-alst="face"] #alarmView .al-row.off{padding:18px 4px!important}

/* ---- day chips ---- */
html[data-alst="days"] #alarmView .al-next{display:none!important}
html[data-alst="days"] .al-count{font-size:14px!important;color:#8f9ab0!important;font-weight:600!important;text-align:start!important;margin:6px 4px 12px!important}
html[data-alst="days"] #alarmView .al-row{background:#161f2e!important;border:1px solid rgba(255,255,255,.05)!important;
  border-radius:18px!important;padding:14px 13px 10px!important;margin:0 0 8px!important;flex-wrap:nowrap!important;align-items:flex-start!important}
html[data-alst="days"] #alarmView .al-row:last-child{border-bottom:1px solid rgba(255,255,255,.05)!important}
html[data-alst="days"] #alarmView .al-info{flex:1 1 auto!important;row-gap:7px!important}
html[data-alst="days"] #alarmView .al-acts{order:9!important;align-self:flex-start!important}

html[data-alst="days"] .al-chips{flex:0 0 100%!important;display:flex!important;gap:6px!important;justify-content:flex-start!important;margin-top:4px!important}
html[data-alst="days"] .al-chips i{width:30px;height:26px;border-radius:8px;border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.02);color:#7c879b;font-size:12px;font-style:normal;display:inline-flex;align-items:center;justify-content:center}
html[data-alst="days"] .al-chips i.on{background:#8b3fd4;border-color:#a35cf0;color:#fff;font-weight:800;box-shadow:0 0 12px rgba(163,92,240,.45)}
html[data-alst="days"] #alarmView .al-info.chipped .al-sub{display:none!important}
html[data-alst="days"] #alarmView .al-info.chipped .al-sep:nth-of-type(1){display:none!important}

/* ---- grid tiles (candidate 6th) ---- */
html[data-alst="grid"] #alarmView .al-list{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
html[data-alst="grid"] #alarmView .al-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;
  background:#141a27!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:20px!important;padding:14px!important;margin:0!important}
html[data-alst="grid"] #alarmView .al-row:not(.off){background:linear-gradient(155deg,rgba(147,51,234,.38) 0%,rgba(46,32,72,.92) 48%,rgba(23,29,43,.95) 100%)!important;
  border-color:rgba(201,140,255,.38)!important;box-shadow:0 0 22px rgba(147,51,234,.22)!important}
html[data-alst="grid"] #alarmView .al-info{flex-wrap:wrap!important;width:100%!important;row-gap:3px!important;column-gap:5px!important}
html[data-alst="grid"] #alarmView .al-time{flex:0 0 100%!important}
html[data-alst="grid"] #alarmView .al-hm{font-size:29px!important}
html[data-alst="grid"] #alarmView .al-ap{font-size:16px!important}
html[data-alst="grid"] #alarmView .al-name{font-size:13px!important;flex:0 0 100%!important}
html[data-alst="grid"] #alarmView .al-sub{font-size:11.5px!important}
html[data-alst="grid"] #alarmView .al-days-t{font-size:11.5px!important}
html[data-alst="grid"] #alarmView .al-left-t{font-size:11.5px!important;flex:0 0 100%!important}
html[data-alst="grid"] #alarmView .al-sep{display:none!important}
html[data-alst="grid"] #alarmView .al-acts{justify-content:space-between!important;width:100%!important;margin-top:6px!important}
html[data-alst="grid"] #alarmView .al-del{width:34px!important;height:34px!important;font-size:16px!important}

/* ---- picker ---- */
#alstSheet .alst-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:4px 2px 2px}
#alstSheet .alst-t{width:100%;text-align:right;background:var(--surface2);border:1px solid var(--border);border-radius:16px;padding:9px;color:var(--text);font-family:inherit;cursor:pointer}
#alstSheet .alst-t.on{border-color:#c98cff;box-shadow:0 0 0 1px rgba(201,140,255,.45),0 0 18px rgba(181,108,255,.25)}
#alstSheet .alst-p{height:58px;border-radius:11px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#0f1420;border:1px solid rgba(255,255,255,.05);margin-bottom:6px}
#alstSheet .alst-n{font-size:12px;font-weight:700}
#alstSheet .alst-p .mini{display:flex;align-items:baseline;gap:4px;font-weight:800;color:#fff;font-size:20px;letter-spacing:-.5px}
#alstSheet .alst-p .mini small{font-size:9px;color:#cfd8e6}
#alstSheet .alst-p .row2{display:flex;flex-direction:column;align-items:flex-end;gap:2px;width:100%;padding:0 8px}
#alstSheet .alst-p .nm{font-size:8px;color:#e2b8ff;font-weight:800}
#alstSheet .alst-p .chips{display:flex;gap:3px}
#alstSheet .alst-p .chip{font-size:6.5px;padding:1px 4px;border-radius:5px;background:rgba(181,108,255,.18);color:#d9b8ee}
#alstSheet .alst-p .cd{font-size:15px;font-weight:800;color:#c98cff}
#alstSheet .alst-p .tiles{display:grid;grid-template-columns:1fr 1fr;gap:3px;width:100%;padding:0 7px}
#alstSheet .alst-p .tiles i{height:17px;border-radius:4px;background:rgba(255,255,255,.06)}
#alstSheet .alst-p .tiles i.a{background:linear-gradient(150deg,rgba(147,51,234,.75),rgba(147,51,234,.25))}

/* his add bar: 46px tall, 13px radius, #8d3aa6 */
#alarmView .al-add{height:46px!important;border-radius:13px!important;background:#8d3aa6!important;background-image:linear-gradient(180deg,#9e50b3,#8d3aa6)!important;box-shadow:none!important;font-size:15px!important;font-weight:800!important;margin-top:6px!important}

/* measured per-style switch sizes (his JPEGs, 591px wide -> /1.5) */
html[data-alst="count"] #alarmView .al-sw{width:40px!important;height:23px!important;border-radius:12px!important}
html[data-alst="count"] #alarmView .al-sw::after{width:17px!important;height:17px!important;top:2px!important;right:2px!important}
html[data-alst="count"] #alarmView .al-sw[aria-checked="true"]::after{right:19px!important}
html[data-alst="days"] #alarmView .al-sw{width:42px!important;height:25px!important;border-radius:13px!important}
html[data-alst="days"] #alarmView .al-sw::after{width:19px!important;height:19px!important;top:2px!important;right:2px!important}
html[data-alst="days"] #alarmView .al-sw[aria-checked="true"]::after{right:20px!important}
html[data-alst="count"] #alarmView .al-del,html[data-alst="days"] #alarmView .al-del{width:29px!important;height:29px!important;border-radius:9px!important;font-size:15px!important}

/* ===== v10: fixes from review ===== */
/* 1) flat: nearest-alarm strip = flat dark bar, centred */
html[data-alst="flat"] #alarmView .al-next{background:#161f2e!important;background-image:none!important;
  border:1px solid rgba(255,255,255,.05)!important;box-shadow:none!important;
  text-align:center!important;justify-content:center!important;display:flex!important;align-items:center!important}
/* 2) header icon: small outlined rounded square */
#alarmView .own-crown{font-size:0!important;width:32px!important;height:32px!important;min-width:32px!important;
  border:1.6px solid rgba(255,255,255,.5)!important;border-radius:9px!important;background:transparent!important;
  display:inline-block!important;box-shadow:none!important}
/* 4) face + days: rows in ONE card with hairline dividers */
html[data-alst="face"] #alarmView .al-list,html[data-alst="days"] #alarmView .al-list{
  background:#161f2e!important;border:1px solid rgba(255,255,255,.05)!important;border-radius:18px!important;
  overflow:hidden!important;gap:0!important;padding:0!important}
html[data-alst="face"] #alarmView .al-row,html[data-alst="days"] #alarmView .al-row{
  background:transparent!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.07)!important;
  border-radius:0!important;box-shadow:none!important}
html[data-alst="face"] #alarmView .al-row:last-child,html[data-alst="days"] #alarmView .al-row:last-child{border-bottom:0!important}
/* 5) days chips smaller, one row */
html[data-alst="days"] #alarmView .al-chips{gap:6px!important;flex-wrap:nowrap!important}
html[data-alst="days"] #alarmView .al-chips .chip{width:26px!important;height:26px!important;min-width:26px!important;
  font-size:10.5px!important;border-radius:8px!important;line-height:26px!important;padding:0!important}
/* 7) card width 539 vs 555 */
html[data-alst="count"] #alarmView .tm-wrap,html[data-alst="hero"] #alarmView .tm-wrap,
html[data-alst="face"] #alarmView .tm-wrap,html[data-alst="days"] #alarmView .tm-wrap{padding-inline:6px!important}
/* 8) switch size: width rules not landing, use transform */
html[data-alst="count"] #alarmView .al-sw{transform:scale(.8)!important;transform-origin:center!important}
html[data-alst="days"] #alarmView .al-sw{transform:scale(.84)!important;transform-origin:center!important}

/* v11: the row switch is .nf-sw (al-sw lives on the picker minis) */
#alarmView .nf-sw{width:50px!important;height:29px!important;border-radius:15px!important;box-shadow:none!important}
html[data-alst="count"] #alarmView .nf-sw{width:40px!important;height:23px!important;border-radius:12px!important}
html[data-alst="days"] #alarmView .nf-sw{width:42px!important;height:25px!important;border-radius:13px!important}
html[data-alst="count"] #alarmView .al-sw,html[data-alst="days"] #alarmView .al-sw{transform:none!important}

/* knob geometry per style (attribute on the switch itself) */
#alarmView .nf-sw[data-sw="count"]::after{width:17px!important;height:17px!important;top:2px!important;right:2px!important}
#alarmView .nf-sw[data-sw="count"][aria-checked="true"]::after{right:19px!important}
#alarmView .nf-sw[data-sw="days"]::after{width:19px!important;height:19px!important;top:2px!important;right:2px!important}
#alarmView .nf-sw[data-sw="days"][aria-checked="true"]::after{right:20px!important}

/* v12: kill any gradient pseudo on the nearest-alarm strip + header icon */
#alarmView .al-next::before,#alarmView .al-next::after{background:none!important;background-image:none!important;content:none!important;display:none!important}
html[data-alst="flat"] #alarmView .al-next{background:#161f2e!important;background-image:none!important}
#alarmView .own-crown *{font-size:0!important}
#alarmView .own-crown::before,#alarmView .own-crown::after{content:none!important;background:none!important}

/* v13: the three circled items on flat, applied to all styles */
/* 1) strip: flat dark fill, no gradient, light text */
#alarmView .al-next{background:#161f2e!important;background-image:none!important;
  border:1px solid rgba(255,255,255,.05)!important;box-shadow:none!important;
  color:#f2f7ff!important;text-align:center!important;justify-content:center!important;
  display:flex!important;align-items:center!important}
#alarmView .al-next *{color:#f2f7ff!important}
/* 2) off switch: neutral track, muted grey knob, no glow */
#alarmView .nf-sw{background:#1a2434!important;border-color:rgba(255,255,255,.08)!important;box-shadow:none!important}
#alarmView .nf-sw::after{background:#7f8d98!important;width:20px!important;height:20px!important;
  top:3px!important;right:3px!important;box-shadow:none!important}
#alarmView .nf-sw[aria-checked="true"]{background:#9e50b3!important;border-color:#9e50b3!important}
#alarmView .nf-sw[aria-checked="true"]::after{background:#fff!important;right:24px!important}
/* 3) alarm name: bigger and heavier */
#alarmView .al-name{font-size:15px!important;font-weight:800!important}
/* header icon: leave as the app had it */
#alarmView .own-crown{font-size:inherit!important;width:auto!important;height:auto!important;
  min-width:0!important;border:0!important;border-radius:0!important;background:transparent!important;
  display:inline-block!important}
#alarmView .own-crown *{font-size:inherit!important}

/* v14: off-row switch must be neutral in every style */
#alarmView .al-row.off .nf-sw{background:#1a2434!important;border-color:rgba(255,255,255,.08)!important;box-shadow:none!important}
#alarmView .al-row.off .nf-sw::after{background:#7f8d98!important;box-shadow:none!important}
#alarmView .al-row.off .nf-sw[aria-checked="true"]{background:#1a2434!important;border-color:rgba(255,255,255,.08)!important}

/* v15: count screen - flat background, bigger countdown, single meta line */
html,body{background:#0c111d!important;background-image:none!important}
body::before,body::after,.view::before,.view::after{background:none!important;background-image:none!important;opacity:0!important}
#alarmView,#alarmView .container{background:transparent!important;background-image:none!important}
html[data-alst="count"] #alarmView .al-hm{font-size:31px!important;line-height:1.02!important}
html[data-alst="count"] #alarmView .al-ap{font-size:18px!important}
html[data-alst="count"] #alarmView .al-info{flex-wrap:nowrap!important;column-gap:4px!important;row-gap:0!important;align-items:center!important}
#alarmView .al-sep{margin:0 2px!important;padding:0!important}

/* v16: countdown digits - scale to his width (389px at 591 wide) */
#alarmView .ah-big{font-size:112px!important;line-height:1!important;font-weight:800!important;letter-spacing:-2px!important}
#alarmView .ah-lbl{font-size:15px!important;margin-bottom:10px!important}
#alarmView .ah-unit{font-size:13px!important;margin-top:8px!important}
#alarmView .ah-meta{font-size:14px!important;margin-top:14px!important}

/* v17: review round 2 */
#alarmView .ah-big{font-size:106px!important}
html[data-alst="count"] #alarmView .al-list{background:#161f2e!important;border:1px solid rgba(255,255,255,.05)!important;
  border-radius:18px!important;overflow:hidden!important;gap:0!important;padding:0!important;
  border-top:1px solid rgba(255,255,255,.09)!important;border-bottom:1px solid rgba(255,255,255,.09)!important}
html[data-alst="count"] #alarmView .al-row{background:transparent!important;border:0!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;border-radius:0!important;box-shadow:none!important}
html[data-alst="count"] #alarmView .al-row:last-child{border-bottom:0!important}
html[data-alst="flat"] #alarmView .al-info{justify-content:flex-start!important;align-items:flex-end!important}
#alarmView .al-row.off .nf-sw::after{background:#7f8d98!important;background-image:none!important;
  opacity:1!important;filter:none!important;box-shadow:none!important}

/* v18: neon glowing alarm name in all five styles */
#alarmView .al-name{color:#d18bff!important;-webkit-text-fill-color:#d18bff!important;
  text-shadow:0 0 5px rgba(216,150,255,.95),0 0 14px rgba(196,106,255,.7),0 0 30px rgba(170,70,240,.45)!important}
#alarmView .al-row{overflow:visible!important}

/* v19: vertical fit + face bare clock + dim chips */
#alarmView .tm-head{margin-bottom:6px!important}
#alarmView .al-row{padding-top:9px!important;padding-bottom:9px!important}
#alarmView .al-list{gap:7px!important}
#alarmView .al-add{margin-top:8px!important}
#alarmView .al-hero{padding:24px 16px 14px!important}
#alarmView .al-hm{font-size:26px!important}
html[data-alst="count"] #alarmView .ah-big{font-size:92px!important}
#alarmView .ah-lbl{font-size:14px!important;margin-bottom:6px!important}
#alarmView .ah-unit{font-size:12px!important;margin-top:4px!important}
#alarmView .ah-meta{font-size:13px!important;margin-top:10px!important}
/* face: clock bare on the page, no card, no controls over it */
html[data-alst="face"] #alarmView .al-hero,html[data-alst="face"] #alarmView #alHero{
  background:transparent!important;background-image:none!important;border:0!important;
  box-shadow:none!important;padding:0!important;margin:0 auto 10px!important}
html[data-alst="face"] #alarmView .al-hero .al-acts,html[data-alst="face"] #alarmView .al-hero .nf-sw,
html[data-alst="face"] #alarmView .al-hero .al-del,html[data-alst="face"] #alarmView .al-hero .al-sw{
  display:none!important}
/* days chips: 37x37 dim and unlit */
html[data-alst="days"] #alarmView .chip{width:25px!important;height:25px!important;min-width:25px!important;
  line-height:23px!important;font-size:10px!important;border-radius:8px!important;padding:0!important;
  background:#161f2e!important;border:1px solid rgba(160,90,200,.30)!important;
  color:rgba(200,140,235,.40)!important;box-shadow:none!important}
html[data-alst="days"] #alarmView .chip.on,html[data-alst="days"] #alarmView .chip.active{
  background:#8d3aa6!important;border-color:#9e50b3!important;color:#fff!important}
html[data-alst="days"] #alarmView .al-chips{gap:6px!important;flex-wrap:nowrap!important}

/* v20: days chips exactly as measured */
html[data-alst="days"] #alarmView .chip{width:25px!important;height:26px!important;min-width:25px!important;
  font-size:10.5px!important;border-radius:8px!important;padding:0!important;line-height:24px!important;
  box-shadow:none!important;text-shadow:none!important}
html[data-alst="days"] #alarmView .al-row:not(.off) .chip{background:#362b4e!important;
  border:1px solid rgba(255,255,255,.07)!important;color:rgba(214,196,235,.62)!important}
html[data-alst="days"] #alarmView .al-row.off .chip{background:#1b2231!important;
  border:1px solid rgba(255,255,255,.05)!important;color:rgba(190,175,210,.38)!important}
html[data-alst="days"] #alarmView .al-chips{gap:6px!important}

/* v21: chips are .al-chips > i (no .chip class) */
html[data-alst="days"] #alarmView .al-chips>i{width:25px!important;height:26px!important;min-width:25px!important;
  font-size:10.5px!important;border-radius:8px!important;padding:0!important;line-height:24px!important;
  font-style:normal!important;box-shadow:none!important;text-shadow:none!important;
  background:#1b2231!important;border:1px solid rgba(255,255,255,.05)!important;color:rgba(190,175,210,.38)!important}
html[data-alst="days"] #alarmView .al-row:not(.off) .al-chips>i{background:#362b4e!important;
  border-color:rgba(255,255,255,.07)!important;color:rgba(214,196,235,.62)!important}
html[data-alst="days"] #alarmView .al-chips{gap:6px!important}

/* v22: days inactive chips a bit lighter */
html[data-alst="days"] #alarmView .al-chips>i{background:#2a2140!important;border-color:rgba(255,255,255,.06)!important;color:rgba(205,185,225,.5)!important}
html[data-alst="days"] #alarmView .al-row.off .al-chips>i{background:#241c36!important;border-color:rgba(255,255,255,.05)!important;color:rgba(195,175,215,.45)!important}

/* v23: face - clock bare on the page, rows in one card below */
html[data-alst="face"] #alarmView .al-list{background:transparent!important;border:0!important;gap:0!important;padding:0!important;overflow:visible!important}
html[data-alst="face"] #alarmView .al-row{background:#161f2e!important;border:0!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;border-radius:0!important}
html[data-alst="face"] #alarmView .al-row:has(.al-facewrap){background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
html[data-alst="face"] #alarmView .al-row:has(.al-facewrap) .al-acts{display:none!important}
html[data-alst="face"] #alarmView .al-row:has(.al-facewrap) .nf-sw,
html[data-alst="face"] #alarmView .al-row:has(.al-facewrap) .al-del{display:none!important}
html[data-alst="face"] #alarmView .al-row:has(.al-facewrap)+.al-row{
  border-top-left-radius:18px!important;border-top-right-radius:18px!important}
html[data-alst="face"] #alarmView .al-row:last-child{
  border-bottom-left-radius:18px!important;border-bottom-right-radius:18px!important;border-bottom:0!important}

/* v24: days rows flush as one block */
html[data-alst="days"] #alarmView .al-list{gap:0!important;background:#161f2e!important;
  border:1px solid rgba(255,255,255,.05)!important;border-radius:18px!important;
  overflow:hidden!important;padding:0!important}
html[data-alst="days"] #alarmView .al-row{background:transparent!important;border:0!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;border-radius:0!important;
  box-shadow:none!important;margin:0!important}
html[data-alst="days"] #alarmView .al-row:last-child{border-bottom:0!important}

/* v25: revert days to separate cards (his are cards, gap ~10px at 591) */
html[data-alst="days"] #alarmView .al-list{gap:7px!important;background:transparent!important;
  border:0!important;padding:0!important;overflow:visible!important}
html[data-alst="days"] #alarmView .al-row{background:#161f2e!important;
  border:1px solid rgba(255,255,255,.05)!important;border-radius:18px!important;
  margin:0!important;box-shadow:none!important}

/* v26: days - time at the RTL start (right edge), meta on the line below */
html[data-alst="days"] #alarmView .al-info{display:flex!important;flex-wrap:wrap!important;
  flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;
  column-gap:5px!important;row-gap:4px!important;width:100%!important}
html[data-alst="days"] #alarmView .al-time{order:1!important;margin:0!important}
html[data-alst="days"] #alarmView .al-name{order:2!important;flex:0 0 100%!important;margin:0!important;text-align:right!important}
html[data-alst="days"] #alarmView .al-sep{order:2!important}
html[data-alst="days"] #alarmView .al-sub{order:2!important;margin:0!important}
html[data-alst="days"] #alarmView .al-left-t{order:2!important}
html[data-alst="days"] #alarmView .al-chips{order:3!important;flex:0 0 100%!important;justify-content:flex-start!important}

/* v27: days - force RTL flow inside the row info */
html[data-alst="days"] #alarmView .al-info{direction:rtl!important}

/* v28: days - time keeps natural width at the RTL start */
html[data-alst="days"] #alarmView .al-time{flex:0 0 auto!important;width:auto!important;text-align:right!important;justify-content:flex-start!important}

/* v29: days - time on its own line at the right, meta as one line below */
html[data-alst="days"] #alarmView .al-time{flex:0 0 100%!important;text-align:right!important;justify-content:flex-start!important}
html[data-alst="days"] #alarmView .al-name{flex:0 0 auto!important;text-align:right!important}
html[data-alst="days"] #alarmView .al-info{row-gap:2px!important}

/* v30: days - time right-aligned inside its line, meta on one line */
html[data-alst="days"] #alarmView .al-time{justify-content:flex-end!important;display:flex!important;width:100%!important;flex:0 0 100%!important}
html[data-alst="days"] #alarmView .al-name,html[data-alst="days"] #alarmView .al-sub,html[data-alst="days"] #alarmView .al-left-t,html[data-alst="days"] #alarmView .al-sep{white-space:nowrap!important;font-size:11px!important}
html[data-alst="days"] #alarmView .al-info{column-gap:4px!important}

/* v31: days - squeeze the meta onto one line like his */
html[data-alst="days"] #alarmView .al-name,html[data-alst="days"] #alarmView .al-sub,html[data-alst="days"] #alarmView .al-left-t,html[data-alst="days"] #alarmView .al-sep{font-size:10px!important;flex:0 0 auto!important}
html[data-alst="days"] #alarmView .al-info{column-gap:3px!important;row-gap:1px!important}
html[data-alst="days"] #alarmView .al-hm{font-size:24px!important}

/* v32: flat - same mirroring fix as days: time at the RTL start, meta below */
html[data-alst="flat"] #alarmView .al-info{display:flex!important;flex-wrap:wrap!important;direction:rtl!important;justify-content:flex-start!important;align-items:center!important;column-gap:5px!important;row-gap:2px!important;width:100%!important}
html[data-alst="flat"] #alarmView .al-time{order:1!important;display:flex!important;flex:0 0 100%!important;width:100%!important;justify-content:flex-end!important;margin:0!important}
html[data-alst="flat"] #alarmView .al-name{order:2!important;flex:0 0 auto!important;white-space:nowrap!important}
html[data-alst="flat"] #alarmView .al-sep,html[data-alst="flat"] #alarmView .al-sub,html[data-alst="flat"] #alarmView .al-left-t{order:2!important;flex:0 0 auto!important;white-space:nowrap!important}

/* v33: meta line must stay one line on narrow phones - grid row, last item ellipsizes */
html[data-alst="flat"] #alarmView .al-info,html[data-alst="days"] #alarmView .al-info{
  display:grid!important;grid-template-columns:auto auto auto auto minmax(0,1fr)!important;
  column-gap:5px!important;row-gap:1px!important;justify-content:start!important;
  align-items:center!important;width:100%!important;flex-wrap:nowrap!important;direction:rtl!important}
html[data-alst="flat"] #alarmView .al-time,html[data-alst="days"] #alarmView .al-time{
  grid-column:1/-1!important;display:flex!important;justify-content:flex-end!important;margin:0!important}
html[data-alst="flat"] #alarmView .al-left-t,html[data-alst="days"] #alarmView .al-left-t{
  min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* v34: row = two lines. line1: acts at the RTL left edge + time at the right edge. line2: meta across the full card */
html[data-alst="flat"] #alarmView .al-row,html[data-alst="days"] #alarmView .al-row{
  position:relative!important;display:block!important}
html[data-alst="flat"] #alarmView .al-acts,html[data-alst="days"] #alarmView .al-acts{
  position:absolute!important;top:12px!important;inset-inline-end:0!important;inset-inline-start:auto!important;
  display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;z-index:2!important}
html[data-alst="flat"] #alarmView .al-info,html[data-alst="days"] #alarmView .al-info{
  display:grid!important;grid-template-columns:auto auto auto auto minmax(0,1fr)!important;
  column-gap:5px!important;row-gap:2px!important;justify-content:start!important;align-items:center!important;
  width:100%!important;direction:rtl!important;flex:1 1 100%!important}
html[data-alst="flat"] #alarmView .al-time,html[data-alst="days"] #alarmView .al-time{
  grid-column:1/-1!important;display:flex!important;justify-content:flex-end!important;margin:0!important;
  align-items:baseline!important;gap:6px!important}

/* v35: days chips get their own row under the meta */
html[data-alst="days"] #alarmView .al-chips{grid-column:1/-1!important;justify-self:start!important;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;margin-top:4px!important}

/* v36: keep the header emoji inside the screen edge (safe-area aware) */
#alarmView .tm-head{padding-inline:12px!important;box-sizing:border-box!important}
#alarmView .tm-title{flex-wrap:nowrap!important;min-width:0!important;max-width:100%!important}
#alarmView .tm-title>div{min-width:0!important}
#alarmView .own-crown{flex:0 0 auto!important;margin:0!important}

/* v37: days rows show their repeat text like the reference art */
html[data-alst="days"] #alarmView .al-info.chipped .al-sub{display:flex!important}

/* v38: header emoji sits level with the title, not floating mid-block */
#alarmView .own-crown{align-self:flex-start!important;margin-top:1px!important}

/* v39: header subtitle stays on one line on narrow phones */
#alarmView .tm-title p{font-size:12.5px!important;line-height:1.5!important}

/* v24: flat - nearest-alarm line is plain text, no container at all */
html[data-alst="flat"] #alarmView .al-next{background:none!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0 0 10px!important;min-height:0!important;width:100%!important;text-align:start!important;font-size:13.5px!important;color:#cfd8e6!important}

/* v24b: emoji-only alias of the subset, scoped to the codepoints the TTF actually has */
@font-face{font-family:"EmojiSiteNarrow";src:url(../emoji-subset.ttf) format("truetype");font-display:block;unicode-range:U+200D,U+2139,U+21A9,U+231B,U+23F0,U+23F1,U+23F2,U+23F3,U+2600,U+2601,U+267E,U+26A0,U+26A1,U+26D4,U+2702,U+2705,U+2709,U+270D,U+270F,U+2728,U+274C,U+2795,U+2B05,U+2B07,U+2B50,U+1F195,U+1F305,U+1F319,U+1F327,U+1F373,U+1F389,U+1F3AF,U+1F3B5,U+1F3B9,U+1F3C5,U+1F3C6,U+1F3F7,U+1F41E,U+1F441,U+1F451,U+1F464,U+1F465,U+1F48E,U+1F494,U+1F499,U+1F4A1,U+1F4A4,U+1F4A7,U+1F4AA,U+1F4AC,U+1F4BE,U+1F4C1,U+1F4C5,U+1F4C6,U+1F4C8,U+1F4CA,U+1F4CB,U+1F4CC,U+1F4D1,U+1F4D6,U+1F4DA,U+1F4DC,U+1F4DD,U+1F4DE,U+1F4DF,U+1F4E1,U+1F4E2,U+1F4E4,U+1F4E5,U+1F4E8,U+1F4EC,U+1F4ED,U+1F4F2,U+1F4FF,U+1F501,U+1F504,U+1F50A,U+1F50D,U+1F50E,U+1F511,U+1F512,U+1F513,U+1F514,U+1F515,U+1F524,U+1F525,U+1F534,U+1F535,U+1F550,U+1F552,U+1F5BC,U+1F5D1,U+1F5D2,U+1F5D3,U+1F602,U+1F60E,U+1F614,U+1F648,U+1F680,U+1F6A7,U+1F6A8,U+1F6A9,U+1F6AA,U+1F6CE,U+1F7E0,U+1F7E1,U+1F7E2,U+1F90D,U+1F932,U+1F973,U+1F9F0,U+1F9F9,U+1F9FE,U+1FA95,U+1FAE7}
:root{--font:"EmojiSiteNarrow","Outfit","Noto Naskh Arabic","Amiri","Traditional Arabic","Segoe UI",Tahoma,Arial,sans-serif!important;--font-head:"EmojiSiteNarrow","Outfit","Noto Naskh Arabic","Amiri","Traditional Arabic","Segoe UI",Tahoma,Arial,sans-serif!important}
/* v24b: flat - nearest-alarm line plain and rock steady */
html[data-alst="flat"] #alarmView .al-next{background:none!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0 0 10px!important;min-height:22px!important;line-height:22px!important;width:100%!important;text-align:start!important;font-size:13.5px!important;color:#cfd8e6!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-variant-numeric:tabular-nums!important;font-feature-settings:"tnum" 1!important}

/* v25: a daily alarm keeps its day element for the chips but shows no repeat label */
#alarmView .al-sub[hidden]{display:none!important}
html[data-alst="days"] #alarmView .al-sub[hidden],html[data-alst="flat"] #alarmView .al-sub[hidden],html[data-alst="hero"] #alarmView .al-sub[hidden],html[data-alst="count"] #alarmView .al-sub[hidden],html[data-alst="face"] #alarmView .al-sub[hidden]{display:none!important;position:absolute!important;width:0!important;height:0!important;overflow:hidden!important;visibility:hidden!important;font-size:0!important}

/* v29: day-chips style only - the repeat label is redundant next to the chips */
html[data-alst="days"] #alarmView .al-sub,html[data-alst="days"] #alarmView .al-sep:has(+ .al-sub){display:none!important}

/* v31: row can never overlap - info takes the remaining width, icons keep their own slots */
#alarmView .al-row{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:10px!important;overflow:hidden!important}
#alarmView .al-row .al-info{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important}
#alarmView .al-row .al-time,#alarmView .al-row .al-hm,#alarmView .al-row .al-ap{white-space:nowrap!important}
#alarmView .al-row .al-del,#alarmView .al-row .al-sw{position:static!important;flex:0 0 auto!important;margin:0!important}
#alarmView .al-row .al-del{width:34px!important;height:34px!important;min-width:34px!important}
#alarmView .al-row .al-sw{width:46px!important;height:26px!important;min-width:46px!important}

/* v38: hard clearance between the time line, the meta line and the chips row.
   measured: the time box and the meta box shared only the 2px grid gap, which a
   device font with taller metrics can eat. rows are grid rows now, so give the
   gap real size and keep the time's own line box taller than its ink. */
html[data-alst="days"] #alarmView .al-info,
html[data-alst="flat"] #alarmView .al-info
    { row-gap:8px!important }
html[data-alst="days"] #alarmView .al-time,
html[data-alst="flat"] #alarmView .al-time
    { line-height:1.2!important;padding:0 0 2px!important;min-height:0!important }
html[data-alst="days"] #alarmView .al-hm,
html[data-alst="flat"] #alarmView .al-hm
    { line-height:1.2!important }
html[data-alst="days"] #alarmView .al-chips
    { margin-top:10px!important }
html[data-alst="days"] #alarmView .al-row,
html[data-alst="flat"] #alarmView .al-row
    { overflow:visible!important }

/* v39: DAYS STYLE ONLY - the chips row already shows which days, so the repeat
   label («كل يوم») is redundant there and only there. Every other style keeps it.
   This rule is deliberately last and matches the chipped variant too, because
   v37 re-shows .al-sub for chipped rows and silently undid the removal once.
   If a later rule needs to re-show the label, it must not target the days style. */
html[data-alst="days"] #alarmView .al-info .al-sub,
html[data-alst="days"] #alarmView .al-info.chipped .al-sub,
html[data-alst="days"] #alarmView .al-info .al-days-t
    { display:none!important }

/* v41: SWITCH GEOMETRY, DERIVED. v11's sizeSw() pins the track inline (width/height
   per style) and nothing in CSS can beat an inline !important. So the knob must be
   computed from those same numbers, not from constants: v31 pinned a 20px knob for a
   46px track, then v11's inline 50x29 track left the knob off-centre with a 6px gap
   at one end. One inset, one formula, every size:
     knob = (h - 2*border) - 2*inset        onRight = (w - 2*border) - inset - knob
   Off sits at the start edge (right in RTL), on at the end edge. */
#alarmView .al-row .al-acts .al-sw.nf-sw{--swi:2px}
#alarmView .al-row .al-acts .al-sw.nf-sw::after{
  width:calc(var(--swh,26px) - 2px - 2*var(--swi))!important;
  height:calc(var(--swh,26px) - 2px - 2*var(--swi))!important;
  top:var(--swi)!important;right:var(--swi)!important;left:auto!important;bottom:auto!important;
  border-radius:50%!important;box-shadow:none!important;transform:none!important}
#alarmView .al-row .al-acts .al-sw.nf-sw[aria-checked="true"]::after{
  right:calc(var(--sww,46px) - 2px - var(--swi) - (var(--swh,26px) - 2px - 2*var(--swi)))!important}
/* v42: switches must be the containing block for their own knob. */
html[data-alst] #alarmView .al-row .al-acts .nf-sw.al-sw{position:relative!important;overflow:hidden!important;isolation:isolate;border:1px solid transparent!important;box-sizing:border-box!important}
html[data-alst] #alarmView .al-row .al-acts .nf-sw.al-sw::after{content:""!important;position:absolute!important;width:calc(var(--swh) - 8px)!important;height:calc(var(--swh) - 8px)!important;top:3px!important;right:3px!important;left:auto!important;bottom:auto!important;margin:0!important;transform:none!important;border:0!important;box-sizing:border-box!important;box-shadow:none!important}
html[data-alst] #alarmView .al-row .al-acts .nf-sw.al-sw[aria-checked="true"]::after{right:calc(var(--sww) - var(--swh) + 3px)!important}
#alarmView .al-del{display:flex!important;align-items:center!important;justify-content:center!important;color:#cbd5e1!important}
#alarmView .al-del{font-size:16px!important;line-height:1!important}
/* Compact list rows: separate time, metadata and controls into real slots. */
html[data-alst="count"] #alarmView .al-row .al-info,
html[data-alst="hero"] #alarmView .al-row.off .al-info,
html[data-alst="face"] #alarmView .al-row.off .al-info{display:flex!important;flex-flow:column nowrap!important;align-items:flex-start!important;gap:3px!important;min-width:0!important;overflow:visible!important}
html[data-alst="count"] #alarmView .al-row,
html[data-alst="hero"] #alarmView .al-row.off,
html[data-alst="face"] #alarmView .al-row.off{height:auto!important;min-height:98px!important;padding:10px!important;gap:8px!important;overflow:visible!important}
html[data-alst="count"] #alarmView .al-row .al-time,
html[data-alst="hero"] #alarmView .al-row.off .al-time,
html[data-alst="face"] #alarmView .al-row.off .al-time{position:static!important;display:flex!important;flex:none!important;width:auto!important;min-width:0!important;gap:4px!important;line-height:1.15!important;overflow:visible!important}
html[data-alst="count"] #alarmView .al-row .al-hm,
html[data-alst="hero"] #alarmView .al-row.off .al-hm,
html[data-alst="face"] #alarmView .al-row.off .al-hm{font-size:27px!important;width:auto!important;line-height:1.15!important;overflow:visible!important}
html[data-alst="count"] #alarmView .al-row .al-acts,
html[data-alst="hero"] #alarmView .al-row.off .al-acts,
html[data-alst="face"] #alarmView .al-row.off .al-acts{position:static!important;display:flex!important;flex:0 0 auto!important;gap:8px!important;align-items:center!important;width:auto!important}
html[data-alst="count"] #alarmView .al-row .al-sep,
html[data-alst="hero"] #alarmView .al-row.off .al-sep,
html[data-alst="face"] #alarmView .al-row.off .al-sep{display:none!important}
/* v43: explicit compact-row grid; reset inherited flex orders and auto margins. */
html[data-alst="count"] #alarmView .al-row .al-info,
html[data-alst="hero"] #alarmView .al-row.off .al-info,
html[data-alst="face"] #alarmView .al-row.off .al-info{display:grid!important;grid-template-columns:1fr!important;grid-auto-rows:auto!important;align-items:start!important;justify-items:start!important;row-gap:3px!important;order:0!important;text-align:right!important}
html[data-alst="count"] #alarmView .al-row .al-info>*,
html[data-alst="hero"] #alarmView .al-row.off .al-info>*,
html[data-alst="face"] #alarmView .al-row.off .al-info>*{order:0!important;margin:0!important;grid-column:1!important;position:static!important;max-width:100%!important;white-space:normal!important}
html[data-alst="count"] #alarmView .al-row .al-time,
html[data-alst="hero"] #alarmView .al-row.off .al-time,
html[data-alst="face"] #alarmView .al-row.off .al-time{grid-row:1!important;white-space:nowrap!important;justify-self:start!important}
html[data-alst="count"] #alarmView .al-row .al-sub,
html[data-alst="hero"] #alarmView .al-row.off .al-sub,
html[data-alst="face"] #alarmView .al-row.off .al-sub{display:block!important;line-height:1.5!important}

/* v44: compact metadata shares one row beneath the time and alarm name. */
html[data-alst="count"] #alarmView .al-row .al-info,
html[data-alst="hero"] #alarmView .al-row.off .al-info,
html[data-alst="face"] #alarmView .al-row.off .al-info{grid-template-columns:auto auto!important;column-gap:6px!important;justify-content:start!important}
html[data-alst="count"] #alarmView .al-row .al-info>.al-time,
html[data-alst="hero"] #alarmView .al-row.off .al-info>.al-time,
html[data-alst="face"] #alarmView .al-row.off .al-info>.al-time{grid-column:1 / -1!important}
html[data-alst="count"] #alarmView .al-row .al-info>.al-name,
html[data-alst="hero"] #alarmView .al-row.off .al-info>.al-name,
html[data-alst="face"] #alarmView .al-row.off .al-info>.al-name{grid-column:1 / -1!important}
html[data-alst="count"] #alarmView .al-row .al-info>.al-sub,
html[data-alst="hero"] #alarmView .al-row.off .al-info>.al-sub,
html[data-alst="face"] #alarmView .al-row.off .al-info>.al-sub{grid-column:1!important;grid-row:3!important}
html[data-alst="count"] #alarmView .al-row .al-info>.al-left-t,
html[data-alst="hero"] #alarmView .al-row.off .al-info>.al-left-t,
html[data-alst="face"] #alarmView .al-row.off .al-info>.al-left-t{grid-column:2!important;grid-row:3!important}

/* v45: ONE separator rule. A "|" appears between every two visible meta segments
   and only between visible ones. It is drawn by the segment that FOLLOWS it, as
   ::before, so hiding a segment hides its own separator automatically: in
   شرائح الأيام «كل يوم» is display:none, and the name now joins the countdown with
   exactly one separator instead of running the two together. Replaces the single
   hand-placed span that used to sit only between the name and «كل يوم». */
#alarmView .al-info > .al-sub::before,
#alarmView .al-info > .al-left-t::before
    { content:"|";margin:0 .5em;font-weight:400;opacity:.55 }
#alarmView .al-info > .al-sub:empty::before,
#alarmView .al-info > .al-left-t:empty::before
    { content:none }
#alarmView .al-sep{ display:none!important }

/* v46: in the compact grid rows (count every row; hero/face off rows) the name sits
   on its own line, so a separator between the name and «كل يوم» would start the
   second line with a dangling mark. A line break is not a separator: suppress that
   one, keep the one that sits between the two segments sharing the line. */
html[data-alst="count"] #alarmView .al-row .al-info > .al-sub::before,
html[data-alst="hero"] #alarmView .al-row.off .al-info > .al-sub::before,
html[data-alst="face"] #alarmView .al-row.off .al-info > .al-sub::before
    { content:none }

/* v47: FACE STYLE - the time block. The dial is centred on the row axis, and so the
   digits must be: centring the «digits + ص» group as one unit puts the numerals
   themselves half a «ص» to the left of the axis, which reads as off-centre under a
   symmetric dial. So «ص» leaves the flow and hangs to the physical right of the
   digits, leaving the numerals alone to centre on the same axis as the dial. */
html[data-alst="face"] #alarmView .al-row:not(.off) .al-time
    { justify-content:center!important;gap:0!important }
html[data-alst="face"] #alarmView .al-row:not(.off) .al-hm
    { position:relative!important }
html[data-alst="face"] #alarmView .al-row:not(.off) .al-ap
    { position:absolute!important;left:100%!important;top:50%!important;transform:translateY(-50%)!important;
      margin:0 0 0 8px!important;line-height:1!important }

/* v48: supersedes v47's absolute «ص». An absolutely positioned «ص» inside an RTL
   row resolves against the nearest positioned ancestor, which is the row itself, so
   it flew to the row's far edge instead of the digits' shoulder. A three-column grid
   does it without any containing-block guesswork: the two 1fr columns are equal, so
   the auto column in the middle is exactly the row's centre, and «ص» sits at the
   start of the third column, to the physical right of the digits, out of the
   centring maths entirely. */
html[data-alst="face"] #alarmView .al-row:not(.off) .al-time
    { display:grid!important;grid-template-columns:1fr auto 1fr!important;direction:ltr!important;
      align-items:center!important;justify-content:stretch!important;gap:0!important;width:100%!important }
html[data-alst="face"] #alarmView .al-row:not(.off) .al-hm
    { grid-column:2!important;justify-self:center!important;position:static!important }
html[data-alst="face"] #alarmView .al-row:not(.off) .al-ap
    { grid-column:3!important;justify-self:start!important;position:static!important;
      top:auto!important;left:auto!important;transform:none!important;
      margin:0 0 0 8px!important;line-height:1!important }

/* v49: COUNT STYLE - the legend under the countdown. Each token is placed from the
   measured centre of its digit group by placeUnit() in emalst.js, so «ساعة» lands
   under the hours digits and «دقيقة» under the minutes, whichever way the page
   direction would have ordered the words. The tokens are out of the flow here so
   the number's own spacing is untouched. */
html[data-alst="count"] #alarmView .ah-big > span{ display:inline!important }
html[data-alst="count"] #alarmView .ah-unit{ display:block!important;position:relative!important;white-space:nowrap!important;height:1.45em!important;min-height:1.45em!important }
html[data-alst="count"] #alarmView .ah-unit > span{ position:absolute;top:0;white-space:nowrap }

/* pass 2: bare delete glyph, no tile; next-alarm strip on its own line, never clipped */
#alarmView .al-del,html[data-alst="grid"] #alarmView .al-del,html[data-alst="count"] #alarmView .al-del,html[data-alst="days"] #alarmView .al-del,html[data-alst="face"] #alarmView .al-del,html[data-alst="hero"] #alarmView .al-del,html[data-alst="flat"] #alarmView .al-del{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;outline:0!important;padding:0!important}
#alarmView .al-del,html[data-alst="grid"] #alarmView .al-del,html[data-alst="count"] #alarmView .al-del,html[data-alst="days"] #alarmView .al-del{width:28px!important;min-width:28px!important;height:28px!important;font-size:16px!important;line-height:1!important}
#alarmView #alNext{height:auto!important;min-height:34px!important;overflow:visible!important;padding:9px 14px!important;margin:0 0 14px!important;display:flex!important;align-items:center!important;gap:8px!important;line-height:1.35!important;box-sizing:border-box!important;border-radius:14px!important}
