/* Colours: deep mosque green and soft gold on warm ivory, like the screens. Always light, whatever the computer's setting. */
:root { --bg1: #f6f3ec; --bg2: #efeadf; --card: #fffdf8; --ink: #1f2a25; --muted: #5f6b64; --line: #e3dccd; --accent: #0f6b52; --accent2: #0a4a3a;
  --gold: #b8892f; --bad: #b3342b; --ok: #1a7f46; --warn: #a96f12; --soft: #f3eee3; --shadow: rgba(60, 50, 20, .08); }
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-height: 100vh; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
  background: linear-gradient(135deg, var(--bg1), var(--bg2)) fixed; }
main { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }
.loading { text-align: center; color: var(--muted); margin-top: 30vh; }
h1 { margin: 0; font-size: 1.5rem; }
h2 { margin: 0 0 12px; font-size: 1.15rem; }
a { color: var(--accent); }

/* Signed out: one card in the middle */
.auth { max-width: 460px; margin: 6vh auto 0; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.logo { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 28px; color: #fff; flex: none;
  background: var(--accent2); }
.brand p { margin: 2px 0 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 6px 24px var(--shadow); }
.card + .card { margin-top: 16px; }
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); margin-bottom: 8px; }
.switch button { margin: 0; background: transparent; color: var(--muted); box-shadow: none; padding: 9px; }
.switch button[aria-selected="true"] { background: var(--card); color: var(--accent); box-shadow: 0 1px 4px var(--shadow), inset 0 -3px 0 var(--gold); }

label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
input, select { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

button { font: inherit; font-weight: 650; padding: 10px 16px; border-radius: 10px; cursor: pointer; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
button.primary { border: 0; color: #fff; background: var(--accent2); }
button.primary:hover:not(:disabled) { background: var(--accent); }
button:not(.primary):hover:not(:disabled) { border-color: var(--accent); }
button.wide { width: 100%; margin-top: 18px; padding: 13px; font-size: 1.05rem; }
button.danger { color: var(--bad); }
button.link { border: 0; background: none; color: var(--accent); padding: 4px 0; font-weight: 600; }
button:disabled { opacity: .55; cursor: default; }
.msg { min-height: 1.3em; margin: 10px 0 0; font-size: .92rem; color: var(--bad); }
.msg.good { color: var(--ok); }
.hint { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }

/* Signed in */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.top .grow { flex: 1 1 auto; min-width: 0; }
.top .who { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.devices { display: grid; gap: 12px; }
.device { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.device .info { flex: 1 1 220px; min-width: 0; }
.device .name { font-weight: 700; overflow-wrap: anywhere; }
.device .sub { font-size: .87rem; color: var(--muted); }
.device .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: 1px; }
.dot.ok { background: var(--ok); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.empty { color: var(--muted); margin: 0; }
.add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.add label { margin-top: 0; }
@media (max-width: 620px) { .add { grid-template-columns: 1fr; } }

/* Prayer times */
.back { margin-bottom: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; }
.seg button[aria-pressed="true"] { background: var(--accent2); color: #fff; box-shadow: 0 1px 4px var(--shadow); }
table.times { width: 100%; border-collapse: collapse; margin-top: 6px; table-layout: fixed; }
table.times th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 6px 4px; }
table.times td { padding: 5px 6px; vertical-align: middle; }
table.times td:first-child { font-weight: 650; width: 26%; }
table.times input, table.times select { padding: 8px 9px; min-width: 0; }
.rule input { flex: 1 1 auto; }
@media (max-width: 520px) {
  .card { padding: 16px 14px; }
  table.times td { padding: 4px 3px; }
  table.times input { padding: 8px 4px; font-size: .95rem; }
  .rule { flex-direction: column; gap: 4px; }
  .rule select { width: 100%; }
}
.rule { display: flex; gap: 8px; }
.rule select { flex: 0 0 auto; width: auto; }
.section { margin-top: 20px; }
.section > p.hint:first-child { margin-top: 0; }
.savebar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.savebar .msg { margin: 0; flex: 1 1 200px; }
.sync { font-size: .9rem; padding: 10px 12px; border-radius: 10px; background: var(--soft); margin: 0 0 14px; }
.sync.wait { border-left: 4px solid var(--warn); }
.sync.done { border-left: 4px solid var(--ok); }
.card.notice { border-left: 5px solid var(--warn); }
.card.notice .msg { margin-top: 8px; }
/* Banner for what just happened */
.flash { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; font-weight: 650;
  color: var(--ink); background: color-mix(in srgb, var(--ok) 16%, var(--card)); border: 1.5px solid var(--ok); }
.flash.bad { background: color-mix(in srgb, var(--bad) 14%, var(--card)); border-color: var(--bad); }
.flash-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); font-weight: 800; }
.flash.bad .flash-icon { background: var(--bad); }
.flash-text { flex: 1 1 auto; }
.flash-close { flex: none; border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; padding: 2px 8px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card-head .grow { flex: 1 1 260px; }
.card-head h2 { margin-bottom: 4px; }
.card-head .hint { margin: 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.share-link { padding: 10px 12px; border-radius: 10px; background: var(--soft); overflow-wrap: anywhere; font-weight: 600; text-decoration: none; }
/* Home: the tabs on the left (wide, for editing), the public page's preview on the right; one above the other on a phone */
main.wide { max-width: 1440px; }
.home { display: grid; gap: 16px; align-items: start; }
.home .controls { display: grid; gap: 16px; min-width: 0; }
.home .controls .card + .card { margin-top: 0; }
.home .preview { min-width: 0; }
@media (min-width: 1000px) {
  .home { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
  .home .preview { position: sticky; top: 16px; }
}
.frame { margin-top: 12px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #03251f; }
.frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.frame.landscape { aspect-ratio: 16 / 9; }
.frame.portrait { aspect-ratio: 9 / 16; width: min(100%, calc(78vh * 9 / 16)); margin-left: auto; margin-right: auto; }
.frame.empty-preview { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 20px; text-align: center; background: var(--soft); color: var(--muted); }
.preview .seg button { padding: 6px 12px; }
label.check { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 16px 0 0; font-size: .95rem; color: var(--ink); cursor: pointer; }
label.check input { width: auto; margin: 0; accent-color: var(--accent); transform: scale(1.2); }
label.check small { flex-basis: 100%; padding-left: 26px; font-weight: 400; color: var(--muted); font-size: .82rem; }
.look { margin-top: 18px; }
.look h3 { margin: 16px 0 2px; font-size: .95rem; }
.look h3:first-child { margin-top: 0; }
.look .hint { margin: 0 0 8px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choices.swatches { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.choice { display: grid; gap: 4px; text-align: left; padding: 8px; border-radius: 12px; font-weight: 600; }
.choice .sketch { width: 100%; height: auto; border-radius: 6px; }
.choice b { font-size: .9rem; }
.choice small { color: var(--muted); font-weight: 400; font-size: .74rem; line-height: 1.3; }
.choice.small { grid-template-columns: 30px 1fr; align-items: center; column-gap: 10px; }
.choice .swatch { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(0,0,0,.15); }
.choice[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
label.check small.warn { color: var(--warn); }
label.check:has(input:disabled) { cursor: default; opacity: .85; }
.template-groups h4 { margin: 14px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.template-groups h4:first-child { margin-top: 0; }
[hidden] { display: none !important; }

/* Home: the mosque's details, what the page shows, the template and its advanced settings */
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; }
.info-list dt { color: var(--muted); font-size: .88rem; }
.info-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.muted-card { box-shadow: none; }
.advanced-switch { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.parts { margin-top: 10px; }
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 14px; margin-bottom: 10px; }
/* Prayer times: the calendar upload */
.cal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.cal-actions input[type="month"] { width: auto; }
label.button { display: inline-block; margin: 0; font-size: 1rem; font-weight: 650; padding: 10px 16px; border-radius: 10px; cursor: pointer; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
label.button.primary { border: 0; color: #fff; background: var(--accent2); }
label.button:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal-help { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.cal-help summary { cursor: pointer; font-weight: 600; color: var(--ink); }
main.here { max-width: 480px; }
.qr-box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--soft); }
.qr-box img { width: 180px; height: 180px; border-radius: 8px; background: #fff; }
.qr-box .grow { flex: 1; min-width: 200px; }

/* The landing page: top bar, hero, the mosque finder and the sign-in card */
.landing { max-width: 1240px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.brand.tight { margin: 0; }
.brand.tight .logo { width: 44px; height: 44px; font-size: 24px; }
.wordmark { font-size: 1.25rem; }
.btn-link { text-decoration: none; font-weight: 650; padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.hero { border-radius: 22px; padding: clamp(24px, 4vw, 44px); color: #f6f1e1; margin-bottom: 20px;
  background: radial-gradient(circle at 90% 10%, rgba(231, 197, 127, .16), transparent 45%), linear-gradient(135deg, #03251f, #0a4a3a); }
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.9rem); line-height: 1.1; max-width: 18ch; margin-bottom: 14px; }
.hero p { max-width: 62ch; margin: 0 0 16px; color: #d6e4dc; font-size: 1.05rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #e7c57f; border: 1px solid rgba(231, 197, 127, .45); background: rgba(231, 197, 127, .08); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } .portal { order: -1; } }
.finder-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.finder-head h2 { margin: 0; }
.pill { font-size: .85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.pill:empty { display: none; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 640px) { .filters { grid-template-columns: 1fr; } }
.list-title { margin: 22px 0 10px; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mosques { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.mosque { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--soft); }
.mosque-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mosque h4 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.mosque .place { margin: 3px 0 0; color: var(--muted); font-size: .88rem; }
.mosque .open { flex: none; text-decoration: none; font-weight: 650; font-size: .88rem; padding: 7px 12px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #0a4a3a, #0f6b52); }
.cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.cell { text-align: center; padding: 8px 2px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.cell small { display: block; font-size: .64rem; letter-spacing: .06em; color: var(--muted); }
.cell b { display: block; font-size: .8rem; margin-top: 2px; }
.cell span { display: block; font-size: .66rem; color: var(--muted); margin-top: 2px; }
.portal h2 { margin-bottom: 2px; }
.foot { margin: 18px 0 0; font-size: .8rem; color: var(--muted); }
html { scroll-behavior: smooth; }

/* Type-ahead boxes (country, city) */
.combo { position: relative; }
.combo ul { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 260px; overflow: auto;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.combo li { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.combo li[aria-selected="true"], .combo li:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.combo li.none { color: var(--muted); cursor: default; }
.combo li.none:hover { background: none; }
.combo input:disabled { opacity: .6; cursor: not-allowed; }

/* Home display: screen settings and notices (public/account-hd.js) */
.hd-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; margin-top: 6px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button-like { display: inline-flex; align-items: center; margin: 0; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-weight: 600; font-size: .92rem; cursor: pointer; }
.button-like:hover { border-color: var(--accent); }
.button-like:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.notices-card h3 { margin: 18px 0 8px; font-size: .95rem; }
.switch.three { grid-template-columns: repeat(3, 1fr); margin: 12px 0 14px; }
.nbar { display: flex; flex-wrap: wrap; gap: 8px; }
.nlist { display: grid; gap: 8px; margin-top: 10px; }
.nrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.nrow.off .meta, .nrow.off .mini { opacity: .5; }
.nrow .mini { width: 64px; height: 40px; flex: none; border-radius: 6px; overflow: hidden; background: #13254a; display: grid; place-items: center; }
.nrow .mini img { width: 100%; height: 100%; object-fit: contain; }
.lay-icon svg { display: block; width: 100%; height: auto; }
.nrow .mini .lay-icon { width: 64px; }
.nrow .meta { flex: 1 1 160px; min-width: 0; display: grid; }
.nrow .meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nrow .meta small { color: var(--muted); font-size: .8rem; }
.nactions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nactions button { padding: 6px 10px; font-size: .84rem; margin: 0; }
.nactions select.secs { width: auto; margin: 0; padding: 6px 8px; font-size: .84rem; }
.icon-btn.off { color: var(--muted); }
.ask { font-size: .85rem; color: var(--bad, #c8312b); font-weight: 600; }
.ehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.dirty { font-size: .78rem; font-weight: 700; color: #3b2a00; background: #f0c36b; border-radius: 999px; padding: 2px 10px; }
.lays { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.lay { display: grid; justify-items: center; gap: 4px; padding: 6px; margin: 0; font-size: .74rem; font-weight: 600; }
.lay .lay-icon { width: 64px; }
.lay[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.dtp { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.notices-card textarea { width: 100%; min-height: 130px; resize: vertical; font: inherit; }
.notices-card .thumb { display: block; max-width: 220px; max-height: 140px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); margin-top: 8px; }
.samples { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.samples summary { cursor: pointer; font-weight: 600; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; margin-top: 8px; }
.simg { height: 58px; padding: 3px; margin: 0; background: #13254a; }
.simg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.simg.sel { box-shadow: 0 0 0 3px var(--accent); }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.lcard { display: grid; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); }
.lcard.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.lthumb { height: 84px; border-radius: 8px; background: #13254a; display: grid; place-items: center; overflow: hidden; }
.lthumb img { width: 100%; height: 100%; object-fit: contain; }
.lthumb .lay-icon { width: 96px; }
.lcard .meta { display: grid; }
.lcard .meta small { color: var(--muted); font-size: .8rem; }
.lbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.lbtns button { padding: 6px 10px; font-size: .84rem; margin: 0; flex: 1 1 auto; }
.notices-card textarea { padding: 10px 12px; border-radius: 10px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); }
/* Home tabs: Mosque, Your screen, Notices */
.switch.home-tabs { margin: 0; }
.home-tabs button { font-size: 1rem; font-weight: 700; padding: 11px; }
.tab-panel { display: grid; gap: 16px; min-width: 0; }
.tab-panel[hidden] { display: none; }
/* The mosque's logo (or a drawing until there is one), beside its name */
.mosque-logo { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: var(--soft); border: 1px solid var(--line); }
.mosque-logo.placeholder { display: grid; place-items: center; color: var(--muted); }
.mosque-logo.placeholder svg { width: 62%; height: 62%; }
.mosque-head { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.mosque-head .grow { flex: 1; min-width: 0; display: grid; }
.mosque-head .grow .hint { margin: 0; }
.mosque-head b { font-size: 1.15rem; overflow-wrap: anywhere; }
.mosque-head button { margin: 0; }
.mosque-edit { display: grid; gap: 12px; margin-top: 12px; }
.mosque-edit .logo-row .mosque-logo { width: 64px; height: 52px; }
/* The notice's number on the screen (1, 2, 3…); a dash when it is hidden */
.serial { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  color: #fff; background: var(--accent2); }
.serial.off { color: var(--muted); background: transparent; border: 1.5px dashed var(--line); }
/* The notice preview (while editing a notice), above the whole screen */
.notice-preview h3 { margin: 14px 0 0; font-size: .95rem; }
.notice-preview[hidden] { display: none; }
.frame.notice-l { aspect-ratio: 1068 / 578; }
.frame.notice-p { aspect-ratio: 968 / 890; }
/* Iqamah tab: one row per prayer (name, rule, value, what it gives today) */
.iq-table { display: grid; gap: 10px; margin-top: 14px; }
.iq-row { display: grid; grid-template-columns: 90px auto minmax(150px, 220px) 1fr; align-items: center; gap: 10px 14px; padding: 10px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.iq-row b { font-size: 1.05rem; }
.iq-value select, .iq-value input { margin: 0; }
.iq-value [hidden] { display: none; }
.iq-result { color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .iq-row { grid-template-columns: 1fr; } }
.iq-h3 { margin: 22px 0 10px; font-size: 1.05rem; }
/* The Home Screen's "Always kept" in place of Archive, and "In use" in the library */
.keep { font-size: .8rem; font-weight: 700; color: var(--muted); padding: 6px 8px; }
.notices-card h4 { margin: 16px 0 8px; font-size: .95rem; }
