:root {
  --bg: #f6f6f6;
  --ink: #1c1c1c;
  --muted: #6f6f6f;
  --line: #e4e4e4;
  --card: #fff;
  --os: #1f4b99;
  --proj: #9a4d12;
  --prod: #0f6e56;
  --skill: #6b3fa0;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
a { color: inherit; }
button, input { font: inherit; }
.page { width: min(720px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 64px; }

.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.top a { text-decoration: none; }
.word { font-weight: 600; }
.tabs { display: flex; gap: 6px; }
.tabs a { color: var(--muted); padding: 5px 10px; border-radius: 6px; border: 1px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); background: #fff; border-color: #111; }

h1 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.quiet { margin: 0 0 16px; color: var(--muted); }

.step { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.drop {
  background: #fff;
  border: 1.5px dashed #b9b9b9;
  border-radius: 8px;
  padding: 28px 16px;
}
.drop.hot { border-color: #111; }
.drop label { display: block; position: relative; text-align: center; cursor: pointer; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop strong { display: block; font-weight: 600; }
.drop span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.run {
  display: block;
  margin: 14px auto 0;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #111;
  color: #fff;
  cursor: pointer;
}
.run:disabled { background: #e8e8e8; color: #8a8a8a; cursor: not-allowed; }
a.alt {
  display: inline-block;
  margin-top: 12px;
  height: 32px;
  line-height: 32px;
  padding: 0 14px;
  border: 1px solid #111;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
}
.field {
  display: block;
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.job {
  display: block;
  width: 100%;
  min-height: 160px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #fafafa;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  outline: none;
  box-shadow: none;
}
.job::placeholder { color: #9a9a9a; }
.job:focus { border-color: #111; background: #fff; }

.scale { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.scale b { color: var(--ink); font-weight: 600; }

.status, .error { display: none; margin-top: 12px; }
.status.show, .error.show { display: block; }
.status { color: var(--muted); }
.barline { height: 2px; background: #e8e8e8; border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.barline i { display: block; width: 30%; height: 100%; background: var(--os); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-120%); } to { transform: translateX(360%); } }
.error { color: #9f2d2d; }

.result { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.total { font-variant-numeric: tabular-nums; }
.total b { font-size: 22px; font-weight: 600; color: var(--os); }
.total span { color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; font-size: 13px; }
.links a { color: var(--os); }

.rows { margin-top: 18px; }
.row { display: grid; grid-template-columns: 140px 1fr 64px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.row .n { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); font-size: 13px; }
.track { height: 4px; background: #ececec; border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 100%; }
.os i { background: var(--os); }
.proj i { background: var(--proj); }
.prod i { background: var(--prod); }
.skill i { background: var(--skill); }
.evidence { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
.evidence a { color: var(--os); }

.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.note strong { color: var(--prod); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 12px; color: #444; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.two h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.two ul { margin: 0; padding-left: 16px; }
.two li { margin: 0 0 6px; }

.again { margin-top: 14px; border: 0; background: none; padding: 0; color: var(--os); cursor: pointer; }

.block { padding: 12px 0; border-top: 1px solid var(--line); }
.block h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.block p { margin: 0; color: var(--muted); }
.k { margin: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--skill); }

footer { margin-top: 36px; color: var(--muted); font-size: 12px; }
footer a { color: var(--os); }

.built { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.built a, .faq a { color: var(--os); }
.oss { flex: none; color: var(--os); }
.oss { animation: spin 16s linear infinite; transform-origin: center; }
.oss circle, .oss path { stroke-dasharray: 64; stroke-dashoffset: 64; animation: draw 1.1s ease forwards; }
.oss path { animation-delay: .15s; }
.doc { display: block; margin: 0 auto 8px; color: var(--os); }
.doc path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1s ease forwards; }
.marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.marks li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 8px; text-align: center; font-size: 12px; color: var(--muted); }
.marks svg { display: block; margin: 0 auto 6px; }
.marks b { display: block; color: var(--ink); font-size: 13px; }
.marks li:nth-child(1) svg { color: var(--os); }
.marks li:nth-child(2) svg { color: var(--proj); }
.marks li:nth-child(3) svg { color: var(--prod); }
.marks li:nth-child(4) svg { color: var(--skill); }
.spin { transform-origin: 12px 12px; animation: spin 8s linear infinite; }
.page { animation: rise .4s ease both; }
.track i { transform-origin: left center; animation: grow .7s ease both; }
.drop { transition: border-color .15s ease, transform .15s ease; }
.drop.hot { transform: translateY(-1px); }
.run { transition: background .15s ease, transform .15s ease; }
.run:not(:disabled):hover { transform: translateY(-1px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 12px; color: var(--muted); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .page, .track i, .oss, .oss circle, .oss path, .doc path, .spin { animation: none; }
  .oss circle, .oss path, .doc path { stroke-dashoffset: 0; }
}

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr auto; }
  .track { grid-column: 1 / -1; }
  .two, .marks { grid-template-columns: 1fr 1fr; }
}
