@font-face {
  font-family: "Inter Tight";
  src: url("fonts/of-inter-tight-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/of-inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --field: #151513;
  --lime: #faff69;
  --grey: #414141;
  --panel: #1c1c19;
  --panel-2: #242420;
  --ink: #f4f4ef;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--field); }

.shell {
  min-height: 100svh;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(20px, 3.4vh, 38px) clamp(18px, 4vw, 48px) clamp(16px, 2.6vh, 28px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(14px, 3vh, 26px);
}

/* header */

.head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.head__mark {
  width: 5px;
  height: 5px;
  background: var(--lime);
  flex: none;
}

.head__title {
  margin: 0;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.045em;
  color: var(--ink);
}

/* board */

.board {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.board__head,
.job__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 128px 100px 18px 62px;
  gap: 0 16px;
  align-items: center;
}

.board__head {
  padding: 0 10px 9px;
  border-bottom: 1px solid var(--panel-2);
}

.board__head span {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 244, 239, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jobs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.job {
  border-bottom: 1px solid var(--panel-2);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.job:hover { background: var(--panel); }

.job.is-open {
  background: var(--panel);
  box-shadow: inset 2px 0 0 var(--lime);
}

.job.is-new { animation: slide-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }

@keyframes slide-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.job__row {
  width: 100%;
  padding: 10px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.board.has-open .job:not(.is-open) .job__row { padding-block: 6px; }

.job__row:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: -1px;
}

/* cells */

.c-id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(244, 244, 239, 0.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-model {
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-gpu {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(244, 244, 239, 0.44);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-tps {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.c-tps b { font-weight: 400; }

.c-tps i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 244, 239, 0.3);
  margin-left: 5px;
}

.c-dot {
  display: flex;
  justify-content: center;
}

.c-dur {
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: rgba(244, 244, 239, 0.6);
  text-align: right;
  white-space: nowrap;
}

.dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 7px rgba(250, 255, 105, 0.35);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.job.is-done .job__row { opacity: 0.5; }
.job.is-done .dot { background: var(--grey); box-shadow: none; }

/* expanding spec panel */

.job__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.34s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease;
}

.job.is-open .job__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.panel__clip {
  overflow: hidden;
  min-height: 0;
}

.panel__in { padding: 0 12px 16px 12px; }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 13px clamp(20px, 4vw, 38px);
  margin: 0 0 14px;
  padding: 13px 0 0;
  border-top: 1px solid var(--panel-2);
}

.specs > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.specs dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 244, 239, 0.3);
}

.specs dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink);
  white-space: nowrap;
}

.specs dd.is-model { white-space: normal; }

.tunnel {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tunnel__k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 244, 239, 0.3);
  white-space: nowrap;
}

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--panel-2);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cmd:hover { border-color: rgba(250, 255, 105, 0.38); }
.cmd.is-copied { border-color: rgba(250, 255, 105, 0.55); }

.cmd code {
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd__act {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  flex: none;
}

.clipboard {
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
}

/* footer */

.foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--panel-2);
}

.claim {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(244, 244, 239, 0.62);
  letter-spacing: 0.005em;
}

.link {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 255, 105, 0.35);
  padding-bottom: 1px;
  white-space: nowrap;
  flex: none;
}

.link:hover { border-bottom-color: var(--lime); }

.link:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 3px;
}

/* phone */

@media (max-width: 640px) {
  .board__head,
  .job__row {
    grid-template-columns: minmax(0, 1fr) 78px 50px 12px 42px;
    gap: 0 8px;
  }

  .board__head { padding-bottom: 8px; }

  .c-id { display: none; }

  .c-model { font-size: 12.5px; }
  .c-gpu { font-size: 10px; }
  .c-tps { font-size: 11px; }
  .c-dur { font-size: 11px; }

  .board__head span { font-size: 8.5px; letter-spacing: 0.12em; }

  .job__row { padding: 9px 8px; }
  .board.has-open .job:not(.is-open) .job__row { padding-block: 5px; }

  .panel__in { padding: 0 8px 15px 8px; }

  .specs { gap: 12px 16px; display: grid; grid-template-columns: 1fr 1fr; }
  .specs dd { font-size: 11px; }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .claim { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
