:root {
  --bg: #f3efe6;
  --ink: #1a1f16;
  --muted: #5c6456;
  --line: #c9c2b4;
  --panel: #faf7f0;
  --accent: #2f5d50;
  --accent-ink: #f5faf7;
  --ok: #1f6b3a;
  --err: #8b2e2e;
  --run: #8a5a12;
  --wait: #4a5560;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #dce8e2 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #e8dfd0 0%, transparent 50%),
    var(--bg);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.who {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
}

main {
  flex: 1;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.site-foot {
  margin-top: auto;
  padding: 1rem 1.5rem 1.35rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hire {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  padding: 0.85rem 1.1rem;
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hire-media {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 11.5rem;
  flex-shrink: 0;
}

.hire-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0;
  border: 0;
}

.hire-body {
  flex: 1;
  min-width: 0;
}

.hire-body p {
  margin: 0 0 0.55rem;
}

.hire-body p:last-child {
  margin-bottom: 0;
}

.hire-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.78rem;
  padding: 0.4rem 0.5rem;
}

@media (max-width: 560px) {
  .hire {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 1rem;
    gap: 0;
  }

  .hire-media {
    width: 100%;
    gap: 0;
  }

  .hire-photo {
    margin: 0;
    border-bottom: 1px solid var(--line);
  }

  .hire-btn {
    width: auto;
    margin: 0.75rem 1.1rem 0;
    align-self: flex-start;
  }

  .hire-body {
    padding: 0.85rem 1.1rem 0;
  }
}

/* Fixed sidebar: photo + connect, then text. */
@media (min-width: 1400px) {
  .hire {
    position: fixed;
    right: 1.25rem;
    top: 5.5rem;
    width: calc(18.5rem - 18px);
    z-index: 5;
    background: var(--panel);
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 1rem;
    gap: 0;
  }

  .hire-media {
    width: 100%;
    gap: 0;
  }

  .hire-photo {
    border-bottom: 1px solid var(--line);
  }

  .hire-btn {
    width: auto;
    margin: 0.75rem 1.1rem 0;
    align-self: flex-start;
  }

  .hire-body {
    padding: 0.85rem 1.1rem 0;
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem 1.4rem;
}

h1, h2 {
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 1.65rem; }
h2 { font-size: 1.15rem; }

.lede {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 36rem;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.lab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  cursor: help;
  user-select: none;
  flex-shrink: 0;
}

.help::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  width: min(22rem, 70vw);
  padding: 0.65rem 0.75rem;
  background: var(--ink);
  color: #f5f2ea;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.help:hover::after,
.help:focus::after,
.help:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.help:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input, select, button, .btn {
  font: inherit;
}

input[type="text"],
input[type="number"],
input[type="file"],
select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

button[type="submit"] {
  justify-self: start;
  padding: 0.6rem 1.1rem;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}

button[type="submit"]:hover { filter: brightness(1.05); }

.linkish, .inline { display: inline; }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--line) 28%, transparent);
}

tbody tr:nth-child(odd) {
  background: color-mix(in srgb, var(--panel) 70%, #fff);
}

tr.job-gone {
  opacity: 0.55;
}

.btn.is-gone {
  cursor: help;
  opacity: 0.65;
  pointer-events: auto;
}


th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
}

.badge {
  display: inline-block;
  padding: 0.05rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 0;
  background: none;
  cursor: default;
  user-select: none;
}

.badge.ok { color: var(--ok); }
.badge.err { color: var(--err); }
.badge.run { color: var(--run); }
.badge.wait { color: var(--wait); }

.col-error {
  width: 12rem;
  max-width: 14rem;
}

.actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.action-btns {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}

.err-trunc {
  display: block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--err);
}

.btn {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn:hover { background: #e4efe9; }

.btn.danger {
  border-color: var(--err);
  color: var(--err);
}

.btn.danger:hover { background: #f5e6e6; }

.muted { color: var(--muted); font-size: 0.9rem; }

.form-error {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--err) 45%, var(--line));
  border-left: 3px solid var(--err);
  background: #f8ecec;
  color: var(--err);
  font-size: 0.88rem;
  line-height: 1.4;
}

.disclaimer {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 44rem;
}

.disclaimer strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.is-hidden { display: none !important; }

.toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; }
