/* Presentation for the demo app and console only; the injectable client does not load this file. */
:root {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #18283d;
  background: #f3f6fa;
  line-height: 1.6;
  overflow-wrap: anywhere;
  --ink: #18283d;
  --muted: #54647b;
  --line: #dce4ee;
  --mint: #bcf58a;
  --teal: #006d68;
  --navy: #10243a;
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: #004d49; }
button, input, select, textarea { font: inherit; }
button, select, textarea { max-width: 100%; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #167a9b; outline-offset: 4px; }
main:focus { outline: none; }
.icon { display: inline-block; width: 1.2rem; height: 1.2rem; flex: 0 0 auto; vertical-align: middle; }
.frame { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: .5rem; left: 1rem; z-index: 100; padding: .65rem 1rem; background: white; border: 2px solid var(--teal); border-radius: 10px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 1.3rem 1.1rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; background: var(--navy); color: var(--mint); border-radius: 14px; flex: 0 0 auto; }
.brand-mark .icon { width: 29px; height: 29px; }
.brand strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.06em; line-height: 1.1; }
.brand-dot { color: #00877c; }
.brand small { display: block; margin-top: .3rem; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .7rem 1rem; font-size: .78rem; }
.utility-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); text-decoration: none; font-weight: 650; }
.utility-link:hover, .utility-link[aria-current] { color: var(--teal); text-decoration: underline; }
.utility-link .icon { width: 1rem; height: 1rem; }
.mode-pill { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid; padding: .35rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 750; }
.mode-on { color: #155239; background: #eaf9ec; border-color: #c4e8cd; }
.mode-off { color: #815011; background: #fff5df; border-color: #ecd5a5; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.navigation-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding-bottom: .85rem; }
.nav-group { min-width: 0; }
.nav-label { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; flex-wrap: wrap; gap: .3rem; }
.nav-link { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .8rem; border-radius: 9px; color: #45556c; font-size: .83rem; font-weight: 650; text-decoration: none; }
.nav-link:hover { background: #f0f5f7; color: var(--navy); }
.nav-link.is-active { background: var(--navy); color: #fff; }
.nav-link.is-active .icon { color: var(--mint); }
.nav-link .icon { width: 1.05rem; height: 1.05rem; }
.context-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.15rem; font-size: .76rem; }
.context-bar p { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.context-label { color: var(--ink); font-weight: 750; }
.context-description { color: var(--muted); }
.instance-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.instance-link:hover { text-decoration: underline; }
.instance-link .icon { width: 1rem; height: 1rem; }
.page-content { padding-bottom: 3.5rem; }
.page-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem; margin-bottom: 2rem; border: 1px solid #29485d; border-radius: 24px; background: radial-gradient(ellipse at 100% 0%, #1c5157 0%, transparent 60%), var(--navy); color: #fff; }
.hero-copy { min-width: 0; max-width: 54rem; }
.eyebrow { margin: 0 0 .7rem; color: var(--teal); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.page-hero .eyebrow { color: var(--mint); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -.025em; }
h1 { margin: 0 0 1rem; font-size: clamp(1.9rem, 3.7vw, 3.2rem); font-weight: 800; }
h2 { font-size: 1.35rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .65rem; }
.page-hero h1 { color: #fff; }
.hero-description { max-width: 66ch; color: #d5e4ed; margin: 0; font-size: 1rem; }
.hero-meta { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.3rem; color: #deefdc; font-size: .78rem; font-weight: 650; }
.hero-meta .icon { color: var(--mint); width: 1rem; height: 1rem; }
.hero-emblem { display: grid; place-items: center; flex: 0 0 108px; height: 108px; color: var(--mint); border: 1px solid #628273; border-radius: 28px; transform: rotate(-5deg); background: #ffffff08; box-shadow: 12px 12px 0 #ffffff06; }
.hero-emblem .icon { width: 55px; height: 55px; transform: rotate(5deg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 1rem; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading p, .muted { color: var(--muted); }
.section-heading p { font-size: .88rem; }
.section-heading .eyebrow { margin-bottom: .4rem; }
.panel, article[data-post-id], .policy-rule { min-width: 0; padding: 1.5rem; margin: 0 0 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 16px #18283d04; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel-label { display: flex; align-items: center; gap: .5rem; color: var(--teal); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.activity-card { margin: 0; display: flex; flex-direction: column; position: relative; border-top: 3px solid var(--teal); }
.activity-card:nth-child(2) { border-top-color: #7255ac; }
.activity-card:nth-child(3) { border-top-color: #3077b3; }
.activity-card p { color: var(--muted); font-size: .9rem; }
.activity-card a { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .83rem; font-weight: 750; text-decoration: none; }
.activity-card a:hover { text-decoration: underline; }
.activity-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.1rem; border-radius: 12px; background: #eaf6f1; color: var(--teal); }
.activity-card:nth-child(2) .activity-icon { background: #f0ecfa; color: #6745a4; }
.activity-card:nth-child(3) .activity-icon { background: #eaf2fb; color: #286aa2; }
.activity-icon .icon { width: 23px; height: 23px; }
.user-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.user-card { display: flex; align-items: start; flex-direction: column; gap: .7rem; margin: 0; }
.user-card.is-featured { border: 1.5px solid #8fc9ad; background: linear-gradient(130deg, #f1faed, #fff 75%); }
.user-card .user-name { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.user-card small { color: var(--muted); }
.user-card button { margin-top: auto; }
.console-intro { margin-top: 2rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; background: #edf3f7; border: 1px solid #d8e3ea; color: #40566b; font-size: .7rem; font-weight: 750; vertical-align: middle; }
.badge-success { background: #e9f7e8; border-color: #c4e6c1; color: #285534; }
.badge-warning { background: #fff4df; border-color: #ead4a7; color: #815011; }
.badge-purple { background: #f0edfb; border-color: #dad0ef; color: #61418a; }
.notice { padding: 1rem 1.2rem; margin: 0 0 1.25rem; border: 1px solid #d5e3ed; border-left: 3px solid #669ca9; border-radius: 12px; background: #edf5f8; color: #335166; font-size: .9rem; }
.notice a { font-weight: 700; }
.notice p:first-child { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }
.notice-warning { background: #fff6e7; border-color: #eedbbd; border-left-color: #b77b22; color: #72511e; }
.reading-column { max-width: 960px; margin-inline: auto; }
.source-heading { margin-bottom: .5rem; font-size: 1.15rem; }
.source-notice { font-size: .84rem; }
fieldset { min-width: 0; min-inline-size: 0; }
.quiz-question { padding: 1.5rem; }
.quiz-question > fieldset { border: 0; padding: 0; margin: 0; }
.quiz-question legend { max-width: 100%; padding: 0; margin-bottom: .9rem; font-weight: 750; color: var(--ink); line-height: 1.55; }
label { display: block; font-weight: 600; margin: .6rem 0; }
.quiz-option { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .75rem; padding: .7rem .85rem; margin: .4rem 0; border: 1px solid #e2e8ef; border-radius: 10px; background: #fafbfd; font-size: .94rem; font-weight: 450; cursor: pointer; }
.quiz-option:hover { border-color: #8cbaa8; background: #f3faf7; }
.quiz-option:has(input:checked) { border-color: #298774; background: #e9f7f1; }
.quiz-option input { margin: .25em 0 0; width: 1.1rem; height: 1.1rem; accent-color: var(--teal); }
input[type="checkbox"] { accent-color: var(--teal); }
fieldset small { display: block; margin-top: 1rem; font-size: .76rem; color: var(--muted); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--navy); border-radius: 10px; padding: .72rem 1.1rem; color: #fff; background: var(--navy); font-size: .86rem; font-weight: 750; line-height: 1.5; white-space: normal; text-align: center; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #213f53; border-color: #213f53; color: #fff; }
button:disabled { cursor: not-allowed; opacity: .6; }
.button-primary { background: var(--mint); color: #173126; border-color: #a8dc79; }
.button-primary:hover { background: #ace679; color: #173126; border-color: #93c565; }
.button-secondary { color: var(--ink); border-color: #cad5e1; background: #fff; }
.button-secondary:hover { color: var(--ink); border-color: #99afbe; background: #f0f5f8; }
.button-quiet { color: var(--muted); background: #f1f4f8; border-color: #dce3ec; }
.button-quiet:hover { color: var(--ink); background: #e5edf3; border-color: #b4c4d3; }
.button-danger { color: #88422a; background: #fff3ec; border-color: #e7c8b8; }
.button-danger:hover { color: #70331f; background: #fce7dc; border-color: #d0a48c; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; }
.action-row > p { margin: 0; color: var(--muted); font-size: .8rem; }
[role="status"] { overflow-wrap: anywhere; }
[data-countersign-status] > strong, [data-record-status] > strong { display: block; margin-bottom: .35rem; color: #183e48; }
[data-countersign-status] > span, [data-record-status] > span { display: block; }
[data-countersign-status]:not(:empty), #policy-status:not(:empty) { padding: .9rem 1rem; border: 1px solid #cddfe7; border-radius: 10px; background: #eef6f7; color: #244e5a; }
.form-note { color: var(--muted); font-size: .84rem; }
textarea, select { padding: .8rem; border: 1px solid #b8c6d6; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { display: block; width: 100%; min-height: 14rem; resize: vertical; margin: .7rem 0 1rem; line-height: 1.65; }
.discussion-composer { align-self: start; }
.attestation-control { margin: 1.25rem 0; padding: 1rem; border: 1px solid #d6e3e4; border-radius: 12px; background: #f1f7f5; }
.attestation-control label { margin-top: 0; font-size: .88rem; }
.attestation-control select { width: 100%; }
.attestation-control .form-note { margin-bottom: 0; font-size: .76rem; }
details { min-width: 0; }
summary { cursor: pointer; font-weight: 650; padding-block: .2rem; }
summary:hover { color: var(--teal); }
details[open] > summary { margin-bottom: 1rem; }
[data-demo-controls] { background: #f8fafc; box-shadow: none; font-size: .85rem; }
[data-demo-controls] summary { color: var(--muted); }
.forum-text { max-width: 75ch; white-space: pre-wrap; line-height: 1.75; color: #2c3f53; }
article[data-post-id] h2 { font-size: 1.15rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; font-size: .8rem; color: var(--muted); }
.post-meta strong { color: var(--ink); }
.post-provenance { margin: 1rem 0; font-size: .8rem; }
.provenance-tag { display: inline-block; padding: .25rem .6rem; margin: 0 .4rem .4rem 0; border: 1px solid #d0e3dd; border-radius: 8px; background: #edf7f0; color: #2d5b49; font-size: .76rem; }
[data-review-flag] { background: #fff4dd; color: #83581b; border-color: #ecd6ad; }
.post-provenance details { color: var(--muted); }
.record-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.record { margin: 0; }
.record dt { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 1.3rem 0 .5rem; }
.record dt:first-of-type { margin-top: 0; }
.record dd { margin: 0; padding: .9rem 1rem; border: 1px solid #d8e3ed; border-radius: 10px; background: #f7f9fc; color: var(--ink); font-size: .92rem; }
[data-protected-record] [data-field] { border-style: dashed; background: #f3f7fa; }
.record-aside { border-color: #bcd8cd; background: #f1f8f4; }
.record-aside .activity-icon { background: #dcede3; }
.record-aside .action-row { margin-top: 1.2rem; }
.record-aside button { width: 100%; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: step; }
.steps li { display: flex; align-items: start; gap: .8rem; margin: 1rem 0; font-size: .88rem; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); color: var(--teal); font-weight: 800; font-size: .8rem; padding-top: .12rem; }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; }
.setup-layout > * { min-width: 0; }
.timeline-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }
.timeline-controls label { font-size: .85rem; margin: 0; }
.timeline-controls select { max-width: 100%; padding: .6rem .75rem; font-size: .85rem; }
#timeline-status { margin: .9rem 0 0; color: var(--muted); font-size: .8rem; }
.timeline-scroll { overflow-x: auto; margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.timeline-scroll table { width: 100%; min-width: 64rem; border-collapse: collapse; font-size: .78rem; }
th, td { text-align: left; padding: 1rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #4d6076; background: #edf2f7; font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 800; }
.sort-column { display: flex; align-items: center; justify-content: flex-start; gap: .4rem; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: left; }
.sort-column:hover { background: transparent; color: var(--teal); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.human-verified { background: #f0faf2; }
tbody tr.unverified { background: #fff; }
td a { font-weight: 650; }
td small { display: block; color: var(--muted); margin-top: .3rem; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { font-size: .85em; padding: .12rem .35rem; background: #edf2f6; border-radius: 5px; }
pre { max-width: 100%; max-height: 30rem; margin: .7rem 0 1rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; background: #f6f8fb; color: #274459; border: 1px solid var(--line); border-radius: 10px; font-size: .76rem; line-height: 1.65; }
#events pre { max-width: 40rem; max-height: 28rem; }
.legend { display: flex; flex-wrap: wrap; gap: .6rem; color: var(--muted); font-size: .75rem; margin-top: 1rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: white; }
.legend .human-verified { background: #edf8ee; color: #285534; border-color: #c4e6c1; }
.console-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.console-summary > * { min-width: 0; margin: 0; }
.console-summary small { color: var(--muted); }
.console-summary strong { display: block; margin-top: .3rem; font-size: .94rem; }
.policy-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.policy-toolbar p { margin: 0; color: var(--muted); font-size: .85rem; }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.policy-grid > section { min-width: 0; }
.policy-grid h3 { color: var(--muted); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; }
.policy-rule { margin-top: 1.25rem; }
.policy-rule h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: 1.1rem; }
.policy-rule > p { color: var(--muted); font-size: .9rem; }
.policy-rule > label { font-size: .83rem; }
.policy-rule .action-row { margin-top: .8rem; }
.policy-json { margin-top: 1.25rem; }
.site-footer { border-top: 1px solid var(--line); background: #eaf0f5; }
.footer-content { padding-block: 1.8rem; }
.footer-label { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 750; color: #385169; }
.footer-content p { max-width: 85ch; color: var(--muted); font-size: .76rem; }
.footer-note { margin-bottom: 0; }
@media (max-width: 1000px) {
  .brand-row { align-items: start; }
  .header-tools { max-width: 340px; }
  .hero-emblem { flex-basis: 80px; height: 80px; border-radius: 23px; }
  .hero-emblem .icon { width: 42px; height: 42px; }
}
@media (max-width: 800px) {
  .frame { padding-inline: 1.25rem; }
  .brand-row { flex-wrap: wrap; gap: 1rem; }
  .header-tools { max-width: none; justify-content: flex-start; }
  .navigation-row { gap: 1rem; }
  .nav-group { width: 100%; }
  .nav-link { padding: .5rem .65rem; }
  .page-hero { padding: 1.7rem; gap: 1rem; border-radius: 18px; }
  .activity-grid, .policy-grid, .record-layout, .setup-layout { grid-template-columns: minmax(0, 1fr); }
  .activity-card { padding: 1.25rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .5rem; }
  .console-summary { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .console-summary .panel { padding: 1rem 1.2rem; }
}
@media (max-width: 480px) {
  .frame { padding-inline: 1rem; }
  .brand-row { padding-block: 1rem; }
  .brand strong { font-size: 1.4rem; }
  .brand small { font-size: .65rem; }
  .brand-mark { width: 40px; height: 40px; }
  .header-tools { gap: .7rem; }
  .utility-link { font-size: .7rem; }
  .nav-link { gap: .3rem; font-size: .76rem; padding: .45rem .55rem; }
  .nav-link .icon { width: .9rem; height: .9rem; }
  .context-bar { padding-block: 1rem; }
  .context-description { display: block; width: 100%; }
  .page-hero { padding: 1.4rem; margin-bottom: 1.4rem; }
  .hero-emblem { display: none; }
  .hero-description { font-size: .9rem; }
  .user-grid { grid-template-columns: minmax(0, 1fr); }
  .panel, article[data-post-id], .policy-rule { padding: 1.2rem; border-radius: 14px; }
  .quiz-option { padding: .65rem; }
  .quiz-question legend { font-size: .94rem; }
  .notice { padding: .9rem 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .nav-link, button, .button, .quiz-option { transition: background-color .15s, border-color .15s, color .15s; }
}
