/* Brochure Plus: matches the Bang admin (bangmedia.com.au/admin) and Signoff look */
:root {
  --bg: #000;
  --side: rgba(17, 21, 27, 0.55);
  --panel: #11151b;
  --inset: #0b0e12;
  --pill: #0e1319;
  --line: #232a33;
  --line-soft: #1e2731;
  --text: #d1e2eb;
  --text-strong: #e9f4fa;
  --text-nav: #c3d5df;
  --muted: #6c8d9e;
  --blue: #8cb5cb;
  --accent: #9cdaeb;
  --accent-2: #7fd2e8;
  --accent-ink: #04121a;
  --mint: #5fe0b9;
  --danger: #f2877f;
  --danger-bg: rgba(242, 135, 127, 0.08);
  --title-gradient: linear-gradient(90deg, #99bbce, #a4b4c9 14%, #9cdaeb 28%, #c2e6e4 43%, #c7dbcd 57%, #d9d4d4 72%, #fff 86%, #d3ced9);
  --radius: 16px;
  font-family: Satoshi, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg) radial-gradient(880px 672px at 0% 100%, rgba(20, 60, 90, 0.35), rgba(0, 0, 0, 0) 65%) fixed no-repeat;
  color: var(--text); font-size: 16px; line-height: 1.5;
}
[hidden] { display: none !important; }
a { color: var(--accent); }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px;
  background: var(--side); border-right: 1px solid var(--line); padding: 28px 20px;
}
.side-top { display: grid; gap: 10px; }
.logo { width: 118px; height: auto; display: block; }
.app-name { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.nav { display: grid; gap: 8px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9.6px 14.4px; border-radius: 11.2px;
  background: rgba(255, 255, 255, 0.02); color: var(--text-nav); font-size: 15.2px; font-weight: 600; text-decoration: none;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); }
.nav-item.active { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.ico { width: 18px; text-align: center; opacity: .8; font-size: 14px; }
.side-bottom { margin-top: auto; display: grid; gap: 10px; }
.user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-width: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--mint)); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.user-name { font-weight: 600; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.main { padding: 36px 48px 64px; max-width: 1100px; width: 100%; }

/* ---------- type ---------- */
.h1 {
  margin: 0 0 6px; font-size: 33.6px; line-height: 1.6; font-weight: 700; letter-spacing: -0.672px;
  background: var(--title-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: rgba(156, 218, 235, 0.35) 0 0 24px; display: inline-block;
}
.sub { color: var(--muted); font-size: 14.72px; margin: 0 0 24px; }
.sub.small { font-size: 13.6px; margin: 0; }
.panel-title { font-size: 17px; font-weight: 700; color: var(--text-strong); }
.panel > .panel-title { margin-bottom: 16px; }

/* ---------- panels ---------- */
.block { display: grid; gap: 16px; margin-bottom: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22.4px; }
.panel-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 16px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 19.2px 21.6px; }
.stat .n { font-size: 33.6px; font-weight: 700; letter-spacing: -0.672px; color: var(--text-strong); line-height: 1.2; }
.stat .l { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.status { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.progress { grid-column: 1 / -1; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--mint)); transition: width .4s; }
.report { grid-column: 1 / -1; font-size: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.report table { border-collapse: collapse; width: 100%; margin-top: 10px; font-size: 13px; }
.report td { border-bottom: 1px solid var(--line); padding: 6px 8px; color: var(--text); }
.report td:first-child { color: var(--muted); }
.callout { background: var(--inset); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 12px 0; }
.callout.error { border-left-color: var(--danger); background: var(--danger-bg); color: var(--danger); margin: 0 0 16px; }

/* ---------- controls ---------- */
.btn {
  font: inherit; font-size: 13.6px; font-weight: 600; border-radius: 32px; padding: 8.8px 18px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line); background: var(--pill); color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover { border-color: #33404d; color: var(--text-strong); }
.btn.outline { background: transparent; }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); color: var(--accent-ink); }
.btn.small { font-size: 12.8px; font-weight: 500; padding: 5.6px 15.2px; }
.btn.big { font-size: 15.2px; padding: 12px 26px; border-radius: 11.2px; }
.btn:disabled { opacity: .45; cursor: default; }
label { display: grid; gap: 8px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 500; }
input, select {
  width: 100%; font: inherit; font-size: 14.4px; text-transform: none; letter-spacing: normal; color: var(--text-strong);
  background-color: var(--inset); border: 1px solid var(--line); border-radius: 9.6px; padding: 8.8px 12.8px;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 35px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c8d9e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select option, select optgroup { background: var(--inset); color: var(--text-strong); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(156, 218, 235, 0.12); }
input::placeholder { color: #4b6372; }
input[type=checkbox] { width: auto; accent-color: var(--accent); margin-top: 3px; }
.row { display: grid; gap: 16px; }
.row.two { grid-template-columns: 1fr 1fr; }

/* ---------- builder ---------- */
.group { background: var(--inset); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.group-head { display: flex; gap: 8px; margin-bottom: 12px; }
.group-head select { font-weight: 600; }
.blurb { margin: 8px 2px 0; min-height: 1.2em; font-size: 13px; color: var(--muted); line-height: 1.45; }
.tlist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcard {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer;
  background: var(--inset); text-transform: none; letter-spacing: normal; font-size: 14px; color: var(--text);
}
.tcard b { color: var(--text-strong); font-weight: 600; }
.tcard .muted { color: var(--muted); font-size: 13px; }
.tcard.on { border-color: var(--accent); background: rgba(156, 218, 235, 0.06); }
.tcard .q { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.tcard .off { font-size: 12px; color: var(--danger); }
.fit { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.fit .bar { flex: 1; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.fit .bar div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--mint)); }
.fit.over .bar div { background: var(--danger); }
.fit.over span { color: var(--danger); font-weight: 600; }
.team-section summary { cursor: pointer; display: flex; gap: 12px; align-items: baseline; list-style: none; }
.team-section summary::-webkit-details-marker { display: none; }
.team-section summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.team-section[open] summary::before { transform: rotate(90deg); }
.tlist.people { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.generate-bar {
  position: sticky; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: rgba(17, 21, 27, 0.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 22px;
}

/* ---------- sign-in ---------- */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.signin-card { width: min(440px, 100%); text-align: center; padding: 40px 32px; display: grid; justify-items: center; gap: 6px; }
.signin-card .logo { margin-bottom: 18px; }
.signin-card .sub { margin-bottom: 22px; }
.signin-card .callout { margin-top: 18px; text-align: left; width: 100%; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 16px; gap: 12px; }
  .nav { display: flex; flex-wrap: wrap; }
  .side-bottom { margin: 0 0 0 auto; display: flex; align-items: center; }
  .user { padding: 6px 10px; }
  .main { padding: 24px 16px 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .row.two, .tlist, .tlist.people, .status { grid-template-columns: 1fr; }
}
