:root {
  --ink: #15262b;
  --muted: #56696f;
  --line: #d3dee1;
  --brand: #0b6470;
  --brand-dark: #084b54;
  --page: #f4f7f8;
  --card: #ffffff;
  --error: #a3271d;
  --warn-bg: #fff7e0;
  --warn-line: #e6c65c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
body.viewing {
  overflow: hidden;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700;
}
.tag {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  font-size: 12px;
  font-weight: 600;
}
#who {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}
#who[hidden] {
  display: none;
}
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}
.narrow {
  max-width: 440px;
  margin: 6vh auto 0;
}
h1 {
  margin: 4px 0 8px;
  font-size: 26px;
}
h2 {
  margin: 28px 0 12px;
  font-size: 17px;
}
.panel h2 {
  margin-top: 0;
}
h3 {
  margin: 0;
  font-size: 16px;
}
p {
  margin: 0 0 10px;
}
.muted {
  color: var(--muted);
}
.error {
  color: var(--error);
  font-weight: 600;
}
.panel {
  margin: 16px 0;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.notice {
  background: var(--warn-bg);
  border-color: var(--warn-line);
}
.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
}
label.inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin: 6px 0 10px;
}
.fields label[hidden] {
  display: none;
}
input,
select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  color: inherit;
  background: #fff;
  min-width: 200px;
}
input:focus,
select:focus {
  outline: 3px solid rgba(11, 100, 112, 0.22);
  border-color: var(--brand);
}
button,
.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.primary {
  background: var(--brand);
  color: #fff;
}
.primary:hover {
  background: var(--brand-dark);
}
.secondary {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--line);
}
.secondary:hover {
  border-color: var(--brand);
}
.danger {
  background: #fff;
  color: var(--error);
  border-color: #e7c3bf;
}
.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand-dark);
  font-weight: 600;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.primary-link {
  font-weight: 700;
  color: var(--brand-dark);
}
.code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: 0.06em;
}
#signin-code {
  font-size: 30px;
  font-weight: 700;
}
table.list {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
table.list th,
table.list td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.list th {
  font-size: 13px;
  color: var(--muted);
  background: #f9fbfb;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover,
tr.clickable:focus {
  background: #eef5f6;
  outline: none;
}
.badge {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.copy-row input {
  flex: 1;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 13px;
}
.interview {
  margin: 0 0 12px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.interview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.facts p {
  margin: 0 0 4px;
}
.pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.pill-new {
  background: #f1f3f4;
}
.pill-draft {
  background: #fff3d6;
  border-color: #ecd08a;
}
.pill-submitted {
  background: #dff3e7;
  border-color: #9fd3b4;
}
.pill-cancelled {
  background: #f6e3e1;
  border-color: #e3b5af;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.row-title {
  align-self: center;
  min-width: 72px;
  color: var(--muted);
  font-size: 13px;
}
.reissue {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.reissue label {
  margin-bottom: 6px;
}
.viewer {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: rgba(21, 38, 43, 0.6);
  padding: 24px;
}
.viewer[hidden] {
  display: none;
}
.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--card);
  border-radius: 10px 10px 0 0;
  font-weight: 600;
}
.viewer iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 0 0 10px 10px;
}
