/* Gantry — control-room look: concrete grey surfaces, cobalt actions, dark console. */
:root {
  --bg: #e9ebee;
  --surface: #f8f9fa;
  --raised: #ffffff;
  --line: #d3d7dd;
  --line-strong: #b9bfc8;
  --ink: #15181d;
  --ink-2: #4a525e;
  --ink-3: #78818e;
  --cobalt: #2b4de0;
  --cobalt-ink: #1c36b3;
  --cobalt-wash: #e4e9fd;
  --ok: #17803d;
  --ok-wash: #def3e4;
  --warn: #9a5b00;
  --warn-wash: #fdebc8;
  --bad: #b3261e;
  --bad-wash: #fbdedb;
  --idle: #5b6470;
  --idle-wash: #e0e3e7;
  --console-bg: #11141a;
  --console-ink: #d6dbe3;
  --radius: 6px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 24px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0; }
a { color: var(--cobalt-ink); }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side {
  background: #14171c;
  color: #c9cfd8;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand svg { flex: none; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius);
  color: #c9cfd8; text-decoration: none; font-weight: 500;
}
.nav a:hover { background: #20252d; color: #fff; }
.nav a.active { background: #232a38; color: #fff; box-shadow: inset 3px 0 0 var(--cobalt); }
.nav-ico { width: 18px; text-align: center; opacity: .85; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 10px; font-size: 12px; color: #8b94a1; }
.dock { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5b6470; flex: none; }
.dot.on { background: #3ecf72; }
.dot.off { background: #ef6a5e; }
.linkbtn { background: none; border: 0; padding: 0; color: #c9cfd8; font: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: #fff; }
.fs-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.fs-btn .fs-lbl { text-decoration: underline; text-underline-offset: 3px; }
.upd-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.upd-btn[hidden] { display: none; }
.upd-btn .upd-lbl { text-decoration: underline; text-underline-offset: 3px; }
.upd-btn:disabled { opacity: .6; cursor: default; }
.upd-btn.ready { color: #7fb0ff; font-weight: 600; }
.upd-btn.ready::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7fb0ff; }

main { padding: calc(28px + env(safe-area-inset-top, 0px)) max(32px, env(safe-area-inset-right, 0px)) calc(56px + env(safe-area-inset-bottom, 0px)) 32px; min-width: 0; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-2); margin-top: 4px; }
.crumb { color: var(--ink-3); font-size: 13px; margin-bottom: 6px; }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink);
  font: 600 13px var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: #f0f2f5; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--cobalt-ink); }
.btn.danger { color: var(--bad); border-color: #e3b1ac; }
.btn.danger:hover:not(:disabled) { background: var(--bad-wash); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.small { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover:not(:disabled) { background: #e3e6ea; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--raised); color: var(--ink); font: 14px var(--sans);
}
textarea { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; font-family: var(--mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cobalt); outline-offset: -1px; border-color: var(--cobalt); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--cobalt); margin: 0; }

.field { display: grid; gap: 5px; align-content: start; }
.field > label, .field > .lab { font-weight: 600; font-size: 13px; }
.help { color: var(--ink-3); font-size: 12.5px; }
.check { display: flex; align-items: flex-start; gap: 9px; }
.check label { font-weight: 600; font-size: 13px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.panel-pad { padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-section { margin-top: 24px; }
.form-section > h2 { margin-bottom: 12px; }

/* ---------- status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 650; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.running { color: var(--ok); background: var(--ok-wash); }
.pill.stopped, .pill.missing { color: var(--idle); background: var(--idle-wash); }
.pill.installing, .pill.restarting { color: var(--warn); background: var(--warn-wash); }
.pill.installing::before, .pill.restarting::before { animation: pulse 1.1s ease-in-out infinite; }
.pill.error, .pill.crashed, .pill.docker_offline { color: var(--bad); background: var(--bad-wash); }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pill::before { animation: none !important; } }

/* ---------- dashboard ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 14px; align-content: start; }
.card:hover { border-color: var(--line-strong); }
.card-top { display: flex; gap: 12px; align-items: flex-start; }
.card-ico { width: 40px; height: 40px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; font-size: 22px; flex: none; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .meta { color: var(--ink-3); font-size: 12.5px; }
.card-ports { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--raised); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; }
.card-players { margin-left: auto; font-family: var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.card-players strong { color: var(--ink); font-size: 14px; }
.card-msg { font-size: 12.5px; color: var(--warn); }
.card-msg.err { color: var(--bad); }
.empty { text-align: center; padding: 56px 20px; }
.empty h2 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 20px; }

.banner { border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; background: var(--bad-wash); color: #7a1912; border: 1px solid #efb8b2; }
.banner.info { background: var(--cobalt-wash); color: #1c2f8f; border-color: #bcc8f7; }

/* ---------- template picker ---------- */
.search { max-width: 340px; }
.tpl-group { margin-top: 22px; }
.tpl-group h2 { margin-bottom: 10px; color: var(--ink-2); font-size: 13px; font-weight: 650; }
.tpl-btn { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.tpl-btn:hover { border-color: var(--cobalt); box-shadow: 0 0 0 1px var(--cobalt); }
.tpl-btn p { color: var(--ink-2); font-size: 13px; }

/* ---------- server page ---------- */
.server-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.server-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.connect { margin-top: 6px; color: var(--ink-2); font-size: 13px; }
.connect code { background: var(--raised); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; user-select: all; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-strong); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--cobalt-ink); border-bottom-color: var(--cobalt); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.stat .k { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.stat .v { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }
.stat .v small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.spark { display: block; width: 100%; height: 28px; margin-top: 6px; }
.spark polyline { fill: none; stroke: var(--cobalt); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark path { fill: var(--cobalt-wash); stroke: none; }

.console { background: var(--console-bg); border-radius: 8px; overflow: hidden; border: 1px solid #0b0d11; }
.console-log {
  /* Fill the rest of the window below the header, tabs and stats. */
  margin: 0; height: calc(100vh - 400px); height: calc(100dvh - 400px); min-height: 300px; overflow: auto; padding: 14px 16px;
  color: var(--console-ink); font: 12.5px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word;
}
.console-in { display: flex; align-items: center; gap: 10px; border-top: 1px solid #262b34; padding: 0 14px; background: #0d1015; }
.console-in span { color: #6f8cff; font-family: var(--mono); }
.console-in input { background: transparent; border: 0; color: #fff; font: 13px var(--mono); height: 42px; outline: none !important; }
.console-in input::placeholder { color: #5d6674; }

/* ---------- player list ---------- */
.console-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.console-col { min-width: 0; }
.pl-panel { position: sticky; top: 16px; margin: 0 !important; overflow: hidden; }
.pl-panel .panel-head { padding: 12px 16px; }
.pl-online { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pl-online strong { font-size: 18px; color: var(--ink); }
.pl-list { max-height: calc(100vh - 300px); max-height: calc(100dvh - 300px); min-height: 120px; overflow: auto; }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.pl-row:last-child { border-bottom: 0; }
.pl-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-time { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pl-av { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.pl-foot { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); background: #f0f2f5; flex-wrap: wrap; }
@media (max-width: 1100px) { .console-split { grid-template-columns: 1fr; } .pl-panel { position: static; } .pl-list { max-height: 360px; } }

/* ---------- mods & plugins ---------- */
.addon-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.addon-restart { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.addon-ico { width: 40px; height: 40px; border-radius: 8px; flex: none; object-fit: cover; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; }
.addon-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.addon-row:last-of-type { border-bottom: 0; }
.addon-main { flex: 1; min-width: 160px; }
.addon-name { font-weight: 650; }
.addon-row .meta { color: var(--ink-3); font-size: 12px; overflow-wrap: anywhere; }
.browse-title { margin-right: auto; }
.addon-filters { flex: 1; justify-content: flex-end; }
.addon-filters .search { max-width: 300px; }
.addon-card { grid-template-rows: auto 1fr auto; }
.addon-card h3 a { color: var(--ink); text-decoration: none; }
.addon-card h3 a:hover { text-decoration: underline; }
.addon-desc { color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.addon-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.addon-foot .card-ports { font-family: var(--sans); font-size: 12px; }
/* CS2 maps */
.map-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.map-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.map-row .meta { color: var(--ink-3); font-size: 12px; }
.map-card { grid-template-rows: auto auto auto 1fr; }
.map-card .meta { color: var(--ink-3); font-size: 12px; }
.map-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); }
@media (max-width: 560px) {
  .addon-filters { flex-basis: 100%; }
  .addon-filters .search { max-width: none; flex: 1; }
}

/* ---------- files ---------- */
.files-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-family: var(--mono); font-size: 13px; }
.path button { background: none; border: 0; font: inherit; color: var(--cobalt-ink); cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.path button:hover { background: var(--cobalt-wash); }
.path .sep { color: var(--ink-3); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 8px 16px; border-bottom: 1px solid var(--line); }
td { padding: 8px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f0f2f5; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
td.act { text-align: right; white-space: nowrap; }
.fname { background: none; border: 0; padding: 0; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; text-align: left; }
.fname:hover { color: var(--cobalt-ink); text-decoration: underline; }
.fname .ico { width: 18px; text-align: center; }
.editor { width: 100%; min-height: calc(100vh - 360px); min-height: calc(100dvh - 360px); border: 0; border-radius: 0; background: #fbfcfd; font: 13px/1.55 var(--mono); padding: 14px 16px; tab-size: 2; white-space: pre; overflow: auto; }
.dropzone { outline: 2px dashed var(--cobalt); outline-offset: -6px; background: var(--cobalt-wash); }
.muted { color: var(--ink-3); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.auth-box { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: grid; gap: 16px; }
.auth-box .brand { color: var(--ink); padding: 0; }
.err-text { color: var(--bad); font-size: 13px; min-height: 18px; }

/* ---------- dialog / toast ---------- */
dialog { border: 1px solid var(--line-strong); border-radius: 10px; padding: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); color: var(--ink); box-shadow: 0 18px 50px rgba(10, 14, 22, .28); }
dialog::backdrop { background: rgba(14, 18, 26, .5); }
.dlg { padding: 20px; display: grid; gap: 14px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; }
#toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; max-width: 360px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.toast.bad { background: var(--bad); }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; word-break: break-all; }
.danger-zone { border-color: #e3b1ac; }
.danger-zone .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; flex-wrap: wrap; }
.danger-zone .row + .row { border-top: 1px solid #efd3d0; }

/* ---------- responsive ---------- */
/* Tablets and phones: top bar + bottom tab bar. */
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side {
    position: sticky; top: 0; z-index: 20; height: auto;
    flex-direction: row; align-items: center; gap: 6px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
  }
  .brand { padding: 4px; font-size: 16px; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    background: #14171c; border-top: 1px solid #262b34;
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  }
  .nav a { flex-direction: column; justify-content: center; gap: 2px; padding: 6px 4px; font-size: 11.5px; min-height: 48px; }
  .nav-ico { width: auto; font-size: 18px; line-height: 1; }
  .nav a.active { box-shadow: inset 0 2px 0 var(--cobalt); }
  .side-foot { margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 16px; }
  .side-foot .dock span:not(.dot), .fs-lbl, .upd-lbl, .who-name { display: none; }
  .fs-btn, .upd-btn { padding: 8px; margin: -8px; }
  main { padding: 18px max(14px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
  #toasts { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .toast { max-width: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dd + dt { margin-top: 6px; }
  .col-hide { display: none; }
  .console-log { height: 55vh; height: 55dvh; min-height: 260px; }
  .editor { min-height: 60vh; min-height: 60dvh; }
  /* 16px stops iOS Safari from zooming in when a field is focused. */
  input[type=text], input[type=password], input[type=number], input[type=search], select, textarea, .console-in input, .editor { font-size: 16px; }
}

/* Phones */
@media (max-width: 560px) {
  h1 { font-size: 21px; }
  .page-head { margin-bottom: 16px; }
  .page-head > .btn, .search { width: 100%; max-width: none; }
  .server-head { margin-bottom: 14px; }
  .server-head > .btn-row { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .server-head > .btn-row .btn { padding: 0 6px; }
  .stats { gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat .v { font-size: 17px; }
  .panel-pad { padding: 16px; }
  .panel-head { padding: 12px 16px; flex-wrap: wrap; }
  .files-bar { padding: 10px 12px; }
  th, td { padding: 8px 10px; }
  td.act { white-space: normal; }
  td.act .btn { margin: 2px 0 2px 2px; }
  .fname { overflow-wrap: anywhere; }
  td.mono { word-break: break-all; }
  .danger-zone .row { padding: 14px 16px; }
  .danger-zone .row .btn { width: 100%; }
  .dlg { padding: 16px; }
  .dlg-foot .btn { flex: 1; }
  .console-log { padding: 10px 12px; font-size: 12px; }
}

/* Bigger touch targets on touch screens */
@media (pointer: coarse) {
  .btn { height: 40px; }
  .btn.small { height: 34px; padding: 0 12px; }
  input[type=text], input[type=password], input[type=number], input[type=search], select { height: 42px; }
  input[type=checkbox] { width: 20px; height: 20px; }
  .tabs a { padding: 11px 14px; }
  .path button { padding: 6px 6px; }
}
