@font-face { font-family: Archivo; src: url(/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/mono.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --desk: #33373b; --desk-2: #42474c; --sheet: #fff; --ink: #232629; --muted: #5e656b; --line: #d8dadc;
  --orange: #f39114; --orange-deep: #a85800; --foam: #fbefd6; --bad: #a32a1c;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { color: var(--ink); font: 400 16px/1.45 Archivo, Arial, sans-serif; font-variant-numeric: tabular-nums; }
h1, h2, p, ol { margin: 0; }
h1, h2 { font-stretch: 80%; font-weight: 650; line-height: 1.15; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }

.field { display: flex; flex-direction: column; gap: 4px; }
label { font-size: 14px; font-weight: 500; color: var(--muted); }
input:not([type=checkbox]), select { border: 1px solid #8f969c; padding: 10px 12px; min-height: 46px; width: 100%; background: #fff; }
.code { font-size: 26px; letter-spacing: 8px; font-weight: 600; text-align: center; }
.primary { background: var(--orange); color: var(--ink); border: 0; padding: 12px 18px; min-height: 48px; font-weight: 700; cursor: pointer; }
.primary[disabled] { opacity: .6; cursor: progress; }
.plain { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 8px; cursor: pointer; }
.ghost { background: #fff; border: 1px solid var(--ink); padding: 7px 12px; font-weight: 600; cursor: pointer; }
.error { color: var(--bad); font-weight: 600; }
.error:empty { display: none; }
.hint { font-size: 14px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: center; font-size: 16px; color: var(--ink); }
.check input { width: 20px; height: 20px; accent-color: var(--orange-deep); }
.secret { font: 500 15px/1.5 Consolas, Menlo, monospace; word-break: break-all; background: #f1f2f3; padding: 10px; }
.sign { font-size: 13px; color: var(--muted); }
.sign code { font: 500 14px "JetBrains Mono", Consolas, Menlo, monospace; color: var(--ink); }
.sign span { margin-left: 12px; }
.row { display: flex; gap: 10px; align-items: center; }

/* Sign-in: foam slabs beside a single sheet of paper. */
body.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); background: var(--desk); }
.stack { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 48px 0; overflow: hidden; }
.stack span { display: block; height: 58px; background: var(--orange); }
.stack span:nth-child(1) { width: 62%; }
.stack span:nth-child(2) { width: 78%; background: #f6b45c; }
.stack span:nth-child(3) { width: 70%; }
.stack span:nth-child(4) { width: 92%; background: #efa646; }
.stack span:nth-child(5) { width: 84%; }
.stack span:nth-child(6) { width: 66%; background: #f6b45c; }
.stack span:nth-child(7) { width: 88%; background: #efa646; }
.stack span:nth-child(8) { width: 74%; }
.sheet { background: var(--sheet); padding: 40px 56px 28px; display: flex; flex-direction: column; justify-content: center; gap: 28px; min-height: 100vh; }
.logo { width: 190px; height: auto; align-self: flex-start; }
.sheet form { display: flex; flex-direction: column; gap: 14px; }
.steps { padding-left: 20px; }
.qr { width: 190px; height: 190px; align-self: flex-start; border: 1px solid var(--line); }
details summary { cursor: pointer; color: var(--orange-deep); font-weight: 600; }

/* Signed-in pages. */
body.desk { min-height: 100vh; display: flex; flex-direction: column; background: var(--desk); }
.top { background: #fff; display: flex; align-items: center; gap: 28px; padding: 0 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-stretch: 80%; font-weight: 650; font-size: 20px; color: var(--ink); text-decoration: none; padding: 8px 0; }
.brand img { height: 34px; width: auto; }
#tabs { display: flex; align-self: stretch; gap: 4px; }
#tabs a { display: flex; align-items: center; padding: 0 14px; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 4px solid transparent; }
#tabs a[aria-current=page] { color: var(--ink); border-bottom-color: var(--orange); }
.who { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; padding: 8px 0; }
#view { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px 24px; }
.sign.dark { color: #d4d7da; padding: 0 24px 18px; max-width: 1280px; margin: 0 auto; width: 100%; }
.sign.dark code { color: #fff; }
.hello { color: #fff; margin-bottom: 22px; }
.hello h1 { font-size: 42px; }
.hello p { color: #d4d7da; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.tile { background: #fff; padding: 20px 22px; border-left: 10px solid var(--orange); display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.tile.soon { border-left-color: #8f969c; }
.tile strong { font-size: 21px; font-stretch: 85%; }
.tile small { color: var(--muted); font-size: 14px; }
.page { background: #fff; padding: 24px 28px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th { font-size: 13px; text-align: left; color: var(--muted); padding: 7px 8px; border-bottom: 1px solid var(--ink); }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag { background: var(--foam); padding: 1px 7px; white-space: nowrap; font-size: 14px; }
.tag.off { background: #f1f2f3; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.acts button { background: none; border: 0; color: var(--orange-deep); font-weight: 650; text-decoration: underline; cursor: pointer; padding: 2px 4px; }
.acts select { min-height: 32px; padding: 2px 6px; width: auto; }
dialog { border: 0; padding: 24px; width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(25, 27, 29, .65); }
dialog form { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 860px) {
  body.auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .stack { padding: 0; gap: 5px; }
  .stack span { height: 10px; }
  .stack span:nth-child(n+5) { display: none; }
  .sheet { min-height: 0; padding: 24px 20px; justify-content: flex-start; }
  .logo { width: 150px; }
  .top { padding: 0 16px; gap: 12px; }
  .who { margin-left: 0; width: 100%; justify-content: space-between; }
  #view { padding: 16px 12px; }
  .page { padding: 18px 14px; }
  .sign.dark { padding: 0 16px 16px; }
  .hello h1 { font-size: 32px; }
}
