@font-face {
  font-family: system;
  src: local("Arial");
}
* {
  box-sizing: border-box;
}
:root {
  --ink: #20261f;
  --muted: #677064;
  --paper: #f6f7f2;
  --line: #dce2d5;
  --green: #d6f86f;
  --dark: #263424;
  --white: #fff;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
label.file-button {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
main:focus-visible {
  outline: 3px solid #427100;
  outline-offset: 4px;
}
header {
  height: 100px;
  max-width: 1440px;
  padding: 0 6%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1.4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-dot,
.accent {
  color: #517e00;
}
.brand-icon {
  font-size: 28px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  letter-spacing: -4px;
  padding-right: 5px;
}
.brand-icon span {
  font-size: 20px;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav,
.quiet {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 0;
  font-weight: 600;
}
.nav.active {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.quiet:hover {
  color: var(--ink);
  text-decoration: underline;
}
.pilot-tag {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 62px 40px 40px;
  min-height: 75vh;
}
.hero {
  margin: 0 0 36px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 750;
  margin: 0 0 18px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #618d15;
  margin-right: 8px;
}
.hero h1,
h1 {
  font-size: clamp(40px, 5.8vw, 70px);
  line-height: 1.08;
  letter-spacing: -3.8px;
  margin: 0 0 20px;
  font-weight: 650;
}
.muted-title {
  color: #78886b;
}
.hero-copy {
  color: var(--muted);
  margin-bottom: 0;
}
.dropzone {
  position: relative;
  border: 1.5px dashed #b8c7a7;
  border-radius: 22px;
  background: #fff;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.dropzone.dragover {
  border-color: #416d00;
  background: #edf9d4;
  transform: translateY(-3px);
}
.dropzone h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
  margin: 14px 0 0;
}
.dropzone p {
  color: var(--muted);
  font-size: 14px;
  margin: 5px 0 20px;
}
.primary {
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--green);
  color: #202b14;
  font-weight: 700;
  font-size: 14px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: #c6ee53;
  transform: translateY(-1px);
}
.file-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.file-button input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 3px solid #427100;
  outline-offset: 4px;
}
.drop-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 13px;
}
.drop-illustration {
  width: 65px;
  height: 65px;
  position: relative;
}
.file-back,
.file-front {
  position: absolute;
  width: 43px;
  height: 55px;
  border-radius: 7px;
  background: #e5eaca;
  border: 1px solid #b6c29b;
  transform: rotate(-13deg);
  left: 1px;
  top: 0;
}
.file-front {
  transform: rotate(10deg);
  left: 21px;
  top: 8px;
  background: #e3f3bb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  line-height: 1;
  box-shadow: 0 2px 5px #283c1110;
}
.file-front small {
  position: absolute;
  font-size: 7px;
  font-weight: 800;
  bottom: 5px;
  letter-spacing: 1px;
}
.formats {
  display: flex;
  justify-content: center;
  gap: 40px;
  color: var(--muted);
  font-size: 12px;
  padding: 20px;
}
.trust-row {
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.trust-row > div > span {
  font-size: 22px;
  display: block;
  margin-bottom: 12px;
}
.trust-row strong {
  font-size: 13px;
  display: block;
}
.trust-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 15px;
  justify-content: space-between;
  margin: 30px 0 15px;
}
.section-heading h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.section-heading span {
  font-size: 11px;
}
.jobs {
  display: grid;
  gap: 16px;
}
.job-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 22px;
  animation: arrive 0.25s ease-out;
}
.job-top {
  display: flex;
  gap: 15px;
  align-items: center;
}
.file-symbol {
  width: 43px;
  height: 49px;
  display: grid;
  place-items: center;
  background: #eef3e5;
  border-radius: 9px;
  font-size: 25px;
}
.job-title {
  flex: 1;
  min-width: 0;
}
.job-title h3 {
  font-size: 15px;
  margin: 0;
  overflow-wrap: anywhere;
}
.job-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0;
}
.status-pill {
  font-size: 11px;
  font-weight: 650;
  background: #eef2e8;
  color: #435b2d;
  border-radius: 20px;
  padding: 5px 10px;
  white-space: nowrap;
}
.icon-button {
  border: 0;
  background: #f5f6f2;
  border-radius: 8px;
  font-size: 24px;
  width: 34px;
  height: 34px;
  line-height: 1;
  color: #677064;
}
.progress-zone {
  margin-top: 20px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 10px;
}
.progress-label strong {
  font-variant-numeric: tabular-nums;
}
progress {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  margin: 12px 0 0;
  background: #e9eddf;
  accent-color: #5d811f;
}
progress::-webkit-progress-bar {
  background: #e9eddf;
}
progress::-webkit-progress-value {
  background: #719d28;
  border-radius: 5px;
  transition: width 0.25s;
}
progress::-moz-progress-bar {
  background: #719d28;
}
.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin: 20px 0;
}
.options label,
.login-form label,
.admin-login label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
input,
select {
  border: 1px solid #cbd4c0;
  background: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
input:invalid:not(:placeholder-shown) {
  border-color: #a34d39;
}
.convert-button {
  margin-top: 2px;
}
.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.result strong {
  font-size: 14px;
}
.result-size {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}
.job-error {
  color: #8e3424;
  font-size: 13px;
  margin-bottom: 0;
}
.notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  box-shadow: 0 5px 25px #0002;
  border-radius: 12px;
  padding: 15px 24px;
  z-index: 5;
  max-width: 90vw;
  font-size: 14px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.login-view {
  padding: 40px 0 110px;
  max-width: 670px;
}
.login-form {
  max-width: 460px;
  margin-top: 35px;
}
.input-row {
  display: flex;
  gap: 12px;
  margin-top: 7px;
}
.input-row input {
  flex: 1;
  min-width: 0;
}
.input-row button {
  white-space: nowrap;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.admin-heading h1 {
  font-size: 55px;
}
.admin-login {
  max-width: 470px;
  margin-bottom: 100px;
}
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.metric-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 24px;
  min-height: 235px;
  display: flex;
  flex-direction: column;
}
.metric-card > span {
  color: var(--muted);
  font-size: 12px;
}
.metric-card > strong {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 8px 0;
}
.metric-card svg {
  width: 100%;
  height: 75px;
  overflow: visible;
}
.metric-card svg polyline {
  fill: none;
  stroke: #5d811f;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.metric-card svg .secondary {
  stroke: #7c83a1;
}
.metric-card small {
  color: var(--muted);
  font-size: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.metric-card meter {
  width: 100%;
  height: 30px;
  margin-top: 25px;
  accent-color: #719d28;
}
.queue-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.queue-summary span {
  padding: 7px 12px;
  background: #e9efdd;
  border-radius: 7px;
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
th {
  background: #eff3e8;
  color: var(--muted);
  font-weight: 600;
}
td:last-child {
  max-width: 400px;
  overflow-wrap: anywhere;
}
footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 6%;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 11px;
}
footer > div {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
}
.small-brand {
  font-size: 19px;
  color: var(--ink);
}
footer .quiet {
  font-size: 11px;
  font-weight: 400;
}
dialog {
  max-width: 570px;
  width: calc(100% - 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  color: var(--ink);
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #15210c77;
  backdrop-filter: blur(3px);
}
dialog p {
  font-size: 13px;
  color: var(--muted);
}
dialog h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
body.modal-open {
  overflow: hidden;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  background: var(--green);
  padding: 10px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 700px) {
  header {
    height: auto;
    min-height: 86px;
    padding: 16px 22px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 25px;
  }
  .pilot-tag {
    display: none;
  }
  nav {
    gap: 16px;
    font-size: 12px;
  }
  main {
    padding: 35px 20px;
  }
  .hero h1,
  h1 {
    letter-spacing: -2px;
    font-size: 45px;
  }
  .hero-copy {
    font-size: 14px;
  }
  .dropzone {
    min-height: 320px;
    padding: 25px 15px;
  }
  .formats {
    gap: 22px;
  }
  .trust-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .trust-row > div > span {
    float: left;
    margin-right: 15px;
    width: 20px;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 0;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .admin-heading {
    align-items: start;
    gap: 15px;
    flex-direction: column;
  }
  .admin-heading h1 {
    font-size: 42px;
  }
  .job-card {
    padding: 16px;
  }
  .job-top {
    gap: 10px;
    flex-wrap: wrap;
  }
  .job-title {
    flex-basis: 65%;
  }
  .job-top .status-pill {
    margin-left: 52px;
  }
  .job-top .delete {
    margin-left: auto;
  }
  .result {
    flex-direction: column;
    align-items: stretch;
  }
  .result .download {
    width: 100%;
  }
  .input-row {
    flex-direction: column;
  }
  footer {
    flex-wrap: wrap;
    padding: 25px 22px;
    gap: 12px;
  }
  footer > div {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  dialog {
    padding: 28px;
  }
}

/* Compact work area: the file and its controls are the main content. */
:root { --paper: #f8f9f7; --green: #e5eddf; }
header { height: 76px; max-width: 1280px; gap: 24px; }
main { max-width: 1120px; padding: 36px 32px; }
.hero { margin-bottom: 24px; }
.hero h1, h1 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -1.1px; line-height: 1.2; }
.hero-copy { font-size: 15px; }
.dropzone { min-height: 210px; padding: 25px; border-radius: 12px; }
.dropzone h2 { font-size: 20px; margin-top: 0; letter-spacing: -.3px; }
.dropzone p { margin-bottom: 18px; }
.primary { background: #295435; color: #fff; border-radius: 7px; gap: 16px; }
.primary:hover { background: #1d4027; transform: none; }
.brand-icon { background: #e3eddd; }
.brand { font-size: 26px; }
.formats { flex-wrap: wrap; gap: 8px 24px; padding: 16px 0; font-size: 12px; }
.job-card { animation: none; border-radius: 12px; }
.section-heading { margin-top: 20px; }
.job-title h3 { font-size: 15px; }
.download-note:empty, .job-error:empty { display: none; }
.admin-heading { margin-bottom: 24px; }
.admin-heading h1 { font-size: 36px; }
.login-view { padding: 30px 0 60px; }
footer { max-width: 1280px; flex-wrap: wrap; gap: 14px; }
@media (max-width: 700px) {
  header { height: auto; min-height: 76px; }
  main { padding: 28px 18px; }
  .hero h1, h1 { font-size: 30px; letter-spacing: -.8px; }
  .dropzone { min-height: 215px; padding: 22px 15px; }
  .formats { justify-content: flex-start; }
  .admin-heading h1 { font-size: 30px; }
  .options { grid-template-columns: 1fr; }
}


.cpu-card { grid-column: 1 / -1; }
.cpu-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.cpu-switch { display:flex; gap:4px; padding:4px; border:1px solid var(--line); border-radius:10px; }
.cpu-switch button { padding:8px 12px; border-radius:7px; }
.cpu-switch button[aria-pressed="true"] { background:#285b3c; color:white; }
.cpu-card #cpu-chart { height:200px; }
.cpu-card svg { background-image:linear-gradient(to right,#e4eadf 1px,transparent 1px),linear-gradient(to bottom,#e4eadf 1px,transparent 1px); background-size:10% 25%; }
.cpu-cores { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:16px 0; }
.cpu-core { min-width:0; }
.cpu-core-head { display:flex; justify-content:space-between; font-size:14px; margin-bottom:5px; }
.metric-card .cpu-core strong { font-size:14px; }
@media(max-width:700px) { .cpu-cores { grid-template-columns:repeat(2,minmax(0,1fr)); } }


.theme-select { width:auto; max-width:145px; padding:8px 12px; font:inherit; border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--ink); }
:root[data-theme="dark"] { color-scheme:dark; --paper:#131816; --ink:#edf2ee; --muted:#b0bbb3; --line:#3c4941; --white:#1d2620; --dark:#c9ebd0; --green:#344c3b; }
[data-theme="dark"] header { background:var(--paper); }
[data-theme="dark"] .dropzone,[data-theme="dark"] .job-card,[data-theme="dark"] .metric-card,[data-theme="dark"] .table-wrap,[data-theme="dark"] dialog,[data-theme="dark"] input,[data-theme="dark"] select { background:var(--white); color:var(--ink); border-color:var(--line); }
[data-theme="dark"] .dropzone.dragover { background:#2d4434; }
[data-theme="dark"] .brand-icon,[data-theme="dark"] .file-symbol,[data-theme="dark"] .queue-summary span,[data-theme="dark"] .status-pill,[data-theme="dark"] th { background:#304236; color:#e3f0e7; }
[data-theme="dark"] .brand-dot { color:#a9d78a; }
[data-theme="dark"] .primary { background:#a8d9b3; color:#102516; }
[data-theme="dark"] .primary:hover { background:#c4ebcc; }
[data-theme="dark"] .quiet,[data-theme="dark"] .nav,[data-theme="dark"] .icon-button { color:var(--ink); }
[data-theme="dark"] .icon-button { background:#2c382f; }
[data-theme="dark"] .muted,[data-theme="dark"] .small,[data-theme="dark"] .job-meta,[data-theme="dark"] .metric-card small,[data-theme="dark"] .metric-card > span { color:var(--muted); }
[data-theme="dark"] .job-error { color:#ffb4a4; }
[data-theme="dark"] .notice { background:#d6e9da; color:#18291e; }
[data-theme="dark"] :focus-visible { outline-color:#c3eaa7; }
[data-theme="dark"] .cpu-switch button[aria-pressed="true"] { background:#a8d9b3; color:#102516; }
[data-theme="dark"] .cpu-card svg { background-image:linear-gradient(to right,#35453b 1px,transparent 1px),linear-gradient(to bottom,#35453b 1px,transparent 1px); }
[data-theme="dark"] .metric-card svg polyline { stroke:#b0df8c; }
[data-theme="dark"] .metric-card svg .secondary { stroke:#b9bcff; }
[data-theme="dark"] progress { background:#344438; accent-color:#a8d9b3; }
[data-theme="dark"] progress::-webkit-progress-bar { background:#344438; }
[data-theme="dark"] progress::-webkit-progress-value { background:#a8d9b3; }
[data-theme="dark"] a { color:#b4deff; }
[data-theme="dark"] .brand { color:var(--ink); }
@media(max-width:700px) { .theme-select { max-width:120px; } }

.account-form { display:grid; gap:16px; }
.account-form label { display:grid; gap:6px; }
.account-links { display:flex; flex-wrap:wrap; gap:6px; margin:18px 0; }
.account-status { overflow-wrap:anywhere; }
#account-dialog { width:min(560px,calc(100vw - 32px)); }
.account-email { overflow-wrap:anywhere; }

:root[data-theme="light"] { color-scheme:light; }

/* Keep account navigation usable when every admin control is visible. */
header nav { flex-wrap:wrap; gap:8px 18px; }
header .brand { flex-shrink:0; }
header .pilot-tag { white-space:nowrap; }
@media (max-width:1000px) { header { flex-wrap:wrap; height:auto; padding-top:14px; padding-bottom:14px; gap:14px; } header nav { order:3; width:100%; margin-left:0; } header .theme-select { margin-left:auto; } }
[data-theme="dark"] .download.primary { color:#102516; }

input:not([type="file"]),select { border-color:#82907b; }
[data-theme="dark"] input:not([type="file"]),[data-theme="dark"] select { border-color:#748d7b; }
