/* Client/UI.luau and Client/Settings.luau: Builder Sans, paper surfaces,
   18 px panel corners, 26 px titles and compact charcoal actions. */
@font-face {
 font-family: "Builder Sans";
 src: url("/assets/fonts/BuilderSans-Regular.otf") format("opentype");
 font-weight: 400;
 font-display: swap;
}
@font-face {
 font-family: "Builder Sans";
 src: url("/assets/fonts/BuilderSans-Medium.otf") format("opentype");
 font-weight: 500;
 font-display: swap;
}
:root {
 --ink: #3c3c3e;
 --soft: #5a5a61;
 --faint: #5f5f66;
 --paper: #f5f5f3;
 --paper2: #ececea;
 --slot: #e4e4e2;
 --line: rgba(0, 0, 0, .12);
 --accent: #5b6b8c;
 --red: #c0504a;
 color-scheme: light;
 font: 15px/1.3 "Builder Sans", system-ui, sans-serif;
 color: var(--ink);
 background: var(--slot);
 -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.layout {
 min-height: 100svh;
 display: grid;
 place-items: center;
 padding: 24px 16px;
}
.window {
 width: min(100%, 440px);
 padding: 22px 24px 24px;
 background: var(--paper);
 border: 1px solid var(--line);
 border-radius: 18px;
 box-shadow: 0 2px 6px #00000008, 0 12px 24px #00000014;
}
.window-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1 { margin: 0; padding-left: 4px; font-size: 26px; line-height: 1.2; font-weight: 500; }
.action {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-width: 90px;
 min-height: 34px;
 padding: 7px 18px;
 border: 0;
 border-radius: 17px;
 background: var(--ink);
 color: #fff;
 font-weight: 500;
}
.action:hover { background: #222224; }
.section-label { margin: 22px 0 10px; color: var(--faint); font-size: 13px; font-weight: 400; }
form { margin: 0; }
.field { padding: 12px 14px; background: var(--paper2); border-radius: 12px; margin-bottom: 4px; }
label { display: block; margin-bottom: 8px; font-size: 15px; }
input, select, textarea {
 width: 100%;
 min-height: 38px;
 padding: 8px 10px;
 background: var(--paper);
 border: 1px solid var(--line);
 border-radius: 8px;
 outline: none;
}
input:focus { border-color: var(--accent); outline: 2px solid #5b6b8c26; outline-offset: 0; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.show {
 position: absolute;
 right: 6px;
 top: 50%;
 transform: translateY(-50%);
 padding: 6px 8px;
 border: 0;
 border-radius: 6px;
 background: none;
 color: var(--soft);
 font-size: 13px;
}
.show:hover { background: var(--slot); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
button:disabled { opacity: .55; cursor: wait; }
.message { color: var(--red); font-size: 13px; margin: 12px 0 0; }
.account-row {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 margin-top: 22px;
 padding: 12px 14px;
 border-radius: 12px;
 background: var(--paper2);
}
.account-row p { margin: 0; font-size: 13px; color: var(--faint); }
#account-name { display: block; color: var(--ink); font-size: 15px; margin-top: 3px; overflow-wrap: anywhere; }
.quiet { flex-shrink: 0; border: 0; border-radius: 8px; background: none; color: var(--soft); padding: 7px 10px; font-size: 13px; }
.quiet:hover { background: var(--slot); }
.empty-state { display: grid; place-items: center; min-height: 124px; border-radius: 12px; background: var(--paper2); }
.empty-state p { margin: 0; padding: 20px; color: var(--faint); font-size: 13px; text-align: center; }
noscript p { color: var(--soft); font-size: 13px; }
@media (max-width: 360px) { .window { padding: 20px 18px; } }
.moderation-window { width: min(100%, 640px); }
.tabs { display: flex; gap: 6px; margin: 18px 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tabs [aria-pressed="true"] { background: var(--paper2); color: var(--ink); }
#refresh { margin-left: auto; }
.filter-row { display: flex; align-items: center; gap: 18px; margin: 12px 0; }
.filter-row label { margin: 0; color: var(--faint); font-size: 13px; }
.filter-row select { width: auto; flex: 1; }
.items { display: grid; gap: 6px; }
.item { background: var(--paper2); border: 0; border-radius: 12px; padding: 14px; text-align: left; overflow-wrap: anywhere; }
button.item:hover { background: var(--slot); }
.item p { margin: 0 0 6px; }
.item p:last-child { margin-bottom: 0; }
.note { font-size: 13px; color: var(--faint); line-height: 1.5; }
.item-title { font-weight: 500; }
.reason { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.item .reason { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.detail { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
h2 { margin: 0; font-weight: 500; font-size: 20px; }
.map-links { display: flex; gap: 4px; margin: 12px 0 18px; flex-wrap: wrap; }
.map-links a { background: var(--paper2); }
textarea { resize: vertical; line-height: 1.5; }
.form-actions { gap: 10px; flex-wrap: wrap; }
.ban-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.profile-link { text-decoration: underline; text-underline-offset: 3px; }
#worker-note { background: var(--paper2); border-radius: 12px; padding: 12px 14px; }
details { margin: 14px 0 20px; }
summary { cursor: pointer; padding: 8px 0; font-size: 14px; }
#owner-build-list { max-height: 300px; overflow-y: auto; }
.clear-action { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.clear-action .quiet { background: var(--paper2); color: var(--ink); }
@media (max-width: 440px) { .filter-row { align-items: stretch; flex-direction: column; gap: 6px; } }
