:root {
  color-scheme: light;
  --ink: #14283e;
  --nav: #162a43;
  --text-muted: #4d6075;
  --line: #d8e2ed;
  --wash: #edf3fa;
  --blue: #1455a0;
  --paper: #fff;
  font: 16px/1.5 "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--wash);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #c27513; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.06em; line-height: 1.1; }
h2 { font-size: 1.55rem; letter-spacing: -.035em; margin-bottom: 1rem; }
h3 { margin-bottom: 1.25rem; font-size: 1.05rem; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 13rem minmax(0, 1fr); }
aside { display: flex; flex-direction: column; gap: 2rem; padding: 1.7rem 1.2rem; background: var(--nav); color: var(--paper); }
.brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-weight: 750; font-size: 1.35rem; letter-spacing: -.04em; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; background: #b7ddff; color: #162a43; border-radius: .4rem .4rem .4rem 0; }
nav { display: grid; gap: .4rem; }
nav a { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem .6rem; color: inherit; border-bottom: 1px solid #40526a; text-decoration: none; }
nav a:hover { background: #263e59; }
nav span { color: #b7ddff; font-variant-numeric: tabular-nums; }
aside form { margin-top: auto; }
.console { width: min(100%, 92rem); padding: clamp(1rem, 4vw, 3.6rem); }
.masthead { padding: .6rem 0 1.6rem; border-bottom: 3px solid #9ac5ed; margin-bottom: 1.6rem; }
.masthead p { margin-top: .65rem; color: var(--text-muted); }
.generator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem);
  gap: clamp(1rem, 2.6vw, 1.75rem);
  padding: clamp(1rem, 2.6vw, 1.75rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .5rem;
  margin-bottom: 1.3rem;
  scroll-margin-top: 1rem;
}
.generator-input, .generator-output { min-width: 0; }
.drop-zone {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 11rem;
  padding: 1.25rem;
  gap: .55rem;
  margin-bottom: .65rem;
  border: 2px dashed #6587aa;
  border-radius: .4rem;
  color: #f8fbff;
  background: var(--nav);
  text-align: center;
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.is-dragging { border-color: #f3bd72; background: #203f60; }
.drop-zone:focus-within { outline: 3px solid #c27513; outline-offset: 3px; }
.drop-zone.has-file { border-style: solid; }
.drop-zone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.jar-mark { padding: .22rem .45rem; color: #b7ddff; border: 1px solid #6587aa; border-radius: .28rem; font: .8rem/1.4 ui-monospace, Consolas, monospace; }
.drop-title { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(1rem, 2vw, 1.2rem); }
.choose-file { font-size: .8rem; color: #b7ddff; text-decoration: underline; text-underline-offset: .2em; }
.file-feedback { color: #8e3a32; font-size: .86rem; margin-bottom: .65rem; }
.release-settings { padding: .65rem 0; margin: .75rem 0 .9rem; border-block: 1px solid var(--line); }
.release-settings summary { font-size: .88rem; font-weight: 650; cursor: pointer; }
.release-settings .hint { margin-top: .55rem; }
.release-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.generator-output { align-self: start; margin-top: 2.65rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: .4rem; background: #f4f8fc; }
.generator-output h3 { margin-bottom: .4rem; }
.generator-output p { color: var(--text-muted); font-size: .88rem; }
.generator-output.has-result { border-color: #addbca; background: #eff8f4; }
.generator-output .result-filename { color: #175240; font-weight: 650; overflow-wrap: anywhere; }
.download-button { display: inline-block; margin: .75rem 0; padding: .5rem .65rem; border-radius: .23rem; color: white; background: var(--blue); text-decoration: none; font-size: .88rem; font-weight: 650; }
.download-button:hover { background: #103e76; }
.generator-output .hint { margin: 0; }
.startup-command {
  margin: .65rem 0;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: .23rem;
  background: var(--paper);
  font-size: .76rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem); background: var(--paper); border: 1px solid var(--line); border-radius: .5rem; margin-bottom: 1.3rem; scroll-margin-top: 1rem; }
.workbench.archive { grid-template-columns: minmax(0, 1fr); }
.listing, .workbench > form { min-width: 0; padding: clamp(1rem, 2.6vw, 1.75rem); }
.workbench > form { border-left: 1px solid var(--line); background: #f8fbff; border-radius: 0 .5rem .5rem 0; }
.empty { color: var(--text-muted); border-top: 1px dashed var(--line); padding: 1.3rem 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; text-align: left; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .65rem .7rem .65rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: middle; }
thead th { color: var(--text-muted); font-size: .8rem; white-space: nowrap; }
td:last-child, th:last-child { padding-right: .25rem; }
input, select, button { font: inherit; }
label { display: grid; gap: .28rem; font-size: .88rem; font-weight: 650; margin-bottom: .85rem; }
input, select { min-width: 0; width: 100%; padding: .51rem .55rem; color: var(--ink); background: var(--paper); border: 1px solid #9cafc2; border-radius: .23rem; }
input[type=file] { padding: .35rem; font-size: .8rem; }
.checkbox { display: flex; align-items: baseline; gap: .5rem; }
.checkbox input { width: auto; margin: 0; }
.platforms { display: block; color: var(--text-muted); white-space: nowrap; }
button { cursor: pointer; border: 1px solid transparent; border-radius: .23rem; padding: .5rem .8rem; color: white; background: var(--blue); font-size: .9rem; font-weight: 650; }
button:hover:not(:disabled) { background: #103e76; }
button:disabled { cursor: default; background: #e0e7ef; color: #4d6075; }
button.quiet { color: inherit; background: transparent; border-color: currentColor; }
button.quiet:hover { background: #ddebf240; }
button.revoke { color: #8e3a32; font-size: .78rem; padding: .2rem .45rem; }
.hint { color: var(--text-muted); margin: -.25rem 0 .8rem; font-size: .78rem; }
.status { border-radius: 1rem; padding: .2rem .5rem; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.active { color: #175240; background: #dff2e8; }
.revoked { color: #823428; background: #f9e6e1; }
.notice { border: 1px solid #a2caeb; border-left: 4px solid #3479b7; background: #f6fbff; padding: .75rem 1rem; margin-bottom: 1rem; }
.notice.error { border-color: #b15b4f; background: #fff5f1; color: #7c2a25; }
.issued input { max-width: 35rem; font-family: ui-monospace, Consolas, monospace; }
.issued p { color: var(--text-muted); font-size: .88rem; }
.login { width: min(calc(100% - 2rem), 28rem); padding: 2rem; margin: max(1rem, 12vh) auto 1rem; border: 1px solid var(--line); border-top: 4px solid #9ac5ed; background: var(--paper); border-radius: .35rem; }
.login h1 { font-size: 2rem; margin: 1.55rem 0 .65rem; }
.muted { color: var(--text-muted); margin-bottom: 1.3rem; }
@media (max-width: 850px) {
  .shell { grid-template-columns: 1fr; }
  aside { flex-direction: row; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 1rem; flex-wrap: wrap; }
  nav { display: flex; gap: .65rem; }
  nav a { padding: .25rem; }
  aside form { margin-top: 0; }
}
@media (max-width: 620px) {
  .generator, .workbench { grid-template-columns: 1fr; }
  .generator-output { margin-top: 0; }
  .workbench > form { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 .5rem .5rem; }
}
