/* The app's font is served from fonts/ (SIL Open Font License), so it works offline and nothing loads from Google. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-var.woff2") format("woff2"); }

/*
 * Look: "Hearth". The logo's deep red up top, warm sand underneath, cream cards,
 * and the flame's gold for anything you tap to say "I prayed". One typeface, Plus Jakarta Sans.
 */
:root {
  --paper: #f3e7d6;   /* warm sand page */
  --paper-2: #ecdcc6;
  --card: #fffaf2;    /* cream cards */
  --ink: #2a1f1a;
  --ink-2: #5e5249;
  --hair: #e3d2bd;
  --red: #952617;     /* the logo's hands */
  --red-2: #7e1f13;
  --on-red: #fbf6ef;
  --on-red-2: #f6d9cf;
  --volt: #efa83b;    /* the gold of the logo's flame */
  --on-volt: #2a1f1a;
  --tint: #f8e1b5;    /* soft gold for announcements */
  --radius: 18px;
  color-scheme: light;

  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: var(--sans);
  --display: var(--sans);
  --label: var(--sans);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 100%/1.6 var(--sans); /* follows the text size set on the phone */
  padding-bottom: 80px;
}

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: var(--volt); color: var(--on-volt); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- type ---------- */

h1, h2, h3 { margin: 0; }
h1 { font-weight: 500; font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.08; letter-spacing: -.025em; }
h2 { font-weight: 600; font-size: 1.4rem; line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 6px; }
p { margin: 0 0 12px; }

.kicker {
  font-family: var(--label);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.num { font-variant-numeric: lining-nums tabular-nums; }

.hl {
  background: var(--volt);
  color: var(--on-volt);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .2em;
  border-radius: 6px;
}

/* ---------- frame ---------- */

/* A red band across the top; the masthead below continues it. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 20px 12px; /* clear of the phone's clock and notch in the app */
  background: var(--red);
  color: var(--on-red);
  box-shadow: 0 0 0 100vmax var(--red);
  clip-path: inset(0 -100vmax);
}
.topbar a { color: inherit; }
.mark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.mark img { width: 30px; height: 30px; flex: none; }
.mark.kicker { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; text-transform: none; }
.topbar .muted { color: var(--on-red-2); }
.masthead-mark { height: .95em; width: auto; vertical-align: -.1em; margin-right: .12em; }

main { max-width: 680px; margin: 0 auto; padding: 0 20px 32px; outline: none; }

.split { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* masthead: the red header that hangs from the top band */
.masthead {
  background: var(--red);
  color: var(--on-red);
  margin: 0 -20px 16px;
  padding: 6px 20px 22px;
  border-radius: 0 0 28px 28px;
}
.masthead .kicker { color: var(--on-red-2); }
.masthead a { color: inherit; }
.masthead h1 {
  font-size: clamp(2.2rem, 10vw, 3.2rem);
  line-height: 1.02;
  margin: 14px 0 14px;
}
.masthead .rule { border-top: 1px solid rgba(251, 246, 239, .25); padding-top: 10px; }
.masthead h1.long { font-size: clamp(2rem, 8vw, 2.6rem); }
.masthead h1.longer { font-size: clamp(1.7rem, 6.5vw, 2.1rem); }
.byline { margin: 0 0 4px; }
.topbar-class { text-decoration: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint { display: block; font-size: .85rem; color: var(--ink-2); margin-top: 4px; }
.setup li.done a { color: var(--ink-2); text-decoration: line-through; }
.roster-controls { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
textarea:not(.lined) { border: 1.5px solid var(--hair); border-radius: 14px; padding: 10px 12px; background: var(--card); }
input[type="number"], input[type="date"] { font-variant-numeric: lining-nums tabular-nums; }

/* page header for inner pages */
.page-head { padding-top: 22px; margin-bottom: 10px; }
.page-head > .kicker { color: var(--red); }
.page-head h1 { margin: 6px 0 10px; }
.page-head p { color: var(--ink-2); max-width: 34em; }

/* sections are cream cards */
.sec { background: var(--card); border-radius: var(--radius); padding: 16px 18px 18px; margin: 12px 0; box-shadow: 0 1px 0 var(--hair); }
.sec > .kicker:first-child { display: block; margin-bottom: 10px; color: var(--red); }
.sec.flush { padding-bottom: 12px; }

.notice { background: var(--tint); color: var(--ink); padding: 14px 16px; margin: 12px 0; border-radius: var(--radius); }
.notice .kicker { display: block; margin-bottom: 2px; color: var(--red); }

/* ---------- scripture ---------- */

.verse { font-weight: 600; font-size: 1.3rem; line-height: 1.35; letter-spacing: -.015em; margin: 0; text-indent: -.42em; }
.verse-ref { display: block; margin-top: 10px; font-weight: 600; text-indent: 0; color: var(--ink-2); }

/* ---------- meter ---------- */

.meter { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; margin: 6px 0 4px; }
.meter div { text-align: center; }
.meter i { display: block; height: 46px; border: 1.5px solid var(--hair); border-radius: 8px; background: var(--paper); }
.meter i.on { background: var(--volt); border-color: var(--volt); }
.meter i.today { border-color: var(--ink); }
.meter span { display: block; margin-top: 4px; }

.ledger { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); margin-top: 16px; }
.ledger div { padding: 10px 0 0 12px; border-left: 1px solid var(--hair); }
.ledger div:first-child { border-left: 0; padding-left: 0; }
.ledger b { display: block; font: 600 2rem/1 var(--display); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- controls ---------- */

.btn, button {
  font: 700 .95rem/1 var(--sans);
  letter-spacing: 0;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 13px 18px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover, button:hover { background: var(--paper-2); color: var(--ink); }
.btn.solid, button.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.solid:hover, button.solid:hover { background: var(--red-2); border-color: var(--red-2); color: #fff; }
.textbtn {
  border: 0;
  padding: 2px 0;
  background: none;
  font: 600 .88rem/1.2 var(--sans);
  color: var(--red);
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.textbtn.muted { color: var(--ink-2); }
.textbtn:hover { background: var(--tint); color: var(--ink); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.actions.tight { gap: 18px; margin-top: 0; }

input, textarea, select {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  width: 100%;
  border: 1.5px solid var(--hair);
  border-radius: 12px;
  padding: 10px 12px;
}
.sec input, .sec textarea, .sec select { background: var(--paper); border-color: transparent; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(149, 38, 23, .15); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: right 18px center, right 12px center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
select option { background: var(--card); color: var(--ink); }
label.field { display: block; margin: 14px 0 0; }
label.field .kicker { display: block; color: var(--ink-2); margin-bottom: 4px; }
input[type="time"] { max-width: 200px; min-width: 0; font-size: 1.2rem; font-weight: 600; }

/* segmented choices */
.seg { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 8px; color: var(--ink-2); }
.seg .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; min-width: 3.2em; text-align: center; border: 1.5px solid var(--hair); background: var(--card); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: .95rem; font-weight: 600; }
.seg input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { border-bottom: 1px solid var(--hair); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 11px 0; cursor: pointer; }
.checklist input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  padding: 0;
  border: 1.5px solid var(--ink-2);
  border-radius: 7px;
  background: var(--card);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.checklist input::after { content: ""; width: 6px; height: 12px; border: solid var(--on-volt); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); display: none; }
.checklist input:checked { background: var(--volt); border-color: var(--volt); }
.checklist input:checked::after { display: block; }
.checklist input:checked + span { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1px; }

/* "I'm 13 or older and agree" on the name-and-PIN step */
.agree { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 16px 0 0; font-size: .95rem; cursor: pointer; }
.agree input {
  appearance: none; width: 24px; height: 24px; margin: 1px 0 0; padding: 0;
  border: 1.5px solid var(--ink-2); border-radius: 7px; background: var(--card); display: grid; place-content: center; cursor: pointer;
}
.agree input::after { content: ""; width: 6px; height: 12px; border: solid var(--on-volt); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); display: none; }
.agree input:checked { background: var(--volt); border-color: var(--volt); }
.agree input:checked::after { display: block; }

/* numbered lists */
.ruled { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.ruled > li { border-bottom: 1px solid var(--hair); padding: 11px 0; display: grid; grid-template-columns: 2.2em 1fr auto; gap: 8px; align-items: baseline; counter-increment: n; }
.ruled > li:last-child { border-bottom: 0; }
.ruled > li::before { content: counter(n, decimal-leading-zero); font: 700 .78rem var(--label); color: var(--red); }
@media (max-width: 520px) {
  .ruled > li > .actions, .ruled > li > button { grid-column: 2 / -1; justify-self: start; }
}
.ruled > li.empty { grid-template-columns: 1fr; color: var(--ink-2); font-style: italic; }
.ruled > li.empty::before { content: none; }

.add-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-bottom: 6px; }

/* table of contents (lessons) */
.toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.toc a {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 10px;
  padding: 16px 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--hair);
  color: var(--ink);
  text-decoration: none;
}
.toc .numeral { font: 600 1.9rem/1 var(--display); letter-spacing: -.02em; color: var(--red); }
.toc h2 { font-size: 1.25rem; margin: 2px 0 6px; }
.toc a:hover { background: #fff; }
.toc .current a { box-shadow: 0 0 0 2px var(--volt); }
.toc .current .numeral { background: var(--volt); color: var(--on-volt); text-align: center; align-self: start; padding: 6px 0 4px; border-radius: 10px; }

.bar { height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.bar > div { height: 100%; background: var(--red); border-radius: 4px; }

/* ---------- prayer timer ---------- */

.steps { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 18px; }
.steps span { color: var(--ink-2); }
.steps span.past { text-decoration: line-through; }
.steps span.now { color: var(--on-volt); background: var(--volt); padding: 0 6px; margin: 0 -6px; border-radius: 6px; }
.clock { font: 500 clamp(4rem, 22vw, 6.5rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; margin: 6px 0 10px; }
.step-name { font: 600 1.6rem/1.15 var(--sans); letter-spacing: -.015em; margin: 0 0 6px; }
.track { height: 6px; background: var(--paper-2); border-radius: 3px; margin: 18px 0 4px; overflow: hidden; }
.track > div { height: 100%; background: var(--red); }

/* ---------- journal ---------- */

.lined {
  --line: 34px;
  line-height: var(--line);
  min-height: calc(var(--line) * 7 + 2px);
  padding: 1px 12px 0;
  border: 0;
  background-color: var(--card);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), var(--hair) calc(var(--line) - 1px), var(--hair) var(--line));
  background-attachment: local;
  resize: vertical;
}
.lined:focus { box-shadow: 0 0 0 3px rgba(149, 38, 23, .15); }
.entry { background: var(--card); border-radius: var(--radius); padding: 14px 18px 16px; margin: 12px 0; box-shadow: 0 1px 0 var(--hair); }
.entry .prompt { font-style: italic; color: var(--ink-2); margin: 8px 0; }
.entry .body { white-space: pre-wrap; margin: 0; }

/* leader output */
pre.code {
  white-space: pre-wrap;
  word-break: break-word;
  font: .82rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--paper);
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0 0;
}

/* ---------- navigation ---------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--card);
  border-top: 1px solid var(--hair);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  font: 600 .8rem/1 var(--label);
  text-decoration: none;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 10px 1px 12px;
  color: var(--ink-2);
  position: relative;
}
.tabbar a.active { color: var(--red); font-weight: 800; }
.tabbar a.active::before { content: ""; position: absolute; left: 30%; right: 30%; top: 0; height: 3px; background: var(--red); border-radius: 0 0 3px 3px; }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .tabbar {
    position: sticky;
    top: 0;
    max-width: 640px;
    margin: 0 auto 16px;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 1px 0 var(--hair);
  }
  .tabbar a { padding: 10px 2px; }
  .tabbar a.active::before { top: auto; bottom: 0; border-radius: 3px 3px 0 0; }
  .masthead { margin: 0 0 16px; padding: 6px 24px 24px; }
}

.toast {
  position: fixed;
  left: 20px;
  right: 20px;
  top: calc(env(safe-area-inset-top) + 64px); /* under the red bar, so it never covers the buttons at the bottom */
  max-width: 440px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--card);
  border-radius: 14px;
  padding: 13px 16px;
  font: 600 .92rem/1.35 var(--sans);
  box-shadow: 0 6px 24px rgba(42, 31, 26, .25);
  z-index: 10;
  animation: rise .2s ease-out;
}
@keyframes rise { from { transform: translateY(-8px); opacity: 0; } }

/* ---------- shared class features ---------- */

.tabbar[hidden] { display: none; }
small { font-size: .5em; color: var(--ink-2); font-family: var(--label); }
.notice { display: block; text-decoration: none; }
a.notice:hover { box-shadow: 0 0 0 2px var(--volt); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 440px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* check-in tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.tiles.one { grid-template-columns: 1fr; max-width: 320px; }
.tile {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  text-align: left; letter-spacing: 0; font: inherit;
  border: 1.5px solid var(--hair); border-radius: var(--radius); background: var(--card); color: var(--ink); padding: 14px; min-height: 84px;
}
.tile:hover { background: #fff; color: var(--ink); }
.tile .tile-mark { grid-row: 1 / 3; width: 30px; height: 30px; border: 1.5px solid var(--ink-2); border-radius: 9px; display: grid; place-content: center; font-size: 1.1rem; }
.tile .tile-name { font: 700 1.2rem/1.15 var(--display); letter-spacing: -.01em; }
.tile .kicker { font-size: .78rem; color: var(--ink-2); }
.tile.on { background: var(--volt); color: var(--on-volt); border-color: var(--volt); }
.tile.on .tile-mark { background: var(--on-volt); color: var(--volt); border-color: var(--on-volt); }
.tile.on .kicker { color: var(--on-volt); }
.tile:disabled { opacity: .55; cursor: default; }
.tile:disabled:hover { background: var(--card); }

/* check-in cells: morning on top, evening below */
.pair { display: inline-grid; grid-template-rows: 1fr 1fr; gap: 2px; width: 100%; }
.cell { display: block; height: 14px; border: 1.5px solid var(--hair); border-radius: 4px; background: var(--paper); }
.cell.on { background: var(--volt); border-color: var(--volt); }
.cell.today { border-color: var(--ink); }
.meter .pair .cell { height: 22px; }
.pair.big { width: 26px; flex: none; }
.pair.single { grid-template-rows: 1fr; }
.pair.single .cell { height: 22px; }
.meter .pair.single .cell { height: 46px; }
.pair.big .cell { height: 12px; }

.roll { margin-top: 16px; }
.roll-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 52%) 3.2em; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.roll-row > span:first-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.roll-row > span:first-child .kicker { display: block; font-size: .75rem; margin-top: 2px; }
.roll-row .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.roll-row .days .now { color: var(--ink); }
.roll-row .num { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.roll-row.head { padding: 6px 0; }
.roll-row.me { background: linear-gradient(90deg, var(--tint), transparent); border-radius: 8px; }

/* wall */
.composer textarea { margin-top: 10px; resize: vertical; min-height: 90px; }
.seg.compact { margin-top: 0; }
.seg.compact span { padding: 7px 12px; font-size: .88rem; min-width: 0; }
.post { background: var(--card); border-radius: var(--radius); padding: 14px 18px 16px; margin: 10px 0; box-shadow: 0 1px 0 var(--hair); }
.post .body { white-space: pre-wrap; margin: 8px 0 10px; font-size: 1.02rem; }
.post.request .body { font-style: italic; }
.post.pinned, .post.announcement.pinned { background: var(--tint); color: var(--ink); }
.post.pinned .muted { color: var(--ink-2); }
.post.pinned .textbtn:hover { background: var(--card); }
.pinned-sec { padding-bottom: 8px; }
.feed { margin-bottom: 18px; }
.feed > p { padding: 14px 0; }
.textbtn.hl { padding: 2px 8px; text-decoration: none; color: var(--on-volt); }

/* group */
.checklist label { grid-template-columns: 22px 1fr auto; }
.selfrow { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 11px 0; }

/* leader */
.invite { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.qr svg { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; padding: 6px; }
.code-big { font: 700 clamp(1.5rem, 7vw, 2.4rem)/1 var(--display); letter-spacing: .04em; margin: 4px 0 10px; color: var(--red); overflow-wrap: anywhere; }
.group-card { border-bottom: 1px solid var(--hair); padding: 12px 0; }
.group-card:last-child { border-bottom: 0; }
.group-card p { margin: 6px 0; }
input.inline, select.inline { width: auto; max-width: 100%; padding: 6px 10px; font-size: inherit; }
select.inline { padding-right: 32px; }
input.inline.small, select.inline.small { font-size: .9rem; }
input.inline:not(.small) { font: 600 1.15rem var(--display); }
.group-card input.inline.small { width: 100%; }
.chapters > li { grid-template-columns: 2.2em 1fr auto; }

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
}

@media print {
  .topbar, .tabbar, button, .actions, .no-print { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  .masthead { background: none; color: #000; }
  .sec, .post, .entry { box-shadow: none; border: 1px solid #ccc; }
}

/* attendance: a ticked name means they came, so no strike-through */
.checklist.attend input:checked + span { color: var(--ink); text-decoration: none; }

/* homework grid: people down, sessions across */
.grid-wrap { overflow-x: auto; margin-top: 4px; }
.hwgrid { border-collapse: separate; border-spacing: 3px; font-variant-numeric: lining-nums tabular-nums; }
.hwgrid th { font-weight: 500; padding: 2px 4px; }
.hwgrid thead th.now { background: var(--volt); color: var(--on-volt); border-radius: 6px; }
.hwgrid tbody th { text-align: left; padding-right: 12px; white-space: nowrap; }
.hwgrid td { min-width: 2.6em; height: 26px; border: 1.5px solid var(--hair); border-radius: 6px; text-align: center; font-size: .8rem; }
.hwgrid td.on { background: var(--volt); border-color: var(--volt); color: var(--on-volt); }

/* ---------- in-app confirm and prompt (ask() in app.js) ---------- */
dialog.ask {
  max-width: min(420px, calc(100vw - 32px));
  border: 0;
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  padding: 20px 20px 16px;
  box-shadow: 0 12px 40px rgba(42, 31, 26, .3);
}
dialog.ask::backdrop { background: rgba(42, 31, 26, .45); }
dialog.ask p { margin: 0 0 14px; }
dialog.ask input { width: 100%; margin-bottom: 14px; background: var(--paper); border-color: transparent; }
dialog.ask .actions { justify-content: flex-end; margin: 0; }
dialog.ask form > .textbtn { display: block; margin: -4px 0 14px; }
dialog.ask .danger { background: #a3261c; border-color: #a3261c; color: #fff; }
.turnstile { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; }
