/* ============================================================
   Profiles — log in / sign up / editor / staff pages
   Doghouse look, but plain and easy to read.
   ============================================================ */

@font-face { font-family: "Monster Rocker"; src: url("/fonts/monster-rocker.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Frightmare"; src: url("/fonts/frightmare.otf") format("opentype"); font-display: swap; }

:root {
  --bg: #0b0a0a;
  --raise: #141110;
  --raise-2: #1b1716;
  --ink: #ece6da;
  --ink-dim: #a39b8f;
  --edge: #3b3533;
  --edge-hi: #5a514b;
  --red: #8e1216;
  --red-hi: #b51a1f;
  --good: #4fc072;
  --bad: #ff5a5f;
  --yellow: #e2b60f;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; }

body.dh-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(rgba(8, 7, 7, .82), rgba(8, 7, 7, .9)),
    url("/icons/background.jpg") center / cover fixed,
    var(--bg);
}
body.pf-page { margin: 0; background: var(--bg); }
body.pf-page.dh-page { background: linear-gradient(rgba(8, 7, 7, .82), rgba(8, 7, 7, .9)), url("/icons/background.jpg") center / cover fixed, var(--bg); }

a { color: var(--ink); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px dashed var(--red-hi); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- header + tape ---------- */

.dh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
}
.dh-logo {
  font-family: "Monster Rocker", Impact, sans-serif;
  font-size: 1.6rem;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-2deg);
  display: inline-block;
}
.dh-logo--sm { font-size: 1.25rem; }
.dh-top-link {
  font-family: "Frightmare", Impact, sans-serif;
  font-size: 1.05rem;
  padding: 7px 14px 6px;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--ink-dim);
  transform: rotate(-1.5deg);
}
.dh-top-link:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.dh-tape {
  height: 22px;
  margin: 0 -10px 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #121010 14px 28px);
  transform: rotate(-.8deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}

/* ---------- account card ---------- */

.acct { display: flex; justify-content: center; padding: clamp(18px, 4vw, 44px) 16px 70px; }
.acct-loading, .acct-noscript { color: var(--ink-dim); text-align: center; padding: 40px 16px; }

.acct-card {
  position: relative;
  width: min(460px, 100%);
  padding: clamp(22px, 5vw, 34px);
  background: rgba(20, 17, 16, .94);
  border: 1px solid var(--edge);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.acct-card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 22px;
  width: 90px;
  height: 20px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 10px, #120c0c 10px 20px);
  transform: rotate(4deg);
  opacity: .9;
}
.acct-title {
  margin: 0 0 4px;
  font-family: "Frightmare", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 6vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: .01em;
}
.acct-sub { margin: 0 0 22px; color: var(--ink-dim); }
.acct-foot { margin: 22px 0 0; text-align: center; color: var(--ink-dim); font-size: .95rem; }
.acct-foot a { color: var(--ink); }
.acct-note {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  font-size: .93rem;
  color: #f4dfa0;
  background: rgba(226, 182, 15, .08);
  border: 1px solid rgba(226, 182, 15, .35);
  border-radius: 6px;
}
.acct-note .ico { color: var(--yellow); margin-top: 1px; }
.center { text-align: center; }

/* ---------- forms ---------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 600; font-size: .95rem; }
.field-hint { margin: 0; color: var(--ink-dim); font-size: .86rem; }

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #0d0b0b;
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  transition: border-color .12s;
}
.input::placeholder { color: #6f675f; }
.input:hover { border-color: var(--edge-hi); }
.input:focus { border-color: var(--ink-dim); outline: none; }
.input:focus-visible { outline: 2px solid color-mix(in srgb, var(--red-hi) 60%, transparent); outline-offset: 1px; }
.input--area { min-height: 120px; resize: vertical; line-height: 1.55; }
.input--code { font-family: ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-eye {
  position: absolute;
  top: 0; right: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  color: var(--ink-dim);
  background: none; border: 0; cursor: pointer;
}
.input-eye[aria-pressed="true"] { color: var(--ink); }

.name-input {
  display: flex;
  align-items: stretch;
  background: #0d0b0b;
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  overflow: hidden;
}
.name-input:focus-within { border-color: var(--ink-dim); }
.name-prefix { display: flex; align-items: center; padding: 0 2px 0 12px; color: var(--ink-dim); white-space: nowrap; user-select: none; }
.name-input .input { border: 0; background: transparent; padding-left: 0; border-radius: 0; min-width: 0; }
.name-input .input:focus-visible { outline: none; }
.name-status { min-height: 1.4em; margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--ink-dim); }
.name-status.is-good { color: var(--good); }
.name-status.is-bad { color: var(--bad); }

.form-alert {
  margin: 0;
  padding: 10px 12px;
  color: #ffd6d6;
  background: rgba(181, 26, 31, .16);
  border: 1px solid rgba(255, 90, 95, .45);
  border-radius: 6px;
  font-size: .95rem;
}
.form-alert[hidden] { display: none; }

.meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .85rem; color: var(--ink-dim); }
.meter-track { flex: 1; height: 5px; background: #262120; border-radius: 4px; overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background-color .2s; }
.meter[data-score="2"] .meter-fill { background: var(--yellow); }
.meter[data-score="3"] .meter-fill, .meter[data-score="4"] .meter-fill { background: var(--good); }
.meter-label { min-width: 80px; text-align: right; }

.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .95rem; }
.check-row--sm { font-size: .85rem; gap: 6px; align-items: center; }
.check {
  appearance: none;
  flex: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  background: #0d0b0b;
  border: 1.5px solid var(--edge-hi);
  border-radius: 4px;
  display: grid; place-items: center;
  cursor: pointer;
}
.check:checked { background: var(--red-hi); border-color: var(--red-hi); }
.check:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check-row--sm .check { width: 16px; height: 16px; margin: 0; }

.rules { border: 1px solid var(--edge); border-radius: 6px; padding: 10px 14px; background: rgba(0, 0, 0, .2); }
.rules summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.rules ul { margin: 10px 0; padding-left: 20px; font-size: .92rem; }
.rules li { margin: 4px 0; }

.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-dim); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--edge); }

.code-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.code {
  flex: 1;
  min-width: 0;
  padding: 14px 10px;
  font: 700 clamp(.92rem, 3.8vw, 1.1rem)/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .03em;
  white-space: nowrap;
  text-align: center;
  color: #fff;
  background: #0d0b0b;
  border: 1.5px dashed var(--yellow);
  border-radius: 6px;
  user-select: all;
  overflow-wrap: anywhere;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  font: 700 1rem/1.2 var(--ui);
  color: var(--ink);
  text-decoration: none;
  background: var(--raise-2);
  border: 1.5px solid var(--edge-hi);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .12s, border-color .12s, transform .08s;
}
.btn:hover { border-color: var(--ink-dim); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--red { background: var(--red); border-color: var(--red-hi); color: #fff; }
.btn--red:hover:not(:disabled) { background: var(--red-hi); }
.btn--ghost { background: transparent; }
.btn--ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .06); }
.btn--danger { background: transparent; color: var(--bad); border-color: rgba(255, 90, 95, .5); }
.btn--danger:hover { background: rgba(255, 90, 95, .1); border-color: var(--bad); }
.btn--google { width: 100%; background: #fff; color: #1f1f1f; border-color: #dadce0; font-weight: 600; }
.btn--google:hover { background: #f3f3f3; border-color: #c4c7cc; }
.btn--google .ico--google { width: 20px; height: 20px; }
.btn--sm { min-height: 38px; padding: 7px 13px; font-size: .9rem; }
.btn--sm.btn--google { width: auto; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.google-off { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; font: inherit; cursor: pointer; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.icon-btn:hover:not(:disabled) { color: var(--ink); background: rgba(255, 255, 255, .06); border-color: var(--edge); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn--bad:hover:not(:disabled) { color: var(--bad); }
.icon-btn .ico { width: 18px; height: 18px; }

/* ---------- not found ---------- */

.nf { text-align: center; }
.nf-addr { margin: 0 0 8px; color: var(--ink-dim); font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.nf-addr b { color: var(--ink); }
.nf .btn { margin-top: 4px; }

/* ============================================================
   Editor
   ============================================================ */

body.dh-page--edit { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }

.ed-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(11, 10, 10, .92);
  border-bottom: 1px solid var(--edge);
}
.ed-addr { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.ed-addr-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #0d0b0b;
  border: 1px solid var(--edge);
  border-radius: 6px;
}
.ed-addr-link:hover { border-color: var(--ink-dim); }
.ed-addr-host { color: var(--ink-dim); font-weight: 400; }
.ed-addr-link .ico { width: 15px; height: 15px; color: var(--ink-dim); margin-left: 4px; }
.ed-actions { display: flex; align-items: center; gap: 12px; }
.ed-status { color: var(--ink-dim); font-size: .88rem; white-space: nowrap; }
.ed-status.is-dirty { color: var(--yellow); }

.ed {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 92px minmax(340px, 440px) 1fr;
}

.ed-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  overflow-y: auto;
  background: rgba(11, 10, 10, .85);
  border-right: 1px solid var(--edge);
}
.ed-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  color: var(--ink-dim);
  font: 600 .78rem/1.1 var(--ui);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
.ed-tab:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.ed-tab.is-on { color: #fff; background: rgba(181, 26, 31, .22); border-color: rgba(181, 26, 31, .6); }

.ed-panel {
  min-height: 0;
  overflow-y: auto;
  padding: 22px 22px 80px;
  background: rgba(16, 14, 13, .94);
  border-right: 1px solid var(--edge);
  scrollbar-color: var(--edge-hi) transparent;
}
.panel-title { margin: 0 0 4px; font-family: "Frightmare", Impact, sans-serif; font-weight: 400; font-size: 1.8rem; line-height: 1.1; }
.panel-sub { margin: 0 0 20px; color: var(--ink-dim); font-size: .92rem; }

.ctl { padding: 14px 0; border-bottom: 1px solid rgba(59, 53, 51, .55); }
.ctl[hidden] { display: none; }
.ctl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.ctl--toggle .ctl-head { margin-bottom: 0; }
.ctl-label { font-weight: 600; font-size: .95rem; }
.ctl-hint { margin: 8px 0 0; color: var(--ink-dim); font-size: .85rem; }
.ctl-count { color: var(--ink-dim); font-size: .8rem; font-variant-numeric: tabular-nums; }
.ctl-count.is-full { color: var(--yellow); }
.ctl-value { min-width: 54px; text-align: right; color: var(--ink-dim); font-size: .88rem; font-variant-numeric: tabular-nums; }

/* choice chips (radio buttons that look like buttons) */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-dim);
  background: #0d0b0b;
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .1s, color .1s, background-color .1s;
}
.chip:hover { color: var(--ink); border-color: var(--edge-hi); }
.chip:has(input:checked) { color: #fff; border-color: var(--red-hi); background: rgba(181, 26, 31, .2); }
.chip:has(input:focus-visible) { outline: 2px dashed var(--red-hi); outline-offset: 2px; }
.chips--fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 330px; overflow-y: auto; padding: 2px; }
.chips--fonts .chip { justify-content: flex-start; }
.chip-font { font-size: 1.35rem; line-height: 1; min-width: 34px; color: var(--ink); font-weight: 400; }
.chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* colour */
.color { display: flex; gap: 8px; }
.color-pick {
  flex: none;
  width: 52px; height: 46px;
  padding: 3px;
  background: #0d0b0b;
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  cursor: pointer;
}
.color-pick::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick::-webkit-color-swatch { border: 0; border-radius: 3px; }
.input--hex { font-family: ui-monospace, monospace; text-transform: lowercase; }

/* slider */
.range {
  --p: 50%;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 4px; background: linear-gradient(to right, var(--red-hi) var(--p), #2a2423 var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 4px; background: linear-gradient(to right, var(--red-hi) var(--p), #2a2423 var(--p)); }
.range::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--ink); border: 3px solid var(--red-hi); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--red-hi); }
.range:focus-visible { outline: 2px dashed var(--red-hi); outline-offset: 2px; }

/* on/off switch */
.switch {
  appearance: none;
  flex: none;
  position: relative;
  width: 46px; height: 26px;
  margin: 0;
  background: #2a2423;
  border: 1.5px solid var(--edge-hi);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s;
}
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--ink-dim); transition: transform .15s, background-color .15s; }
.switch:checked { background: var(--red-hi); border-color: var(--red-hi); }
.switch:checked::after { transform: translateX(20px); background: #fff; }

/* uploads */
.media { display: flex; gap: 14px; align-items: center; }
.media-thumb {
  flex: none;
  width: 84px; height: 84px;
  display: grid; place-items: center;
  color: var(--ink-dim);
  background: #0d0b0b;
  border: 1.5px dashed var(--edge-hi);
  border-radius: 8px;
  overflow: hidden;
}
.media-thumb--avatar { border-radius: 50%; }
.media-thumb--background, .media-thumb--video { width: 120px; height: 76px; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .ico { width: 28px; height: 28px; }
.media-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.media-info { margin: 0; color: var(--ink-dim); font-size: .85rem; }

/* links editor */
.links-ed { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.link-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.link-empty { padding: 16px; text-align: center; color: var(--ink-dim); font-size: .92rem; border: 1.5px dashed var(--edge); border-radius: 8px; }
.link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 6px;
  padding: 12px;
  background: #0f0d0c;
  border: 1px solid var(--edge);
  border-radius: 8px;
}
.link-kind { grid-column: 1; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.link-kind .plat-ico { width: 20px; height: 20px; color: var(--brand, var(--ink)); }
.link-tools { grid-column: 2; grid-row: 1; display: flex; gap: 2px; }
.link-fields { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.link-fields .input { min-height: 42px; }
.link-label { font-size: .92rem; }
.link-status { margin: 0; font-size: .82rem; color: var(--ink-dim); overflow-wrap: anywhere; }
.link-status.is-good { color: #8fd8a6; }
.link-status.is-bad { color: var(--bad); }

.picker { padding: 12px; background: #0f0d0c; border: 1px solid var(--edge); border-radius: 8px; }
.picker[hidden] { display: none; }
.picker-title { margin: 0 0 10px; font-weight: 600; font-size: .9rem; color: var(--ink-dim); }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.pick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font: 600 .85rem/1.2 var(--ui);
  text-align: left;
  background: #161312;
  border: 1px solid var(--edge);
  border-radius: 6px;
  cursor: pointer;
}
.pick:hover { border-color: var(--brand, var(--ink-dim)); background: #1c1817; }
.pick .plat-ico { width: 18px; height: 18px; color: var(--brand, var(--ink)); flex: none; }

/* looks */
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 18px; }
.look {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 10px;
  color: var(--ink);
  font: 700 .9rem/1.2 var(--ui);
  background: #0f0d0c;
  border: 1.5px solid var(--edge);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .12s, transform .12s;
}
.look:hover { border-color: var(--ink-dim); transform: translateY(-2px); }
.look-swatch { position: relative; display: grid; place-items: center; height: 104px; overflow: hidden; }
.look-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.look-tex { position: absolute; inset: 0; background-image: var(--tex-grain); }
.look-tex--concrete { background-image: var(--tex-concrete), var(--tex-grain); }
.look-tex--grime { background-image: var(--tex-grime), var(--tex-grain); background-size: 260px, auto; }
.look-tex--paper { background-image: var(--tex-paper), var(--tex-grain); background-size: 220px, auto; }
.look-tex--scratches { background-image: var(--tex-scratches), var(--tex-grain); background-size: 120px 100%, auto; }
.look-tex--halftone { background-image: var(--tex-halftone-light), var(--tex-halftone-dark); background-size: 5px 5px; background-position: 0 0, 2.5px 2.5px; }
.look-corner { position: absolute; top: -6px; right: -34px; width: 110px; rotate: 16deg; }
.look-strip { position: absolute; left: -10%; right: -10%; top: 8px; height: 10px; background: #e2b60f; rotate: -3deg; box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.look-strip--red { background: #8e1216; }
.look-strip--black { background: #121010; border-block: 2px solid #e2b60f; }
.look-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 58%;
  padding: 8px 6px;
  border: 1.5px solid;
  border-radius: 3px;
}
.look-card--tv { border: 4px solid #2a2421 !important; border-radius: 10px; box-shadow: 0 0 0 1px #3b3533; }
.look-card--tape::before,
.look-card--tape::after {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  height: 7px;
  background: repeating-linear-gradient(-45deg, #e2b60f 0 4px, #121010 4px 8px);
}
.look-card--tape::before { top: -4px; rotate: -3deg; }
.look-card--tape::after { bottom: -4px; rotate: 2deg; }
.look-card--folder { margin-top: 8px; border-radius: 0 4px 4px 4px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .45); }
.look-card--folder::before { content: ""; position: absolute; left: -1.5px; top: -9px; width: 40%; height: 9px; background: inherit; border: inherit; border-bottom: 0; border-radius: 4px 4px 0 0; }
.look-card--paper { rotate: -2deg; box-shadow: 3px 4px 0 rgba(0, 0, 0, .35); background-image: repeating-linear-gradient(180deg, transparent 0 7px, rgba(128, 128, 128, .18) 7px 8px) !important; }
.look-card--paper::before { content: ""; position: absolute; top: -5px; left: -8px; width: 26px; height: 9px; background: rgba(232, 218, 160, .7); rotate: -30deg; }
.look-name { font-size: 1.35rem; line-height: 1; }
.look-line { width: 70%; height: 3px; border-radius: 2px; opacity: .7; }
.look-btn { width: 80%; height: 9px; border-radius: 1px; }
.look-sticker { position: absolute; bottom: 2px; left: 2px; width: 40px; rotate: -12deg; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .5)); }
.look-label { padding: 0 10px; }

/* sticker picker */
.sticker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px; }
.sticker-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-dim);
  background: #0d0b0b;
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  cursor: pointer;
}
.sticker-pick img { width: 100%; max-width: 64px; height: 52px; object-fit: contain; }
.sticker-pick:hover { color: var(--ink); border-color: var(--edge-hi); }
.sticker-pick:has(input:checked) { color: #fff; border-color: var(--red-hi); background: rgba(181, 26, 31, .2); }
.sticker-pick:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.sticker-pick:has(input:focus-visible) { outline: 2px dashed var(--red-hi); outline-offset: 2px; }

/* account sections */
.acct-sec { padding: 18px 0; border-bottom: 1px solid rgba(59, 53, 51, .55); display: flex; flex-direction: column; gap: 10px; }
.acct-sec-title { margin: 6px 0 2px; font-size: 1.02rem; font-weight: 700; }

/* preview */
.ed-preview { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #070606; }
.ed-preview-bar { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--edge); }
.seg { display: inline-flex; background: #0d0b0b; border: 1px solid var(--edge); border-radius: 7px; padding: 2px; }
.seg-btn { padding: 6px 12px; color: var(--ink-dim); font: 600 .85rem/1.2 var(--ui); background: transparent; border: 0; border-radius: 5px; cursor: pointer; }
.seg-btn.is-on { color: #fff; background: var(--raise-2); }
.ed-read { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 10px; font-size: .82rem; font-weight: 600; border-radius: 999px; border: 1px solid; }
.ed-read .ico { width: 15px; height: 15px; }
.ed-read.is-great { color: #8fd8a6; border-color: rgba(79, 192, 114, .45); background: rgba(79, 192, 114, .08); }
.ed-read.is-ok { color: #f4dfa0; border-color: rgba(226, 182, 15, .45); background: rgba(226, 182, 15, .08); }
.ed-read.is-bad { color: #ffb3b5; border-color: rgba(255, 90, 95, .5); background: rgba(255, 90, 95, .1); }
.ed-close-preview, .ed-open-preview { display: none; }

.ed-frame { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: stretch; padding: 14px; overflow: hidden; }
.ed-screen { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--edge); background: #000; }
.ed-frame[data-device="phone"] { align-items: center; }
.ed-frame[data-device="phone"] .ed-screen {
  width: 390px;
  max-width: 100%;
  height: min(100%, 780px);
  border: 10px solid #1d1918;
  border-radius: 36px;
  box-shadow: 0 0 0 1.5px var(--edge-hi), 0 30px 70px rgba(0, 0, 0, .6);
}

@media (max-width: 1100px) {
  .ed { grid-template-columns: 84px minmax(300px, 380px) 1fr; }
}

/* phones + small tablets: tabs on top, preview opens full screen */
@media (max-width: 860px) {
  .ed-top { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px; }
  .ed-addr { order: 3; flex-basis: 100%; }
  .ed-actions { margin-left: auto; }
  .ed { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ed-tabs { flex-direction: row; overflow-x: auto; padding: 6px 8px; border-right: 0; border-bottom: 1px solid var(--edge); }
  .ed-tab { flex: none; min-width: 68px; padding: 7px 6px; }
  .ed-panel { padding: 18px 16px 110px; border-right: 0; }
  .ed-preview { display: none; }
  .ed-open-preview { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 20; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
  body.is-previewing .ed-preview { display: flex; position: fixed; inset: 0; z-index: 30; }
  body.is-previewing .ed-open-preview { display: none; }
  .ed-close-preview { display: inline-flex; }
  .ed-frame { padding: 0; }
  .ed-screen { border-radius: 0; border: 0; }
  .ed-frame[data-device="phone"] .ed-screen { border: 0; border-radius: 0; height: 100%; width: 100%; box-shadow: none; }
  .seg { display: none; }
  .chips--fonts { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Staff tools
   ============================================================ */

.adm { max-width: 1000px; margin: 0 auto; padding: 18px 16px 80px; display: flex; flex-direction: column; gap: 16px; }
.dh-tape--red { background: repeating-linear-gradient(-45deg, var(--red) 0 14px, #121010 14px 28px); transform: rotate(.7deg); }

/* lock screen */
.adm-gate, .adm-lock { align-self: center; }
.adm-lock { overflow: hidden; padding-top: 64px; }
.adm-lock::before { display: none; }
.adm-lock-tape {
  position: absolute;
  top: 16px;
  left: -10%;
  right: -10%;
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  color: #121010;
  font: 800 .9rem/1 var(--ui);
  letter-spacing: .14em;
  background: linear-gradient(#121010 0 0) top / 100% 3px no-repeat, linear-gradient(#121010 0 0) bottom / 100% 3px no-repeat, var(--yellow);
  transform: rotate(-2.5deg);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .5);
}
.adm-lock-tape span { padding-left: 20px; }

/* panel */
.adm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.adm-head .acct-sub { margin-bottom: 0; }
.adm-role { color: #ffb3b5; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--edge); padding-bottom: 10px; }
.adm-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: var(--ink-dim);
  font: 700 .95rem/1.2 var(--ui);
  background: rgba(20, 17, 16, .9);
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  cursor: pointer;
}
.adm-tab:hover { color: var(--ink); border-color: var(--edge-hi); }
.adm-tab.is-on { color: #fff; border-color: var(--red-hi); background: rgba(181, 26, 31, .25); }
.adm-tab .ico { width: 18px; height: 18px; }
.adm-body { display: flex; flex-direction: column; gap: 14px; }
.adm-sec { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: rgba(20, 17, 16, .94); border: 1px solid var(--edge); border-radius: 8px; }
.adm-sec-title { margin: 0; font-family: "Frightmare", Impact, sans-serif; font-weight: 400; font-size: 1.45rem; }

.adm-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-dim); }
.adm-stats b { color: var(--ink); font-size: 1.15rem; }
.adm-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.adm-user { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: rgba(20, 17, 16, .94); border: 1px solid var(--edge); border-radius: 8px; }
.adm-user.is-banned { border-color: rgba(255, 90, 95, .5); opacity: .82; }
.adm-who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.adm-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #0d0b0b; border: 1.5px solid var(--edge-hi); flex: none; }
.adm-names { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.adm-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.adm-name .ico { width: 14px; height: 14px; color: var(--ink-dim); }
.adm-name:hover { text-decoration: underline; }
.adm-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 2px 8px; font-size: .75rem; font-weight: 700; color: var(--ink-dim); border: 1px solid var(--edge); border-radius: 999px; }
.tag--red { color: #ffb3b5; border-color: rgba(181, 26, 31, .7); }
.tag--bad { color: var(--bad); border-color: var(--bad); }
.adm-meta { color: var(--ink-dim); font-size: .85rem; }
.adm-badge-row { justify-content: flex-start !important; margin: 0; }
.adm-none { color: var(--ink-dim); font-size: .85rem; list-style: none; }
.adm-picker { padding: 12px; background: #0f0d0c; border: 1px solid var(--edge); border-radius: 8px; }
.adm-picker[hidden] { display: none; }
.adm-picker-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-pick { padding: 5px 6px; background: transparent; border: 1.5px dashed transparent; border-radius: 6px; cursor: pointer; opacity: .45; transition: opacity .1s; }
.adm-pick:hover { opacity: .8; }
.adm-pick.is-on { opacity: 1; border-color: var(--red-hi); background: rgba(181, 26, 31, .14); }

.adm-views { display: flex; flex-direction: column; gap: 10px; }
.adm-views-now { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-dim); }
.adm-views-now b { color: var(--ink); font-size: 1.15rem; }
.adm-views-now .ico { width: 18px; height: 18px; }
.adm-views-custom { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-views-input { flex: 1 1 140px; width: auto; min-height: 38px; }

.adm-make { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.adm-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.adm-icon {
  display: grid;
  place-items: center;
  height: 44px;
  color: var(--ink-dim);
  background: #0d0b0b;
  border: 1.5px solid var(--edge);
  border-radius: 6px;
  cursor: pointer;
}
.adm-icon:hover { color: var(--ink); border-color: var(--edge-hi); }
.adm-icon:has(input:checked) { color: #fff; border-color: var(--red-hi); background: rgba(181, 26, 31, .2); }
.adm-icon:has(input:focus-visible) { outline: 2px dashed var(--red-hi); outline-offset: 2px; }
.adm-icon .ico { width: 20px; height: 20px; }
.adm-icon .pf-badge-img { width: 26px; height: 26px; margin: 0; }
.adm-make-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.adm-badge-preview .pf-badges { margin: 0; justify-content: flex-start; }
.adm-badge-preview .pf-badge { font-size: .85rem; padding: 5px 12px 5px 8px; }
.adm-custom { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 0; padding: 0; list-style: none; }
.adm-custom li { display: inline-flex; align-items: center; gap: 4px; }
.adm-all { justify-content: flex-start !important; gap: 10px !important; }

/* saved names */
.adm-saved { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #0f0d0c; border: 1px solid var(--edge); border-radius: 8px; }
.adm-saved-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.adm-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-code-text {
  padding: 8px 14px;
  font: 800 1.15rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em;
  color: #fff;
  background: #0b0a0a;
  border: 1.5px dashed var(--yellow);
  border-radius: 6px;
  user-select: all;
}
.tag--good { color: #8fd8a6; border-color: rgba(79, 192, 114, .55); }

/* lockdown */
.adm-lockdown { position: relative; overflow: hidden; padding-top: 62px; }
.adm-lockdown-tape { top: 14px; }
.adm-lockdown.is-on { border-color: #ff2e3a; box-shadow: 0 0 0 1px #ff2e3a, 0 0 34px rgba(255, 46, 58, .3); }
.adm-lockdown.is-on .adm-lockdown-tape { background: linear-gradient(#121010 0 0) top / 100% 3px no-repeat, linear-gradient(#121010 0 0) bottom / 100% 3px no-repeat, #c8102e; color: #fff; }
.adm-lockdown-btn { font-size: 1.05rem; letter-spacing: .06em; padding: 12px 22px; }

/* holiday switches */
.adm-holiday-intro { margin: 0; }
.adm-holiday-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; }
.adm-holiday { flex-direction: row; align-items: center; gap: 16px; }
.adm-holiday .adm-sec-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1.3rem; }
.adm-holiday-when { font: 700 .78rem/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-dim); }
.adm-holiday.is-on { border-color: var(--red-hi); box-shadow: 0 0 0 1px var(--red-hi), 0 0 24px rgba(181, 26, 31, .25); }
.adm-holiday-hat { width: 78px; flex: none; filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, .5)); }
.adm-holiday-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.adm-holiday-text .ctl-hint { margin: 0; }
.adm-holiday-state { margin: 0; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; color: var(--ink-dim); }
.adm-holiday.is-on .adm-holiday-state { color: #8fd8a6; }
@media (max-width: 640px) {
  .adm-holiday { flex-direction: column; align-items: flex-start; }
}

/* announcement preview (the real one lives on the main page) */
.announce-preview { overflow: hidden; padding: 10px 0; border-radius: 6px; background: #0b0a0a; }
.announce-tape {
  display: flex;
  align-items: center;
  height: 42px;
  margin: 0 -20px;
  overflow: hidden;
  white-space: nowrap;
  transform: rotate(-1.2deg);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .55);
  background: linear-gradient(#121010 0 0) top / 100% 4px no-repeat, linear-gradient(#121010 0 0) bottom / 100% 4px no-repeat, var(--yellow);
  color: #121010;
}
.announce-tape--red { background: linear-gradient(#121010 0 0) top / 100% 4px no-repeat, linear-gradient(#121010 0 0) bottom / 100% 4px no-repeat, var(--red); color: #f7efe3; }
.announce-track { display: flex; flex: none; animation: ann-scroll 26s linear infinite; }
.announce-track span { display: inline-flex; align-items: center; gap: 26px; padding: 0 13px; font: 800 1rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.announce-track span::after { content: ""; width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); }
@keyframes ann-scroll { to { transform: translateX(-50%); } }

@media (max-width: 640px) {
  .adm-make { grid-template-columns: 1fr; }
  .adm-head { flex-direction: column; }
}

/* toast (also defined for profile pages) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  color: #f4efe6;
  font: 600 .95rem/1.4 var(--ui);
  background: #1a1716;
  border: 1px solid var(--edge);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--bad { border-color: var(--red-hi); }
.toast--good { border-color: #3d9b5a; }
