/* mc-manager: plain, large, works on a phone; light and dark follow the device. No external files. */
:root {
  --bg: #f4f6f2; --card: #ffffff; --text: #1d2420; --muted: #5a665f; --line: #d5dcd6;
  --accent: #2f6d3a; --accent-text: #ffffff; --no: #a33a2c; --no-text: #ffffff;
  --btn: #e6ebe7; --btn-text: #1d2420; --ok-bg: #e2f2e4; --bad-bg: #fbe5e1;
  --run: #2f7d3f; --stop: #8a8f8b; --wait: #b07a12;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141816; --card: #1e2421; --text: #e8ece9; --muted: #a3ada7; --line: #36403b;
    --accent: #4f9c5c; --accent-text: #0d130f; --no: #e0705f; --no-text: #1a0d0a;
    --btn: #2c3430; --btn-text: #e8ece9; --ok-bg: #1f3524; --bad-bg: #3d211c;
    --run: #63b973; --stop: #9aa29d; --wait: #e0ad47;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
.top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.top .brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--text); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
h1 { font-size: 1.6rem; margin: 8px 0 12px; }
h2 { font-size: 1.3rem; margin: 0 0 8px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin: 0 0 16px; color: var(--text); }
.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.grid .card { margin: 0; text-decoration: none; }
.server .go { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--accent); }
.state { font-weight: 700; margin: 4px 0; }
.state::before { content: ""; display: inline-block; width: 0.75em; height: 0.75em; border-radius: 50%;
  margin-right: 0.45em; background: var(--stop); vertical-align: 0.02em; }
.state-running .state::before, p.state-running::before { background: var(--run); }
.state-starting .state::before, p.state-starting::before,
.state-paused .state::before, p.state-paused::before { background: var(--wait); }
.big-text { font-size: 1.25rem; }
.small { font-size: 0.9rem; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
input[type=text], input:not([type]), input[type=password] { font: inherit; padding: 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); width: 100%; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
legend { font-weight: 600; padding: 0 4px; }
label.check { display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 400; padding: 6px 0; }
label.check input { width: 1.4em; height: 1.4em; }
button, .button { font: inherit; cursor: pointer; border: 0; border-radius: 12px; background: var(--btn);
  color: var(--btn-text); padding: 10px 16px; text-decoration: none; display: inline-block; text-align: center; }
.big { min-height: 56px; padding: 14px 22px; font-size: 1.15rem; font-weight: 700; min-width: 140px; }
.yes { background: var(--accent); color: var(--accent-text); }
.no { background: var(--no); color: var(--no-text); }
.small-btn { padding: 8px 12px; font-size: 0.95rem; }
button.link { background: none; color: var(--accent); padding: 0; text-decoration: underline; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.inline { display: inline; }
.buttons form.inline { display: contents; }
.note { padding: 12px 14px; border-radius: 10px; }
.ok { background: var(--ok-bg); }
.bad { background: var(--bad-bg); }
.names { list-style: none; padding: 0; margin: 0 0 16px; }
.names li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--line); word-break: break-all; }
.add { border-top: 1px solid var(--line); padding-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll { overflow-x: auto; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.8rem; color: var(--no); }
code.pw { font-size: 1.4rem; padding: 4px 8px; background: var(--bg); border-radius: 8px; user-select: all; }
@media (max-width: 560px) {
  .big { width: 100%; }
  .buttons { flex-direction: column; }
  table thead { display: none; }
  table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  table td { display: block; border: 0; padding: 2px 0; }
}
