/* ZenCap — the product stylesheet.
 *
 * Forked from the pipeline portal's dark language (same palette family, same
 * 216px sticky rail, same 12px radius) and professionalised: one token set, a
 * real type scale, states for every interactive element, and no dependency on
 * a webfont CDN. The CSP is `font-src 'self'` — Inter renders when the OS has
 * it and the system stack carries the design when it does not. */

:root {
  --bg: #0b1220;
  --panel: #111a2e;
  --panel2: #0d1526;
  --raise: #16213a;
  --border: #1e2a44;
  --border2: #27375c;
  --text: #e8eefc;
  --muted: #8ea0bf;
  --dim: #5b6b8a;
  --acc: #3b82f6;
  --acc2: #60a5fa;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --violet: #a78bfa;
  --steel: #94a3b8;
  --r: 12px;
  --r-sm: 9px;
  --rail: 216px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 8px 24px rgba(2, 6, 23, .35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.55;
  background-image:
    radial-gradient(1200px 500px at 20% -10%, rgba(59, 130, 246, .08), transparent),
    radial-gradient(900px 400px at 90% 0%, rgba(52, 211, 153, .05), transparent);
  background-attachment: fixed;
}

a { color: var(--acc2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--acc2);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--acc); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip:focus { left: 0; }

/* --- shell ---------------------------------------------------------------- */

.shell { display: flex; min-height: 100vh; }

nav.rail {
  width: var(--rail); flex: none;
  background: linear-gradient(180deg, #0d1526, #0b1220);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh;
}

.wordmark {
  font-size: 15px; font-weight: 800; letter-spacing: .14em;
  margin: 0 8px 4px; color: var(--text); display: block;
}
.wordmark:hover { text-decoration: none; }
/* The slashes are part of the word, not a separator — kill the tracking
   inside them so it reads ZEN//CAP, the way R4D//MOCAP does. */
.wordmark em { font-style: normal; color: var(--acc); letter-spacing: -.02em; margin: 0 -.02em; }
.wordmark .mk { display: inline-flex; align-items: center; gap: 9px; }
.wordmark img { width: 22px; height: 22px; display: block; flex: none; }

.tagline {
  font-size: 9.5px; color: var(--dim); letter-spacing: .18em;
  text-transform: uppercase; margin: 0 8px 22px;
}

nav.rail a.navlink {
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 9px 12px; border-radius: var(--r-sm); display: block;
}
nav.rail a.navlink:hover { background: rgba(59, 130, 246, .1); color: var(--text); text-decoration: none; }
nav.rail a.navlink.on { background: rgba(59, 130, 246, .16); color: #dbeafe; }

.railfoot {
  margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--border);
  font-size: 10px; color: var(--dim); line-height: 1.9;
}
.railfoot .brand { color: var(--muted); font-weight: 600; }
.railfoot .commit { font-family: var(--mono); }

main.canvas { flex: 1; padding: 30px 38px 64px; max-width: 1240px; min-width: 0; }

/* --- type ----------------------------------------------------------------- */

h1.page { font-size: 20px; font-weight: 800; margin: 2px 0 4px; letter-spacing: -.01em; }
p.sub { color: var(--muted); font-size: 12.5px; margin: 0 0 22px; max-width: 76ch; }
h2 { font-size: 14px; font-weight: 700; margin: 0 0 12px; letter-spacing: .01em; }
h3 {
  font-size: 11px; font-weight: 700; margin: 18px 0 8px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em;
}
.mono { font-family: var(--mono); font-size: 11px; color: var(--muted); word-break: break-all; }
.hint { font-size: 10.5px; color: var(--dim); margin: 8px 2px 0; }
.big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

/* --- cards + layout ------------------------------------------------------- */

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 20px 24px; margin: 0 0 18px; box-shadow: var(--shadow);
}
.card.tight { padding: 14px 16px; }
.row { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: 3fr 2fr; }
.cols-even { grid-template-columns: 1fr 1fr; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.stat {
  background: linear-gradient(160deg, rgba(59, 130, 246, .12), rgba(59, 130, 246, .03));
  border: 1px solid var(--border2); border-radius: var(--r); padding: 16px 20px;
}
.stat b { font-size: 26px; display: block; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* --- tables --------------------------------------------------------------- */

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th {
  color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
  text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(30, 42, 68, .55); }
tbody tr:hover td { background: rgba(59, 130, 246, .05); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { color: var(--dim); font-style: italic; }

/* --- pills, chips, badges ------------------------------------------------- */

.pill {
  display: inline-block; border-radius: 20px; padding: 3px 11px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.pill.ok { background: rgba(52, 211, 153, .14); color: var(--ok); border: 1px solid rgba(52, 211, 153, .45); }
.pill.warn { background: rgba(251, 191, 36, .12); color: var(--warn); border: 1px solid rgba(251, 191, 36, .4); }
.pill.bad { background: rgba(248, 113, 113, .12); color: var(--bad); border: 1px solid rgba(248, 113, 113, .45); }
.pill.acc { background: rgba(59, 130, 246, .14); color: var(--acc2); border: 1px solid rgba(59, 130, 246, .4); }
.pill.vio { background: rgba(167, 139, 250, .14); color: var(--violet); border: 1px solid rgba(167, 139, 250, .4); }
.pill.mut { background: rgba(142, 160, 189, .12); color: var(--muted); border: 1px solid rgba(142, 160, 189, .35); }

.chip {
  display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 10px; font-weight: 600;
  background: rgba(59, 130, 246, .12); color: var(--acc2);
  border: 1px solid rgba(59, 130, 246, .3); margin: 0 4px 4px 0;
}

/* Event-type taxonomy — mirrors presentation.etype_class(). */
.et {
  display: inline-block; min-width: 158px; border-radius: 6px; padding: 3px 8px;
  font-size: 10px; font-weight: 700; text-align: center; margin-right: 8px;
  font-family: var(--mono);
}
.et-seal { background: rgba(52, 211, 153, .14); color: var(--ok); }
.et-money { background: rgba(251, 191, 36, .12); color: var(--warn); }
.et-consent { background: rgba(96, 165, 250, .14); color: var(--acc2); }
.et-model { background: rgba(167, 139, 250, .14); color: var(--violet); }
.et-admin { background: rgba(148, 163, 184, .16); color: var(--steel); }
.et-other { background: rgba(142, 160, 189, .1); color: var(--muted); }

/* --- forms ---------------------------------------------------------------- */

input[type=text], input[type=email], input[type=password], input[type=search],
input[type=number], select, textarea {
  border: 1px solid var(--border2); background: #0a1120; color: var(--text);
  border-radius: var(--r-sm); padding: 9px 13px; font-size: 13px;
  font-family: inherit; width: 100%; max-width: 320px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--acc); }
input::placeholder { color: var(--dim); }
input[disabled], button[disabled] { opacity: .5; cursor: not-allowed; }

label.field {
  font-size: 10px; color: var(--muted); display: flex; flex-direction: column; gap: 5px;
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px;
}
label.field .req { color: var(--acc2); }

button, .btn {
  border: 0; background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff;
  border-radius: var(--r-sm); padding: 9px 16px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; letter-spacing: .02em; font-family: inherit;
  display: inline-block; text-decoration: none;
}
button:hover, .btn:hover { filter: brightness(1.12); text-decoration: none; }
button.ghost, .btn.ghost {
  background: transparent; border: 1px solid var(--border2); color: var(--muted);
}
button.ghost:hover, .btn.ghost:hover { border-color: var(--acc); color: var(--text); filter: none; }
button.danger { background: linear-gradient(135deg, #b91c1c, #ef4444); }

form.inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
form.inline label.field { margin: 0; }
form.inline input { width: 170px; }
form.stack { max-width: 360px; }

.formerr { color: var(--bad); font-size: 12px; margin: 0 0 14px; }

/* --- flash ---------------------------------------------------------------- */

.flash {
  border-radius: var(--r-sm); padding: 11px 16px; margin: 0 0 18px;
  font-size: 12.5px; font-weight: 600; border: 1px solid;
}
.flash.ok { background: rgba(52, 211, 153, .1); color: var(--ok); border-color: rgba(52, 211, 153, .35); }
.flash.warn { background: rgba(251, 191, 36, .1); color: var(--warn); border-color: rgba(251, 191, 36, .35); }
.flash.bad { background: rgba(248, 113, 113, .1); color: var(--bad); border-color: rgba(248, 113, 113, .35); }

.adoptbar {
  background: rgba(167, 139, 250, .14); border: 1px solid rgba(167, 139, 250, .4);
  color: var(--violet); border-radius: var(--r-sm); padding: 9px 16px; margin: 0 0 18px;
  font-size: 12px; font-weight: 700; display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap;
}
.readonlybar {
  background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3);
  color: var(--warn); border-radius: var(--r-sm); padding: 8px 16px; margin: 0 0 18px;
  font-size: 11.5px; font-weight: 600;
}

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

.viewerwrap {
  background: #060b16; border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; position: relative; width: 100%;
}
.viewerwrap canvas { display: block; width: 100%; }
.viewerwrap .vmsg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 11.5px; text-align: center; padding: 20px;
}

/* --- downloads / plan ----------------------------------------------------- */

ul.downloads { list-style: none; margin: 0; padding: 0; }
ul.downloads li {
  padding: 10px 0; border-bottom: 1px solid rgba(30, 42, 68, .55);
}
ul.downloads li:last-child { border-bottom: 0; }
ul.downloads .note { display: block; color: var(--dim); font-size: 10.5px; margin-top: 2px; }
ul.downloads .kind {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); margin-left: 8px;
}

ul.reasons { list-style: none; margin: 8px 0 0; padding: 0; font-size: 11.5px; }
ul.reasons li { padding: 4px 0; color: var(--muted); }
ul.reasons li::before { content: "— "; color: var(--dim); }

/* --- pagination ----------------------------------------------------------- */

.pager { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; font-size: 12px; }
.pager a, .pager span {
  border: 1px solid var(--border2); border-radius: var(--r-sm); padding: 5px 11px;
  color: var(--muted);
}
.pager a:hover { border-color: var(--acc); color: var(--text); text-decoration: none; }
.pager .cur { background: rgba(59, 130, 246, .16); color: #dbeafe; border-color: var(--border2); }
.pager .disabled { opacity: .4; }

/* --- progress ------------------------------------------------------------- */

.meter { height: 10px; border-radius: 5px; background: #1a2440; overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #34d399); }

/* --- public surfaces ------------------------------------------------------ */

.public { min-height: 100vh; display: flex; flex-direction: column; }
.publichead {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 38px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.publicmain { flex: 1; padding: 56px 38px 72px; max-width: 1080px; margin: 0 auto; width: 100%; }
.publicfoot {
  border-top: 1px solid var(--border); padding: 20px 38px; color: var(--dim);
  font-size: 11px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}

.hero h1 { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--acc2); }
.hero p.lede { font-size: 16px; color: var(--muted); max-width: 60ch; margin: 0 0 28px; line-height: 1.65; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 44px; }
.cta .btn { padding: 12px 22px; font-size: 13px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tile {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border); border-radius: var(--r); padding: 22px 24px;
  display: block; color: var(--text);
}
a.tile:hover { border-color: var(--border2); text-decoration: none; box-shadow: var(--shadow); }
.tile h2 { font-size: 13px; margin: 0 0 8px; }
.tile p { color: var(--muted); font-size: 12.5px; margin: 0; line-height: 1.7; }
.tile .go { color: var(--acc2); font-size: 12px; font-weight: 700; display: inline-block; margin-top: 12px; }

.authwrap { max-width: 380px; margin: 0 auto; padding: 8px 0 0; }
.authwrap .card { padding: 28px 28px 24px; }
.authwrap h1 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.authwrap p.sub { margin-bottom: 22px; }
.authwrap button { width: 100%; padding: 11px; }
.authwrap input { max-width: none; }

.errwrap { max-width: 520px; margin: 8vh auto 0; text-align: center; }
.errwrap .code { font-size: 54px; font-weight: 800; color: var(--acc); letter-spacing: -.03em; line-height: 1; }
.errwrap h1 { font-size: 20px; margin: 14px 0 10px; }
.errwrap p { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.errwrap .rid {
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 8px 12px; display: inline-block; margin-top: 18px;
}

/* --- spacing utilities ----------------------------------------------------
 * The CSP is `style-src 'self'`, so a style="" attribute in a template is not
 * "a small exception" — the browser drops it and the layout silently degrades.
 * Anything a page needs lives here as a class. */

.flush { margin: 0; }
.lead-out { margin: 0 0 12px; }
.rowcta { margin: 14px 0 0; }
.centred { text-align: center; }
.chainline { margin: 14px 2px 44px; }
.formcard { max-width: 460px; }
.errcta { margin-top: 22px; }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  nav.rail {
    position: static; width: 100%; height: auto; flex-direction: row; align-items: center;
    gap: 4px; padding: 10px 12px; overflow-x: auto; border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .wordmark { font-size: 13px; margin: 0 8px 0 0; white-space: nowrap; }
  .tagline, .railfoot { display: none; }
  nav.rail a.navlink { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
  main.canvas { padding: 16px 14px 48px; max-width: 100%; }
  .row.cols-2, .row.cols-even { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 20px; }
  .card { padding: 14px 16px; }
  h1.page { font-size: 17px; }
  .et { min-width: 0; }
  .publichead, .publicmain, .publicfoot { padding-left: 18px; padding-right: 18px; }
  .publicmain { padding-top: 36px; }
  .hero h1 { font-size: 30px; }
  .hero p.lede { font-size: 14.5px; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; }
  td, th { padding: 7px 6px; font-size: 11.5px; }
  .hero h1 { font-size: 25px; }
  .cta { flex-direction: column; }
  .cta .btn { text-align: center; }
  form.inline input { width: 100%; }
}

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

/* Agena identity: editorial public pages, clear working surfaces. */
:root {
  --bg: #f4f1e9;
  --panel: #fffefa;
  --panel2: #fffefa;
  --raise: #f4f0e7;
  --border: #ded8cb;
  --border2: #c9c0b1;
  --text: #172b3a;
  --muted: #566676;
  --dim: #687787;
  --acc: #8c5827;
  --acc2: #80501e;
  --ok: #1f7159;
  --warn: #91601c;
  --bad: #aa3f39;
  --violet: #655392;
  --steel: #526a7d;
  --r: 14px;
  --r-sm: 8px;
  --rail: 252px;
  --shadow: 0 10px 32px rgba(20, 37, 53, .055);
}
body { background: var(--bg); background-image: none; font-size: 14px; }
a { color: var(--acc2); }
a:hover { color: #5f3918; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline-color: var(--acc); }
.skip { background: #e7b879; color: #142535; }
.wordmark { color: #142535; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 700; letter-spacing: .18em; line-height: 1; }
.wordmark .mk { gap: 12px; }
.wordmark img { width: 34px; height: 34px; }
.wordmark:hover { color: inherit; }

/* Signed-in workspace */
nav.rail { padding: 30px 18px 22px; gap: 3px; background: #142535; border-color: #294052; }
nav.rail .wordmark { margin: 0 11px 0; color: #f7f1e6; }
nav.rail .tagline { color: #9dafb8; margin: 2px 11px 30px; font-size: 10px; letter-spacing: .12em; text-transform: none; }
.navgroup-label { margin: 0 12px 9px; padding-top: 19px; border-top: 1px solid #314757; color: #90a4ad; font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
nav.rail a.navlink { color: #c1ced1; font-size: 13px; font-weight: 600; padding: 10px 13px; border-radius: 7px; }
nav.rail a.navlink:hover { background: #22394a; color: #fffefa; }
nav.rail a.navlink.on { background: #32485a; color: #fffefa; box-shadow: inset 3px 0 #d5a369; }
.railfoot { border-color: #314757; color: #a1b1b8; }
.railfoot .brand { color: #e4e9e7; }
.railfoot .commit { color: #94a4ad; }
main.canvas { max-width: none; padding: 0 48px 72px; }
.workspace-topline { border-bottom: 1px solid var(--border); min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--dim); font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 36px; }
.workspace-topline span:last-child { letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 600; }
h1.page, .assethead h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(28px, 2.7vw, 40px); letter-spacing: -.035em; line-height: 1.15; margin-bottom: 10px; }
p.sub { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 28px; }
h2 { font-size: 16px; letter-spacing: -.01em; }
h3 { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 24px 28px; }
.stat { background: #f7f4ed; border-color: #e7dfd1; }
.stat b { color: var(--text); }
.stat span { color: var(--muted); }
th { color: #5b6b76; border-color: var(--border); }
td { border-color: #e9e4d9; }
tbody tr:hover td { background: #f7f3eb; }
.empty { color: var(--muted); }
.mono { color: #596b75; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea { background: #fffefa; border-color: var(--border2); color: var(--text); padding: 11px 13px; }
input::placeholder { color: #7c898e; }
label.field { color: #4a5c69; font-size: 10px; font-weight: 750; }
button, .btn { background: #142535; color: #fffefa; border-radius: 7px; padding: 11px 17px; font-size: 12px; transition: background .15s ease, transform .15s ease; }
button:hover, .btn:hover { background: #254155; color: #fffefa; filter: none; }
button.ghost, .btn.ghost { color: #142535; border-color: #aeb7b2; }
button.ghost:hover, .btn.ghost:hover { border-color: #142535; background: #f4f0e7; color: #142535; }
button.danger { background: #a83f37; }
.pill.acc, .pill.vio, .chip { background: #f0e5d6; color: #78501f; border-color: #d8c4aa; }
.pill.mut { color: #526476; }
.flash.ok, .flash.warn, .flash.bad, .adoptbar, .readonlybar { color: var(--text); }
.meter { background: #eae3d7; }
.meter i { background: #b77b3c; }
.pager .cur { background: #eee3d2; color: var(--text); }

/* Public entrance */
.public { background: #f4f1e9; }
.publichead { padding: 23px max(32px, calc((100vw - 1330px) / 2)); border-color: #d9d2c4; min-height: 86px; }
.publichead .wordmark { margin: 0; }
.publichead nav { display: flex; align-items: center; gap: 10px; }
.publichead nav .btn { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.publicmain { max-width: 1330px; padding: 0 32px 86px; }
.publicfoot { padding: 23px max(32px, calc((100vw - 1330px) / 2)); border-color: #d9d2c4; font-size: 11px; justify-content: space-between; }
.eyebrow, .section-index { color: #93602d; font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.eyebrow-line { width: 28px; height: 1px; background: #b77b3c; display: inline-block; flex: none; }
.agena-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 42px; align-items: stretch; min-height: 600px; border-bottom: 1px solid #d4cbbb; }
.agena-hero-copy { padding: clamp(84px, 10vw, 140px) 0 75px; }
.agena-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(46px, 5vw, 78px); line-height: 1.07; letter-spacing: -.057em; font-weight: 400; margin: 0 0 28px; max-width: 740px; }
.agena-hero h1 em { color: #9a642e; font-weight: 400; }
.hero-lede { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: #4d5b64; max-width: 540px; margin: 0 0 35px; }
.hero-actions { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; }
.hero-actions .btn { padding: 14px 20px; }
.hero-actions .btn span, .landing-closer .btn span { margin-left: 20px; }
.text-link { font-size: 12px; font-weight: 800; border-bottom: 1px solid #9a642e; padding-bottom: 5px; }
.text-link span { margin-left: 16px; }
.text-link:hover { text-decoration: none; }
.hero-access { color: #687780; font-size: 11px; margin: 27px 0 0; }
.agena-art { position: relative; min-height: 490px; margin: 47px 0 48px; overflow: hidden; border: 1px solid #ccbda9; background: radial-gradient(circle at 50% 50%, #e8dcc9 0, #e9e0d1 23%, #e9e1d5 50%, #e6ddce 100%); }
.agena-art::before { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(123, 94, 58, .28); }
.agena-art::after { content: ''; position: absolute; left: 15%; right: 15%; top: 50%; height: 1px; background: #b18457; transform: rotate(-31deg); }
.art-axis { position: absolute; background: rgba(123, 94, 58, .22); }
.art-axis-h { top: 50%; height: 1px; left: 0; right: 0; }
.art-axis-v { left: 50%; width: 1px; top: 0; bottom: 0; }
.art-ring { position: absolute; border: 1px solid rgba(112, 86, 53, .38); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ring-one { width: 155px; height: 155px; }
.ring-two { width: 290px; height: 290px; }
.ring-three { width: 430px; height: 430px; }
.art-node { position: absolute; z-index: 2; background: #a56a32; width: 10px; height: 10px; border: 3px solid #e8dcc9; border-radius: 50%; box-shadow: 0 0 0 1px #a56a32; }
.node-one { left: 30%; top: 24%; }.node-two { left: 67%; top: 21%; }.node-three { left: 75%; top: 66%; }.node-four { left: 28%; top: 73%; }
.art-center { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 162px; height: 162px; background: #142535; color: #f4e6d3; border: 8px solid #e9e0d1; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.art-center strong { font-family: Georgia, serif; font-size: 27px; line-height: 1; font-weight: 400; color: #d7a66d; }
.art-caption { position: absolute; bottom: 34px; left: 36px; color: #665947; font-size: 10px; text-transform: uppercase; letter-spacing: .17em; }
.landing-proof { display: grid; grid-template-columns: 1.8fr repeat(3, .7fr) 1fr; gap: 16px; align-items: center; border-bottom: 1px solid #d4cbbb; padding: 24px 0 27px; }
.proof-intro p { margin: 4px 0 0; color: #53616a; font-size: 12px; }
.proof-number { border-left: 1px solid #d4cbbb; padding-left: 22px; display: flex; flex-direction: column; }
.proof-number strong { font-family: Georgia, serif; font-size: 27px; font-weight: 400; line-height: 1.2; }
.proof-number span { color: #59676f; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.proof-status { display: flex; justify-content: flex-end; }
.landing-section { padding: 90px 0 100px; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: start; margin-bottom: 38px; }
.section-heading h2, .landing-closer h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.035em; font-size: clamp(30px, 3vw, 43px); line-height: 1.15; margin: 0 0 14px; }
.section-heading p, .landing-closer p { color: #53616a; line-height: 1.7; max-width: 60ch; margin: 0; font-size: 14px; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #cfc5b4; border-bottom: 1px solid #cfc5b4; }
.pillar { min-height: 255px; padding: 22px 25px 30px; border-right: 1px solid #cfc5b4; }
.pillar:first-child { border-left: 1px solid #cfc5b4; }
.pillar-num { color: #93602d; font-size: 10px; letter-spacing: .14em; font-weight: 800; }
.pillar-mark { display: block; color: #a56a32; font-family: Georgia, serif; font-size: 39px; height: 72px; line-height: 72px; }
.pillar h3 { font-family: Georgia, serif; font-size: 22px; font-weight: 400; color: #172b3a; letter-spacing: -.025em; text-transform: none; margin: 0 0 13px; }
.pillar p { color: #53616a; font-size: 12px; line-height: 1.75; margin: 0; }
.landing-closer { background: #142535; color: #f4f1e9; padding: 56px 60px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.landing-closer .section-index { color: #d7a66d; display: block; margin-bottom: 18px; }
.landing-closer h2 { color: #f4f1e9; }
.landing-closer p { color: #bdcbd0; }
.landing-closer .btn.ghost { border-color: #8c9da5; color: #f4f1e9; white-space: nowrap; }
.landing-closer .btn.ghost:hover { color: #142535; background: #f4f1e9; }

/* Auth and dashboard */
.auth-scene { display: grid; grid-template-columns: 1fr minmax(340px, 440px); gap: 8vw; align-items: center; min-height: calc(100vh - 235px); }
.auth-intro h1 { font-family: Georgia, serif; font-size: clamp(42px, 4.5vw, 68px); font-weight: 400; letter-spacing: -.05em; line-height: 1.08; margin: 0 0 24px; }
.auth-intro h1 em { color: #9a642e; font-weight: 400; }
.auth-intro p:not(.eyebrow) { max-width: 45ch; font-size: 17px; color: #53616a; line-height: 1.7; }
.auth-intro .text-link { display: inline-block; margin-top: 20px; }
.authwrap { max-width: none; padding: 0; width: 100%; }
.authwrap .card { padding: 35px 38px; }
.authwrap .section-index { display: block; margin-bottom: 20px; }
.authwrap h1 { font-family: Georgia, serif; font-weight: 400; font-size: 31px; }
.authwrap .sub { font-size: 13px; }
.authwrap form.stack { max-width: none; }
.authwrap button { margin-top: 8px; }
.dashboard-hero { display: flex; justify-content: space-between; gap: 30px; align-items: end; border-bottom: 1px solid var(--border); padding: 8px 0 30px; margin-bottom: 30px; }
.dashboard-hero .eyebrow { margin-bottom: 15px; }
.dashboard-hero h1.page { margin-bottom: 12px; }
.dashboard-hero .sub { margin: 0; }
.dashboard-role { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.dashboard-role > span { color: var(--dim); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dashboard-panel { margin: 0; min-width: 0; }
.dashboard-panel .panelhead h2 { font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.dashboard-panel .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-panel .stat { padding: 12px 15px; }
.dashboard-panel .stat b { font-size: 23px; }
.dashboard-panel .stat span { font-size: 9px; }

@media (max-width: 1100px) {
  .landing-proof { grid-template-columns: repeat(3, 1fr); }
  .proof-intro, .proof-status { grid-column: 1 / -1; }
  .proof-number:first-of-type { border-left: 0; padding-left: 0; }
  .proof-status { justify-content: flex-start; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: 1px solid #cfc5b4; border-top: 1px solid #cfc5b4; }
  .pillar:nth-child(4) { border-top: 1px solid #cfc5b4; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  nav.rail { padding: 12px 16px; background: #142535; }
  nav.rail .wordmark { margin: 0 16px 0 0; font-size: 19px; }
  nav.rail .wordmark img { width: 26px; height: 26px; }
  .navgroup-label { display: none; }
  main.canvas { padding: 0 20px 50px; }
  .workspace-topline { margin-bottom: 24px; min-height: 54px; }
  .agena-hero { grid-template-columns: 1fr; gap: 0; }
  .agena-hero-copy { padding: 70px 0 35px; }
  .agena-art { margin: 0 0 50px; min-height: 390px; }
  .landing-section { padding: 60px 0; }
  .auth-scene { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding: 58px 0; }
}
@media (max-width: 650px) {
  .publichead { padding: 18px 20px; }
  .publichead .wordmark { font-size: 20px; }
  .publichead .wordmark img { width: 28px; height: 28px; }
  .publichead nav .btn { padding: 8px 10px; font-size: 10px; }
  .publichead nav .btn.ghost { display: none; }
  .publicmain { padding: 0 20px 55px; }
  .publicfoot { padding: 20px; }
  .agena-hero h1 { font-size: clamp(39px, 9.5vw, 55px); }
  .agena-hero-copy { padding: 58px 0 35px; }
  .agena-art { min-height: 320px; }
  .ring-three { width: 300px; height: 300px; }
  .ring-two { width: 220px; height: 220px; }
  .ring-one { width: 115px; height: 115px; }
  .art-center { width: 125px; height: 125px; font-size: 8px; }
  .landing-proof { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .proof-number { padding-left: 10px; }
  .proof-number strong { font-size: 22px; }
  .proof-number span { font-size: 9px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 0; border: 1px solid #cfc5b4; border-top: 0; }
  .pillar:first-child { border-top: 1px solid #cfc5b4; }
  .pillar:nth-child(3), .pillar:nth-child(4) { border-top: 0; }
  .pillar-mark { height: 50px; line-height: 50px; }
  .landing-closer { padding: 37px 26px; flex-direction: column; align-items: flex-start; }
  .landing-closer .btn.ghost { white-space: normal; }
  .dashboard-hero { flex-direction: column; align-items: flex-start; }
  .dashboard-panel .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .authwrap .card { padding: 25px; }
}

/* Shared secondary surfaces under the Agena palette. */
.tile { background: #fffefa; border-color: var(--border); box-shadow: var(--shadow); color: var(--text); }
a.tile:hover { border-color: #bfa078; box-shadow: 0 12px 34px rgba(20, 37, 53, .1); color: var(--text); }
.tile h2 { font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.tile p { color: var(--muted); font-size: 13px; }
.tile .go { color: var(--acc2); }
.viewerwrap { background: #142535; }
.pill.ok { background: #e9f4ed; color: var(--ok); border-color: #9cbfac; }
.pill.warn { background: #faf0d9; color: var(--warn); border-color: #d5b77c; }
.pill.bad { background: #f9e7e2; color: var(--bad); border-color: #d4a29d; }
.et-seal { background: #e9f4ed; color: var(--ok); }
.et-money { background: #faf0d9; color: var(--warn); }
.et-consent { background: #e9eff2; color: #345d75; }
.et-model { background: #efebf8; color: var(--violet); }
.et-admin, .et-other { background: #eef0ef; color: var(--steel); }
.scope-fieldset { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 15px; margin: 0 0 17px; }
.scope-fieldset legend { color: #4a5c69; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 0 5px; }
.scope-fieldset p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 12px; }
.scope-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.scope-choice { display: flex; gap: 7px; align-items: center; min-width: 0; font-size: 11px; color: var(--text); }
.scope-choice input { accent-color: #9a642e; width: 15px; height: 15px; flex: none; }
.scope-choice span { overflow-wrap: anywhere; }
@media (max-width: 480px) { .scope-choices { grid-template-columns: 1fr; } }
.dashboard-panel:only-child { grid-column: 1 / -1; max-width: 850px; }
:root { --dim: #596a76; }
.hero-access { color: #566670; }
.publicmain > h1.page { margin-top: 58px; }
@media (max-width: 650px) { .publicmain > h1.page { margin-top: 38px; } }
.demo-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #f8ecdb; border: 1px solid #d3b78f; color: #503c29; padding: 11px 15px; margin: 0 0 28px; border-radius: 8px; font-size: 12px; line-height: 1.45; }
.demo-banner strong { color: #70491e; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; white-space: nowrap; }
.public-demo { margin-top: 26px; margin-bottom: 0; }
/* Long hashes and wide tables must stay inside the mobile canvas. */
.row > *, .card, .certkv, .certkv dd { min-width: 0; }
.certkv dd.mono, .assetmeta .mono { overflow-wrap: anywhere; word-break: break-word; }
.tablewrap { max-width: 100%; }
.viewerwrap { max-width: 100%; }
