:root {
  --bg: #FBFAF6; --card: #FFFFFF; --ink: #1F1D18; --ink2: #2B2118; --muted: #5E5A50; --line: #E7E2D6; --line2: #D8D1BF;
  --gold: #B8860B; --gold-text: #7A5A0C; --gold-soft: #FBF3DE; --gold-line: #E4C56E; --ok-bg: #EAF4EC; --ok-line: #B9DABF; --ok: #1E5A2B;
  --code-bg: #161A22; --code: #E3E6EE;
  --radius: 16px; --max: 1160px;
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #12161F; --card: #1A1F2B; --ink: #F3F1EA; --ink2: #F3F1EA; --muted: #AEB6C8; --line: #2A3142; --line2: #3A4256;
    --gold: #E8B83A; --gold-text: #E8B83A; --gold-soft: #2B2615; --gold-line: #6B5520; --ok-bg: #173323; --ok-line: #2C5A3A; --ok: #9BD3AA; }
}
:root[data-theme="dark"] { --bg: #12161F; --card: #1A1F2B; --ink: #F3F1EA; --ink2: #F3F1EA; --muted: #AEB6C8; --line: #2A3142; --line2: #3A4256;
    --gold: #E8B83A; --gold-text: #E8B83A; --gold-soft: #2B2615; --gold-line: #6B5520; --ok-bg: #173323; --ok-line: #2C5A3A; --ok: #9BD3AA; }
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--gold-text); }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; left: -9999px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
main { scroll-margin-top: 12px; }

/* header: the place, a pause button where a page moves, and the menu */
.skip { position: absolute; left: -9999px; top: 6px; z-index: 60; padding: 10px 14px; border-radius: 10px; background: #fff; color: #1F1D18; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #E8A200; outline-offset: 2px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink2); }
.brand b { font: 600 22px/1 var(--serif); }
.brand .m { color: #17234F; } .brand .s { color: var(--gold); }
:root[data-theme="dark"] .brand .m { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .m { color: #fff; } }
.placebtn, .roundbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); cursor: pointer; touch-action: manipulation; }
.placebtn { min-width: 0; min-height: 46px; padding: 0 18px; border-radius: 999px; font: 600 17px var(--sans); }
.placebtn span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.placebtn svg { flex: none; }
.top-actions { display: flex; gap: 8px; }
.roundbtn { width: 46px; height: 46px; flex: none; border-radius: 50%; }
.placebtn:hover, .roundbtn:hover { border-color: var(--gold); }
.playicon, .still .pauseicon { display: none; } .still .playicon { display: block; }
.plainnav { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 8px; }
@media (max-width: 560px) { .brand b { display: none; } .placebtn { font-size: 16px; padding: 0 14px; } }

/* panels */
.panel { width: min(480px, calc(100vw - 16px)); max-height: calc(100dvh - 70px); margin: 62px auto auto; padding: 16px; border: 1px solid var(--line2); border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.28); overscroll-behavior: contain; }
.panel[open] { display: flex; flex-direction: column; gap: 10px; }
.panel::backdrop { background: rgba(8,12,24,.45); }
.panel-menu { width: min(520px, calc(100vw - 16px)); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.textbtn { min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--gold-text); font: 600 14px var(--sans); cursor: pointer; }
.menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.menu > div { display: flex; flex-direction: column; }
.menu .group { padding: 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.menu a, .recents a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu a:hover, .recents a:hover { background: var(--gold-soft); }
.menu a[aria-current], .recents a[aria-current] { background: var(--gold-soft); font-weight: 600; }
.panel .search { flex-wrap: nowrap; }
.panel .search input { flex: 1 1 auto; min-width: 0; }
.recents { display: flex; flex-direction: column; }

/* type */
h1 { font: 600 clamp(32px, 5vw, 52px)/1.08 var(--serif); margin: 0; letter-spacing: -0.01em; }
h2 { font: 600 22px/1.25 var(--sans); margin: 0 0 12px; }
h3 { font: 600 17px/1.3 var(--sans); margin: 0 0 6px; }
.sub { color: var(--muted); margin: 8px 0 0; }
.small { font-size: 13px; color: var(--muted); }
.mono { font-family: var(--mono); }

/* blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid { display: grid; gap: 16px; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.section { margin: 28px 0; }
.chip, .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--card); color: var(--ink); font: 500 14px var(--sans); text-decoration: none; cursor: pointer; }
.chip.on, .btn.dark { background: var(--ink2); color: var(--bg); border-color: var(--ink2); }
.btn.gold { background: var(--gold); color: #1F1D18; border-color: var(--gold); font-weight: 600; }
.badge { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; font-size: 14px; background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); }
.badge.plain { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-text); }

/* search */
.search { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.search input { flex: 1 1 260px; max-width: 460px; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font: 16px var(--sans); }

/* family bar: Quran | Salat, as on Quran Anywhere */
.sitebar { display: flex; align-items: stretch; justify-content: space-between; gap: 10px; height: 52px; padding: 0 max(14px, calc((100vw - var(--max)) / 2 + 20px)); background: #12191B; color: #F3F1EA; font: 14px/1 var(--sans); }
.sitebar > div { display: flex; min-width: 0; }
.sitebar .family { align-items: stretch; }
.sitebar .family a { display: flex; align-items: center; padding: 0 18px; border-bottom: 3px solid transparent; color: inherit; text-decoration: none; font-weight: 500; }
.sitebar .family a.on { border-color: #E8B83A; font-weight: 700; }
.sitebar .tools { align-items: center; gap: 12px; }
.sitebar .dev { min-height: 44px; padding: 0 12px; border: 0; border-radius: 22px; background: none; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.sitebar .donate { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #E8B83A; color: #1A1400; font-weight: 700; text-decoration: none; }
.sitebar .donate:hover { background: #F6CE5E; }
.sitebar .theme { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: #F3F1EA; cursor: pointer; }
.sitebar .family a:hover, .sitebar .dev:hover, .sitebar .theme:hover { background: rgba(255,255,255,.1); }
.theme .sunicon { display: none; }
:root[data-theme="dark"] .theme .sunicon { display: block; } :root[data-theme="dark"] .theme .moonicon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sunicon { display: block; } :root:not([data-theme="light"]) .theme .moonicon { display: none; } }
@media (max-width: 640px) { .sitebar { padding: 0 8px; } .sitebar .family a { padding: 0 12px; } .sitebar .tools { gap: 4px; } .sitebar .dev { display: none; } }

/* today: place, countdown, the day drawing, one line of choices. Fits one screen. */
.placehead { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; }
.placehead h1 { font-size: clamp(22px, 3vw, 30px); }
.placehead p { margin: 2px 0 0; }
.placehead > div { flex: 1 1 320px; min-width: 0; }
.placehead .search { flex-wrap: nowrap; }
.placehead .search .chip { white-space: nowrap; }
.placehead .search input { flex: 0 1 280px; min-width: 0; height: 44px; }
.today { margin-top: 4px; }
.dial { position: relative; width: min(100%, max(520px, calc((100vh - 372px) * 2.1)), 760px); margin: 0 auto; container-type: inline-size; }
.dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial .track, .dial .done { fill: none; stroke-width: 14; stroke-linecap: round; }
.dial .track { stroke: var(--line); }
.dial .done { stroke: var(--gold); }
.dial .dot-p { fill: var(--ink); stroke: var(--bg); stroke-width: 3; }
.dial .dot-p.is-next { fill: var(--gold); stroke: var(--gold-line); stroke-width: 6; }
.dial text { fill: var(--muted); font: 500 15px var(--sans); }
.dial text.is-next { fill: var(--gold-text); font-weight: 700; }
.clock { position: absolute; left: 18%; right: 18%; bottom: 7%; text-align: center; }
.clock .next { color: var(--muted); font-size: 16px; font-size: clamp(12px, 2.5cqw, 17px); margin: 0; }
.clock .count { font: 500 clamp(40px, 9vw, 72px)/1.1 var(--serif); font-size: clamp(36px, 11.5cqw, 84px); letter-spacing: -0.02em; margin: 0; font-variant-numeric: tabular-nums; }
.times { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.times > div { text-align: center; padding: 6px 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.times .n { font-size: 13px; line-height: 1.4; color: var(--muted); }
.times .t { font: 700 clamp(20px, 2.6vw, 28px)/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.times .is-next { background: var(--gold-soft); border-color: var(--gold); }
.times .is-next .n, .times .is-next .t { color: var(--gold-text); }
@media (max-width: 760px) {
  .dial { width: 100%; }
  .dial text { font-size: 23px; }
  .times { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .times .t { font-size: 21px; }
  .placehead .search { width: 100%; justify-content: flex-start; }
  .placehead .search input { flex: 1 1 140px; width: auto; }
  .placehead .search button[type=submit] { display: none; }
}

/* one quiet line of choices */
.t1 { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; margin-top: 12px; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.t1 b { color: var(--ink); }
.t1 summary { display: inline-flex; align-items: center; min-height: 40px; color: var(--gold-text); font-weight: 600; cursor: pointer; list-style: none; }
.t1 summary::-webkit-details-marker { display: none; }
.t1 summary::after { content: " \25BE"; margin-left: 4px; }
.t1 details[open] { order: 5; flex-basis: 100%; }
.t1 details[open] summary::after { content: " \25B4"; }
.t1-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 14px; margin-bottom: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.t1-panel > div { display: flex; flex-direction: column; gap: 2px; }
.t1-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.t1-opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 14px/1.35 var(--sans); text-align: left; text-decoration: none; cursor: pointer; }
.t1-opt:hover, .t1-opt.on { background: var(--gold-soft); color: var(--ink); }
.t1-opt em { font-style: normal; font-size: 12px; color: var(--ok); }
button.t1-opt { display: block; }
.t1-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; margin-left: auto; }
.t1-links a { display: inline-flex; align-items: center; min-height: 40px; }

.credits { display: grid; gap: 8px; margin: 12px 0 0; font-size: 14px; }
.credits > div { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 4px 16px; }
.credits dt { color: var(--muted); } .credits dd { margin: 0; }
@media (max-width: 560px) { .credits > div { grid-template-columns: 1fr; } }

.designpick { position: relative; }
.designpick summary { list-style: none; } .designpick summary::-webkit-details-marker { display: none; }
.designpick > div { position: absolute; z-index: 5; right: 0; top: 50px; display: grid; min-width: 180px; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.designpick > div a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.designpick > div a:hover { background: var(--gold-soft); }

/* widget builder */
.field { display: grid; gap: 4px; }
.field input, .field select { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font: 15px var(--sans); }
.designs { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.designs.compact { flex-direction: column; }
.design { display: grid; gap: 6px; flex: 1 1 220px; min-width: 0; padding: 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.design:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.design iframe { width: 100%; height: 440px; border: 0; pointer-events: none; }
.designs.compact .design iframe { height: 92px; }

/* tables */
.tablebox { overflow-x: auto; }
table.tt { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tt th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 10px 8px; }
.tt td { padding: 9px 8px; border-top: 1px solid var(--line); }
.tt tr.today td { background: var(--gold-soft); font-weight: 600; }
.tt tr.last10 td { background: var(--gold-soft); }
.tt .gold { color: var(--gold-text); font-weight: 600; }

/* ramadan */
.hero { background: #1F1D18; color: #FFFFFF; border-radius: 24px; padding: 28px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.hero .ar { font: 30px/1.2 "Amiri", serif; color: #E8B83A; margin: 0; }
.hero h1 { color: #FFFFFF; }
.hero .sub { color: #C9C4B6; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: 0 1 380px; }
.pair > div { background: #2B2820; border-radius: 16px; padding: 16px; }
.pair > div.gold { background: #B8860B; color: #1F1D18; }
.pair .big { font: 500 36px/1.1 var(--serif); }

/* code */
pre.code { margin: 0; background: var(--code-bg); color: var(--code); border-radius: 14px; padding: 18px; overflow-x: auto; font: 13px/1.65 var(--mono); }
pre.code .new { color: #F7D57A; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--gold-soft); padding: 1px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

/* accuracy map */
:root { --map-sea: #F4F1E8; --map-land: #E2DDD0; --map-edge: #FBFAF6; --map-ok: #BFDDC5; --map-amber: #F1DDA6; --map-red: #F2CBC4;
  --pin-green: #1E7A3C; --pin-amber: #C98A0B; --pin-red: #C0392B; --pin-grey: #8E887A; --red-bg: #FBE3DF; --red: #8C1D16; --amber-bg: #FBF0D6; --amber: #7A5A0C; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --map-sea: #0F131B; --map-land: #262D3C; --map-edge: #12161F; --map-ok: #1F4B35; --map-amber: #4F4019; --map-red: #4E2422;
    --pin-green: #4CC38A; --pin-amber: #F2C14E; --pin-red: #F07167; --pin-grey: #7D8599; --red-bg: #3A1E1C; --red: #F4A49B; --amber-bg: #33290F; --amber: #F2C14E; }
}
:root[data-theme="dark"] { --map-sea: #0F131B; --map-land: #262D3C; --map-edge: #12161F; --map-ok: #1F4B35; --map-amber: #4F4019; --map-red: #4E2422;
    --pin-green: #4CC38A; --pin-amber: #F2C14E; --pin-red: #F07167; --pin-grey: #7D8599; --red-bg: #3A1E1C; --red: #F4A49B; --amber-bg: #33290F; --amber: #F2C14E; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pin-grey); flex: none; }
.dot.green { background: var(--pin-green); } .dot.amber { background: var(--pin-amber); } .dot.red { background: var(--pin-red); }
.acc-stats { gap: 8px; }
.acc-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.acc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 861px) { .acc { align-items: stretch; } .acc-finder { contain: size; min-height: 420px; } }
@media (max-width: 860px) { .acc { grid-template-columns: 1fr; } .acc-finder { order: 2; max-height: 420px; } }
.acc-finder { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.acc-search { height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); font: 15px var(--sans); }
.acc-list { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.acc-cc { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.acc-city { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left; font: 15px var(--sans); cursor: pointer; }
.acc-city .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-city:hover, .acc-city.on { background: var(--gold-soft); }
.acc-city.on { outline: 1px solid var(--gold-line); }
.acc-min { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.acc-mapcard { position: relative; padding: 0; overflow: hidden; }
.acc-map { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 418.6; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.acc-map.dragging { cursor: grabbing; }
.acc-map .sea { fill: var(--map-sea); }
.acc-map .land { fill: var(--map-land); stroke: var(--map-edge); stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.acc-map .land.green { fill: var(--map-ok); } .acc-map .land.amber { fill: var(--map-amber); } .acc-map .land.red { fill: var(--map-red); }
.acc-map .land:hover { filter: brightness(.96); }
.acc-map .land.on { stroke: var(--gold); stroke-width: 1.6; }
.acc-map .pin circle.halo { fill-opacity: .22; }
.acc-map .pin circle.core { stroke: var(--card); vector-effect: non-scaling-stroke; stroke-width: 2; }
.acc-map .pin.green circle { fill: var(--pin-green); } .acc-map .pin.amber circle { fill: var(--pin-amber); } .acc-map .pin.red circle { fill: var(--pin-red); }
.acc-map .pin { cursor: pointer; outline: none; }
.acc-map .pin.on circle.core, .acc-map .pin:focus-visible circle.core { stroke: var(--ink); }
.acc-map .pin text { fill: var(--ink); paint-order: stroke; stroke: var(--map-sea); stroke-linejoin: round; font-family: var(--sans); font-weight: 600; pointer-events: none; }
.acc-zoom { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); background: var(--card); z-index: 2; }
.acc-zoom button { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font: 600 20px var(--sans); cursor: pointer; }
.acc-zoom button + button { border-top: 1px solid var(--line); }
.acc-zoom button:hover { background: var(--gold-soft); }
.acc-crumbs { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.acc-crumbs button { border: 0; background: none; color: var(--gold-text); font: 600 13px var(--sans); cursor: pointer; padding: 4px 8px; min-height: 32px; }
.acc-crumbs span:not(:empty)::before { content: "›"; margin: 0 6px 0 2px; color: var(--muted); }
.acc-crumbs span:not(:empty) { color: var(--ink); }
.acc-tip { position: absolute; z-index: 3; pointer-events: none; max-width: 280px; padding: 10px 12px; border-radius: 12px; background: var(--ink2); color: var(--bg); font-size: 13px; line-height: 1.45; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.acc-tip b { display: block; font-size: 14px; }
.acc-wheel { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; padding: 10px 16px; border-radius: 12px; background: rgba(20,22,28,.82); color: #fff; font-size: 14px; }
.acc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px 0; }
.acc-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 10px; border-radius: 3px; background: var(--map-ok); display: inline-block; }
.swatch.grey { background: var(--map-land); }
.acc-hint { padding: 4px 16px 14px; margin: 0; }
.acc-details { margin-top: 16px; }
.acc-detail { display: grid; gap: 12px; }
.acc-detail[hidden] { display: none; }
.acc-detail > .btn { justify-self: start; }
.acc-detail p { margin: 0; }
.acc-title { font: 600 30px/1.1 var(--serif); margin: 0; }
.acc-badge { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.acc-badge.green { background: var(--ok-bg); color: var(--ok); } .acc-badge.amber { background: var(--amber-bg); color: var(--amber); } .acc-badge.red { background: var(--red-bg); color: var(--red); } .acc-badge.grey { border: 1px solid var(--pin-grey); }
.acc-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .acc-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.acc-cell { display: grid; gap: 2px; text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); cursor: help; }
.acc-cell b { font: 600 22px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.acc-cell .n { font-size: 13px; color: var(--muted); }
.acc-cell.green { background: var(--ok-bg); border-color: var(--ok-line); } .acc-cell.green b { color: var(--ok); }
.acc-cell.amber { background: var(--amber-bg); border-color: var(--gold-line); } .acc-cell.amber b { color: var(--amber); }
.acc-cell.red { background: var(--red-bg); border-color: transparent; } .acc-cell.red b { color: var(--red); }
.acc-cell.grey { border-style: dashed; border-color: var(--pin-grey); }
.acc-why { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; }
.acc-why ul { margin: 6px 0; padding-left: 18px; }
.acc-why li { margin: 4px 0; }
.acc-url input { flex: 1 1 320px; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); font-size: 13px; }
.acc-form .acc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.acc-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.acc-form label.wide { grid-column: 1 / -1; }
.acc-form input:not([type=radio]), .acc-form select, .acc-form textarea { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); font: 15px var(--sans); }
.acc-form label.chip { display: inline-flex; flex-direction: row; color: var(--ink); }
.acc-form .acc-kind label.chip:has(input:checked) { color: var(--bg); }
.acc-kind { border: 0; padding: 0; margin: 0; }
.acc-kind legend { margin-bottom: 6px; }
.acc-kind .chip:has(input:checked) { background: var(--ink2); color: var(--bg); border-color: var(--ink2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 640px) { .acc-map { aspect-ratio: 5 / 4; } .acc-zoom button { width: 40px; height: 40px; } .acc-crumbs { right: 64px; flex-wrap: wrap; } }

/* print: city month table on one page */
@media print {
  .top, .sitebar, .skip, .foot, .noprint, .search { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: 0; padding: 0; }
}
.acc-settings { margin: 8px 0; }
.acc-settings summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.acc-settings dl { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 6px 16px; margin: 10px 0; font-size: 14px; }
.acc-settings dt { color: var(--muted); }
.acc-settings dd { margin: 0; }
@media (max-width: 560px) { .acc-settings dl { grid-template-columns: 1fr; gap: 2px; } .acc-settings dd { margin-bottom: 8px; } }
