:root {
  --bg: #0e1014; --panel: #161920; --panel-2: #1c2029; --line: #272c38; --text: #e7e9ef; --muted: #8d95a8;
  --accent: #ff8a3d; --accent-2: #ff5555; --good: #3ecf8e; --warn: #f5b942; --bad: #f2555a; --info: #5aa9ff; --purple: #b58cff;
  --hover: #20242e; --radius: 12px; --shadow: 0 8px 30px rgba(0,0,0,.35); --brand-red: #e0384c;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f4f5f8; --panel: #ffffff; --panel-2: #f0f2f6; --line: #dfe3ea; --text: #1b1e26; --muted: #5f6878;
    --accent: #e8650f; --accent-2: #d93a3f; --good: #16935d; --warn: #b77a06; --bad: #cf3338; --info: #1f6fd0; --purple: #7446d6;
    --hover: #f3f5f8; --shadow: 0 8px 30px rgba(20,30,50,.12); --brand-red: #d12f44; color-scheme: light; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--info); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 21px; margin: 0; letter-spacing: -.01em; } h2 { font-size: 15px; margin: 0 0 10px; } h3 { font-size: 12px; margin: 0 0 6px; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: 12px; } .nowrap { white-space: nowrap; } .right { text-align: right; } .grow { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

/* layout */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 14px 10px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; font-weight: 700; font-size: 15px; }
.brand img { width: 28px; height: 28px; }
/* the panel's name: the network's name in ink and "Staff" in red */
.brand-name { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; color: var(--text); }
.brand-name b { color: var(--brand-red); font-weight: 800; }
.nav, .nav-group { display: flex; flex-direction: column; gap: 2px; }
/* the menu scrolls on its own when the window is short, so the name and Sign out below it stay in view */
.nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; margin: 0 -4px; padding: 0 4px 6px; }
.nav-group { flex: 0 0 auto; }
.nav-title { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-radius: 8px; cursor: pointer; text-align: left;
  padding: 10px 10px 3px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.nav-title:hover, .nav-title:focus-visible { color: var(--text); }
.nav-title .chev { margin-left: auto; font-size: 11px; transition: transform .15s; }
.nav-title .count + .chev { margin-left: 0; }
.nav-title[aria-expanded=false] .chev { transform: rotate(-90deg); }
.nav-group.folded .nav-title { padding-bottom: 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 4px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.nav a .label { color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: var(--hover); text-decoration: none; }
.nav a.active { background: var(--panel-2); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); } .nav a.active .label { font-weight: 600; }
.nav .count { margin-left: auto; background: color-mix(in srgb, var(--accent-2) 18%, transparent); color: var(--accent-2); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 700; line-height: 18px; font-variant-numeric: tabular-nums; }
.side .who { margin-top: auto; padding: 10px 6px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; font-weight: 600; }
.side .who .btn { background: none; border-color: transparent; color: var(--muted); padding: 5px 7px; display: inline-flex; } .side .who .btn:hover { color: var(--text); background: var(--hover); }
/* on a very wide screen the page keeps to a width the eye can follow, in the middle of the room there is */
.main { padding: 22px 26px 60px; min-width: 0; width: 100%; max-width: 1640px; margin-inline: auto; }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.head .sub { color: var(--muted); }
.lede { color: var(--muted); margin: -8px 0 16px; max-width: 92ch; }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px; }
  .brand { padding: 4px 8px; } .nav a { padding: 6px 8px; }
  /* the menu above the page: the sections side by side, each one's pages after its title */
  .nav { flex: 1 1 100%; order: 3; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 4px; overflow: visible; margin: 0; padding: 0; }
  .nav-group { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nav-title { width: auto; padding: 6px 8px; } .nav-group.folded .nav-title { padding-bottom: 6px; }
  .nav-title .chev, .nav-title .count { margin-left: 0; }
  .side .who { margin: 0 0 0 auto; border: 0; padding: 0 4px; }
  .main { padding: 14px 12px 50px; }
}

/* pieces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { display: block; color: var(--text); transition: border-color .12s; } .stat:hover { text-decoration: none; border-color: var(--muted); }
.stat b { display: block; font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.01em; } .stat span { color: var(--muted); font-size: 12.5px; }
/* a figure that is nothing to look at is quiet; one that is waiting for someone is not */
.stat.zero b { color: var(--muted); } .stat.hot { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); } .stat.hot b { color: var(--warn); }
.cols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp { margin-top: 12px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: color-mix(in srgb, var(--panel-2) 55%, transparent); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover td { background: color-mix(in srgb, var(--hover) 70%, transparent); }
table { font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; margin: 0 -16px -14px; border-radius: 0 0 var(--radius) var(--radius); }
/* a table that opens a card reaches its top edge; under a title or a filter row it starts with a rule */
.card > .tablewrap:first-child { margin-top: -14px; border-radius: var(--radius); }
.card > .tablewrap:not(:first-child) th { border-top: 1px solid var(--line); }
.empty { color: var(--muted); padding: 30px 8px; text-align: center; }
.avatar { width: 22px; height: 22px; border-radius: 4px; vertical-align: middle; image-rendering: pixelated; background: var(--panel-2); }
.avatar.big { width: 56px; height: 56px; border-radius: 8px; }
.player { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); background: var(--panel-2); white-space: nowrap; }
.badge.good { color: var(--good); border-color: transparent; background: color-mix(in srgb, var(--good) 14%, transparent); }
.badge.warn { color: var(--warn); border-color: transparent; background: color-mix(in srgb, var(--warn) 14%, transparent); }
.badge.bad { color: var(--bad); border-color: transparent; background: color-mix(in srgb, var(--bad) 14%, transparent); }
.badge.info { color: var(--info); border-color: transparent; background: color-mix(in srgb, var(--info) 14%, transparent); }
.badge.purple { color: var(--purple); border-color: transparent; background: color-mix(in srgb, var(--purple) 14%, transparent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.dot.on { background: var(--good); } .dot.bad { background: var(--bad); } .dot.warn { background: var(--warn); }

/* controls */
.btn { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap; font-weight: 500; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); border-color: color-mix(in srgb, var(--muted) 55%, var(--line)); } .btn:disabled { opacity: .5; cursor: default; }
.btn.primary:hover { filter: brightness(1.07); background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-color: transparent; }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.good:hover { background: color-mix(in srgb, var(--good) 12%, transparent); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
/* what the keyboard is on is always marked */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
.btn.primary { background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-color: transparent; color: #fff; font-weight: 600; }
.btn.danger { color: var(--bad); } .btn.good { color: var(--good); } .btn.sm { padding: 3px 9px; font-size: 12.5px; }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=password], input[type=email], input[type=url], select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; outline: none; min-width: 0; }
input[type=number] { width: 7.5em; color: inherit; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
/* a search box says so with a magnifier */
input[type=search] { padding-left: 32px; background-repeat: no-repeat; background-position: 10px 50%; background-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d95a8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20.5 20.5l-4.6-4.6'/%3E%3C/svg%3E"); }
textarea { width: 100%; resize: vertical; min-height: 72px; }
label.field { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); } label.field > * { color: var(--text); font-size: 14px; }
label.check { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { background: none; border: 0; padding: 4px 11px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--line); font-weight: 600; } .seg button:hover { color: var(--text); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 10px 0 0; color: var(--muted); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: min(380px, 100%); padding: 26px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.login h1 { font-size: 22px; } .login code { background: var(--panel-2); padding: 1px 6px; border-radius: 5px; }
.error { color: var(--bad); }

/* modal + toast */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; z-index: 20; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; width: min(480px, 100%); padding: 20px; display: grid; gap: 12px; box-shadow: var(--shadow); max-height: 92vh; overflow: auto; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 30; }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 8px; padding: 10px 14px; box-shadow: var(--shadow); max-width: 360px; }
.toast.bad { border-left-color: var(--bad); }

/* tickets */
.split { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.tlist { padding: 6px; } .tlist a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--text); }
.tlist a:hover { background: var(--hover); text-decoration: none; } .tlist a.active { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.tlist .t1 { display: flex; gap: 6px; align-items: center; font-weight: 600; } .tlist .t2 { color: var(--muted); font-size: 12px; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; padding: 4px 2px 8px; }
.msg { max-width: 82%; padding: 8px 11px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.staff { align-self: flex-end; border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.msg .meta { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }

/* chat log */
.log { font-size: 13px; } .log .line { display: grid; grid-template-columns: 68px 92px 150px 1fr; gap: 10px; padding: 4px 6px; border-bottom: 1px solid var(--line); align-items: center; }
.log .line:hover { background: var(--hover); }
.log .day { padding: 12px 6px 5px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.log .day:first-child { padding-top: 2px; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.log .line:last-child { border: 0; } .log .blocked { color: var(--muted); text-decoration: line-through; } .log .cmd { color: var(--info); }
.log .text { overflow-wrap: anywhere; }
.log.solo .line { grid-template-columns: 68px 92px 1fr; }
@media (max-width: 700px) { .log .line { grid-template-columns: auto auto minmax(0, 1fr); } .log .text { grid-column: 1 / -1; } .log.solo .line { grid-template-columns: auto minmax(0, 1fr); } }

.profile-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 8px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; } .tabs button:hover { color: var(--text); }
.appeal .quote { background: var(--panel-2); border-left: 3px solid var(--purple); border-radius: 6px; padding: 9px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* permissions */
.row > h2 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 600; }
.chip small { font-weight: 400; color: var(--muted); }
.chip .x { background: none; border: 0; cursor: pointer; color: var(--muted); width: 22px; height: 22px; border-radius: 50%; line-height: 1; padding: 0; }
.chip .x:hover { color: var(--bad); background: var(--panel); }
.addrow { display: grid; grid-template-columns: minmax(160px, 1.6fr) auto minmax(112px, 1fr) minmax(112px, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 760px) { .addrow { grid-template-columns: 1fr 1fr; } .addrow > :first-child { grid-column: 1 / -1; } }
button.badge.toggle { background: none; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600; }
button.badge.toggle:hover { background: var(--panel-2); }
td.tight { width: 1%; white-space: nowrap; } td.wrap { overflow-wrap: break-word; min-width: 130px; }
.pre { white-space: pre-wrap; background: var(--panel-2); border-radius: 5px; padding: 1px 6px; }
.tlist-foot { padding: 8px 10px 4px; border-top: 1px solid var(--line); margin-top: 6px; }

/* tasks */
.task-details { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel-2); border-left: 3px solid var(--accent); border-radius: 6px; padding: 9px 12px; }
.task-late { color: var(--bad); font-weight: 600; }
.tlist .t2 .avatar { width: 16px; height: 16px; }
.tlist .pager { padding: 8px 10px 4px; }

/* what a task or a member is made of, as rows of "what: value" */
.props { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; align-items: center; margin: 14px 0 0; }
.props dt { color: var(--muted); font-size: 12.5px; } .props dd { margin: 0; min-width: 0; }
.rank { font-weight: 600; }

/* a phone: the figures three to a row, so the page under them is not pushed off the screen */
/* a row of figures under a small heading (dashboard), a row of filters above a list, and the system page's module list */
.tiles { margin-bottom: 14px; } .tiles .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.eyebrow { margin: 0 0 7px 2px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input[type=search], .filters input[type=text] { flex: 1 1 150px; max-width: 250px; min-width: 0; }
.kv2 { grid-template-columns: 110px minmax(0, 1fr) 110px minmax(0, 1fr); }
.modlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
.mod { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.card > .note { margin: 0; padding: 10px 16px 2px; }
button.stat, div.stat { font: inherit; text-align: left; }
/* signing in, setting a sign-in up, the Account and Email pages */
.login.wide .card { width: min(520px, 100%); } .login h1 { margin: 0; }
.login-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.login .first-time { border-top: 1px solid var(--line); padding-top: 12px; }
.code-input { letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.hidden-name { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.steps span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--line); border-radius: 999px; }
.steps b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--panel-2); font-size: 11px; }
.steps .on { color: var(--text); border-color: var(--accent); } .steps .on b { background: var(--accent); color: #fff; }
.steps .done b { background: var(--good); color: #fff; }
.qr-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr { width: 176px; height: 176px; flex: 0 0 auto; background: #fff; border-radius: 10px; padding: 6px; } .qr svg { display: block; width: 100%; height: 100%; }
.qr-side { flex: 1 1 180px; display: grid; gap: 8px; justify-items: start; }
.secret { font-size: 13px; background: var(--panel-2); padding: 6px 9px; border-radius: 7px; overflow-wrap: anywhere; user-select: all; }
.recovery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; background: var(--panel-2); border-radius: 10px; padding: 12px 14px; }
.recovery code { font-size: 14px; letter-spacing: .04em; user-select: all; }
.who-link { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); padding: 4px 6px; margin: -4px -6px; border-radius: 8px; }
.who-link:hover { background: var(--hover); text-decoration: none; } .who-link.active { color: var(--accent); }
.who-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-grid { display: grid; gap: 12px; align-content: start; } .form-grid h2 { margin: 0; }
.pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; } .pair:nth-of-type(n+2) { grid-template-columns: 1fr 1fr; }
.checks { display: grid; gap: 8px; }
.howto { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 5px; } .howto code { background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
.good-text { color: var(--good); }
@media (max-width: 560px) { .pair, .pair:nth-of-type(n+2) { grid-template-columns: 1fr; } .recovery { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .tiles .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kv2 { grid-template-columns: 110px minmax(0, 1fr); } }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; } .stat b { font-size: 21px; } .stat span { font-size: 12px; }
}

/* News and Rules (news.js) */
.form-grid { display: grid; gap: 12px; }
.form-grid textarea, .rules-edit textarea { width: 100%; resize: vertical; font: inherit; line-height: 1.5; }
.stack { display: grid; gap: 6px; }
.post-look { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-top: 8px; }
.post-look img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.post-look-title { font-size: 20px; font-weight: 700; margin: 4px 0 8px; }
.post-look p { margin: 0 0 10px; white-space: pre-line; overflow-wrap: anywhere; }
.rules-edit { display: grid; gap: 12px; justify-items: start; }
.rules-edit > .card { width: 100%; box-sizing: border-box; }
.note-card { border-left: 3px solid var(--accent); margin-bottom: 12px; }
.muted.small.error { color: var(--bad); }

/* Applications (applications.js) */
.answers { display: grid; gap: 10px; }
.answer { background: var(--panel-2); border-radius: 8px; padding: 9px 12px; }
.answer-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; }

/* Store (store.js) */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.product h3 { margin: 0; }
.product p { margin: 8px 0 0; }
.order-log { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; background: var(--panel-2); border-radius: 6px; padding: 8px 10px; margin: 8px 0 0; }
tr.sub td { padding-top: 0; border-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.stack-cards { display: grid; gap: 12px; max-width: 760px; }
.modal textarea { width: 100%; box-sizing: border-box; }

/* Parties page */
.party-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.party h3 { margin: 0; }
.party-members { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.party-members li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Voting page */
.vote-sites { display: grid; gap: 8px; }
.vote-site { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .vote-site { grid-template-columns: 1fr; } }
/* the application form editor */
.form-list { display: grid; gap: 10px; }
.form-role { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; max-width: 420px; }
.form-q { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 8px; }
.form-q-opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-q-opts input[type=number] { width: 5.5rem; }
.form-q [hidden] { display: none !important; }
.form-q .form-q-options { min-height: 4.5em; }
.form-cond { display: grid; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line, rgba(127,127,127,.25)); }
.form-cond > select { justify-self: start; }
.form-cond-term { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 6px; align-items: center; }
.form-cond-picks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 640px) { .form-cond-term { grid-template-columns: 1fr; } }

/* snow switch: dimmed while the snow is off */
.btn[aria-pressed="false"] .ico { opacity: .45; }
