:root {
  color-scheme: light;
  --paper: #d1d4d3;
  --panel: #e9eceb;
  --ink: #343c3f;
  --muted: #535e62;
  --line: #aab2b4;
  --blue: #077c9a;
  --blue-dark: #065970;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--blue);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; border: 7px solid #bfc4c3; border-top: 0; display: flex; flex-direction: column; }
::selection { background: #a7dce8; color: #26383d; }
a { color: var(--blue-dark); text-underline-offset: .2em; }
a:hover { color: #003a4b; }
button, input { font: inherit; }
input { caret-color: var(--blue); }
button, a, input { -webkit-tap-highlight-color: transparent; }
:where(a, button, input):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; padding: .75rem 1rem; background: var(--ink); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; gap: 2rem; min-height: 3.1rem; padding: .2rem 1.25rem; border-bottom: 1px solid #b1b8b8; background: #c2c7c6; }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; color: #485356; font-weight: 750; font-style: italic; letter-spacing: .07em; text-decoration: none; font-size: 1rem; }
.wordmark svg { width: 29px; height: 26px; }
.account { margin-left: auto; display: flex; gap: 1rem; align-items: center; font-size: .8rem; }
.sound-toggle { white-space: nowrap; font-size: inherit; }
.account-name { max-width: 15rem; overflow-wrap: anywhere; }
main { width: min(1280px, calc(100% - 3rem)); margin-inline: auto; flex: 1; }
.intro { padding-block: 1.75rem 2.25rem; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.75rem; font-weight: 400; color: #475357; letter-spacing: -.025em; }
h2 { font-size: 1rem; font-weight: 600; }
h3 { font-size: 1rem; }
p { margin: 0; }
.form-columns { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.minecraft-setup, .chamber-input { position: relative; min-width: 0; padding: 1.5rem; border: 1px solid #939fa1; background: var(--panel); box-shadow: inset 1px 1px 0 #fff, inset -2px -2px 0 #c7cece; }
.panel-tab { position: relative; margin: -2.85rem 0 1.25rem -1.5rem; width: fit-content; padding: .35rem 1.2rem; border: 1px solid #939fa1; border-bottom: 0; background: var(--panel); font-size: .8rem; font-weight: 400; box-shadow: inset 1px 1px 0 #fff; }
.panel-tab::after { content: ""; position: absolute; bottom: -2px; left: 1px; right: 1px; height: 3px; background: var(--panel); }
.section-description { color: var(--muted); font-size: .8rem; margin-bottom: 1.25rem; }
.chamber-input { display: flex; flex-direction: column; }
.chamber-input .section-description { margin-bottom: 1rem; }
.drop-zone { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 14rem; padding: 1.5rem 1rem; border: 1px solid #b7c0c2; background: #d9dfdf; box-shadow: inset 1px 1px 0 #c7cecf, inset -1px -1px 0 #f8faf9; cursor: pointer; text-align: center; transition: background-color 150ms ease-out, border-color 150ms ease-out; }
.drop-zone > svg { width: 38px; height: 38px; color: #6c8187; }
.drop-zone:hover, .drop-zone[data-dragging="true"] { background: #cce3e8; border-color: var(--blue); }
.drop-copy { display: grid; gap: .25rem; max-width: 100%; }
.drop-copy strong { font-size: 1.15rem; font-weight: 400; overflow-wrap: anywhere; }
.drop-copy small { color: var(--muted); font-size: .8rem; }
.drop-zone input { max-width: 100%; width: 18rem; font-size: .8rem; color: var(--muted); }
.drop-zone input::file-selector-button { border: 1px solid #96a1a5; border-radius: 0; padding: .5rem .7rem; margin-right: .7rem; color: var(--ink); background: #eef1f0; box-shadow: inset 1px 1px 0 white, inset -1px -1px 0 #c5cdce; cursor: pointer; }
.input-divider { display: flex; gap: .75rem; align-items: center; margin-block: .75rem; color: var(--muted); font-size: .75rem; }
.input-divider::before, .input-divider::after { content: ""; height: 1px; background: #c5cdce; flex: 1; }
.workshop-field { display: grid; gap: .4rem; }
.workshop-field label { font-size: .8rem; }
.workshop-field input { width: 100%; min-height: 2.6rem; border: 1px solid #a0abad; border-radius: 0; padding: .6rem .75rem; color: var(--ink); background: #f7f9f8; box-shadow: inset 1px 1px 0 #d3d9da; font-size: .9rem; }
.workshop-field input::placeholder { color: #5e6b70; font-size: .8rem; }
.file-rules { margin-top: .75rem; font-size: .75rem; color: var(--muted); }
.mod-options { padding: 0; margin: 0; border: 0; min-width: 0; }
.mod-options legend { font-size: .85rem; font-weight: 600; padding: 0; margin-bottom: .7rem; }
.mod-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .9rem .5rem; border: 1px solid #bec7c9; background: #e0e6e5; cursor: pointer; }
.mod-option + .mod-option { margin-top: .5rem; }
.mod-option:has(input:checked) { border-color: #729ca8; background: #d4e5e8; }
.mod-option:hover { background: #d0e0e4; }
.mod-icon { grid-column: 1; grid-row: 1; color: #61797e; width: 32px; height: 32px; }
.mod-option > span { grid-column: 2; grid-row: 1; display: grid; gap: .2rem; min-width: 0; }
.mod-option input { grid-column: 3; grid-row: 1; width: 1rem; height: 1rem; margin: 0; }
.mod-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .4rem; font-size: .8rem; font-weight: 600; }
.required-label { color: var(--muted); font-size: .65rem; font-weight: 400; }
.required-mod { cursor: default; }
.mod-version { color: var(--muted); font-size: .68rem; overflow-wrap: anywhere; }
.option-help { margin-top: .9rem; color: var(--muted); font-size: .75rem; }
.conversion-option { display: flex; align-items: flex-start; gap: .65rem; padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid #bdc7c9; cursor: pointer; }
.conversion-option input { width: 1rem; height: 1rem; margin: .2rem 0 0; flex: 0 0 auto; }
.conversion-option span { display: grid; gap: .25rem; }
.conversion-option strong { font-size: .8rem; font-weight: 600; }
.conversion-option small { color: var(--muted); font-size: .75rem; }
.actions { margin-left: 20.5rem; padding: 1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.actions p { color: var(--muted); font-size: .8rem; }
.output-extension { padding-left: .35rem; color: #2e505b; font-size: .8rem; }
.action-buttons { display: flex; align-items: center; gap: 1rem; }
.primary-button { min-height: 2.6rem; padding: .65rem 1.1rem; border: 1px solid #416f7d; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; background: var(--blue); color: white; box-shadow: inset 1px 1px 0 #53a4b7, inset -1px -1px 0 #07586c; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.primary-button:hover { background: var(--blue-dark); color: white; }
.primary-button:disabled { background: #596e75; box-shadow: none; cursor: wait; }
.text-button { min-height: 2.5rem; padding: .5rem 0; border: 0; background: transparent; color: var(--blue-dark); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font-size: .8rem; }
.process { margin: .5rem 0 0 20.5rem; border: 1px solid #939fa1; padding: 1.25rem; background: var(--panel); }
.process-readout { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
#status-text { font-size: .85rem; }
#status-text.is-error { color: #a02e1b; }
#progress-label { font-size: .8rem; font-variant-numeric: tabular-nums; }
progress { width: 100%; height: .45rem; margin-block: 1rem; border: 0; background: #c3cccf; }
progress::-webkit-progress-bar { background: #c3cccf; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.stages { display: flex; justify-content: space-between; padding: 0; margin: 0; list-style: none; font-size: .75rem; color: var(--muted); }
.stages li[data-state="current"] { color: var(--blue-dark); font-weight: 700; }
.download-result { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.instructions { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 1.5rem; margin-block: 1.5rem 2rem; padding-top: 1.5rem; border-top: 1px solid #afb9bb; }
.instructions h2 { font-size: .95rem; font-weight: 400; }
.instructions p { margin-top: .6rem; color: var(--muted); font-size: .75rem; }
.instructions ol { margin: 0; padding-left: 1.5rem; font-size: .8rem; }
.instructions li { padding-left: .5rem; margin-bottom: .65rem; }
.instructions li::marker { color: #5b7179; }
code { font-family: ui-monospace, monospace; font-size: .9em; background: #dde3e3; padding: .1rem .25rem; overflow-wrap: anywhere; }
footer { padding: .65rem 1.25rem; border-top: 1px solid #b1b8b8; background: #c2c7c6; color: #48575d; font-size: .7rem; }
.live-region { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.error-banner { margin: 1rem; padding: 1rem; background: #fceee9; color: #a02e1b; }
.error-page { min-height: 100vh; padding: clamp(1.5rem, 8vw, 6rem); display: grid; align-content: center; justify-items: start; gap: 1.5rem; }
@media (max-width: 860px) {
  .form-columns, .instructions { grid-template-columns: 16rem minmax(0, 1fr); gap: 1rem; }
  .minecraft-setup, .chamber-input { padding: 1rem; }
  .panel-tab { margin-left: -1rem; margin-top: -2.35rem; }
  .actions, .process { margin-left: 17rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .action-buttons { justify-content: flex-end; }
  .actions p { text-align: right; }
  .download-result { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  body { border-width: 4px; border-top: 0; }
  .site-header { flex-wrap: wrap; column-gap: .75rem; row-gap: 0; padding: .5rem .75rem; }
  .wordmark { font-size: .875rem; }
  .wordmark svg { width: 24px; }
  .account { order: 1; font-size: .7rem; }
  .account-name { display: none; }
  main { width: calc(100% - 1.5rem); }
  .intro { padding-block: 1.25rem 2rem; }
  h1 { font-size: 1.5rem; }
  .form-columns { grid-template-columns: 1fr; gap: 2.5rem; }
  .minecraft-setup, .chamber-input { padding: 1.25rem; }
  .panel-tab { margin-left: -1.25rem; margin-top: -2.6rem; }
  .mod-options { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .mod-options legend { margin-bottom: .75rem; }
  .mod-option { grid-template-columns: 1fr auto; padding: .6rem; gap: .5rem; align-items: start; }
  .mod-option + .mod-option { margin-top: 0; }
  .mod-icon { grid-column: 1; }
  .mod-option input { grid-column: 2; margin-top: .25rem; }
  .mod-option > span { grid-column: 1 / -1; grid-row: 2; }
  .option-help { grid-column: 1 / -1; margin-top: .35rem; }
  .conversion-option { margin-top: 1rem; padding-top: 1rem; }
  .actions, .process { margin-left: 0; }
  .action-buttons { flex-direction: column-reverse; align-items: stretch; gap: .5rem; }
  .actions p { text-align: center; }
  .instructions { grid-template-columns: 1fr; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
