/* Hard Six Ops — Hard Six Global brand: black ground, copper accent,
   bold Helvetica headings with a copper full stop, spaced mono labels. */

:root {
  --ground: #0a0a0a;
  --sidebar: #000000;
  --panel: #141414;
  --panel-raised: #1b1b1b;
  --line: #2b2b2b;
  --line-soft: #222222;
  --text: #f5f5f5;
  --text-2: #b3b3b3;
  --text-3: #8c8c8c;
  /* Exact values from the Hard Six Global documents and logo artwork. */
  --copper: #d06828;
  --copper-hover: #e07c3e;
  --ok: #8fd19e;
  --danger: #e57373;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sans); }
a { color: var(--copper); }
a:hover { color: var(--copper-hover); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.dot { color: var(--copper); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--copper); text-transform: uppercase; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--text-2); text-transform: uppercase; }
.muted { color: var(--text-2); }
.rule { width: 48px; height: 5px; background: var(--copper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* App shell */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 1 1 220px; max-width: 100%; background: var(--sidebar); border-right: 1px solid var(--line-soft); padding: 28px 16px; display: flex; flex-direction: column; gap: 28px; }
.main { flex: 999 1 560px; min-width: 0; padding: 24px 40px 48px; display: flex; flex-direction: column; gap: 32px; }

.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: var(--text); text-decoration: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.brand-word span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.4em; color: var(--text-2); margin-top: 4px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav span { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a[aria-current="page"] { background: var(--panel-raised); color: #fff; font-weight: 700; }
.nav .num { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.nav a[aria-current="page"] .num { color: var(--copper); }
.nav .soon { color: var(--text-3); cursor: default; }
.nav .soon em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.company-marks { display: flex; gap: 8px; }
.mark { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--text); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.mark-img { flex-shrink: 0; display: block; }

.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--panel-raised); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

.page-head { display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: 56px; line-height: 1; letter-spacing: -0.03em; }

/* Panels */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 22px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 4px; border: 1px solid #3a3a3a; color: var(--text-2); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); }
.status.off { color: var(--text-3); }

/* Buttons and forms */
.btn, button, input[type="submit"] { min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1px solid #3a3a3a; background: transparent; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn:hover, button:hover { border-color: var(--text-2); color: var(--text); }
.btn-primary, button[type="submit"] { background: var(--copper); border-color: var(--copper); color: #000; font-weight: 700; }
.btn-primary:hover, button[type="submit"]:hover { background: var(--copper-hover); border-color: var(--copper-hover); color: #000; }
input[type="email"], input[type="text"], input[type="password"], input[type="search"], select, textarea { width: 100%; min-height: 44px; padding: 0 12px; background: var(--ground); border: 1px solid #3a3a3a; border-radius: 6px; color: var(--text); font: inherit; font-size: 15px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
form p { margin: 0 0 14px; }
.errorlist { color: var(--danger); padding-left: 18px; font-size: 14px; }
.messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.messages li { padding: 12px 14px; border-radius: 6px; background: var(--panel-raised); border: 1px solid var(--line); font-size: 14px; }

/* Sign-in pages */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.auth-card h1 { font-size: 40px; line-height: 1.05; }
.auth-card hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 4px 0; }
.auth-actions { display: flex; flex-direction: column; gap: 10px; }
.auth-actions .btn { width: 100%; }

@media (max-width: 640px) {
  .main { padding: 20px 16px 40px; }
  .page-head h1 { font-size: 40px; }
}

/* Status variants and tables (Xero page and later modules) */
.status.warn { color: var(--copper); }
.status.bad { color: var(--danger); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); font-weight: 400; padding: 0 12px 10px 0; }
.table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
.notice { padding: 14px 16px; border-radius: 6px; border: 1px solid var(--copper); color: var(--text); font-size: 14px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
