/* quickform PWA — app-specific styling on top of the vendored agentics-pwa-kit.
   Everything colour-bearing resolves to a kit token; the only orange in this
   file is var(--orange) (#f87f2e). */

.view { padding-top: 8px; }

.brand-org { color: var(--faint); }
.brand-org:not(:empty)::before { content: " / "; color: var(--hairline); }

.card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}
.card h2 { font-size: 15px; margin: 0 0 6px; }

.hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 6px 0 0; }
.empty { color: var(--faint); font-size: 13px; text-align: center; padding: 32px 16px; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; margin: 0; }

.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  box-sizing: border-box;
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: 11px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  padding: 11px 12px;
}
.field input:focus { outline: none; border-color: var(--orange-55); box-shadow: 0 0 0 3px var(--orange-12); }

/* --- list rows: forms and submissions share one row shape ---------------- */

.list { display: flex; flex-direction: column; gap: 8px; }

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--sans);
  cursor: pointer;
}
.item:active { background: var(--panel-2); }
.item-main { flex: 1; min-width: 0; }
.item-title { font-size: 14px; font-weight: 600; display: block; }
.item-sub { font-size: 12px; color: var(--muted); font-family: var(--mono); display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { font-size: 11px; color: var(--faint); font-family: var(--mono); text-align: right; flex: none; }

/* Count badge — the one place a number earns the accent. */
.count {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.count.live { background: var(--orange-12); border-color: var(--orange-35); color: var(--ember); }

/* An unread submission carries a single amber dot, nothing louder. */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
.dot.read { background: transparent; border: 1px solid var(--hairline); }

/* --- submission detail ---------------------------------------------------- */

.answers { display: flex; flex-direction: column; gap: 10px; }
.answer { border-bottom: 1px solid var(--hairline); padding-bottom: 10px; }
.answer:last-child { border-bottom: none; }
.answer dt { font-family: var(--mono); font-size: 11px; color: var(--faint); margin: 0 0 3px; }
.answer dd { margin: 0; font-size: 14px; color: var(--fg); word-break: break-word; white-space: pre-wrap; }

.section-label { font-family: var(--mono); font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 8px; }

.switchrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; }

/* --- embed snippet -------------------------------------------------------- */

.snippet {
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: 11px;
  padding: 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  overflow-x: auto;
  white-space: pre;
  margin: 10px 0 0;
}
