@font-face {
  font-family: "Monaspace Krypton";
  src: url("/fonts/MonaspaceKrypton-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Monaspace Radon";
  src: url("/fonts/MonaspaceRadon-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #111;
  --user-ink: #1747c8;
  --muted: #666;
  --line: #ddd;
  --soft: #f5f5f5;
  --mono: "Monaspace Krypton", ui-monospace, SFMono-Regular, Consolas, monospace;
  --user-font: "Monaspace Radon", ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: var(--ink); font: 14px/1.5 var(--mono); }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button, input, select, textarea { border: 1px solid #ccc; border-radius: 3px; background: #fff; }
button { padding: 5px 10px; cursor: pointer; white-space: nowrap; }
button:hover { background: var(--soft); }
button:disabled { cursor: default; opacity: .5; }
button[type=submit], #new-bug { color: #fff; background: var(--ink); border-color: var(--ink); }
button[type=submit]:hover, #new-bug:hover { background: #444; }
button.danger { color: var(--ink); }
button.text-button { padding: 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #555; outline-offset: 2px; }
input, select, textarea { width: 100%; min-width: 0; padding: 6px 8px; }
textarea { resize: vertical; line-height: 1.5; }
input:disabled, select:disabled, textarea:disabled { color: #444; background: #fafafa; opacity: 1; }
/* Mark content by its source, including when it appears inside system controls. */
.user-content,
input:not([type=checkbox]):not([type=password]):not([type=file]):not([readonly]),
input[type=file].has-files,
textarea:not([readonly]),
.bug-form select { color: var(--user-ink); font-family: var(--user-font); }
input::placeholder, textarea::placeholder { color: var(--muted); font-family: var(--mono); opacity: 1; }
input[type=checkbox] { accent-color: var(--ink); }
input[type=file]::file-selector-button { font: inherit; font-family: var(--mono); color: var(--ink); background: #fff; border: 1px solid #ccc; border-radius: 3px; padding: 5px 10px; cursor: pointer; }
label { display: grid; gap: 4px; font-size: 12px; }
label > input, label > select, label > textarea { font-size: 14px; }
input[type=checkbox] { width: auto; margin: 0; }
label.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; }
code { font: 12px/1.6 var(--mono); overflow-wrap: anywhere; }
.muted, .empty { color: var(--muted); }
.small { font-size: 12px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.brand { font-size: 16px; font-weight: 600; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; font-size: 12px; }
#identity { color: var(--muted); }
nav button { padding: 3px 8px; font-size: 12px; }
main { max-width: 1240px; margin: 0 auto; padding: 0 24px 24px; }
.welcome { max-width: 420px; margin: 48px auto; }
.welcome h1 { margin-bottom: 20px; }
#connect-form { display: flex; align-items: flex-end; gap: 8px; }
#connect-form label { flex: 1; }
.login-help { margin: 16px 0; }
.login-help code { display: block; margin-top: 8px; }
summary { cursor: pointer; }
.workspace-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.workspace-bar select { width: auto; max-width: 300px; font-weight: 600; }
#access { font-size: 12px; }
.push { margin-left: auto; }
.tracker { display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.queue { padding: 20px 20px 0 0; border-right: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-heading h1 { font-size: 14px; }
.section-heading button { font-size: 12px; }
.filters { display: grid; gap: 8px; margin-bottom: 12px; }
.filters > div { display: flex; gap: 6px; }
.filters > div label { flex: 1; min-width: 0; }
.filters input, .filters select, .filters button { font-size: 12px; }
.filters button[type=submit] { color: var(--ink); background: #fff; border-color: #ccc; }
.bug-row { display: block; width: 100%; padding: 10px 8px; text-align: left; border: 0; border-bottom: 1px solid #eee; border-radius: 0; white-space: normal; }
.bug-row:hover, .bug-row.selected { background: var(--soft); }
.bug-row > strong { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.row-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.row-meta .component { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100px; }
.more { margin-top: 12px; }
.detail { min-width: 0; padding: 20px 0 0 24px; }
.detail-header { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.detail-header a { margin-left: auto; }
.bug-form, dialog form { display: grid; gap: 14px; }
.bug-form input[name=title] { font-size: 16px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.bug-form button[type=submit], dialog form button[type=submit] { justify-self: start; }
.empty { padding: 24px 0; font-size: 13px; }
.history { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.revision { margin-top: 12px; font-size: 12px; }
.revision p { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.revision pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 var(--mono); }
dialog { width: min(560px, calc(100% - 32px)); max-height: 90vh; padding: 20px; color: var(--ink); border: 1px solid #bbb; border-radius: 4px; }
dialog::backdrop { background: #0003; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
form > .dialog-heading { margin-bottom: 0; }
.dialog-heading button { padding: 0 5px; font-size: 20px; line-height: 1; background: none; border: 0; }
.token-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.token-row > div { min-width: 0; overflow-wrap: anywhere; }
.token-row > button { margin-left: auto; font-size: 12px; }
.token-row strong { font-size: 13px; font-weight: 500; }
.token-row p { margin-top: 3px; color: var(--muted); font-size: 12px; }
#issue-form { margin-top: 20px; }
#issued { margin-top: 16px; }
#issued p { margin-bottom: 8px; font-size: 12px; }
#credential-output { font: 12px/1.6 var(--mono); }
#notice { position: sticky; top: 0; z-index: 5; padding: 10px 24px; background: var(--soft); border-bottom: 1px solid var(--ink); overflow-wrap: anywhere; }
.docs { padding-top: 24px; }
.docs h1 { margin-top: 16px; }
.docs p { margin: 12px 0; }
.docs table { width: 100%; border-collapse: collapse; font-size: 12px; }
.docs th, .docs td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.guide { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.7 var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
@media (max-width: 800px) {
  .topbar { padding: 10px 16px; }
  main { padding: 0 16px 20px; }
  .tracker { grid-template-columns: 1fr; }
  .queue { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .detail { padding: 16px 0 0; }
  .workspace-bar select { max-width: 220px; }
  .docs table { display: block; overflow-x: auto; }
  #notice { padding: 10px 16px; }
}
@media (max-width: 450px) {
  #identity { display: none; }
  nav { gap: 8px; }
  .workspace-bar { gap: 8px; }
  .workspace-bar button { font-size: 12px; }
  .welcome { margin-top: 32px; }
}
.comments { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.comments h2 { font-size: 14px; }
.comment { padding: 12px 0; border-bottom: 1px solid #eee; }
.comment-header, .comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.comment-header > .comment-actions { margin-left: auto; }
.comment-header strong { font-weight: 600; }
.comment-body { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { display: grid; gap: 10px; margin-top: 16px; }
.comment-form button { justify-self: start; }
.comment-form input[type=file] { padding: 4px 0; border: 0; }
.comment-actions label { font-size: 12px; }
.comment-history { margin-top: 10px; }
.attachments { list-style: none; padding: 0; margin: 8px 0 0; }
.attachments:empty, .retained-files:empty { display: none; }
.attachments li { margin-top: 6px; font-size: 12px; }
.attachments li > button + button { margin-left: 10px; }
.attachments img { display: block; width: auto; max-width: 100%; max-height: 360px; margin-top: 8px; object-fit: contain; }
.retained-files { display: grid; gap: 6px; }
.attachments button.text-button { white-space: normal; text-align: left; overflow-wrap: anywhere; }

.triage-filters { font-size: 12px; }
.triage-filters .field-grid { margin-top: 10px; gap: 8px; }
.triage-filters .checkbox { margin-top: 10px; font-size: 12px; }
.relationships { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.relationships h2 { font-size: 14px; }
.relationship { padding: 10px 0; border-bottom: 1px solid #eee; }
.relationship-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.relationship-row button { font-size: 12px; }
.relationship-form { display: grid; gap: 10px; margin-top: 16px; }
.relationship-form button { justify-self: start; }
