/* Ask page. Night tokens come from reader.css. Phone first. */
html, body { overflow-x: hidden; max-width: 100%; }
.wrap { max-width: 760px; margin: 0 auto; padding: 12px 16px 48px; }
h1 { font-family: Cinzel, Georgia, serif; font-weight: 500; font-size: 1.7rem; letter-spacing: .06em; margin: 8px 0 4px; }
h2 { font-family: Cinzel, Georgia, serif; font-weight: 500; font-size: .95rem; letter-spacing: .06em; margin: 0 0 8px; }
.lede, .note { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.route { display: flex; gap: 8px; margin: 0 0 12px; }
.route button, #go, .hist-head button, .panel-block button {
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; min-height: 44px; padding: 0 14px; cursor: pointer;
}
.route button[aria-pressed="true"], #go { border-color: var(--accent); color: var(--accent); }
form label, .panel-block label { display: block; margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.q-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
textarea, .panel-block input, .panel-block select {
  display: block; width: 100%; box-sizing: border-box; margin-top: 4px;
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; min-height: 44px; padding: 8px 12px;
}
textarea { min-height: 96px; resize: vertical; }
.model-line { margin: 8px 0 10px; color: var(--muted); font-size: .92rem; }
.progress { min-height: 1.4em; color: var(--accent); font-size: .95rem; margin: 8px 0; }
.plain { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); }
.plain b { color: #ff8a80; font-weight: 500; }
.study { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.study a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--accent2);
}
.hist, .panel-block {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line);
}
.hist-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hist ol { list-style: none; padding: 0; margin: 0; }
.hist li { border-bottom: 1px solid var(--line); }
.hist button.link {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--accent2);
  font: inherit; min-height: 44px; padding: 8px 0; cursor: pointer;
}
label.check { display: flex; align-items: center; gap: 8px; }
label.check input { width: auto; min-height: 18px; margin: 0; flex: 0 0 auto; }
.check input { width: auto; min-height: 0; margin: 0; }
.panel-block button { margin: 0 8px 8px 0; }
#noteText { white-space: pre-line; overflow-wrap: anywhere; }
#noteSource { color: var(--accent2); overflow-wrap: anywhere; }
#providerNote.warn { color: #ffb4a8; }
/* The answer uses the same column as the question. The word card does not take that width. */
#answer .mm-answer { max-width: none; width: 100%; }
#answer .mm-p, #answer .mm-list { overflow-wrap: anywhere; }
#shareImage { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:8px; }
#shareAnswer { font:inherit; min-height:44px; color:var(--accent); background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:8px 14px; }
#nameForm button { margin-top:10px; }
.name-card { overflow-wrap:anywhere; }
.name-card a, #downloadCard { display:inline-block; min-height:44px; color:var(--accent2); }
.original-form { font-size:2rem; line-height:1.8; text-align:start; }
[hidden] { display:none !important; }
@media (min-width: 1000px) {
  #page.mm-page.with-panel { grid-template-columns: minmax(0, 1fr); }
  #panel.mm-panel.open {
    position: fixed; top: 18px; right: 18px; width: min(380px, calc(100vw - 36px));
    max-height: calc(100vh - 36px); z-index: 35;
  }
}
