/* fm-careers: the fmcareer report's FM26 look (fmcareer/web/report.css), with its themes for profiles */
:root {
  color-scheme: dark;
  --bg: #0c0d24; --surface: #171936; --surface-2: #20234a; --line: #2c2f5e;
  --text: #f3f3fb; --text-2: #b9bbdc; --text-3: #8486b4;
  --accent: #c77dff; --accent-soft: #33275e; --accent-2: #e04fd0; --accent-3: #7b3cff;
  --gold: #f4c54d; --gold-soft: #3b3220; --up: #8be04e; --up-soft: #23391f;
  --down: #ff6b7a; --down-soft: #3e1d2c; --band: #1c1e40;
  --bar-1: #14163a; --bar-2: #0f1130; --crest-end: #2a1f63;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}
:root[data-theme="midnight"] {
  --bg: #07111f; --surface: #0f1e33; --surface-2: #162a45; --line: #23395a;
  --text: #eef4fb; --text-2: #a9bdd6; --text-3: #8199b8;
  --accent: #5cc8ff; --accent-soft: #12324a; --accent-2: #2f7fff; --accent-3: #1f6fe0;
  --band: #0d1a2d; --bar-1: #0d1b30; --bar-2: #081426; --crest-end: #12325a;
}
:root[data-theme="pitch"] {
  --bg: #07150e; --surface: #0e2318; --surface-2: #153222; --line: #21452f;
  --text: #eefaf2; --text-2: #a9cdb6; --text-3: #82aa92;
  --accent: #8ee67c; --accent-soft: #1c3a20; --accent-2: #2fbf71; --accent-3: #1f9e5c;
  --up: #5ee0b0; --up-soft: #15382d;
  --band: #0b1d13; --bar-1: #0d2418; --bar-2: #08180f; --crest-end: #14402a;
}
:root[data-theme="crimson"] {
  --bg: #120b0d; --surface: #1e1416; --surface-2: #2a1c1f; --line: #3b2a2d;
  --text: #f8f1f2; --text-2: #d1b9bd; --text-3: #a88d91;
  --accent: #ff7a7a; --accent-soft: #3d1d22; --accent-2: #e8364f; --accent-3: #c41e3a;
  --down: #ffa94d; --down-soft: #3d2a17;
  --band: #1a1113; --bar-1: #22161a; --bar-2: #150d10; --crest-end: #4a1820;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5fa; --surface: #ffffff; --surface-2: #eef0f7; --line: #dde1ee;
  --text: #161a33; --text-2: #474d6b; --text-3: #61677f;
  --accent: #5b2fd6; --accent-soft: #ece6fd; --accent-2: #c0269e; --accent-3: #6a3cf0;
  --gold: #8a5f00; --gold-soft: #fbf1d6; --up: #2a7d1b; --up-soft: #e3f4dc; --down: #c02436; --down-soft: #fbe3e6;
  --band: #eceef7; --bar-1: #ffffff; --bar-2: #f4f5fa; --crest-end: #4b3aa0;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column;
  font: 15px/1.55 "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* top bar, as the report's */
.bar { background: linear-gradient(180deg, var(--bar-1), var(--bar-2)); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar .in { max-width: 1160px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 24px/1.1 var(--head); color: var(--text); padding: 10px 0; }
.brand:hover { text-decoration: none; }
.brand .mark { display: inline-grid; place-items: center; width: 32px; height: 36px; border-radius: 7px 7px 16px 16px;
  background: linear-gradient(160deg, var(--accent-3), var(--accent-2)); color: #fff; font-size: 15px; }
.brand span.sub { color: var(--text-3); font-weight: 500; font-size: 16px; }
nav { display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; }
nav a, nav button.link { font: 600 18px var(--head); color: var(--text-2); padding: 14px 12px 13px; border-bottom: 3px solid transparent; white-space: nowrap; }
nav a:hover, nav button.link:hover { text-decoration: none; color: var(--text); }
nav a.on { color: var(--accent); border-bottom-color: var(--accent); }
nav form { margin: 0; }
nav a.cta { color: #fff; border: 0; padding: 6px 14px; margin-left: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); }

.wrap { max-width: 1160px; width: 100%; margin: 0 auto; padding: 22px 16px 64px; flex: 1; }
.wrap.wide { max-width: none; padding: 0; display: flex; flex-direction: column; }
h1 { font: 700 34px/1.15 var(--head); margin: 0; }
h2 { font: 600 20px var(--head); color: var(--accent); margin: 30px 0 10px; }
.lede { color: var(--text-2); font-size: 16px; margin: 6px 0 0; max-width: 70ch; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.kicker { font: 600 13px var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile .v { font: 700 32px/1.1 var(--head); }
.tile .k { color: var(--text-2); font-size: 13px; }
.badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2);
  color: var(--text-2); white-space: nowrap; font-weight: 500; }
.badge.gold { background: var(--gold-soft); color: var(--gold); font-weight: 600; }
.badge.up { background: var(--up-soft); color: var(--up); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.down { background: var(--down-soft); color: var(--down); }

/* hero */
.hero { background: linear-gradient(100deg, color-mix(in srgb, var(--accent-3) 45%, transparent), transparent 70%);
  border-radius: 14px; padding: 34px 26px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.hero h1 { font-size: 46px; }
.hero .actions { margin-top: 18px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.steps .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-right: 8px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2)); color: #fff; font: 600 15px var(--head); }
.steps b { font: 600 18px var(--head); }
.steps p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }

/* report cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rcard { display: flex; flex-direction: column; gap: 10px; color: var(--text); transition: border-color .15s, transform .15s; }
.rcard:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.rcard .top { display: flex; gap: 12px; align-items: center; }
.rcard .t { font: 700 20px/1.15 var(--head); }
.rcard .m { color: var(--text-2); font-size: 14px; }
.rcard .row { display: flex; flex-wrap: wrap; gap: 4px; }
.rcard .foot { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; margin-top: auto; }
.rcard.private { border-style: dashed; }
.crest { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 50px; border-radius: 9px 9px 22px 22px;
  background: linear-gradient(160deg, var(--accent-3), var(--crest-end)); color: #fff; font: 700 15px var(--head); }
.crest.lg { width: 96px; height: 108px; font-size: 34px; border-radius: 14px 14px 48px 48px; }
img.crest { object-fit: contain; background: none; border-radius: 0; }
img.face { border-radius: 50%; object-fit: cover; height: 44px; background: var(--surface-2); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; border: 1px solid rgba(255,255,255,.2); }
.swatch.fm26 { background: #c77dff; } .swatch.midnight { background: #5cc8ff; } .swatch.pitch { background: #8ee67c; }
.swatch.crimson { background: #ff7a7a; } .swatch.club { background: linear-gradient(90deg, #6b4bd6, #e0b04f); } .swatch.light { background: #f4f5fa; }

/* profile */
.phead { background: linear-gradient(100deg, color-mix(in srgb, var(--accent-3) 50%, transparent), transparent 70%);
  border-radius: 14px; padding: 22px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.phead .who { flex: 1; min-width: 220px; }
.phead .handle { color: var(--text-3); font: 500 18px var(--head); }
.phead .bio { color: var(--text-2); margin: 8px 0 0; max-width: 70ch; white-space: pre-line; }
.empty { text-align: center; padding: 40px 16px; }

/* report page: a header strip, then the report filling the rest of the window */
.rbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.rbar .in { max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rbar .t { flex: 1; min-width: 200px; }
.rbar .t b { font: 700 22px/1.15 var(--head); display: block; }
.rbar .t span { color: var(--text-3); font-size: 13px; }
.frame { flex: 1; display: flex; min-height: 600px; }
.frame iframe { flex: 1; width: 100%; height: calc(100vh - 130px); min-height: 600px; border: 0; display: block; background: var(--bg); }
html.pinned, html.pinned body { overflow: hidden; }
.frame.pinned { position: fixed; inset: 0; z-index: 100; min-height: 0; background: var(--bg); }
.frame.pinned iframe { height: 100%; min-height: 0; }
.fs-close { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right)); z-index: 1; opacity: .85; }
details.owner { max-width: 1160px; width: 100%; margin: 0 auto; padding: 0 16px; }
details.owner summary { cursor: pointer; color: var(--text-2); font: 600 16px var(--head); padding: 10px 0; }
details.owner[open] { padding-bottom: 16px; }

/* forms, as the fmcareer app's */
form.stack { display: grid; gap: 14px; }
.narrow { max-width: 460px; margin: 30px auto 0; }
.mid { max-width: 720px; }
label.f { display: block; color: var(--text-2); font-size: 13px; margin: 0 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text-2); }
button, .btn { display: inline-block; font: 600 16px var(--head); color: #fff; border: 0; border-radius: 8px; padding: 9px 18px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); text-decoration: none; }
.btn:hover { text-decoration: none; }
button.ghost, .btn.ghost { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
button.danger { background: var(--down-soft); color: var(--down); border: 1px solid color-mix(in srgb, var(--down) 40%, transparent); }
button.link { background: none; padding: 0; border: 0; border-radius: 0; color: var(--accent); }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; background: var(--band); }
.drop input { margin-top: 10px; color: var(--text-2); max-width: 100%; }
.search { display: flex; gap: 8px; margin: 14px 0; max-width: 560px; }
.flash { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.flash.ok { border-color: color-mix(in srgb, var(--up) 45%, transparent); color: var(--up); background: var(--up-soft); }
.flash.err { border-color: color-mix(in srgb, var(--down) 45%, transparent); color: var(--down); background: var(--down-soft); }
.flashes { max-width: 1160px; margin: 14px auto 0; padding: 0 16px; width: 100%; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.share { display: flex; gap: 8px; }
.share input { font-size: 13px; }
footer { color: var(--text-3); font-size: 12px; padding: 18px 16px 26px; text-align: center; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding: 24px 18px; }
  .hero h1 { font-size: 36px; }
  .hero .crest.lg { display: none; }
  .bar .in { padding: 0 12px; }
  nav a, nav button.link { padding: 10px 8px; font-size: 16px; }
  .frame iframe { height: calc(100vh - 170px); }
}

/* moderation */
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--down); color: #fff; font: 600 13px var(--head); vertical-align: 2px; }
.tabs { display: flex; gap: 4px; margin: 24px 0 14px; border-bottom: 1px solid var(--line); }
.tabs a { font: 600 18px var(--head); color: var(--text-2); padding: 8px 12px 10px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.mt { margin-top: 16px; }
.scroll { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--text-2); font-weight: 600; font-size: 13px; }
td.n, th.n { text-align: right; }
tr:last-child td { border-bottom: 0; }
td .actions { flex-wrap: nowrap; justify-content: flex-end; }
button.sm, .btn.sm { font-size: 14px; padding: 5px 12px; }
.flagged { margin-bottom: 12px; border-left: 3px solid var(--down); }
.rcard-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rcard-row .grow { flex: 1; min-width: 200px; }
.rcard-row form { margin: 0; }
.flags { margin: 12px 0 0; padding: 10px 0 0 18px; border-top: 1px solid var(--line); }
.flags li { margin: 2px 0; }
.adminbar { max-width: 1160px; width: 100%; margin: 0 auto; padding: 8px 16px; display: flex; gap: 10px; align-items: center; }
