/* FEP Dashboards — brand tokens + the design tokens dashboard pages use */
:root {
  --fep-orange: #FE5000; --fep-black: #1C1F2A; --fep-grey: #585960; --fep-light: #E5E1E6; --fep-off: #F5F5F5;
  --font-anthropic-sans: 'Montserrat', system-ui, sans-serif;
  --font-anthropic-serif: 'Alfa Slab One', Georgia, serif;
  --color-fg: #1C1F2A; --color-fg-muted: #585960; --color-bg: #F5F5F5; --color-panel: #ffffff;
  --color-border-line: #E5E1E6; --color-ok: #25a33c; --color-warn: #c77700; --color-bad: #de2c11;
  --cds-font-size-caption: 12px; --cds-font-size-body: 14px; --cds-font-size-heading: 18px; --cds-font-size-title: 24px;
  --cds-font-weight-medium: 600;
  --cds-gap-xs: 4px; --cds-gap-sm: 8px; --cds-gap-md: 12px; --cds-gap-lg: 20px;
  --cds-pad-xs: 4px; --cds-pad-sm: 8px; --cds-pad-md: 12px; --cds-pad-lg: 16px;
  --cds-radius: 8px;
  --cds-chart-muted: #a3a3ab; --cds-chart-grid: #ece9ed; --cds-chart-axis: #585960; --cds-chart-reference: #1C1F2A;
  --cds-text-secondary: #585960; --cds-surface-popover: #ffffff; --cds-shadow-popover: 0 4px 16px rgba(28,31,42,.14);
  --cds-border: #E5E1E6; --cds-dur-slow: 300ms;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--color-bg); color: var(--color-fg); font-family: var(--font-anthropic-sans); font-size: 14px; }
a { color: var(--fep-orange); }

/* dashboard shell */
.topbar { display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: #000; color: #fff; font-size: 13px; position: relative; z-index: 5; }
.tb-home img { height: 28px; display: block; }
.tb-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-fresh { color: #c9c9c9; font-size: 12px; white-space: nowrap; }
.tb-user { margin-left: auto; color: #c9c9c9; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-link { color: #fff; text-decoration: none; border: 1px solid #333; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.tb-link:hover { border-color: var(--fep-orange); color: var(--fep-orange); }
#dash-root { padding: 16px; max-width: 1600px; margin: 0 auto; }
.fepd-error { position: fixed; left: 16px; right: 16px; bottom: 16px; background: var(--color-bad); color: #fff; padding: 12px 16px; border-radius: 8px; }
@media (max-width: 640px) { .tb-fresh, .tb-user { display: none; } .tb-title { margin-right: auto; } #dash-root { padding: 12px; } }

/* sign-in + home */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: linear-gradient(rgba(10,11,16,.82), rgba(10,11,16,.92)), radial-gradient(circle at 30% 20%, #3a2a20, #0a0b10 70%); }
.auth-card { width: 100%; max-width: 420px; background: rgba(255,255,255,.06); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 32px 28px; color: #fff; }
.auth-logo { width: 180px; display: block; margin-bottom: 20px; }
.auth-card h1 { font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.auth-card .tag { font-family: var(--font-anthropic-serif); color: var(--fep-orange); margin: 0 0 22px; font-size: 15px; }
.auth-card p { color: #d6d6dc; line-height: 1.5; }
.auth-card label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #c9c9c9; margin: 14px 0 6px; }
.auth-card input { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.35); color: #fff; }
.auth-card input:focus { outline: 2px solid var(--fep-orange); border-color: transparent; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; width: 100%; font: inherit; font-weight: 600; font-size: 15px; padding: 12px; border-radius: 8px;
  border: 0; cursor: pointer; text-decoration: none; background: var(--fep-orange); color: #fff; margin-top: 14px; }
.btn:hover { filter: brightness(1.08); }
.btn.ms { background: #fff; color: #1C1F2A; }
.btn[disabled] { opacity: .6; cursor: default; }
.or { display: flex; align-items: center; gap: 10px; color: #9a9aa3; font-size: 12px; margin: 22px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.15); }
.msg { min-height: 1.4em; font-size: 13px; margin: 10px 0 0; }
.msg.err { color: #ff8a70; }
.link-btn { background: none; border: 0; color: #c9c9c9; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 0; margin-top: 12px; }
.dash-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.dash-list a { display: block; padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.dash-list a:hover { border-color: var(--fep-orange); }
.who { font-size: 13px; color: #c9c9c9; margin-top: 22px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.who a { color: #c9c9c9; }

/* admin */
body.admin { padding: 0; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
.admin-main h1 { font-size: 22px; margin: 0 0 4px; }
.panel { background: #fff; border: 1px solid var(--color-border-line); border-radius: 10px; padding: 16px; margin-top: 16px; }
.panel h2 { font-size: 15px; margin: 0 0 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }
.form-grid label { font-size: 12px; color: var(--color-fg-muted); display: grid; gap: 4px; }
.form-grid input, .form-grid select { font: inherit; padding: 8px 10px; border: 1px solid var(--color-border-line); border-radius: 6px; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--color-border-line); border-radius: 999px; padding: 4px 10px; font-size: 13px; color: var(--color-fg); }
.abtn { font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 6px; border: 0; background: var(--fep-orange); color: #fff; cursor: pointer; }
.abtn.ghost { background: transparent; color: var(--color-fg); border: 1px solid var(--color-border-line); font-weight: 500; }
.tbl-wrap { overflow-x: auto; }
table.users { width: 100%; border-collapse: collapse; font-size: 13px; }
table.users th, table.users td { text-align: left; padding: 8px; border-bottom: 1px solid var(--color-border-line); white-space: nowrap; }
table.users th { font-size: 12px; color: var(--color-fg-muted); font-weight: 600; }
.pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--fep-off); }
.pill.staff { background: #1C1F2A; color: #fff; } .pill.admin { background: var(--fep-orange); color: #fff; }
