:root {
  --iron: #fff;
  --plate: #f4f4f4;
  --steel: #d0d0d0;
  --mist: #5f5f5f;
  --bone: #000;
  --brass: #000;
  --brass-lt: #333;
  --bad: #b3261e;
  --ok: #1b6e3c;
}
* { box-sizing: border-box; margin: 0; }
html { color-scheme: light; }
body {
  background: var(--iron);
  color: var(--bone);
  font: 16px/1.55 "Barlow", system-ui, sans-serif;
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
h1, h2, h3 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; margin-bottom: .75rem; }
h3 { font-size: 1.2rem; }
a { color: var(--brass-lt); }
.wrap { max-width: 880px; margin: 0 auto; padding: 1.25rem; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0 1.5rem; border-bottom: 2px solid var(--steel); margin-bottom: 1.5rem; }
header.top .brand { font-family: "Barlow Condensed", sans-serif; font-size: 1.7rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
header.top nav { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mark { width: 34px; height: 34px; }
.plate {
  background: var(--plate);
  border: 1px solid var(--steel);
  border-radius: 6px;
  padding: 1.25rem;
  position: relative;
  margin-bottom: 1.25rem;
}
.plate.riveted::before, .plate.riveted::after {
  content: ""; position: absolute; top: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--mist), var(--steel));
}
.plate.riveted::before { left: 10px; }
.plate.riveted::after { right: 10px; }
button, .btn {
  font: 600 1rem "Barlow", sans-serif;
  background: var(--brass);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: .6rem 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover { background: var(--brass-lt); }
button.ghost { background: transparent; color: var(--bone); border: 1px solid var(--steel); }
button.ghost:hover { background: var(--steel); }
button.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 3px solid var(--brass-lt); outline-offset: 2px; }
label { display: block; font-size: .9rem; color: var(--mist); margin-bottom: .25rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--bone); background: var(--iron);
  border: 1px solid var(--steel); border-radius: 4px; padding: .6rem .7rem; margin-bottom: .9rem;
}
textarea { min-height: 110px; resize: vertical; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.row > * { flex: 0 0 auto; }
.msg { min-height: 1.4rem; margin-top: .5rem; color: var(--bad); }
.msg.ok { color: var(--ok); }
.hidden { display: none !important; }
.tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.tabs button[aria-selected="true"] { background: var(--brass); color: #fff; }
.tabs button { background: transparent; color: var(--bone); border: 1px solid var(--steel); }

.card {
  background: linear-gradient(145deg, #2b2b2b, #000 70%);
  border: 2px solid #000;
  color: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.2rem;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.card .org { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.1rem; color: #fff; display: flex; align-items: center; gap: .5rem; }
.card .name { font-family: "Barlow Condensed", sans-serif; font-size: 2rem; font-weight: 700; margin: 1.4rem 0 .2rem; word-break: break-word; }
.card .meta { display: flex; justify-content: space-between; gap: 1rem; color: #bdbdbd; font-size: .9rem; }
.card .meta b { display: block; color: #fff; font-size: 1.05rem; font-weight: 600; }
.status { display: inline-block; padding: .1rem .6rem; border-radius: 99px; font-size: .85rem; border: 1px solid currentColor; }
.status.active { color: var(--ok); }
.status.pending { color: var(--brass-lt); }
.status.suspended { color: var(--bad); }

.post { border-bottom: 1px solid var(--steel); padding: 1rem 0; }
.post:last-child { border-bottom: 0; }
.post h3 .pin { color: var(--brass-lt); font-size: .85rem; margin-left: .4rem; font-family: "Barlow", sans-serif; font-weight: 600; }
.post time { color: var(--mist); font-size: .85rem; }
.post p { margin-top: .4rem; white-space: pre-wrap; max-width: 70ch; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--steel); vertical-align: middle; }
th { color: var(--mist); font-weight: 600; font-size: .9rem; }
td select { margin: 0; padding: .35rem .5rem; }
.auth-box { max-width: 420px; margin: 8vh auto 0; }
@media (prefers-reduced-motion: no-preference) {
  button, .btn { transition: background .15s; }
}

.logo-hero { border-radius: 10px; display: block; width: 100%; max-width: 360px; margin: 0 auto 1rem; }
.logo-head { border-radius: 6px; height: 48px; width: auto; display: block; }
.switch { display: inline-flex; align-items: center; gap: .4rem; margin: 0; color: var(--bone); }
.switch input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--brass); }
