/* browser/bureau.css */
@font-face {
  font-family: Monocraft;
  src: url(/assets/Monocraft.ttf) format("truetype");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Monocraft;
  src: url(/assets/Monocraft-Bold.ttf) format("truetype");
  font-weight: 700 800;
  font-display: swap;
}
:root {
  --stone-100: #f5f3ec;
  --ink-950: #17161a;
  --green-300: #a8d786;
  --green-500: #54a628;
  --green-700: #2d7b0d;
  --green-900: #194407;
  --yellow-400: #f4cf43;
  --error-deep: #9e2434;
  --font-display:
    Monocraft,
    "Lucida Console",
    Consolas,
    monospace;
  --font-body:
    system-ui,
    -apple-system,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  --font-mono:
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    Consolas,
    monospace;
  --page-pad: 56px;
  --page-max: 1480px;
  --t-tap: 70ms;
  --t-move: 220ms;
  --ease-snap: cubic-bezier(.2, .9, .25, 1.08);
  font-family: var(--font-body);
  color: var(--ink-950);
  background: var(--stone-100);
  font-size: 16px;
  line-height: 1.5;
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
  border-radius: 0;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
a,
button,
summary {
  transition: background var(--t-tap), color var(--t-tap);
}
button {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 8px 12px;
}
button:hover,
a:hover {
  background: var(--yellow-400);
  color: var(--ink-950);
}
button:disabled {
  cursor: not-allowed;
  text-decoration: line-through;
}
button:disabled:hover {
  background: transparent;
  color: inherit;
}
:focus-visible {
  outline: 4px solid var(--yellow-400);
  outline-offset: 4px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: var(--green-700);
}
::selection {
  background: var(--yellow-400);
  color: var(--ink-950);
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 10px 4px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 4px solid currentColor;
}
input[type=checkbox] {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 4px solid currentColor;
  flex-shrink: 0;
  cursor: pointer;
}
input[type=checkbox]:checked {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--stone-100);
}
input[type=checkbox]:checked::after {
  content: "\2713";
  display: block;
  font: 700 14px/12px var(--font-body);
  text-align: center;
}
input[type=file] {
  border: 0;
  padding: 8px 0;
  font-size: 14px;
}
input::file-selector-button {
  border: 0;
  border-bottom: 4px solid var(--ink-950);
  border-radius: 0;
  padding: 10px 12px;
  margin-right: 12px;
  background: transparent;
  color: inherit;
  font: 13px var(--font-display);
  cursor: pointer;
}
input::file-selector-button:hover {
  background: var(--yellow-400);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  margin: 0;
}
h2 {
  font-size: 28px;
  margin: 40px 0 24px;
  overflow-wrap: anywhere;
}
h3 {
  font-size: 20px;
}
p {
  max-width: 70ch;
  overflow-wrap: anywhere;
}
code,
pre {
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
td > code {
  display: block;
  margin-top: 8px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  min-width: 0;
}
form {
  margin: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  margin-bottom: 12px;
}
.annotation,
legend,
th,
.stat > span {
  font: 400 11px/1.6 var(--font-display);
  text-transform: uppercase;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 12px;
  z-index: 10;
  background: var(--yellow-400);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
}
.masthead {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px var(--page-pad);
  max-width: var(--page-max);
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 13px var(--font-display);
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  display: block;
  image-rendering: pixelated;
  width: 42px;
  height: 42px;
}
.account {
  margin-left: auto;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.masthead button {
  font: 400 13px var(--font-display);
}
.page-heading {
  max-width: var(--page-max);
  margin: auto;
  padding: 20px var(--page-pad) 32px;
}
.page-heading .annotation {
  margin: 0 0 20px;
}
.page-title {
  position: relative;
  isolation: isolate;
  display: inline-block;
  max-width: 100%;
}
.page-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(-1 * var(--page-pad));
  right: -24px;
  top: 48%;
  bottom: -8px;
  background: var(--green-500);
}
h1 {
  font-size: 80px;
  line-height: 1;
  overflow-wrap: anywhere;
}
.bureau-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0 var(--page-pad) 24px;
  margin: auto;
  max-width: var(--page-max);
}
.bureau-nav a {
  font: 400 16px/1.5 var(--font-display);
  text-decoration: none;
  padding: 6px 10px;
  margin-left: -10px;
}
.bureau-nav [aria-current] {
  background: var(--green-700);
  color: var(--stone-100);
}
main {
  padding: 16px var(--page-pad) 56px;
  max-width: var(--page-max);
  margin: auto;
  min-height: 45vh;
}
footer {
  display: flex;
  gap: 32px;
  padding: 24px var(--page-pad);
  border-top: 4px solid var(--ink-950);
  font: 400 11px var(--font-display);
  text-transform: uppercase;
}
.editor {
  border-bottom: 4px solid var(--ink-950);
  margin: 0 0 24px;
  padding: 0 0 16px;
}
.editor summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  padding: 12px 0;
  font: 400 20px/1.4 var(--font-display);
}
.editor summary::-webkit-details-marker {
  display: none;
}
.editor summary::after {
  content: "+";
  font: 400 28px var(--font-display);
  flex-shrink: 0;
}
.editor[open] > summary::after {
  content: "\d7";
}
.editor summary:hover {
  background: var(--ink-950);
  color: var(--stone-100);
}
.editor form,
dialog form {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  align-items: end;
}
.editor form {
  padding: 24px 0 12px;
}
.target {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}
.word-toggle {
  display: flex;
  flex-wrap: wrap;
  align-self: start;
}
.word-toggle legend {
  font: 400 14px var(--font-body);
  text-transform: none;
  margin-bottom: 12px;
}
.word-toggle label {
  position: relative;
  display: inline-flex;
  padding: 12px;
  border-bottom: 4px solid currentColor;
  font: 400 13px/1.5 var(--font-display);
  cursor: pointer;
}
.word-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.word-toggle label:hover {
  background: var(--yellow-400);
  color: var(--ink-950);
}
.word-toggle label:has(:checked) {
  background: var(--ink-950);
  color: var(--stone-100);
  border-color: var(--ink-950);
}
.word-toggle label:has(:focus-visible) {
  outline: 4px solid var(--yellow-400);
  outline-offset: 4px;
}
.action,
.word-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  font: 400 13px/1.5 var(--font-display);
  text-decoration: none;
  text-transform: uppercase;
}
.action {
  background: var(--ink-950);
  color: var(--stone-100);
  font-weight: 700;
  padding: 14px 18px;
  box-shadow: 0 5px 0 rgb(23 22 26 / .28);
}
.action:hover {
  background: var(--green-700);
  color: var(--stone-100);
}
.action:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgb(23 22 26 / .28);
}
.word-action {
  padding: 8px 10px;
}
.glyph {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font: 400 28px/1 var(--font-display);
  flex-shrink: 0;
}
.glyph:hover {
  color: var(--stone-100);
  background: var(--ink-950);
}
.table-scroll {
  overflow-x: auto;
  margin: 32px 0;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th {
  padding: 0 12px 12px;
  text-align: left;
  border-bottom: 8px solid var(--ink-950);
}
td {
  padding: 24px 12px;
  border-bottom: 4px solid var(--ink-950);
  vertical-align: top;
  overflow-wrap: anywhere;
  max-width: 360px;
  min-width: 100px;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:last-child,
td:last-child {
  padding-right: 0;
}
td:first-child:has(input[type=checkbox]) {
  min-width: 36px;
  width: 36px;
}
td > strong {
  display: block;
  font: 700 20px/1.3 var(--font-display);
}
tbody tr {
  transition: background var(--t-tap), color var(--t-tap);
}
tbody tr:hover,
tbody tr:focus-within {
  background: var(--ink-950);
  color: var(--stone-100);
}
tbody tr:hover > td > code,
tbody tr:focus-within > td > code {
  color: var(--green-300);
}
.row-actions {
  min-width: 210px;
  width: 240px;
}
.row-actions > form,
.row-actions > button,
.row-actions > a {
  display: inline-flex;
  margin: 0 4px 4px 0;
}
.row-actions .word-action {
  font-size: 12px;
}
.filters {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filters label {
  flex: 1;
  max-width: 340px;
}
.filters button {
  flex-shrink: 0;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin: 32px 0 0;
  font: 400 13px var(--font-display);
}
.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 32px 0;
  border-top: 8px solid var(--ink-950);
  border-bottom: 4px solid var(--ink-950);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.stat strong {
  font: 800 64px/1 var(--font-display);
  overflow-wrap: anywhere;
}
.stat strong small {
  font-size: 20px;
  font-weight: 400;
}
.stat:first-child strong {
  background: var(--yellow-400);
  color: var(--ink-950);
  padding: 8px 12px;
  margin: -8px -12px;
}
.identity-note {
  margin: 0 0 24px;
}
.grant-list {
  columns: 3;
  list-style: none;
  padding: 0;
}
.grant-list li {
  padding: 8px 0;
  break-inside: avoid;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px 32px;
  grid-column: 1/-1;
}
.permission-grid label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.permission-grid code {
  font-size: 13px;
}
.timeline {
  margin: 32px 0 48px;
}
.timeline label {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  gap: 24px;
  margin: 12px 0;
  align-items: center;
  font: 400 12px var(--font-mono);
}
meter,
progress {
  appearance: none;
  border: 0;
  border-radius: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}
meter::-webkit-meter-bar {
  border: 0;
  border-radius: 0;
  background: transparent;
}
meter::-webkit-meter-optimum-value {
  background: var(--ink-950);
  border-radius: 0;
}
meter::-moz-meter-bar {
  background: var(--ink-950);
}
progress::-webkit-progress-bar {
  background: transparent;
  border-bottom: 4px solid var(--ink-950);
}
progress::-webkit-progress-value {
  background: var(--green-700);
}
progress::-moz-progress-bar {
  background: var(--green-700);
}
.warning {
  display: block;
  color: var(--error-deep);
  margin-top: 8px;
  font-size: 13px;
}
tbody tr:hover .warning,
tbody tr:focus-within .warning {
  color: var(--yellow-400);
}
dialog {
  inset: 0 0 0 auto;
  margin: 0;
  width: 640px;
  max-width: 100%;
  height: 100%;
  max-height: 100dvh;
  padding: 40px;
  border: 0;
  overflow-y: auto;
  background: var(--ink-950);
  color: var(--stone-100);
  color-scheme: dark;
}
dialog[open] {
  display: flex;
  flex-direction: column;
  animation: enter var(--t-move) var(--ease-snap);
}
dialog::backdrop {
  background: rgb(23 22 26 / .5);
}
dialog .annotation {
  color: var(--green-300);
  margin: 0 56px 32px 0;
}
dialog h2 {
  font-size: 40px;
  margin: 24px 0 32px;
  max-width: 100%;
}
dialog form {
  grid-template-columns: 1fr;
}
dialog .target {
  grid-template-columns: 1fr;
}
dialog .word-toggle label:has(:checked) {
  background: var(--stone-100);
  color: var(--ink-950);
  border-color: var(--stone-100);
}
dialog .action {
  background: var(--green-700);
  color: var(--stone-100);
  box-shadow: 0 5px 0 var(--green-900);
}
dialog .action:hover {
  background: var(--yellow-400);
  color: var(--ink-950);
}
dialog input:focus-visible,
dialog select:focus-visible {
  outline-color: var(--yellow-400);
}
dialog select option {
  color: var(--stone-100);
  background: var(--ink-950);
}
dialog .glyph[data-close] {
  position: absolute;
  top: 24px;
  right: 24px;
}
dialog .glyph:hover {
  background: var(--stone-100);
  color: var(--ink-950);
}
.secret {
  display: block;
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  padding: 24px 0;
  margin-bottom: 24px;
  border-block: 4px solid var(--stone-100);
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
}
#confirm-dialog h2 {
  margin-top: auto;
  font-size: 56px;
}
#confirm-dialog h2 span {
  display: inline;
  background: var(--stone-100);
  color: var(--ink-950);
}
#confirm-dialog .dialog-actions {
  margin-top: auto;
  padding-top: 40px;
}
.resume {
  font-size: 13px;
}
.resume input {
  width: 210px;
}
.sign-in {
  padding: 32px 0;
  max-width: 600px;
}
.sign-in h2 {
  font-size: 28px;
  margin-top: 0;
}
article {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.5;
}
article a {
  color: var(--green-700);
}
#feedback,
dialog [role=status] {
  font-size: 14px;
  padding: 12px 0;
  margin-bottom: 0;
}
#feedback:empty {
  display: none;
}
.error {
  color: var(--error-deep);
}
dialog .error {
  color: var(--yellow-400);
}
.upload-item {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(100px, 2fr) auto 44px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 4px solid var(--ink-950);
}
.upload-item > span {
  overflow-wrap: anywhere;
}
.upload-item button:not(.glyph) {
  font: 400 13px var(--font-display);
}
body:has(dialog[open]) {
  overflow: hidden;
}
@keyframes enter {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@media (min-width: 1480px) {
  .page-title::before {
    left: calc((1480px - 100vw) / 2 - var(--page-pad));
  }
}
@media (max-width: 1000px) {
  :root {
    --page-pad: 32px;
  }
  h1 {
    font-size: 64px;
  }
  .bureau-nav {
    gap: 8px 16px;
  }
  .bureau-nav a {
    font-size: 14px;
  }
  .stat strong {
    font-size: 44px;
  }
  .overview {
    gap: 32px;
  }
}
@media (max-width: 700px) {
  :root {
    --page-pad: 20px;
  }
  .masthead {
    padding-block: 20px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .account {
    font-size: 12px;
    max-width: 140px;
  }
  .masthead form {
    margin-left: auto;
  }
  .brand {
    font-size: 12px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .page-heading {
    padding-top: 16px;
    padding-bottom: 28px;
  }
  .page-heading .annotation {
    margin-bottom: 16px;
  }
  h1 {
    font-size: 40px;
  }
  .page-title::before {
    right: -8px;
  }
  .bureau-nav {
    gap: 4px 16px;
    padding-bottom: 16px;
  }
  .bureau-nav a {
    font-size: 13px;
    padding-block: 8px;
  }
  main {
    padding-top: 16px;
    padding-bottom: 40px;
  }
  h2 {
    font-size: 24px;
  }
  .editor summary {
    font-size: 16px;
  }
  .grant-list {
    columns: 1;
  }
  .overview {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stat strong {
    font-size: 56px;
  }
  .upload-item {
    grid-template-columns: 1fr auto 44px;
    gap: 16px;
  }
  .upload-item > span,
  .upload-item progress {
    grid-column: 1/-1;
  }
  .timeline label {
    grid-template-columns: 86px 1fr 40px;
    gap: 12px;
    font-size: 11px;
  }
  td {
    padding: 20px 8px;
  }
  dialog {
    padding: 24px;
  }
  dialog h2 {
    font-size: 32px;
    margin-top: 16px;
  }
  #confirm-dialog h2 {
    font-size: 40px;
  }
  .filters {
    gap: 8px;
  }
}
@media (max-width: 359px) {
  h1 {
    font-size: 34px;
  }
  .masthead .account {
    max-width: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .action:active {
    transform: none;
  }
}
