/* Minecraft-style UI. All textures are inline SVG (no external files). Not an official Minecraft product. */
:root {
  --font: ui-monospace, "Cascadia Mono", "Lucida Console", Menlo, Consolas, monospace;
  --gui: #c6c6c6;
  --ink: #373737;
  --muted: #666666;
  --green: #4f7a28;
  --focus: #55ff55;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 1rem/1.5 var(--font); color: var(--ink);
  background: linear-gradient(rgba(0,0,0,.52), rgba(0,0,0,.52)), url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2264%22%20height=%2264%22%20shape-rendering=%22crispEdges%22%3E%3Cpath%20fill=%22%236b4a30%22%20d=%22M0%200h8v8h-8zM0%208h8v8h-8zM48%2032h8v8h-8zM32%2040h8v8h-8zM40%2048h8v8h-8z%22/%3E%3Cpath%20fill=%22%237a5538%22%20d=%22M8%200h8v8h-8zM32%208h8v8h-8zM16%2016h8v8h-8zM8%2024h8v8h-8zM16%2032h8v8h-8zM40%2032h8v8h-8zM0%2040h8v8h-8zM56%2040h8v8h-8zM32%2048h8v8h-8zM40%2056h8v8h-8z%22/%3E%3Cpath%20fill=%22%2394694a%22%20d=%22M16%200h8v8h-8zM56%208h8v8h-8zM0%2016h8v8h-8zM40%2016h8v8h-8zM0%2032h8v8h-8zM56%2032h8v8h-8zM48%2056h8v8h-8z%22/%3E%3Cpath%20fill=%22%237d5a3d%22%20d=%22M24%200h8v8h-8zM16%2024h8v8h-8zM24%2024h8v8h-8zM48%2040h8v8h-8zM24%2048h8v8h-8zM0%2056h8v8h-8zM56%2056h8v8h-8z%22/%3E%3Cpath%20fill=%22%23866043%22%20d=%22M32%200h8v8h-8zM40%200h8v8h-8zM56%200h8v8h-8zM16%208h8v8h-8zM40%208h8v8h-8zM48%208h8v8h-8zM8%2016h8v8h-8zM24%2016h8v8h-8zM48%2016h8v8h-8zM0%2024h8v8h-8zM40%2024h8v8h-8zM8%2032h8v8h-8zM24%2032h8v8h-8zM16%2040h8v8h-8zM0%2048h8v8h-8zM48%2048h8v8h-8zM8%2056h8v8h-8zM24%2056h8v8h-8z%22/%3E%3Cpath%20fill=%22%235e402a%22%20d=%22M48%200h8v8h-8zM8%208h8v8h-8zM24%208h8v8h-8zM32%2016h8v8h-8zM56%2016h8v8h-8zM32%2024h8v8h-8zM48%2024h8v8h-8zM56%2024h8v8h-8zM32%2032h8v8h-8zM8%2040h8v8h-8zM24%2040h8v8h-8zM40%2040h8v8h-8zM8%2048h8v8h-8zM16%2048h8v8h-8zM56%2048h8v8h-8zM16%2056h8v8h-8zM32%2056h8v8h-8z%22/%3E%3C/svg%3E") 0 0 / 64px 64px;
}
a { color: #2b4fb8; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mono { font-family: var(--font); }
.sr { position: absolute; left: -9999px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- top bar (stone) */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .7rem 1.25rem;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2264%22%20height=%2264%22%20shape-rendering=%22crispEdges%22%3E%3Cpath%20fill=%22%23747474%22%20d=%22M0%200h8v8h-8zM24%200h8v8h-8zM48%208h8v8h-8zM56%208h8v8h-8zM40%2016h8v8h-8zM48%2016h8v8h-8zM56%2016h8v8h-8zM32%2024h8v8h-8zM8%2040h8v8h-8zM40%2040h8v8h-8zM56%2040h8v8h-8zM32%2056h8v8h-8z%22/%3E%3Cpath%20fill=%22%238f8f8f%22%20d=%22M8%200h8v8h-8zM16%200h8v8h-8zM40%200h8v8h-8zM56%200h8v8h-8zM8%208h8v8h-8zM40%208h8v8h-8zM8%2016h8v8h-8zM16%2016h8v8h-8zM0%2024h8v8h-8zM40%2024h8v8h-8zM24%2032h8v8h-8zM56%2032h8v8h-8zM32%2048h8v8h-8zM48%2048h8v8h-8zM0%2056h8v8h-8zM8%2056h8v8h-8zM24%2056h8v8h-8z%22/%3E%3Cpath%20fill=%22%236a6a6a%22%20d=%22M32%200h8v8h-8zM32%208h8v8h-8zM56%2024h8v8h-8zM8%2032h8v8h-8zM16%2040h8v8h-8zM0%2048h8v8h-8zM16%2048h8v8h-8zM56%2048h8v8h-8zM40%2056h8v8h-8zM56%2056h8v8h-8z%22/%3E%3Cpath%20fill=%22%23868686%22%20d=%22M48%200h8v8h-8zM24%208h8v8h-8zM0%2016h8v8h-8zM24%2016h8v8h-8zM32%2016h8v8h-8zM8%2024h8v8h-8zM16%2032h8v8h-8zM32%2032h8v8h-8zM40%2032h8v8h-8zM48%2032h8v8h-8zM0%2040h8v8h-8zM48%2040h8v8h-8zM8%2048h8v8h-8zM24%2048h8v8h-8zM40%2048h8v8h-8zM16%2056h8v8h-8z%22/%3E%3Cpath%20fill=%22%237d7d7d%22%20d=%22M0%208h8v8h-8zM16%208h8v8h-8zM16%2024h8v8h-8zM24%2024h8v8h-8zM48%2024h8v8h-8zM0%2032h8v8h-8zM24%2040h8v8h-8zM32%2040h8v8h-8zM48%2056h8v8h-8z%22/%3E%3C/svg%3E") 0 0 / 64px 64px;
  border-bottom: 4px solid #000; box-shadow: inset 0 -4px 0 rgba(255,255,255,.12);
}
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 700; text-shadow: 2px 2px 0 #3f3f3f; }
.logo { width: 26px; height: 26px; background: linear-gradient(#5b8731 34%, #7b5636 34%); box-shadow: inset 3px 3px 0 rgba(255,255,255,.25), inset -3px -3px 0 rgba(0,0,0,.3), 0 0 0 2px #000; }
nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
nav a, nav button.link { color: #e8e8e8; text-decoration: none; text-shadow: 2px 2px 0 #3f3f3f; font-weight: 700; padding: .1rem 0; border-bottom: 3px solid transparent; }
nav a:hover, nav button.link:hover { color: #fff; }
nav a.on { color: #fff; border-bottom-color: var(--focus); }
nav form { margin: 0; }
.badge { display: inline-block; min-width: 1.4rem; padding: 0 .35rem; margin-left: .35rem; text-align: center; font-size: .75rem; color: #fff; background: #b02a1f; box-shadow: 0 0 0 2px #000; text-shadow: none; }

main { flex: 1; padding: 2rem 1rem 3rem; }
.page { margin: 0 auto; }
.narrow { max-width: 46rem; }
.wide { max-width: 64rem; }
footer { padding: 1rem; text-align: center; font-size: .75rem; color: #bdbdbd; text-shadow: 1px 1px 0 #000; }

.title { margin: 0 0 .35rem; font-size: 2rem; line-height: 1.15; color: #fff; text-shadow: 3px 3px 0 #3f3f3f; letter-spacing: .02em; }
.sub { margin: 0 0 1.5rem; color: #e6e6e6; text-shadow: 2px 2px 0 rgba(0,0,0,.6); max-width: 38rem; }
h2 { margin: 0 0 .75rem; font-size: 1.15rem; }

/* ---------- GUI panel */
.panel {
  background: var(--gui); color: var(--ink); padding: 1.25rem; margin: 0 0 1.5rem;
  box-shadow: inset 4px 4px 0 #fff, inset -4px -4px 0 #555, 0 0 0 4px #000;
}
.panel > :last-child { margin-bottom: 0; }
.small { font-size: .8rem; color: var(--muted); }
.empty { padding: 1.25rem .25rem; color: var(--muted); }

/* ---------- forms */
label { display: block; font-weight: 700; margin: 1.1rem 0 .35rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=password], textarea {
  width: 100%; padding: .6rem .7rem; font: inherit; color: #fff; background: #000;
  border: 2px solid #a0a0a0; border-radius: 0;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus { border-color: #fff; }
::placeholder { color: #8a8a8a; }
textarea { resize: vertical; min-height: 6rem; }
.counter { text-align: right; font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.counter.low { color: #9b3126; }
.hint { font-size: .8rem; color: var(--muted); margin: .25rem 0 0; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.steps { counter-reset: step; }
.step { margin: 0 0 1.4rem; }
legend { padding: 0; font-weight: 700; font-size: 1.05rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
legend::before, .step > .lg::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; font-size: .9rem; color: #fff; background: var(--green);
  box-shadow: inset 2px 2px 0 #8cc04e, inset -2px -2px 0 #27410f, 0 0 0 2px #000; text-shadow: 1px 1px 0 #000;
}
.step > .lg { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; margin-bottom: .6rem; }
.step label:first-of-type { margin-top: 0; }

/* ---------- buttons */
button, .btn {
  font: 700 .95rem var(--font); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; text-decoration: none;
  background: #7d7d7d; border: 0; border-radius: 0; padding: .6rem 1.1rem; cursor: pointer; display: inline-block;
  box-shadow: inset 3px 3px 0 #b9b9b9, inset -3px -3px 0 #3c3c3c, 0 0 0 2px #000;
}
button:hover, .btn:hover { background: #6b72a8; box-shadow: inset 3px 3px 0 #a9afe0, inset -3px -3px 0 #2b2f55, 0 0 0 2px #fff; }
button:active, .btn:active { box-shadow: inset 3px 3px 0 #3c3c3c, inset -3px -3px 0 #b9b9b9, 0 0 0 2px #000; }
button.primary, .btn.primary { background: #4f7a28; box-shadow: inset 3px 3px 0 #8cc04e, inset -3px -3px 0 #27410f, 0 0 0 2px #000; }
button.primary:hover, .btn.primary:hover { background: #5f9232; box-shadow: inset 3px 3px 0 #a5dd6b, inset -3px -3px 0 #27410f, 0 0 0 2px #fff; }
button.danger { background: #9b3126; box-shadow: inset 3px 3px 0 #d9786d, inset -3px -3px 0 #4d150f, 0 0 0 2px #000; }
button.danger:hover { background: #b53a2d; box-shadow: inset 3px 3px 0 #ee9b91, inset -3px -3px 0 #4d150f, 0 0 0 2px #fff; }
button.small, .btn.small { padding: .35rem .75rem; font-size: .85rem; }
button.link { background: none; box-shadow: none; padding: 0; font-weight: 700; }
button.link:hover { background: none; box-shadow: none; }
button[disabled] { opacity: .6; cursor: wait; }
.actions-row { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; }

/* ---------- alerts */
.alert { padding: .7rem .9rem; margin: 0 0 1.1rem; background: #e6e6e6; box-shadow: inset 4px 0 0 #777, 0 0 0 2px #000; }
.alert p { margin: 0; }
.alert p + p { margin-top: .35rem; }
.alert.ok { background: #d9efc7; box-shadow: inset 4px 0 0 var(--green), 0 0 0 2px #000; }
.alert.bad { background: #f3cfca; box-shadow: inset 4px 0 0 #9b3126, 0 0 0 2px #000; }

/* ---------- server icons + picker */
.sicon {
  --c: #8a8a8a; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px;
  font: 700 1.3rem var(--font); color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.55);
  background: var(--c); box-shadow: inset 5px 5px 0 rgba(255,255,255,.28), inset -5px -5px 0 rgba(0,0,0,.28), 0 0 0 2px #000;
}
.sicon.sm { width: 28px; height: 28px; font-size: .9rem; box-shadow: inset 3px 3px 0 rgba(255,255,255,.28), inset -3px -3px 0 rgba(0,0,0,.28), 0 0 0 2px #000; }
.sicon.lg { width: 56px; height: 56px; font-size: 1.6rem; }
.c-grass { --c: #5b8731; } .c-emerald { --c: #17a54b; } .c-diamond { --c: #35b9b2; } .c-lapis { --c: #2b4fa8; }
.c-amethyst { --c: #8a5cc9; } .c-redstone { --c: #c02a1f; } .c-gold { --c: #d9a820; } .c-stone { --c: #858585; }

.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; padding: 3px; }
.srv { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.srv input { position: absolute; opacity: 0; inset: 0; }
.srv-card { display: flex; gap: .8rem; align-items: center; height: 100%; padding: .7rem; background: #d9d9d9; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #8b8b8b, 0 0 0 2px #000; }
.srv:hover .srv-card { background: #e6e6e6; }
.srv input:checked + .srv-card { background: #bfe39b; box-shadow: inset 3px 3px 0 #e4f7cf, inset -3px -3px 0 #6f9a43, 0 0 0 2px #000, 0 0 0 5px #fff; }
.srv input:focus-visible + .srv-card { outline: 3px solid var(--focus); outline-offset: 4px; }
.srv-text { display: flex; flex-direction: column; min-width: 0; }
.srv-text strong { overflow-wrap: anywhere; }
.srv-text small { color: #4d4d4d; overflow-wrap: anywhere; }

.swatches { display: flex; flex-wrap: wrap; gap: .75rem; padding: 3px; }
.sw { position: relative; margin: 0; cursor: pointer; }
.sw input { position: absolute; opacity: 0; inset: 0; }
.sw .sicon { display: grid; }
.sw input:checked + .sicon { box-shadow: inset 5px 5px 0 rgba(255,255,255,.28), inset -5px -5px 0 rgba(0,0,0,.28), 0 0 0 2px #000, 0 0 0 5px #fff; }
.sw input:focus-visible + .sicon { outline: 3px solid var(--focus); outline-offset: 5px; }

/* ---------- status pills */
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .12rem .55rem; color: #fff; background: #7d7d7d; text-shadow: 1px 1px 0 rgba(0,0,0,.6); box-shadow: 0 0 0 2px #000; white-space: nowrap; }
.pill.open { background: #4f7a28; } .pill.accepted { background: #2a9d97; } .pill.denied { background: #b02a1f; } .pill.closed { background: #6e6e6e; }
.pill.off { background: #6e6e6e; }

/* ---------- ticket header */
.head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.head h1 { margin: 0; font-size: 1.4rem; line-height: 1.2; overflow-wrap: anywhere; }
.head .meta-line { color: var(--muted); font-size: .85rem; }
.head .grow { flex: 1; min-width: 0; }

/* ---------- chat */
.thread {
  display: flex; flex-direction: column; gap: .9rem; margin: 1rem 0; padding: 1rem;
  background: #8b8b8b; box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff; min-height: 8rem;
}
.msg { display: flex; gap: .6rem; align-items: flex-start; max-width: 92%; }
.msg.staff, .msg.note { align-self: flex-end; flex-direction: row-reverse; }
.av { width: 36px; height: 36px; flex: none; image-rendering: pixelated; background-size: 100% 100%; box-shadow: 0 0 0 2px #000; }
.msg.player .av { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%208%208%22%20shape-rendering=%22crispEdges%22%3E%3Cpath%20fill=%22%234a3220%22%20d=%22M0%200h1v1h-1zM1%200h1v1h-1zM2%200h1v1h-1zM3%200h1v1h-1zM4%200h1v1h-1zM5%200h1v1h-1zM6%200h1v1h-1zM7%200h1v1h-1zM0%201h1v1h-1zM1%201h1v1h-1zM2%201h1v1h-1zM3%201h1v1h-1zM4%201h1v1h-1zM5%201h1v1h-1zM6%201h1v1h-1zM7%201h1v1h-1zM0%202h1v1h-1zM7%202h1v1h-1z%22/%3E%3Cpath%20fill=%22%23c08a62%22%20d=%22M1%202h1v1h-1zM2%202h1v1h-1zM3%202h1v1h-1zM4%202h1v1h-1zM5%202h1v1h-1zM6%202h1v1h-1zM0%203h1v1h-1zM1%203h1v1h-1zM2%203h1v1h-1zM3%203h1v1h-1zM4%203h1v1h-1zM5%203h1v1h-1zM6%203h1v1h-1zM7%203h1v1h-1zM0%204h1v1h-1zM3%204h1v1h-1zM4%204h1v1h-1zM7%204h1v1h-1zM0%205h1v1h-1zM1%205h1v1h-1zM2%205h1v1h-1zM5%205h1v1h-1zM6%205h1v1h-1zM7%205h1v1h-1zM0%206h1v1h-1zM1%206h1v1h-1zM6%206h1v1h-1zM7%206h1v1h-1zM0%207h1v1h-1zM1%207h1v1h-1zM2%207h1v1h-1zM3%207h1v1h-1zM4%207h1v1h-1zM5%207h1v1h-1zM6%207h1v1h-1zM7%207h1v1h-1z%22/%3E%3Cpath%20fill=%22%23ffffff%22%20d=%22M1%204h1v1h-1zM6%204h1v1h-1z%22/%3E%3Cpath%20fill=%22%233a3fb5%22%20d=%22M2%204h1v1h-1zM5%204h1v1h-1z%22/%3E%3Cpath%20fill=%22%239a6b47%22%20d=%22M3%205h1v1h-1zM4%205h1v1h-1z%22/%3E%3Cpath%20fill=%22%237a4630%22%20d=%22M2%206h1v1h-1zM3%206h1v1h-1zM4%206h1v1h-1zM5%206h1v1h-1z%22/%3E%3C/svg%3E"); }
.msg.staff .av, .msg.note .av { background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%208%208%22%20shape-rendering=%22crispEdges%22%3E%3Cpath%20fill=%22%235aa83c%22%20d=%22M0%200h1v1h-1zM1%200h1v1h-1zM2%200h1v1h-1zM3%200h1v1h-1zM4%200h1v1h-1zM5%200h1v1h-1zM6%200h1v1h-1zM7%200h1v1h-1zM0%201h1v1h-1zM2%201h1v1h-1zM3%201h1v1h-1zM4%201h1v1h-1zM5%201h1v1h-1zM7%201h1v1h-1zM0%202h1v1h-1zM3%202h1v1h-1zM4%202h1v1h-1zM7%202h1v1h-1zM0%203h1v1h-1zM3%203h1v1h-1zM4%203h1v1h-1zM7%203h1v1h-1zM0%204h1v1h-1zM1%204h1v1h-1zM2%204h1v1h-1zM5%204h1v1h-1zM6%204h1v1h-1zM7%204h1v1h-1zM0%205h1v1h-1zM1%205h1v1h-1zM6%205h1v1h-1zM7%205h1v1h-1zM0%206h1v1h-1zM1%206h1v1h-1zM6%206h1v1h-1zM7%206h1v1h-1zM0%207h1v1h-1zM1%207h1v1h-1zM3%207h1v1h-1zM4%207h1v1h-1zM6%207h1v1h-1zM7%207h1v1h-1z%22/%3E%3Cpath%20fill=%22%233f7f28%22%20d=%22M1%201h1v1h-1zM6%201h1v1h-1z%22/%3E%3Cpath%20fill=%22%230b0b0b%22%20d=%22M1%202h1v1h-1zM2%202h1v1h-1zM5%202h1v1h-1zM6%202h1v1h-1zM1%203h1v1h-1zM2%203h1v1h-1zM5%203h1v1h-1zM6%203h1v1h-1zM3%204h1v1h-1zM4%204h1v1h-1zM2%205h1v1h-1zM3%205h1v1h-1zM4%205h1v1h-1zM5%205h1v1h-1zM2%206h1v1h-1zM3%206h1v1h-1zM4%206h1v1h-1zM5%206h1v1h-1zM2%207h1v1h-1zM5%207h1v1h-1z%22/%3E%3C/svg%3E"); }
.bubble { min-width: 0; padding: .45rem .75rem .55rem; }
.msg.player .bubble { background: #ececec; color: #2b2b2b; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #9a9a9a, 0 0 0 2px #000; }
.msg.staff .bubble { background: #100010; color: #fff; box-shadow: inset 0 0 0 2px #2a0a5e, 0 0 0 2px #000; }
.msg.note .bubble { background: #b8945f; color: #2b1d0a; box-shadow: inset 2px 2px 0 #d9b97f, inset -2px -2px 0 #7a5a2d, 0 0 0 2px #000; }
.meta { display: flex; gap: .7rem; align-items: baseline; font-size: .72rem; margin-bottom: .15rem; opacity: .85; }
.meta .who { font-weight: 700; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.system { align-self: center; max-width: 100%; }
.msg.system .body { font-size: .8rem; color: #fff; text-shadow: 1px 1px 0 #000; text-align: center; }
.msg.system .body::before { content: "— "; } .msg.system .body::after { content: " —"; }
.reply { margin-top: 1rem; }
.reply textarea { margin-bottom: .6rem; min-height: 4.5rem; }
.reply .line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.check { font-weight: 400; margin: 0; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: #4f7a28; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.toolbar form { margin: 0; }

/* ---------- admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 4px; }
.stat { background: var(--gui); padding: .75rem .9rem; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555, 0 0 0 3px #000; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; }
.stat span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.chips { display: flex; gap: .55rem; flex-wrap: wrap; margin: 0 0 1rem; padding: 3px; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; font-size: .85rem; font-weight: 700; color: var(--ink); text-decoration: none; background: #d9d9d9; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8b8b8b, 0 0 0 2px #000; }
.chip:hover { background: #e8e8e8; }
.chip.on { background: #bfe39b; box-shadow: inset 2px 2px 0 #e4f7cf, inset -2px -2px 0 #6f9a43, 0 0 0 2px #000; }

.list { list-style: none; margin: 0; padding: 0; background: #8b8b8b; box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff; }
.list li { margin: 0; }
.list li + li { box-shadow: inset 0 3px 0 -1px rgba(0,0,0,.25); }
.row { display: grid; grid-template-columns: .7rem 9rem 9rem auto 1fr auto; align-items: center; gap: .8rem; padding: .7rem 1rem; color: #1e1e1e; text-decoration: none; }
.row:hover { background: rgba(255,255,255,.22); }
.row .dot { width: .7rem; height: .7rem; background: transparent; }
.row.unread .dot { background: #55ff55; box-shadow: 0 0 0 2px #000; }
.row.unread .name { font-weight: 700; }
.row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .srvtag { display: flex; align-items: center; gap: .45rem; min-width: 0; font-size: .8rem; }
.row .srvtag span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .preview { color: #2d2d2d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row .when { color: #2d2d2d; font-size: .75rem; white-space: nowrap; }
.srv-row { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; color: #1e1e1e; }
.srv-row .grow { flex: 1; min-width: 0; }
.srv-row .grow small { display: block; color: #2d2d2d; overflow-wrap: anywhere; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

@media (max-width: 44rem) {
  .row { grid-template-columns: .7rem 1fr auto; row-gap: .25rem; }
  .row .srvtag, .row .preview, .row .when { grid-column: 2 / 4; }
  .msg { max-width: 100%; }
  .two { grid-template-columns: 1fr; }
  .title { font-size: 1.6rem; }
  .panel { padding: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .btn, .srv-card, .chip { transition: background-color .1s; }
}
