:root {
  --bg: #f2f4f6; --surface: #ffffff; --ink: #14202b; --muted: #5b6b7a;
  --line: #dde3e9; --accent: #0a7b6b; --accent-ink: #ffffff; --err: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1519; --surface: #172027; --ink: #e6edf3; --muted: #8fa1b0;
    --line: #26323b; --accent: #3dc9b0; --accent-ink: #08201b; --err: #ff8a80;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 ui-sans-serif, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { max-width: 960px; margin: 0 auto; padding: 14px 16px; display: flex;
  flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.count { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-right: auto; }
.count small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.profile-pick { display: flex; gap: 8px; align-items: center; }
.profile-pick select { font: inherit; font-weight: 600; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; max-width: 240px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; font: inherit; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
input[type=search] { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); width: 190px; }
.btn { font: inherit; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.danger { color: var(--err); }
.btn.link { border-color: transparent; background: transparent; color: var(--muted); padding: 7px 8px; }
.btn.link:hover { color: var(--ink); }
.btn.link.warn { color: var(--err); font-weight: 600; }
.btn:disabled { opacity: .6; cursor: default; }
.filters { width: 100%; display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.filters form { margin: 0; }
.spacer { flex: 1; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
select, input[type=number], input:not([type]), input[type=password], input[type=text], textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px; }
.filters input[type=number] { width: 130px; }
label.check { flex-direction: row; align-items: center; gap: 6px; padding: 7px 0; color: var(--ink); font-size: 14px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
main { max-width: 960px; margin: 0 auto; padding: 8px 16px 48px; }
ul { list-style: none; margin: 0; padding: 0; }
.job { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: 6px; padding: 12px 16px; margin-top: 10px; }
.job.new { border-left-color: var(--accent); }
.top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.job a { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; }
.job.new a { font-weight: 700; }
.job a:hover { text-decoration: underline; }
.salary { white-space: nowrap; font-weight: 600; }
.sub { color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 2px; font-size: 14px; }
.req { color: var(--muted); font-size: 14px; margin: 6px 0 0; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job:not(.new) { opacity: .7; }
.msg { margin-top: 24px; padding: 16px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); }
.msg.err { color: var(--err); border-color: var(--err); white-space: pre-wrap; }
.msg .btn { margin-top: 10px; }

dialog { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  padding: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
dialog::backdrop { background: rgb(0 0 0 / .4); }
dialog form { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
dialog h2 { margin: 0; font-size: 19px; }
dialog .msg { margin-top: 0; padding: 10px 12px; }
.dlg-head, .dlg-foot, .dlg-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.dlg-head { align-items: center; justify-content: space-between; }
.dlg-row > label { flex: 1; min-width: 180px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 0; padding: 6px 12px 4px;
  display: flex; flex-wrap: wrap; gap: 0 18px; }
legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
textarea { resize: vertical; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
code { font-size: 13px; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: min(360px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.login h1 { margin: 0; font-size: 22px; }
.login p { margin: -8px 0 0; }
.login .msg { margin: 0; padding: 10px 12px; }
.login .btn { padding: 9px 14px; }

@media (max-width: 600px) {
  .top { flex-direction: column; gap: 2px; }
  input[type=search] { width: 100%; }
  .profile-pick { width: 100%; }
  .profile-pick select { flex: 1; max-width: none; }
}
