/* The staff page of the report website (www.minemc.co/report/staff/).
   A calm help desk (REPORTS.md section 2), completely different from the vote page's mine look: dark panels,
   Inter, rounded-square cards with a 1px border, roomy spacing. MineMC touches only: the owner's logo (shown as-is,
   pixelated, never recoloured), the Silkscreen title, grass-green main buttons, torch-gold highlights.
   Self-contained on purpose (no ../report.css): the colours below are the same tokens as REPORTS.md section 2.
   Never name a class ad / ads / advert / banner / promo / sponsor (ad blockers hide those). */

:root {
  color-scheme: dark;
  --bg: #121112;
  --panel: #1b1a1b;
  --panel-2: #211f21;
  --panel-3: #2a2729;
  --line: #2d2a2b;
  --line-2: #3d393b;
  --text: #f1eeee;
  --text-2: #cfcacb;
  --muted: #9a9496;
  --grass: #70b309;
  --grass-hi: #7fc40f;
  --grass-dark: #529205;
  --gold: #dec139;
  --gold-dark: #b39a22;
  --emerald: #18d978;
  --red: #e5484d;
  --stone: #3a3839;
  --stone-hi: #474446;
  --stone-line: #514d4f;
  --blurple: #5865f2;
  --blurple-hi: #6b77f5;
  --r: 12px;
  --r-sm: 8px;
  --gut: 16px;
  --top-h: 64px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --pixel: 'Silkscreen', 'Inter', monospace;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.bad { color: var(--red); }
.good { color: var(--emerald); }
.small { font-size: 13px; }

.i {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.head {
  flex: none;
  border-radius: 6px;
  background: var(--panel-3);
  image-rendering: pixelated;
  object-fit: cover;
}
.avatar { flex: none; border-radius: 50%; background: var(--panel-3); object-fit: cover; }

.card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.card-title {
  margin: 0 0 12px;
  color: var(--muted);
  font: 700 12px/1.3 var(--font);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.sub-title { margin: 18px 0 8px; color: var(--text-2); font: 600 14px/1.3 var(--font); }
.card-title + .sub-title { margin-top: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--stone-line);
  border-radius: var(--r-sm);
  background: var(--stone);
  color: var(--text);
  font: 700 15px/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { background: var(--stone-hi); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn-grass { border-color: var(--grass-dark); background: var(--grass); color: #10170a; box-shadow: inset 0 -3px 0 var(--grass-dark); }
.btn-grass:hover { background: var(--grass-hi); }
.btn-gold { border-color: var(--gold-dark); background: var(--gold); color: #1d1806; box-shadow: inset 0 -3px 0 var(--gold-dark); }
.btn-gold:hover { background: #e6cb4f; }
.btn-red { border-color: #b8353a; background: var(--red); color: #fff; box-shadow: inset 0 -3px 0 #b8353a; }
.btn-red:hover { background: #ec5b60; }
/* a stone button with red words: for "Delete" and "Block" (the red fill is kept for the yes button in the ask box) */
.btn-danger { border-color: rgba(229, 72, 77, 0.45); color: #f39a9d; }
.btn-danger:hover { border-color: var(--red); background: rgba(229, 72, 77, 0.14); color: #ffc1c3; }
.btn .i { width: 17px; height: 17px; }
.btn-discord { border-color: #4752c4; background: var(--blurple); color: #fff; font-weight: 600; }
.btn-discord strong { font-weight: 800; }
.btn-discord:hover { background: var(--blurple-hi); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(42, 39, 41, 0.9);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { background: var(--stone-hi); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ chips */

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 12px/1.3 var(--font);
  white-space: nowrap;
}
.chip-open, .chip-gold { border-color: rgba(222, 193, 57, 0.35); background: rgba(222, 193, 57, 0.12); color: var(--gold); }
.chip-answered { border-color: rgba(24, 217, 120, 0.32); background: rgba(24, 217, 120, 0.1); color: var(--emerald); }
.chip-closed { border-color: rgba(180, 174, 176, 0.28); background: rgba(180, 174, 176, 0.1); color: #b8b2b4; }
.chip-reason, .chip-plain, .chip-source { border-color: var(--line-2); background: var(--panel-3); color: var(--text-2); }
.chip-reason { color: var(--text); }
.chip-game { border-color: rgba(112, 179, 9, 0.38); background: rgba(112, 179, 9, 0.12); color: #a5d65b; }

/* ------------------------------------------------------------------ top bar */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--top-h);
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 17, 18, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; color: var(--text); text-decoration: none; }
.brand-logo { flex: none; width: 40px; height: 40px; image-rendering: pixelated; }
.brand-title { font: 700 19px/1 var(--pixel); letter-spacing: 0.02em; white-space: nowrap; }
.top-nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}
.top-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 600 15px/1 var(--font);
  cursor: pointer;
}
.top-tab:hover { color: var(--text); }
.top-tab[aria-current="page"] { background: var(--panel-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; margin-left: auto; }
.me-avatar { width: 32px; height: 32px; border-radius: 8px; }
.me-name { max-width: 200px; overflow: hidden; color: var(--text-2); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ gate (logged out, not staff) */

.gate {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--top-h));
  padding: 32px var(--gut);
}
.gate-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  padding: 32px 24px;
  text-align: center;
}
.gate-logo { width: 72px; height: 72px; image-rendering: pixelated; }
.gate-title { margin-top: 4px; font: 800 24px/1.2 var(--font); }
.gate-line { color: var(--text-2); }
.gate-line.bad { color: var(--red); }
.gate-line.muted { color: var(--muted); }
.gate-note {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(229, 72, 77, 0.4);
  border-radius: var(--r-sm);
  background: rgba(229, 72, 77, 0.1);
  color: #f2a5a8;
  font-size: 14px;
  font-weight: 600;
}
.gate-card .btn { margin-top: 8px; }
.gate-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; }
.gate-link:hover { color: var(--text); }

/* ------------------------------------------------------------------ desk: inbox | report */

.desk {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  height: calc(100vh - var(--top-h));
  height: calc(100dvh - var(--top-h));
}

.inbox {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--panel);
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 16px 16px 12px;
}
.tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text-2);
  font: 600 14px/1.2 var(--font);
  text-align: left;
  cursor: pointer;
}
.tab:hover { border-color: var(--line-2); color: var(--text); }
.tab.is-on { border-color: var(--gold); background: var(--panel-3); color: var(--text); }
.tab-count {
  flex: none;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--text-2);
  font: 700 12px/18px var(--font);
  text-align: center;
}
.tab-count:empty { display: none; }
.tab-count-hot { background: rgba(222, 193, 57, 0.18); color: var(--gold); }
.tab.is-on .tab-count { background: var(--gold); color: #1d1806; }

.search { position: relative; }
.inbox .search { margin: 0 16px 12px; }
.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px 10px 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 15px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(222, 193, 57, 0.15); }

.list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 8px 8px;
  border-top: 1px solid var(--line);
  scrollbar-color: var(--line-2) transparent;
  scrollbar-width: thin;
}
.row-item + .row-item { border-top: 1px solid var(--line); }
.row {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.row:hover { background: var(--panel-2); }
.row.is-open { background: var(--panel-3); box-shadow: inset 3px 0 0 var(--gold); }
.row > .head { width: 32px; height: 32px; margin-top: 3px; }
.row-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.row-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.row-target { flex: 1; min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.row-age { flex: none; color: var(--muted); font-size: 12px; }
.row-mid { display: flex; gap: 6px; min-width: 0; color: var(--text-2); font-size: 13px; }
.row-reason { flex: none; font-weight: 600; }
.row-by { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.row-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.row-counts { display: flex; gap: 10px; margin-left: auto; }
.count { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.count .i { width: 14px; height: 14px; }
.count-zero { opacity: 0.35; }
.list-note { margin: 0; padding: 28px 12px 12px; color: var(--muted); text-align: center; }
.list-note.good { color: var(--emerald); }
.list-note.bad { color: var(--red); }
.list-retry { display: flex; margin: 8px auto 0; }
.more { margin: 8px 16px 16px; }
/* the Privacy link: under the inbox, at the end of the Team tab (the cards use .gate-link) */
.inbox-foot { flex: none; margin: 0; padding: 0 16px 4px; border-top: 1px solid var(--line); }
.page-foot { margin: 0; text-align: center; }
.foot-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; }
.foot-link:hover { color: var(--text); }

.pane {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  background: var(--bg);
  scrollbar-color: var(--line-2) transparent;
  scrollbar-width: thin;
}
.pane-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 32px;
  text-align: center;
}
.pane-empty img { image-rendering: pixelated; }
.pane-empty-title { margin-top: 10px; color: var(--text-2); font: 700 18px/1.3 var(--font); }

/* ------------------------------------------------------------------ one report */

.report {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 32px 48px;
}
.report-note { padding: 40px 0; color: var(--muted); text-align: center; }
.report-note.bad { color: var(--red); }
.gone { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 0 24px; text-align: center; }
.gone-title { color: var(--text-2); font: 700 18px/1.35 var(--font); }
.gone .btn { margin-top: 8px; }
.rv-bar { display: none; }
.rv-head { display: flex; align-items: flex-start; gap: 16px; }
.rv-head > .head { width: 56px; height: 56px; border-radius: 10px; }
.rv-title { flex: 1; min-width: 0; }
.rv-target { margin-bottom: 8px; font: 800 26px/1.15 var(--font); overflow-wrap: anywhere; }
.rv-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 10px; font-size: 13px; }
.rv-meta > * + *::before { content: '\00b7'; margin-right: 8px; color: var(--line-2); }
.rv-actions { display: flex; flex: none; gap: 8px; }

.rv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.rv-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.details { font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  font-size: 14px;
}
.place .i { color: var(--gold); }
.place-label { font-weight: 700; }
.place-text { color: var(--text-2); font-family: ui-monospace, Consolas, Menlo, monospace; overflow-wrap: anywhere; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--panel-3);
  cursor: zoom-in;
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.photo:hover { border-color: var(--gold); }
.photo:hover img { transform: scale(1.04); }
.photo-broken img { visibility: hidden; }

.links { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}
.link .i { color: var(--gold); }
a.link:hover { border-color: var(--gold); }
a.link:hover .link-text { text-decoration: underline; }
.link-text { min-width: 0; overflow-wrap: anywhere; }
.links + .small { margin-top: 8px; }

.who { display: flex; align-items: flex-start; gap: 12px; }
.who > .head { width: 40px; height: 40px; border-radius: 8px; }
.defs { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 0; margin: 0; }
.def dt { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.def dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.def-extra { display: block; color: var(--muted); font: 400 12px/1.4 ui-monospace, Consolas, Menlo, monospace; }
.block-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.blocked-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(229, 72, 77, 0.45);
  border-radius: 999px;
  background: rgba(229, 72, 77, 0.12);
  color: #f39a9d;
  font-size: 13px;
  font-weight: 700;
}
.blocked-tag .i { width: 14px; height: 14px; }

.other {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.other + .other { margin-top: 8px; }
.other:hover { border-color: var(--gold); }
.other-top { font-weight: 700; }
.other-sub { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }

/* ------------------------------------------------------------------ conversation */

.msgs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.msg {
  max-width: 82%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.msg-player { align-self: flex-start; border-top-left-radius: 4px; }
.msg-staff {
  align-self: flex-end;
  border-color: rgba(24, 217, 120, 0.32);
  border-top-right-radius: 4px;
  background: rgba(24, 217, 120, 0.07);
}
.msg-note {
  align-self: stretch;
  max-width: none;
  border: 1px dashed rgba(222, 193, 57, 0.6);
  background: rgba(222, 193, 57, 0.07);
}
.msg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 4px; font-size: 13px; }
.msg-top > .head { width: 24px; height: 24px; border-radius: 4px; }
.msg-name { font-weight: 700; }
.msg-tag {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--panel-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.msg-staff .msg-tag { background: rgba(24, 217, 120, 0.15); color: var(--emerald); }
.msg-time { margin-left: auto; color: var(--muted); font-size: 12px; }
.note-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(222, 193, 57, 0.16);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
.note-tag .i { width: 13px; height: 13px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-system {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 4px 8px;
  max-width: 100%;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.msg-system time { opacity: 0.8; }

.composer { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.composer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
/* position: relative keeps the hidden checkbox inside the switch (else it escapes the scrolling pane and makes the
   whole page taller on desktop) */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.switch-ui {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border: 1px solid var(--stone-line);
  border-radius: 999px;
  background: var(--stone);
  transition: background-color 0.15s;
}
.switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d8d4d5;
  transition: transform 0.15s;
}
.switch input:checked + .switch-ui { border-color: var(--gold-dark); background: var(--gold); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); background: #1d1806; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch input:disabled + .switch-ui, .switch input:disabled ~ .switch-text { opacity: 0.6; }
.switch:has(input:disabled) { cursor: default; }
.composer-help { font-size: 13px; }
.composer-closed {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: var(--text-2);
  font-size: 14px;
}
.composer-text, .ask textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
}
.composer-text::placeholder, .ask textarea::placeholder { color: var(--muted); }
.composer-text:focus, .ask textarea:focus { outline: none; border-color: var(--grass); box-shadow: 0 0 0 3px rgba(112, 179, 9, 0.18); }
.composer.is-note .composer-text { border-style: dashed; border-color: rgba(222, 193, 57, 0.6); background: rgba(222, 193, 57, 0.05); }
.composer.is-note .composer-text:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(222, 193, 57, 0.18); }
.composer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.shortcut { margin-right: auto; font-size: 12px; }
.counter { font-size: 12px; font-variant-numeric: tabular-nums; }
.counter-full { color: var(--red); }

/* ------------------------------------------------------------------ photo viewer */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: #080808; /* solid: the sticky top bar must not show through */
}
.viewer-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.viewer-count { font-weight: 700; }
.viewer-open { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; color: var(--text-2); font-size: 14px; }
.viewer-open:hover { color: var(--text); }
.viewer-del { background: rgba(42, 39, 41, 0.9); }
.viewer-stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 0;
  padding: 0 16px 24px;
}
.viewer-img {
  max-width: calc(100% - 136px);
  max-height: 100%;
  max-height: calc(100dvh - 90px);
  border-radius: 6px;
  background: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

/* ------------------------------------------------------------------ ask box */

.ask {
  position: fixed;
  inset: 0;
  z-index: 55; /* above the photo viewer (50): "Delete this photo?" shows on top of the photo */
  display: grid;
  place-items: center;
  padding: var(--gut);
  background: rgba(8, 8, 8, 0.72);
}
.ask-box { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 460px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.ask-title { font: 800 20px/1.25 var(--font); }
.ask-field { display: flex; flex-direction: column; gap: 6px; }
.ask textarea { min-height: 90px; }
.label { color: var(--text-2); font-size: 13px; font-weight: 600; }
.ask-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-left-width: 4px;
  border-radius: 10px;
  background: var(--panel-3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-weight: 600;
  transform: translateX(-50%);
}
.toast-good { border-left-color: var(--emerald); }
.toast-bad { border-left-color: var(--red); }

/* ------------------------------------------------------------------ team */

.team { padding: 32px var(--gut) 64px; }
.team-wrap { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.team-title { margin-bottom: 4px; font: 800 26px/1.2 var(--font); }
.team-note { padding: 40px 0 12px; text-align: center; }
.people { margin: 0; padding: 0; list-style: none; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.person:first-child { padding-top: 0; border-top: 0; }
.person > .head, .person > .avatar { width: 40px; height: 40px; }
.person > .head { border-radius: 8px; }
.person-main { flex: 1; min-width: 0; }
.person-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.person-name { font-weight: 700; overflow-wrap: anywhere; }
.person-sub { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; font-size: 13px; }
.person-mc { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.person-mc > .head { width: 16px; height: 16px; border-radius: 3px; }
.add-card .search { margin-top: 14px; }
.found { margin-top: 14px; }
.found .person:first-child { padding-top: 4px; }
.found-note { padding: 4px 0; font-size: 14px; }
.team-ro { margin-top: 14px; }

/* ------------------------------------------------------------------ sizes */

@media (max-width: 1199px) {
  .rv-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1099px) and (min-width: 860px) {
  .desk { grid-template-columns: 350px minmax(0, 1fr); }
  .report { padding: 20px 24px 40px; }
}

/* Phones and small tablets: the inbox, then one report full screen with a Back button. */
@media (max-width: 859px) {
  .top { position: static; flex-wrap: wrap; height: auto; padding: 10px var(--gut); gap: 10px 12px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-title { font-size: 17px; }
  .top-nav { order: 3; width: 100%; margin: 0; }
  .top-tab { flex: 1; }
  .gate { min-height: 0; padding-top: 24px; }
  .desk { display: block; height: auto; }
  .inbox { border-right: 0; background: transparent; }
  .tabs { padding: 16px var(--gut) 12px; }
  .inbox .search { margin: 0 var(--gut) 12px; }
  .list { overflow: visible; padding: 4px 8px 8px; }
  .more { display: flex; width: calc(100% - 2 * var(--gut)); margin: 8px var(--gut) 24px; }
  .inbox-foot { padding: 0 var(--gut) 16px; border-top: 0; text-align: center; }
  .pane { display: none; overflow: visible; }
  .desk.show-report .inbox { display: none; }
  .desk.show-report .pane { display: block; }
  .pane-empty { display: none; }
  .report { gap: 12px; padding: 0 var(--gut) 40px; }
  .rv-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 calc(-1 * var(--gut));
    padding: 8px var(--gut);
    border-bottom: 1px solid var(--line);
    background: rgba(18, 17, 18, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .rv-back .i { width: 18px; height: 18px; }
  .rv-bar-title { min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  .rv-head { flex-wrap: wrap; gap: 12px 14px; padding-top: 4px; }
  .rv-head > .head { width: 48px; height: 48px; }
  .rv-target { font-size: 22px; }
  .rv-actions { width: 100%; }
  .rv-actions .btn { flex: 1; }
  .rv-grid, .rv-col { gap: 12px; }
  .card { padding: 16px; }
  .msg { max-width: 92%; }
  .shortcut { display: none; }
  .composer-foot .btn { flex: 1; }
  .team { padding: 20px var(--gut) 48px; }
  .team-title { font-size: 22px; }
}

@media (max-width: 600px) {
  .viewer-img { max-width: 100%; max-height: calc(100dvh - 160px); }
  .viewer-stage { padding-bottom: 88px; }
  .viewer-nav { position: absolute; bottom: 24px; }
  #viewer-prev { left: calc(50% - 60px); }
  #viewer-next { right: calc(50% - 60px); }
}

@media (max-width: 479px) {
  .me-name { display: none; }
  .viewer-top { gap: 8px; padding: 10px 12px; }
  .viewer-del { width: 44px; padding: 0; } /* just the bin picture on small phones (the words stay as its label) */
  .viewer-del span { display: none; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person { flex-wrap: wrap; }
  .person > .btn { margin-left: 52px; }
}

@media (max-width: 359px) {
  .tab { padding: 6px 8px; font-size: 13px; }
  .brand-title { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
