/* The request page: plain and readable, like the site's wireframe styling. */

:root {
  --text: #1a1a1a;
  --muted: #595959;
  --line: #bbb;
  --accent: #0b5cad;
  --error: #b00020;
  --space: 1rem;
  --width: 48rem;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

header,
main {
  max-width: var(--width);
  margin: 0 auto;
  padding: var(--space);
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space);
  border-bottom: 1px solid var(--line);
}

header p {
  margin: 0;
}

.site {
  font-weight: 700;
}

main:focus,
.summary:focus {
  outline: none;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
}

a {
  color: var(--accent);
}

label {
  display: block;
  font-weight: 600;
  margin-top: var(--space);
}

textarea,
input[type='file'] {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font: inherit;
}

textarea {
  min-height: 8rem;
  padding: 0.5rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
}

.hint {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

button {
  margin-top: var(--space);
  padding: 0.5rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
}

button:disabled {
  color: var(--muted);
  background: #eee;
  border-color: var(--line);
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.error {
  color: var(--error);
  font-weight: 600;
}

.status {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem var(--space);
}

.status dt {
  font-weight: 600;
}

.status dd {
  margin: 0;
}

.thread {
  padding: 0;
  list-style: none;
}

.thread li {
  margin: var(--space) 0;
  padding: 0.75rem var(--space);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.thread .agent {
  background: #f4f6f8;
}

.thread .approval {
  border-color: var(--accent);
}

.author {
  margin: 0;
  font-weight: 700;
}

.text {
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.list {
  padding-left: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
