/* overnight.host server-config generators (server.properties, MOTD, FiveM server.cfg).
   Scoped to .ohx so it cannot leak into the shared chrome. Uses the page's own :root tokens. */
h1{overflow-wrap:anywhere}
html[data-lang="de"] .ohx [data-l="en"],html[data-lang="en"] .ohx [data-l="de"]{display:none}
.ohx{--ohx-field:#08080d;--ohx-line:#2a2a40;--ohx-focus:#72cccd;--ohx-err:#ff9aa4;color-scheme:dark}
.ohx [hidden]{display:none!important}
.ohx :focus-visible{outline:2px solid var(--ohx-focus);outline-offset:3px}
.ohx code,.ohx pre,.ohx textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace}
.ohx code,.ohx pre{overflow-wrap:anywhere}
.ohx code{font-size:.85em}
.ohx a{color:var(--accent2)}
.ohx h2{text-align:left;font-size:1.15rem;letter-spacing:0;margin:0 0 .6rem}
.ohx form,.ohx .mc-panel,.ohx .mc-column{min-width:0}
.ohx .mc-toolbar{display:flex;flex-wrap:wrap;gap:.85rem 1.4rem;align-items:flex-end;margin-bottom:1.1rem}
.ohx .mc-toolbar>div{min-width:0;max-width:100%}
.ohx .mc-toolbar label,.ohx .mc-panel label:not(.mc-label),.ohx .mc-label{font-size:.88rem;font-weight:600;color:var(--text)}
.ohx .mc-toolbar select{display:block;margin-top:.3rem}
.ohx .mc-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.ohx button{font-family:inherit;font-weight:700;font-size:.875rem;line-height:1.35;cursor:pointer;max-width:100%}
.ohx button.mc-primary{background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:9px;padding:.62rem .95rem}
.ohx button.mc-primary:hover{opacity:.88}
.ohx button.mc-secondary{padding:.62rem .8rem;border:1px solid var(--ohx-line);border-radius:9px;background:var(--surface);color:var(--text);text-align:left;overflow-wrap:anywhere}
.ohx button.mc-secondary:hover{border-color:var(--accent)}
.ohx button:disabled{opacity:.55;cursor:default}
.ohx .mc-panel,.ohx fieldset{min-inline-size:0;border:1px solid var(--border);border-radius:14px;background:var(--card);padding:1.1rem 1.25rem}
.ohx legend{padding:0 .4rem;color:var(--text);font-weight:700}
.ohx details{background:none;border:0;border-radius:0;padding:0;margin:0}
.ohx details.mc-panel{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:1rem 1.25rem}
.ohx summary{cursor:pointer;font-weight:600;font-size:.92rem}
.ohx summary::marker{color:var(--accent2)}
.ohx .mc-import-body{display:grid;gap:.6rem;margin-top:.8rem}
.ohx .mc-import-body label{color:var(--muted);font-weight:500}
.ohx .mc-layout{display:grid;gap:1.3rem;align-items:start;margin-top:1.3rem}
.ohx .mc-column{display:grid;gap:1.1rem}
.ohx .mc-note{color:#94a3b8;font-size:.85rem}
.ohx fieldset>.mc-note{margin-bottom:.9rem}
.ohx .mc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}
.ohx .mc-wide{grid-column:1/-1}
.ohx .mc-field{min-width:0}
.ohx .mc-field>label,.ohx .mc-field>.mc-label{display:block;margin-bottom:.3rem}
.ohx .mc-label code{display:block;color:var(--muted);font-size:.74rem;font-weight:500}
.ohx input:not([type=checkbox]):not([type=color]),.ohx select,.ohx textarea{width:100%;min-width:0;max-width:100%;border:1px solid var(--ohx-line);background:var(--ohx-field);color:var(--text);border-radius:8px;padding:.6rem .65rem;font:inherit;font-size:1rem}
.ohx textarea{display:block;resize:vertical;font-size:.85rem;line-height:1.6}
.ohx [aria-invalid=true]{border-color:#ff8793!important}
.ohx .mc-error{color:var(--ohx-err);font-size:.8rem;margin-top:.25rem}
.ohx .mc-choice label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px .55rem;align-items:start;cursor:pointer}
.ohx .mc-choice label code{grid-column:2}
.ohx .mc-choice input{width:17px;height:17px;margin-top:3px;accent-color:var(--accent)}
.ohx .mc-motd{margin-top:.6rem}
.ohx #mc-motd-text{margin-top:.3rem;padding:.55rem .65rem;min-height:44px;border-radius:8px;background:#141414;color:#aaa;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.ohx #mc-password-action{margin-top:.55rem}
.ohx .mc-output{scroll-margin-top:6rem}
.ohx .mc-output>label{display:block;margin-bottom:.4rem}
.ohx .mc-output textarea[wrap=off]{white-space:pre;overflow:auto}
.ohx .mc-output .mc-actions,.ohx .mc-output details{margin-top:.75rem}
.ohx .mc-output details pre{white-space:pre-wrap;margin-top:.5rem;font-size:.8rem;background:var(--ohx-field);border:1px solid var(--border);border-radius:8px;padding:.6rem}
.ohx .mc-output details p{margin-top:.5rem}
.ohx .mc-status:not(:empty){margin-top:.5rem}
.ohx #mc-preset-status:not(:empty){margin:0}
.ohx .mc-jump{font-size:.875rem}
.ohx .mc-related{display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;margin-top:1.4rem;font-size:.88rem}
@media(min-width:900px){
  .ohx .mc-layout{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
  .ohx .mc-jump{display:none}
}
@media(min-width:900px) and (min-height:760px){
  .ohx .mc-output{position:sticky;top:5.5rem;max-height:calc(100vh - 6.5rem);overflow:auto}
}
@media(max-width:520px){
  .ohx .mc-panel,.ohx fieldset,.ohx details.mc-panel{padding:.85rem}
  .ohx .mc-fields{grid-template-columns:minmax(0,1fr)}
}
/* Minecraft legacy colours and formats */
.ohx .mc-color-0{color:#000}.ohx .mc-color-1{color:#00A}.ohx .mc-color-2{color:#0A0}.ohx .mc-color-3{color:#0AA}
.ohx .mc-color-4{color:#A00}.ohx .mc-color-5{color:#A0A}.ohx .mc-color-6{color:#FA0}.ohx .mc-color-7{color:#AAA}
.ohx .mc-color-8{color:#555}.ohx .mc-color-9{color:#55F}.ohx .mc-color-a{color:#5F5}.ohx .mc-color-b{color:#5FF}
.ohx .mc-color-c{color:#F55}.ohx .mc-color-d{color:#F5F}.ohx .mc-color-e{color:#FF5}.ohx .mc-color-f{color:#FFF}
.ohx .obfuscated{filter:blur(1.5px)}
.ohx .bold{font-weight:700}
.ohx .strike{text-decoration:line-through}
.ohx .underlined{text-decoration:underline}
.ohx .strike.underlined{text-decoration:line-through underline}
.ohx .italic{font-style:italic}
/* MOTD editor */
.ohx .motd-stack{display:grid;gap:.9rem}
.ohx .motd-colours{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,135px),1fr))}
.ohx .motd-colours small{display:flex;align-items:center;gap:6px;margin-top:3px;font-weight:400}
.ohx .motd-swatch{width:12px;height:12px;flex:none;border:1px solid #aaa;border-radius:2px}
.ohx .motd-hex input[type=color]{width:48px;height:38px;padding:4px;cursor:pointer;border:1px solid var(--ohx-line);background:var(--ohx-field);border-radius:8px}
.ohx .motd-output textarea{margin:.3rem 0 .45rem}
.ohx .motd-entry{display:grid;grid-template-columns:48px minmax(0,1fr);gap:9px;margin-top:.8rem;padding:8px;border:1px solid #555;background:#141414;color:#aaa;font:500 .875rem/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-shadow:1px 1px #000}
.ohx .motd-entry>div{min-width:0}
.ohx .motd-icon{display:grid;place-items:center;align-self:start;aspect-ratio:1;background:#343434;color:#bbb;font-size:1.3rem}
.ohx .motd-name{color:#fff}
.ohx .motd-preview-line{min-height:1.3em;overflow:hidden;white-space:pre;text-overflow:ellipsis}
.ohx .motd-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
