*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* iOS-style liquid glass, in the guide's colours */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070d;
  --bg-clear: rgba(5,7,13,0);
  --glass: rgba(38,42,58,0.56);
  --glass-sheen: rgba(255,255,255,0.06);
  --glass-opaque: #161a26;
  --glass-bar: rgba(24,28,40,0.94);
  --glass-border: rgba(255,255,255,0.13);
  --glass-edge: rgba(255,255,255,0.22);
  --shadow: 0 8px 22px rgba(0,0,0,0.34);
  --fill: rgba(120,120,128,0.24);
  --fill-hover: rgba(120,120,128,0.34);
  --separator: rgba(255,255,255,0.1);
  --text: #f5f6fa;
  --text2: rgba(235,235,245,0.76);
  --muted: rgba(235,235,245,0.62);
  --accent: #5cb0ff;
  --tint: rgba(10,132,255,0.2);
  --gold: #f7cc72;
  --green: #30d158;
  --green-text: #4be27a;
  --green-tint: rgba(48,209,88,0.15);
  --red: #ff7a70;
  --red-tint: rgba(255,69,58,0.15);
  --gold-tint: rgba(247,204,114,0.13);
  --blob1: rgba(38,104,255,0.34);
  --blob2: rgba(20,190,120,0.2);
  --blob3: rgba(224,164,60,0.14);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #e9eef8;
  --bg-clear: rgba(233,238,248,0);
  --glass: rgba(255,255,255,0.62);
  --glass-sheen: rgba(255,255,255,0.5);
  --glass-opaque: #f8f9fc;
  --glass-bar: rgba(250,251,254,0.94);
  --glass-border: rgba(255,255,255,0.8);
  --glass-edge: rgba(255,255,255,0.95);
  --shadow: 0 6px 20px rgba(30,45,90,0.11);
  --fill: rgba(118,118,128,0.13);
  --fill-hover: rgba(118,118,128,0.2);
  --separator: rgba(60,60,67,0.15);
  --text: #0b0e1a;
  --text2: #3a3f55;
  --muted: #5a6078;
  --accent: #0058c4;
  --tint: rgba(0,113,227,0.13);
  --gold: #734a00;
  --green: #34c759;
  --green-text: #08703a;
  --green-tint: rgba(52,199,89,0.17);
  --red: #a81e18;
  --red-tint: rgba(255,59,48,0.11);
  --gold-tint: rgba(224,164,60,0.18);
  --blob1: rgba(60,120,255,0.14);
  --blob2: rgba(40,200,140,0.2);
  --blob3: rgba(255,190,90,0.22);
}

html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 15px; line-height: 1.5; min-height: 100vh; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
h2 { font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Loading: the logo in the middle of the screen, breathing softly */
.loader { display: grid; place-items: center; min-height: calc(100vh - 220px); }
.loader-logo { grid-area: 1 / 1; width: 72px; height: 72px; object-fit: contain; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .loader-logo { animation: none; opacity: .8; } }

/* ── Background the glass floats over ──
   Painted once as a single layer: no blurred shapes, no mask. 100vh stays the same
   size when a phone's address bar slides away, so it never has to repaint. */
.bg-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle 440px at 6% 4%, var(--blob1), var(--bg-clear)),
    radial-gradient(circle 420px at 96% 96%, var(--blob2), var(--bg-clear)),
    radial-gradient(circle 340px at 84% 48%, var(--blob3), var(--bg-clear)),
    radial-gradient(ellipse 75% 60% at 50% 30%, var(--bg-clear) 10%, var(--bg) 75%),
    url(pattern.svg) 0 0 / 120px 120px;
}

/* ── The glass ──
   See-through fills with a soft sheen, and no live blur anywhere: blur has to be redrawn
   on every scrolled frame, which is what makes a page lag on weaker devices. */
.topbar, .card, .list, .signin, .back {
  background: linear-gradient(180deg, var(--glass-sheen), rgba(255,255,255,0) 90px), var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
}
/* Text scrolls behind the bar, so it stays nearly solid */
.topbar { background: linear-gradient(180deg, var(--glass-sheen), rgba(255,255,255,0)), var(--glass-bar); }
@media (prefers-reduced-transparency: reduce) {
  .topbar, .card, .list, .signin, .back { background: var(--glass-opaque); }
}

/* ── Floating top bar ── */
.topbar { position: sticky; top: 10px; z-index: 10; display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); max-width: 760px; min-height: 56px; margin: 10px auto 0; padding: 8px 10px 8px 12px; border-radius: 28px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; flex-shrink: 0; }
.brand-name { font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 14.5px; letter-spacing: .05em; white-space: nowrap; }
[data-theme="light"] .logo-d, [data-theme="dark"] .logo-l { display: none !important; }
.top-links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.top-links a { font-size: 14px; font-weight: 500; color: var(--text2); text-decoration: none; padding: 7px 11px; border-radius: 12px; }
.top-links a:hover, .top-links a.on { color: var(--text); background: var(--fill); }
@media (max-width: 760px) { .top-links { display: none; } }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.account { display: flex; align-items: center; gap: 8px; min-width: 0; }
.account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 13.5px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--fill); }
.theme-toggle, .icon-btn { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--fill); color: var(--text); cursor: pointer; transition: background .15s, transform .15s; }
.theme-toggle:hover, .icon-btn:hover { background: var(--fill-hover); }
.theme-toggle:active, .icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:disabled { opacity: .6; cursor: default; }
.theme-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; }
[data-theme="dark"] .theme-toggle .icon-moon, [data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* ── Layout ── */
.page { position: relative; z-index: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 20px 80px; }
.page.entering > * { animation: rise .38s cubic-bezier(.2,.8,.2,1) both; }
.page.entering > *:nth-child(2) { animation-delay: .03s; }
.page.entering > *:nth-child(3) { animation-delay: .06s; }
.page.entering > *:nth-child(4) { animation-delay: .09s; }
.page.entering > *:nth-child(n+5) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.page-head { margin-bottom: 20px; }
.page-head p { margin-top: 6px; color: var(--text2); font-size: 15.5px; }
.eyebrow { font-weight: 600; font-size: 15px; color: var(--text2); margin-bottom: 2px; }
.section-label { font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin: 26px 16px 8px; }
.section-note { font-size: 13.5px; color: var(--muted); margin: 8px 16px 0; }
.card { border-radius: 26px; padding: 22px; margin-bottom: 14px; }
.card-title { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; min-width: 0; }
.card-title h2 { min-width: 0; }
.card-title .card-extra { margin-left: auto; text-align: right; color: var(--muted); font-size: 13px; }
.card-intro { color: var(--text2); margin-bottom: 14px; }

/* Icon tiles, like iOS Settings */
.tile { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; font-size: 18px; line-height: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.tile-blue   { background: rgba(10,132,255,.24); }
.tile-green  { background: rgba(48,209,88,.24); }
.tile-gold   { background: rgba(255,190,70,.26); }
.tile-purple { background: rgba(160,110,255,.26); }
.tile-red    { background: rgba(255,80,70,.22); }
.tile-teal   { background: rgba(60,200,220,.24); }
.tile-gray   { background: var(--fill); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .14s, background .15s, filter .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: linear-gradient(180deg, #0a7bea, #005fcf); color: #fff; box-shadow: 0 6px 18px rgba(0,100,220,.32), inset 0 1px 0 rgba(255,255,255,.28); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-discord { background: linear-gradient(180deg, #5f6cf5, #4752e0); color: #fff; box-shadow: 0 8px 22px rgba(88,101,242,.38), inset 0 1px 0 rgba(255,255,255,.28); }
.btn-discord:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--fill); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--fill-hover); }
.btn-danger { background: var(--red-tint); color: var(--red); }
.btn-danger:hover:not(:disabled) { filter: brightness(1.15); }
.btn-small { min-height: 34px; padding: 6px 14px; font-size: 13.5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }

/* ── Sign in ── */
.signin { max-width: 470px; margin: 6vh auto 0; text-align: center; border-radius: 32px; padding: 34px 28px 26px; }
.signin-logo { width: 84px; height: 84px; object-fit: contain; margin-bottom: 18px; }
.signin h1 { margin-bottom: 10px; font-size: 28px; }
.signin p { color: var(--text2); }
.signin .btn { margin: 22px 0 16px; width: 100%; min-height: 50px; font-size: 16px; }
.signin .note { font-size: 13px; color: var(--muted); }

/* ── Grouped lists, like iOS Settings ── */
.list { list-style: none; border-radius: 24px; overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 13px; padding: 13px 16px; text-decoration: none; color: var(--text); min-width: 0; transition: background .12s; position: relative; }
.list-row:hover { background: var(--fill); }
.list-row:active { background: var(--fill-hover); }
.list > li + li .list-row::before { content: ''; position: absolute; top: 0; left: 63px; right: 0; height: 1px; background: var(--separator); }
.list-row:focus-visible { outline-offset: -3px; border-radius: 20px; }
.list-body { min-width: 0; flex: 1; }
.list-title { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.list-sub { color: var(--text2); font-size: 13.5px; margin-top: 1px; overflow-wrap: anywhere; }
.list-arrow { color: var(--muted); flex-shrink: 0; font-size: 21px; line-height: 1; }
.list-add .list-title { color: var(--accent); font-weight: 500; }
.server-icon { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; object-fit: cover; }
.server-icon-empty { display: grid; place-items: center; background: var(--fill); color: var(--text2); font-weight: 600; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.chip { font-size: 12px; line-height: 1.5; padding: 1px 9px; border-radius: 999px; background: var(--green-tint); color: var(--green-text); font-weight: 600; white-space: nowrap; }
.chip-off { background: transparent; color: var(--muted); padding-left: 0; font-weight: 400; font-size: 13px; }

/* ── Sub-pages ── */
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 5px 15px 5px 11px; margin-bottom: 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; box-shadow: inset 0 1px 0 var(--glass-edge); }
.back:hover { background: var(--fill); }
.server-title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; min-width: 0; }
.server-title .server-icon { width: 58px; height: 58px; border-radius: 16px; font-size: 22px; }

.status { display: flex; gap: 10px; padding: 12px 15px; border-radius: 16px; margin-bottom: 14px; font-size: 14px; overflow-wrap: anywhere; }
.status-on { background: var(--green-tint); }
.status-on strong { color: var(--green-text); }
.status-warn { background: var(--gold-tint); }
.status-warn strong { color: var(--gold); }

/* ── Forms ── */
.field { display: block; margin-top: 16px; border: 0; min-width: 0; }
.field-label, .field legend { display: block; font-weight: 600; font-size: 13.5px; color: var(--text2); margin-bottom: 7px; padding: 0; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row .field { min-width: 0; }
/* 16px text stops iPhones zooming in when a box is tapped */
input[type="text"], input[type="number"], select { width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--text); background-color: var(--fill); border: 0; border-radius: 14px; transition: background-color .15s, box-shadow .15s; }
input[type="text"]:hover, input[type="number"]:hover, select:hover { background-color: var(--fill-hover); }
input[type="text"]:focus, input[type="number"]:focus, select:focus { outline: none; box-shadow: 0 0 0 3px var(--tint), inset 0 0 0 1.5px var(--accent); }
input::placeholder { color: var(--muted); opacity: 1; }
select { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: url(chevron.svg); background-repeat: no-repeat; background-position: right 15px center; text-overflow: ellipsis; }
select option, select optgroup { background: var(--glass-opaque); color: var(--text); }

.options { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; background: var(--fill); border-radius: 16px; cursor: pointer; min-width: 0; transition: background .15s, box-shadow .15s; }
.option:hover { background: var(--fill-hover); }
.option:has(input:checked) { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.option input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; border-radius: 50%; background: var(--fill-hover); cursor: pointer; }
.option input:checked { background: #0a7bea url(check.svg) center / 14px no-repeat; }
.option-text { min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.option-text small { display: block; font-weight: 400; color: var(--text2); font-size: 12.5px; margin-top: 2px; }
.ping-prayers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.ping-prayers .check-row { margin-top: 6px; }
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14.5px; cursor: pointer; }
.check-row input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; background: var(--fill-hover); cursor: pointer; }
.check-row input:checked { background: #0a7bea url(check.svg) center / 16px no-repeat; }

.alert { padding: 12px 15px; border-radius: 16px; background: var(--red-tint); color: var(--red); margin-top: 14px; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.alert strong { display: block; margin-bottom: 3px; }
.page-alert { margin: 0 0 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 12px); max-width: calc(100vw - 32px); padding: 11px 20px; border-radius: 999px; background: var(--glass-opaque); border: 1px solid var(--glass-border); box-shadow: var(--shadow); color: var(--text); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .22s, transform .32s cubic-bezier(.2,1.3,.4,1); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Today's times and tiles ── */
.times { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.time { display: flex; flex-direction: column; gap: 1px; padding: 11px 13px; background: var(--fill); border-radius: 16px; min-width: 0; }
.time-name { font-size: 13px; color: var(--text2); }
.time-value { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.stats .time-value { font-size: 22px; }
.stat-head { font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.stat-head + .times { margin-top: 8px; }
.page-note { margin: 4px 16px 0; }

/* ── iOS switches ── */
.switches { display: grid; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--separator); cursor: pointer; }
.switch-row:first-child { border-top: 0; }
.switch-text { min-width: 0; flex: 1; }
.switch-title { display: block; font-weight: 600; font-size: 15px; }
.switch-text small { display: block; color: var(--text2); font-size: 13px; line-height: 1.4; margin-top: 1px; }
.switch { position: relative; flex-shrink: 0; width: 51px; height: 31px; }
.switch input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 999px; background: var(--fill-hover); pointer-events: none; transition: background .22s; }
.switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.22), 0 1px 2px rgba(0,0,0,.2); transition: transform .28s cubic-bezier(.3,1.4,.5,1); }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .55; }

/* ── Prayer record ── */
.record-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.record-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 64px; padding: 7px 10px; border: 0; border-radius: 14px; background: var(--fill); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; scroll-snap-align: start; }
.record-chip .record-count { font-size: 11.5px; font-weight: 500; color: var(--text2); }
.record-chip.record-full .record-count { color: var(--green-text); }
.record-chip.record-picked { background: #0a7bea; color: #fff; }
.record-chip.record-picked .record-count { color: rgba(255,255,255,.85); }
.record-prayers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.record-btn { font: inherit; font-size: 13px; padding: 10px 2px; border: 0; border-radius: 12px; background: var(--fill); color: var(--text2); cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-btn.record-on { background: var(--green-tint); color: var(--green-text); font-weight: 600; }
.record-btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 380px) { .record-btn { font-size: 12px; } }

/* ── Fade in on scroll (see revealLater) ── */
.reveal-ready { transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.reveal { opacity: 0; transform: translateY(18px); }
[data-lite] .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Compare calculation methods ── */
.compare-open { margin-top: 10px; }
.compare { margin-top: 12px; }
.compare-hint { margin: 0 0 8px; }
.compare-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.compare-row { padding: 11px 14px; background: var(--fill); border-radius: 16px; min-width: 0; }
.compare-row.is-selected { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.compare-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.compare-name { font-weight: 600; font-size: 14px; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.compare-top .btn, .compare-top .chip { flex-shrink: 0; }
.compare-times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.compare-times dt { color: var(--text2); font-size: 12px; }
.compare-times dd { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.compare-times .differs dd { color: var(--gold); font-weight: 700; }

/* ── Owner page ── */
.share-result { margin-top: 16px; }
.share-result .status { margin-bottom: 0; }
.share-result .actions { margin-top: 12px; }
.channels { list-style: none; }
.channel { padding: 12px 0; border-top: 1px solid var(--separator); min-width: 0; }
.channel:first-child { border-top: 0; padding-top: 4px; }
.channel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.channel-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.channel-switch { border-top: 0; padding: 8px 0 2px; }
.warn-text { color: var(--gold); }
.keywords { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.keyword { display: inline-flex; align-items: center; gap: 1px; padding: 2px 3px 2px 12px; background: var(--fill); border-radius: 999px; font-size: 14px; font-weight: 500; max-width: 100%; }
.keyword span { overflow-wrap: anywhere; }
.keyword-remove { width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text2); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.keyword-remove:hover:not(:disabled) { background: var(--red-tint); color: var(--red); }

@media (max-width: 560px) {
  .topbar { min-height: 52px; padding: 6px 8px 6px 10px; }
  .page { padding: 22px 16px 72px; }
  .card { padding: 18px 16px; border-radius: 24px; }
  .row, .options { grid-template-columns: 1fr; }
  .ping-prayers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { gap: 0; }
  .times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adjust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  h1 { font-size: 28px; }
  .account-name { display: none; }
  .actions .btn { flex: 1 1 auto; }
  .brand-name { font-size: 13px; }
  .signin { padding: 28px 20px 22px; margin-top: 4vh; }
}
.adjust-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.adjust-grid .field { margin-top: 12px; }
@media (max-width: 560px) { .adjust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  .toast, .switch-track, .switch-track::after, .btn { transition: none; }
  .page.entering > * { animation: none; }
}

/* Older phones and low-memory computers: same layout, nothing costly to draw */
[data-lite] .bg-canvas { display: none; }
[data-lite] .topbar, [data-lite] .card, [data-lite] .list, [data-lite] .signin, [data-lite] .back { background: var(--glass-opaque); box-shadow: none; }
[data-lite] .toast, [data-lite] .tile, [data-lite] .signin-logo, [data-lite] .btn-primary, [data-lite] .btn-discord { box-shadow: none; }
[data-lite] .topbar, [data-lite] .toast { border-color: var(--separator); }
[data-lite] .back:hover { background: var(--fill); }
[data-lite] *, [data-lite] *::before, [data-lite] *::after { animation: none !important; transition: none !important; }
