/* The app borrows the site's stylesheets (variables, type, header, footer, the
   ledger rows and pills). This file only adds what a form and a conversation need. */
/* The page scrolls under the fixed header. On the reading pages the header fades to nothing
   and long text shows through it; here it stays solid behind its words, with the same soft
   edge at the bottom, so the headline never reads through the menu. */
body > header { background: linear-gradient(to bottom, var(--bg) 0, var(--bg) calc(100% - 14px), transparent 100%) !important; }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-bar .spacer { flex: 1; }
.app-view { margin-top: 7vh; }
.app-view > h2 { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.app-view > h2 + p { margin-top: 12px; max-width: var(--measure); }

.field { border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 16px; transition: border-color .2s var(--ease-out-3); }
.field:focus-within { border-color: var(--accent-text); }
.field input { width: 100%; min-width: 0; font-family: var(--font-sans); color: var(--fg); background: 0 0; border: 0; outline: none; padding: 16px 0; font-size: 19px; letter-spacing: -.01em; }
.field input::placeholder { color: var(--fg-2); opacity: .7; }
.field input[readonly] { color: var(--fg-2); }
.field.mono input { font-family: var(--font-mono); font-size: 14px; }
.field.big { grid-template-columns: auto 1fr auto; }
.field.big input { padding: 18px 0; font-size: 23px; }
.field .suffix { font-size: 23px; color: var(--fg-2); }
.field.bad { border-color: var(--coral); }
.fields { display: grid; margin-top: 24px; }
.fields + .label, .group-label { display: block; margin-top: 40px; }

.btn { border: 1px solid var(--carbon); background: var(--carbon); color: var(--white); min-height: 38px; border-radius: 999px; padding: 8px 18px; font-size: 13px; transition: background .15s var(--ease-out-2), color .15s var(--ease-out-2), border-color .15s var(--ease-out-2); }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn[disabled] { background: 0 0; color: var(--fg-2); border-color: var(--hair); cursor: default; }
.btn.quiet { background: 0 0; color: var(--fg-2); border-color: var(--hair); }
.btn.quiet:hover { color: var(--fg); border-color: var(--fg-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }

.verdict { margin-top: 40px; font-size: clamp(22px, 2.3vw, 35px); letter-spacing: -.02em; line-height: 1.2; }
.verdict b { font-weight: 400; color: var(--accent-text); }
.note { margin-top: 12px; color: var(--fg-2); max-width: var(--measure); }
.error { margin-top: 16px; color: var(--error-text); font-size: 15px; min-height: 1.5em; }
.empty { color: var(--fg-2); margin-top: 40px; font-size: clamp(20px, 1.8vw, 28px); }

.rows { border-bottom: 1px solid var(--hair); margin-top: 24px; }
.rows > li { border-top: 1px solid var(--hair); display: grid; grid-template-columns: 96px 1fr auto; align-items: baseline; gap: 4px 20px; padding: 14px 0; }
.rows .value { font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.rows .value.mono { font-family: var(--font-mono); font-size: 14px; }
.rows .pass { color: var(--green); }
.rows .fail { color: var(--error-text); }
.rows button.label, .rows a.label { text-decoration: none; border-bottom: 1px solid var(--hair); }
.rows button.label:hover, .rows a.label:hover { color: var(--fg); border-color: var(--accent-text); }

.passport-name { font-size: clamp(44px, 7vw, 112px); letter-spacing: -.055em; line-height: .96; font-weight: 400; overflow-wrap: anywhere; }
.passport-name span { color: var(--fg-2); }

/* a dot is drawn as a dot: a solid circle in the accent colour. While it works, three small ones pulse. */
.dot-mark { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: var(--accent-text); margin-right: .5em; vertical-align: .04em; flex: none; }
.typing { display: inline-flex; align-items: center; gap: 6px; height: 1.35em; color: var(--accent-text); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .25; animation: dot-pulse 1.2s var(--ease-out-2) infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes dot-pulse { 0%, 80%, 100% { opacity: .25; transform: scale(1); } 40% { opacity: 1; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .typing span { animation: none; opacity: .6; } }

/* a conversation: hairline rows like the records, who on the left, what was said on the right */
.talk { border-bottom: 1px solid var(--hair); margin-top: 24px; max-height: 460px; overflow-y: auto; }
.talk.still { max-height: none; margin-top: 10px; }
.talk[hidden] { display: none; }
.talk > li { border-top: 1px solid var(--hair); display: grid; grid-template-columns: 148px 1fr; align-items: baseline; gap: 4px 20px; padding: 14px 0; }
.talk .who { display: flex; align-items: baseline; overflow-wrap: anywhere; }
.talk p { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; max-width: var(--measure); }
.talk li:not(.from-dot) p, .talk li.quiet p { color: var(--fg-2); }
.say .field { margin-top: 0; }
.say .actions, .say + .note { margin-top: 20px; }
.say .error { min-height: 0; margin-top: 10px; }
.conv-label { display: block; margin-top: 32px; }
.empty.small { margin-top: 24px; font-size: 19px; }

.field.area { align-items: start; }
.field.area .label { padding-top: 18px; }
.field textarea { width: 100%; min-width: 0; font-family: var(--font-sans); color: var(--fg); background: 0 0; border: 0; outline: none; padding: 16px 0; font-size: 17px; line-height: 1.4; letter-spacing: -.01em; resize: vertical; min-height: 120px; }
.field textarea::placeholder { color: var(--fg-2); opacity: .7; }
.check { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 17px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }

.rows.requests > li { align-items: center; }
.rows .value small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--fg-2); font-family: var(--font-mono); overflow-wrap: anywhere; }
.rows .pair { display: flex; flex-wrap: wrap; gap: 8px; }
.note a { text-decoration: none; border-bottom: 1px solid var(--hair); }
.note a:hover { border-color: var(--accent-text); }

@media (max-width: 899px) {
  .Read-module__GO8q-G__body { grid-column: 1 / -1 !important; }
}
@media (max-width: 640px) {
  .field { grid-template-columns: 1fr; gap: 0; padding-top: 12px; }
  .field.big { grid-template-columns: auto 1fr auto; gap: 12px; padding-top: 0; }
  .field.mono input { font-size: 11.5px; letter-spacing: -.02em; }
  .field input { padding: 8px 0 14px; font-size: 17px; }
  .field.big input { font-size: 20px; padding: 16px 0; }
  .field .suffix { font-size: 20px; }
  .rows > li { grid-template-columns: 72px 1fr; }
  .rows > li > :nth-child(3) { grid-column: 2; }
  .talk > li { grid-template-columns: 1fr; }
  .talk p { font-size: 16px; }
  .field.area .label { padding-top: 0; }
  .field textarea { padding: 8px 0 14px; font-size: 16px; }
  .Ledger-module__V3ex6q__item { grid-template-columns: 40px 1fr !important; }
}
