:root {
    --paper:      #f4f4f6;
    --paper-2:    #eaeaee;
    --card:       #ffffff;
    --ink:        #17171b;
    --ink-soft:   #565660;
    --navy:       #18171a;   /* near-black chrome (Xee black) */
    --navy-2:     #262529;
    --gold:       #e31c23;   /* Xee red (brand accent) */
    --gold-soft:  #f0aca8;   /* soft red for labels on dark */
    --line:       #e4e4e8;
    --green:      #3f7d55;
    --amber:      #c07f2a;
    --grey:       #8a8a94;
    --na:         #9a9aa4;
    --risk-high:  #c62d2a;
    --risk-med:   #c07f2a;
    --risk-low:   #3f7d55;
    --shadow:     0 1px 2px rgba(15,15,20,.06), 0 10px 26px rgba(15,15,20,.08);
    --radius:     14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    background-image:
        radial-gradient(circle at 12% 0%, rgba(227,28,35,.06), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(15,15,20,.05), transparent 45%);
    min-height: 100vh;
}

.mono { font-family: "IBM Plex Mono", monospace; }

/* ---------- Shell / sidebar ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }

.sidebar {
    background: var(--navy);
    color: #cdd4e2;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    min-height: 100vh;
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.brand-seal {
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, #2a2a2e, #0d0d10);
    border: 1px solid rgba(227,28,35,.4);
}
.brand-seal svg { animation: draw 1.4s ease-out both; }
@keyframes draw { from { opacity: 0; transform: rotate(-25deg) scale(.85);} to { opacity: 1; transform: none; } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.brand-sub { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px; border-radius: 10px;
    color: #b9c1d3; text-decoration: none; font-size: 15px; font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-link.is-active { background: var(--navy-2); color: #fff; }
.nav-link.is-active .nav-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(227,28,35,.18); }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: #4a5674; flex: none; }

.sidebar-foot { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.std-badge {
    display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 11px;
    line-height: 1.5; letter-spacing: .1em; color: var(--gold-soft);
    border: 1px solid rgba(227,28,35,.35); border-radius: 8px; padding: 8px 11px;
}
.std-badge strong { color: var(--gold); font-size: 13px; }
.foot-note { font-size: 11px; color: #7c869a; margin: 12px 0 0; line-height: 1.6; }

/* ---------- Content ---------- */
.content { padding: 40px 46px 30px; max-width: 1180px; }
.page-head { margin-bottom: 30px; }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
h1 { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 8px 0 6px; }
.lede { color: var(--ink-soft); font-size: 15.5px; margin: 0; max-width: 62ch; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 18px; }
.grid-hero { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px;
}
.card-title { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }

/* Hero readiness */
.hero {
    background: linear-gradient(150deg, var(--navy), #0d0d10);
    color: #eef1f8; border: none; display: flex; gap: 26px; align-items: center;
    position: relative; overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(227,28,35,.18), transparent 60%);
}
.seal-lg { flex: none; width: 132px; height: 132px; position: relative; z-index: 1; }
.seal-lg .ring { fill: none; stroke: var(--gold); }
.seal-lg .ring-anim { stroke-dasharray: 360; stroke-dashoffset: 360; animation: sweep 1.8s ease-out .2s forwards; }
@keyframes sweep { to { stroke-dashoffset: 0; } }
.seal-pct { font-size: 30px; font-weight: 700; fill: #fff; }
.seal-cap { font-family: "IBM Plex Mono", monospace; font-size: 7px; letter-spacing: .18em; fill: var(--gold-soft); }
.hero-body { z-index: 1; }
.hero-body h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.hero-body p { margin: 0; color: #aeb7cc; font-size: 14px; line-height: 1.6; max-width: 40ch; }
.hero-scope { margin-top: 14px; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--gold-soft); letter-spacing: .04em; }

/* Stat tiles */
.stat { text-align: left; }
.stat .n { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.stat .k { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.stat.ok .n { color: var(--green); }
.stat.mid .n { color: var(--amber); }
.stat.off .n { color: var(--grey); }
.stat.na .n { color: var(--na); }

/* Progress bar (stacked) */
.bar { height: 12px; border-radius: 7px; overflow: hidden; display: flex; background: #e6e6ea; border: 1px solid var(--line); }
.bar span { display: block; height: 100%; }
.seg-impl { background: var(--green); }
.seg-prog { background: var(--amber); }
.seg-none { background: #c9bda6; }
.seg-na   { background: #b6b1a4; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Theme rows */
.theme-row { display: grid; grid-template-columns: 140px 1fr 48px; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.theme-row:last-child { border-bottom: none; }
.theme-name { font-weight: 600; font-size: 14px; }
.theme-name small { display: block; font-family: "IBM Plex Mono", monospace; font-weight: 400; color: var(--ink-soft); font-size: 11px; letter-spacing: .08em; }
.theme-pct { text-align: right; font-weight: 700; font-family: "IBM Plex Mono", monospace; }
.mini-bar { height: 8px; border-radius: 5px; background: #e6e6ea; overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); }

/* ---------- Control register ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.chip {
    font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .04em;
    padding: 7px 13px; border-radius: 20px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink-soft); text-decoration: none; transition: all .15s;
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.search { margin-left: auto; }
.search input {
    font-family: "IBM Plex Mono", monospace; font-size: 13px; padding: 8px 13px;
    border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); width: 210px;
}
.search input:focus { outline: none; border-color: var(--gold); }

.register { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.reg-row { display: grid; grid-template-columns: 74px 1fr 150px 140px; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .12s; }
.reg-row:last-child { border-bottom: none; }
.reg-row:hover { background: #fffdf6; }
.reg-head { background: #f0e9d8; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.reg-head:hover { background: #f0e9d8; }
.ref { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 13px; color: var(--navy); }
.reg-title { font-size: 14.5px; font-weight: 500; }
.reg-owner { font-size: 12.5px; color: var(--ink-soft); }

.pill { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .04em; padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.pill.implemented { background: rgba(63,125,85,.12); color: var(--green); }
.pill.implemented::before { background: var(--green); }
.pill.inprogress { background: rgba(192,127,42,.14); color: var(--amber); }
.pill.inprogress::before { background: var(--amber); }
.pill.notstarted { background: rgba(138,146,160,.16); color: #5f6875; }
.pill.notstarted::before { background: var(--grey); }
.pill.na { background: rgba(154,160,171,.14); color: var(--na); }
.pill.na::before { background: var(--na); }

.count-note { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-soft); margin: 16px 2px 0; }

/* ---------- Control detail ---------- */
.back { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-soft); text-decoration: none; letter-spacing: .04em; }
.back:hover { color: var(--gold); }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 16px 0 8px; }
.detail-ref { font-family: "IBM Plex Mono", monospace; color: var(--gold); font-size: 14px; letter-spacing: .08em; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 2px 20px; margin-top: 4px; }
.kv dt { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: 13px 0; border-bottom: 1px dashed var(--line); }
.kv dd { margin: 0; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.prose { font-size: 15.5px; line-height: 1.7; color: var(--ink); max-width: 66ch; }

/* ---------- Trust Center ---------- */
.trust-hero { text-align: center; padding: 44px 24px; }
.trust-hero .seal-lg { width: 150px; height: 150px; margin: 0 auto 18px; }
.trust-org { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0; }
.trust-verified { display: inline-flex; align-items: center; gap: 8px; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); background: rgba(63,125,85,.1); padding: 6px 14px; border-radius: 20px; }
.framework-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.fw { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: .06em; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-soft); }
.fw strong { color: var(--ink); }

@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .nav { flex-direction: row; flex: 1; }
    .sidebar-foot { display: none; }
    .content { padding: 26px 20px; }
    .grid-hero, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .reg-row { grid-template-columns: 60px 1fr; }
    .reg-row .reg-owner, .reg-head .reg-owner { display: none; }
}

/* =========================================================
   Backlog features — auth, team, integrations, billing,
   questionnaires, evidence, score history, SoA
   ========================================================= */

.nav-group { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #5c6885; margin: 18px 0 6px 13px; }
.nav-group:first-child { margin-top: 0; }

.std-badge strong { color: var(--gold); }

/* User chip */
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px 6px 16px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #a67f2e); color: #1a1206; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; text-transform: uppercase; }
.user-info { flex: 1; min-width: 0; }
.user-name { color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { color: var(--gold); font-size: 10.5px; letter-spacing: .08em; }
.logout { color: #8792a8; text-decoration: none; font-size: 18px; padding: 4px; }
.logout:hover { color: #fff; }

/* Auth screens */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 38px 34px; }
.auth-label { display: block; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 14px 0 6px; }
.auth-input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 14px; font-family: inherit; color: var(--ink); }
.auth-input:focus { outline: none; border-color: var(--gold); }
.auth-btn { width: 100%; margin-top: 20px; padding: 12px; border: none; border-radius: 9px; background: var(--navy); color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .15s; }
.auth-btn:hover { background: var(--navy-2); }
.auth-btn:disabled { opacity: .5; cursor: default; }
.auth-btn.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.auth-btn.btn-ghost:hover { border-color: var(--gold); color: var(--ink); }
.auth-error { background: rgba(178,60,60,.1); color: #a83a3a; border: 1px solid rgba(178,60,60,.2); border-radius: 9px; padding: 11px 14px; font-size: 13.5px; }
.auth-demo { margin-top: 22px; padding: 14px; background: var(--paper-2); border-radius: 10px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; text-align: center; }
.auth-demo strong { color: var(--ink); }

/* Team */
.member-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.member-row:last-child { border-bottom: none; }
.member-info { flex: 1; min-width: 0; }
.member-name { font-weight: 600; font-size: 14px; }
.member-email { font-size: 12px; color: var(--ink-soft); }
.role-tag { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
.role-owner { background: rgba(227,28,35,.16); color: #9a7422; }
.role-admin { background: rgba(63,125,85,.12); color: var(--green); }
.role-member { background: rgba(138,146,160,.16); color: #5f6875; }
.role-auditor { background: rgba(15,15,20,.08); color: var(--navy); }
.invite-link { display: block; font-family: "IBM Plex Mono", monospace; font-size: 12px; background: var(--paper-2); padding: 12px; border-radius: 8px; word-break: break-all; color: var(--navy); border: 1px solid var(--line); }
select.auth-input { appearance: none; }

/* Integrations */
.integration.connected { border-color: rgba(63,125,85,.4); }
.integration-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.integration-logo { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; }
.integration-name { font-weight: 700; font-size: 16px; }
.integration-status { font-size: 12px; color: var(--ink-soft); font-family: "IBM Plex Mono", monospace; }
.integration-status.ok { color: var(--green); }
.integration-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* Billing plans */
.plan { position: relative; display: flex; flex-direction: column; }
.plan-current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.plan-badge { position: absolute; top: -11px; left: 24px; background: var(--gold); color: #1a1206; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.plan-name { font-size: 20px; font-weight: 700; margin-top: 6px; }
.plan-price { margin: 8px 0 2px; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.plan-price small { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.plan-tag { color: var(--ink-soft); font-size: 13px; margin-bottom: 16px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan-features li { font-size: 13.5px; padding: 7px 0 7px 22px; position: relative; border-bottom: 1px dashed var(--line); }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Questionnaire */
.qa { margin-bottom: 14px; }
.qa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.qa-cat { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.qa-q { font-size: 16px; font-weight: 600; margin-top: 4px; }
.qa-answer { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin: 12px 0; max-width: 74ch; }
.qa-refs { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-ref { font-family: "IBM Plex Mono", monospace; font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink-soft); text-decoration: none; border: 1px solid var(--line); }
.qa-ref.on { background: rgba(63,125,85,.12); color: var(--green); border-color: rgba(63,125,85,.3); }

/* Evidence */
.evidence-list { margin-bottom: 18px; }
.evidence-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.evidence-item:last-child { border-bottom: none; }
.evidence-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-soft); flex: none; }
.evidence-icon.verified { background: rgba(63,125,85,.12); color: var(--green); }
.evidence-info { flex: 1; min-width: 0; }
.evidence-name { font-size: 14px; font-weight: 500; }
.evidence-name a { color: var(--navy); text-decoration: none; }
.evidence-name a:hover { color: var(--gold); }
.evidence-meta { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.verified-tag { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 20px; background: rgba(63,125,85,.12); color: var(--green); }
.evidence-upload { display: flex; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.file-input { flex: 1; font-size: 13px; font-family: "IBM Plex Mono", monospace; }

/* Statement of Applicability */
.soa-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.soa-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid var(--navy); margin-bottom: 20px; }
.soa-title { font-size: 24px; font-weight: 700; }
.soa-sub { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--gold); letter-spacing: .1em; margin-top: 4px; }
.soa-meta { font-size: 11.5px; color: var(--ink-soft); text-align: right; line-height: 1.7; }
.soa-meta strong { color: var(--ink); font-size: 13px; }
.soa-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.soa-table th { text-align: left; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.soa-table td { padding: 8px 10px; border-bottom: 1px solid #ececef; vertical-align: top; }
.soa-just { color: var(--ink-soft); max-width: 280px; }
.soa-foot { margin-top: 18px; font-size: 11px; color: var(--ink-soft); text-align: center; }

/* Print */
@media print {
    .no-print { display: none !important; }
    .shell { display: block; }
    .content { padding: 0; max-width: none; }
    .soa-doc { border: none; box-shadow: none; padding: 0; }
    .soa-table { font-size: 10px; }
    body { background: #fff; }
}

/* =========================================================
   ISMS backbone — risk, crosswalk, findings, audits, trail
   ========================================================= */

/* Risk heatmap */
.heatmap { position: relative; padding-left: 8px; }
.hm { border-collapse: collapse; width: 100%; }
.hm td { border: 1px solid var(--card); }
.hm-cell { width: 18%; height: 52px; vertical-align: top; padding: 4px; border-radius: 3px; }
.hm-low { background: rgba(63,125,85,.30); }
.hm-medium { background: rgba(192,127,42,.32); }
.hm-high { background: rgba(181,71,63,.34); }
.hm-axis { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-soft); text-align: center; width: 22px; height: 22px; border: none !important; }
.hm-refs { display: flex; flex-wrap: wrap; gap: 3px; }
.hm-chip { font-family: "IBM Plex Mono", monospace; font-size: 10px; background: rgba(15,15,20,.82); color: #fff; padding: 2px 5px; border-radius: 4px; text-decoration: none; }
.hm-chip:hover { background: var(--gold); color: #1a1206; }
.hm-ylabel { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 6px; }
.hm-xlabel { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; text-align: center; margin-top: 4px; }

/* Score badges */
.score-badge { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 12px; padding: 3px 9px; border-radius: 6px; color: #fff; display: inline-block; }
.sb-high { background: var(--risk-high); }
.sb-medium { background: var(--risk-med); }
.sb-low { background: var(--risk-low); }

/* Risk register rows */
.risk-row { display: grid; grid-template-columns: 64px 1fr 150px 78px 120px 78px; gap: 14px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.risk-row:last-child { border-bottom: none; }
.risk-row:hover { background: #fffdf6; }
.risk-head { background: #f0e9d8; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.risk-head:hover { background: #f0e9d8; }
.risk-title { font-weight: 500; font-size: 14px; }
.risk-cat { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

.mapped-ctrl { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: inherit; }
.mapped-ctrl:last-child { border-bottom: none; }
.mapped-ctrl:hover .mapped-title { color: var(--gold); }
.mapped-title { flex: 1; font-size: 14px; }
textarea.auth-input { resize: vertical; font-family: inherit; }

/* Framework crosswalk */
.fw-stat { text-align: center; }
.fw-name { font-weight: 700; font-size: 15px; }
.fw-pct { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.fw-detail { font-size: 11px; color: var(--ink-soft); line-height: 1.6; }
.cw-row { display: grid; grid-template-columns: 130px 1.3fr 1.3fr 130px; gap: 14px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.cw-row:last-child { border-bottom: none; }
.cw-head { background: #f0e9d8; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.fw-tag { font-family: "IBM Plex Mono", monospace; font-size: 11px; padding: 3px 9px; border-radius: 6px; background: var(--navy); color: #fff; }
.cw-reqtitle, .cw-ctrltitle { font-size: 12.5px; color: var(--ink-soft); }
.cw-tags { display: flex; flex-direction: column; gap: 8px; }
.cw-tag { display: flex; align-items: center; gap: 10px; font-size: 13px; }

/* Findings */
.finding-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.finding-form .auth-input { margin: 0; }
.finding { margin-bottom: 14px; }
.finding.closed { opacity: .62; }
.finding-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.finding-head > div:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.finding-src { font-size: 11px; color: var(--ink-soft); }
.finding-title { font-size: 16px; font-weight: 600; }
.finding-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.finding-meta .overdue { color: var(--risk-high); font-weight: 600; }
.finding-rc { font-size: 13.5px; color: var(--ink-soft); margin: 8px 0 0; }
.sev { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.sev-major { background: rgba(181,71,63,.15); color: var(--risk-high); }
.sev-minor { background: rgba(192,127,42,.16); color: var(--risk-med); }
.sev-obs { background: rgba(138,146,160,.16); color: #5f6875; }
.sev-ofi { background: rgba(63,125,85,.12); color: var(--green); }

/* Audits */
.audit-row { display: grid; grid-template-columns: 100px 1.6fr 120px 110px 1.4fr 110px; gap: 12px; align-items: start; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.audit-row:last-child { border-bottom: none; }
.audit-head { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.audit-result { color: var(--ink-soft); font-size: 12.5px; }

/* Management reviews */
.review { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.review:last-child { border-bottom: none; }
.review-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.review-date { font-weight: 700; font-size: 15px; }
.review-body { display: grid; gap: 8px; }
.review-body > div { font-size: 13.5px; line-height: 1.5; }
.review-label { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); width: 130px; vertical-align: top; }

/* Activity trail */
.trail { position: relative; }
.trail-row { display: grid; grid-template-columns: 110px 20px 1fr; align-items: start; gap: 4px; padding: 8px 0; }
.trail-time { font-size: 11.5px; color: var(--ink-soft); padding-top: 2px; }
.trail-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin: 5px auto 0; box-shadow: 0 0 0 3px rgba(227,28,35,.16); position: relative; }
.trail-row:not(:last-child) .trail-dot::after { content: ""; position: absolute; left: 50%; top: 9px; width: 1px; height: 26px; background: var(--line); transform: translateX(-50%); }
.trail-body { font-size: 13.5px; }
.trail-actor { font-weight: 600; }
.trail-action { color: var(--ink-soft); }
.trail-entity { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--navy); background: var(--paper-2); padding: 1px 7px; border-radius: 5px; }
.trail-detail { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.trail-compact .trail-row { padding: 6px 0; }

/* Review banner on control detail */
.review-banner { padding: 11px 16px; border-radius: 10px; font-size: 13.5px; margin-top: 14px; }
.review-banner.due { background: rgba(181,71,63,.1); color: #9a3730; border: 1px solid rgba(181,71,63,.25); }
.review-banner.soon { background: rgba(192,127,42,.1); color: #8a5a1e; border: 1px solid rgba(192,127,42,.22); }

@media (max-width: 860px) {
    .risk-row, .cw-row, .audit-row { grid-template-columns: 1fr 1fr; }
    .grid[style*="repeat(5"] { grid-template-columns: 1fr 1fr !important; }
}

/* Validation transcript */
.transcript { font-family:"IBM Plex Mono",monospace; font-size:11px; line-height:1.55; background:var(--navy); color:#cdd4e2; border-radius:8px; padding:12px 14px; margin:10px 0 0; white-space:pre-wrap; word-break:break-word; overflow-x:auto; max-height:280px; }
.transcript::-webkit-scrollbar{height:6px;width:6px;} .transcript::-webkit-scrollbar-thumb{background:#3a4a68;}

/* Live run indicator */
.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--gold);margin:0 4px;animation:livepulse 1.1s ease-in-out infinite;}
@keyframes livepulse{0%,100%{opacity:.35;transform:scale(.85);}50%{opacity:1;transform:scale(1.15);}}
.transcript.live{min-height:120px;}
.transcript.live div{padding:1px 0;}

/* ===== Pen-test back office ===== */
.stepper{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px;box-shadow:var(--shadow);}
.step{flex:1;min-width:70px;text-align:center;position:relative;}
.step-dot{width:26px;height:26px;border-radius:50%;background:#e6e6ea;color:var(--ink-soft);display:grid;place-items:center;margin:0 auto 6px;font-family:"IBM Plex Mono",monospace;font-size:12px;font-weight:600;}
.step-label{font-size:10px;color:var(--ink-soft);line-height:1.2;}
.step.done .step-dot{background:var(--green);color:#fff;}
.step.current .step-dot{background:var(--gold);color:#1a1206;box-shadow:0 0 0 4px rgba(227,28,35,.18);}
.step.current .step-label{color:var(--ink);font-weight:600;}

.signed-badge{background:rgba(63,125,85,.1);border:1px solid rgba(63,125,85,.25);color:var(--green);border-radius:8px;padding:10px 12px;font-size:13px;line-height:1.5;}
.signed-badge .mono{color:var(--ink-soft);font-size:11px;}
.engagement-metric{display:flex;gap:18px;margin-top:12px;}
.engagement-metric .em-n{font-size:26px;font-weight:700;line-height:1;}
.engagement-metric .em-k{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);margin-top:4px;}

/* Legal / invoice / report shared doc bits */
.soa-doc.legal h3,.soa-doc.report h3{font-size:13pt;margin:16px 0 6px;color:var(--navy);}
.soa-doc.legal p,.soa-doc.report p{font-size:11pt;line-height:1.55;}
.legal-scope{background:var(--paper-2);border:1px solid var(--line);border-radius:6px;padding:10px 12px;white-space:pre-line;}
.sig-block{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin:14px 0;}
.sig-line{display:block;border-bottom:1px solid var(--ink);min-height:22px;font-weight:600;padding-bottom:2px;}
.sig-cap{font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);}
.legal-disclaimer{margin-top:18px;background:rgba(192,127,42,.1);border:1px solid rgba(192,127,42,.25);color:#8a5a1e;border-radius:8px;padding:10px 12px;font-size:10.5px;letter-spacing:.02em;}

/* Invoice */
.soa-doc.invoice .inv-top{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid var(--navy);padding-bottom:16px;margin-bottom:16px;}
.inv-word{font-size:22px;font-weight:800;letter-spacing:.04em;}
.inv-num{color:var(--gold);font-size:13px;margin-top:2px;}
.inv-supplier{text-align:right;font-size:12px;}
.inv-co{font-weight:700;font-size:15px;}
.inv-parties{display:flex;justify-content:space-between;gap:24px;margin-bottom:14px;}
.inv-label{font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:4px;}
.inv-meta div{display:flex;justify-content:space-between;gap:24px;font-size:12px;padding:2px 0;}
.inv-meta span{color:var(--ink-soft);}
.inv-table{width:100%;border-collapse:collapse;margin:8px 0;font-size:12px;}
.inv-table th{background:#f0e9d8;text-align:left;padding:8px 10px;font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);}
.inv-table td{padding:9px 10px;border-bottom:1px solid #ececef;}
.inv-table .r,.inv-table th.r{text-align:right;}
.inv-totals{margin-left:auto;width:280px;margin-top:10px;}
.inv-totals div{display:flex;justify-content:space-between;padding:4px 0;font-size:12.5px;}
.inv-grand{border-top:2px solid var(--navy);margin-top:4px;padding-top:8px !important;font-size:15px !important;font-weight:700;}
.inv-pay{margin-top:18px;background:var(--paper-2);border-radius:8px;padding:12px;}

/* Report */
.sev-summary{display:flex;gap:10px;margin:12px 0;}
.sev-summary .ss{flex:1;text-align:center;border-radius:8px;padding:10px;border:1px solid var(--line);}
.ss-n{font-size:24px;font-weight:700;}.ss-k{font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);}
.ss-major .ss-n{color:var(--risk-high);}.ss-minor .ss-n{color:var(--risk-med);}.ss-obs .ss-n{color:#5f6875;}.ss-ofi .ss-n{color:var(--green);}
.rep-finding{border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:10px 0;page-break-inside:avoid;}
.rep-fhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;}
.rep-fref{color:var(--gold);}.rep-ftitle{font-weight:600;}
.rep-kv{width:100%;border-collapse:collapse;font-size:11pt;}
.rep-kv td{padding:5px 0;vertical-align:top;border-bottom:1px dashed var(--line);}
.rep-kv td:first-child{width:130px;font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft);padding-right:12px;}

/* Live findings */
.live-findings{background:rgba(227,28,35,.08);border:1px solid rgba(227,28,35,.3);border-radius:8px;padding:10px 12px;margin-bottom:10px;}
.lf-head{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--gold);margin-bottom:6px;}
.lf-item{font-size:12.5px;padding:3px 0;border-bottom:1px dashed rgba(227,28,35,.25);}
.lf-item:last-child{border-bottom:none;}

/* ===== Client portal (clean, no ISMS sidebar) ===== */
.portal-body{background:var(--paper);min-height:100vh;margin:0;}
.doc-body{background:var(--paper);margin:0;}
.doc-main{max-width:900px;margin:0 auto;padding:30px 24px;}
.portal-top{background:var(--navy);color:#eef1f8;display:flex;justify-content:space-between;align-items:center;padding:16px 30px;flex-wrap:wrap;gap:10px;}
.portal-brand{display:flex;align-items:center;gap:12px;}
.portal-co{font-weight:700;font-size:16px;color:#fff;}
.portal-sub{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);}
.portal-forwho{font-size:12px;color:var(--gold-soft);}
.portal-shell{max-width:760px;margin:0 auto;padding:26px 20px 60px;display:flex;flex-direction:column;gap:16px;}
.portal-card{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:22px 24px;position:relative;}
.portal-card h2{font-size:18px;margin:2px 0 10px;}
.portal-card h1{font-size:28px;margin:6px 0;}
.portal-card p{font-size:14px;line-height:1.6;}
.portal-hero{background:linear-gradient(150deg,var(--navy),#0d0d10);color:#eef1f8;border:none;}
.portal-hero h1{color:#fff;}
.portal-hero .lede{color:#aeb7cc;}
.portal-hero .eyebrow{color:var(--gold);}
.portal-step{position:absolute;top:16px;right:18px;font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);background:var(--paper-2);padding:3px 9px;border-radius:12px;}
.portal-btn{display:inline-block;border:none;border-radius:9px;background:var(--navy);color:#fff;font-family:inherit;font-size:14px;font-weight:600;padding:11px 20px;cursor:pointer;text-decoration:none;}
.portal-btn:hover{background:var(--navy-2);}
.portal-btn.ghost{background:transparent;color:var(--navy);border:1px solid var(--line);}
.portal-btn.ghost:hover{border-color:var(--gold);}
.portal-btn:disabled{opacity:.5;}
.portal-2col{display:flex;gap:12px;}
.portal-2col>div{flex:1;}
.portal-invoice{display:flex;flex-direction:column;gap:2px;}
.portal-invoice>div:first-child{display:flex;justify-content:space-between;align-items:baseline;font-size:16px;}
.portal-invoice strong{font-size:22px;}
.paid-tag{display:inline-flex;align-items:center;font-family:"IBM Plex Mono",monospace;font-size:12px;color:var(--green);background:rgba(63,125,85,.12);padding:8px 14px;border-radius:9px;}
.portal-metric{display:flex;gap:20px;}
.portal-metric .pm-n{font-size:28px;font-weight:700;line-height:1;}
.portal-metric .pm-k{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);margin-top:4px;}
.portal-findings{width:100%;border-collapse:collapse;margin-top:14px;font-size:13px;}
.portal-findings td{padding:8px 6px;border-bottom:1px solid var(--line);}
.portal-foot{text-align:center;font-size:11px;color:var(--ink-soft);margin-top:8px;}

/* ===== Statement of Work ===== */
.soa-doc.sow h3{font-size:13pt;margin:16px 0 6px;color:var(--navy);}
.soa-doc.sow p{font-size:11pt;line-height:1.55;}
.soa-doc.sow ul{font-size:11pt;line-height:1.5;}
.sow-cover{background:linear-gradient(150deg,var(--navy),#0d0d10);color:#eef1f8;margin:-32px -32px 20px;padding:30px 32px 26px;border-radius:14px 14px 0 0;}
.sow-cover-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;}
.sow-cover-top .brand-seal{background:radial-gradient(circle at 35% 30%,#2a2a2e,#0d0d10);border:1px solid rgba(227,28,35,.4);border-radius:50%;display:grid;place-items:center;}
.sow-cover-top .mono strong{color:#fff;}
.sow-doctype{font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);}
.sow-title{color:#fff;font-size:24pt;margin:6px 0 18px;max-width:20ch;}
.sow-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:6px 30px;max-width:520px;}
.sow-meta div{display:flex;justify-content:space-between;gap:16px;font-size:11px;border-bottom:1px solid rgba(255,255,255,.12);padding:5px 0;}
.sow-meta span{color:#aeb7cc;font-family:"IBM Plex Mono",monospace;letter-spacing:.06em;}
.sow-meta strong{color:#fff;}
.sow-scope{list-style:none;padding:0;}
.sow-scope li{background:var(--paper-2);border:1px solid var(--line);border-radius:6px;padding:6px 10px;margin:4px 0;font-size:11pt;}
.sow-price{width:100%;border-collapse:collapse;margin:8px 0;max-width:420px;}
.sow-price td{padding:7px 0;border-bottom:1px solid #ececef;font-size:11pt;}
.sow-price .r{text-align:right;}
.sow-price .sow-total td{border-top:2px solid var(--navy);border-bottom:none;font-weight:700;font-size:12pt;padding-top:9px;}

/* Tenant indicator */
.tenant-chip{display:block;font-size:10px;letter-spacing:.06em;color:var(--gold-soft);background:rgba(227,28,35,.12);border:1px solid rgba(227,28,35,.25);border-radius:6px;padding:5px 9px;margin-bottom:8px;text-align:center;}

/* ===== Xee brand marks ===== */
.brand-logo{width:38px;height:38px;object-fit:contain;display:block;flex:0 0 auto;}
.brand-logo-lg{width:46px;height:46px;object-fit:contain;display:block;}
.brand-name{font-family:"Bricolage Grotesque",serif;font-weight:800;letter-spacing:-.01em;}
.brand-x-cover{width:56px;height:56px;object-fit:contain;}
.doc-x{width:40px;height:40px;object-fit:contain;vertical-align:middle;}
.portal-x{width:34px;height:34px;object-fit:contain;}

/* ===== Platform console ===== */
.metric-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px 18px;box-shadow:var(--shadow);}
.metric-n{font-size:28px;font-weight:700;letter-spacing:-.02em;line-height:1;color:var(--ink);}
.metric-k{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-soft);margin-top:8px;}
.metric-sub{font-size:12px;color:var(--ink-soft);margin-top:4px;}
.reg-table{width:100%;border-collapse:collapse;font-size:13px;}
.reg-table thead th{text-align:left;font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);font-weight:500;padding:8px 10px;border-bottom:2px solid var(--line);}
.reg-table tbody td{padding:11px 10px;border-bottom:1px solid var(--line);vertical-align:middle;}
.reg-table tbody tr:hover{background:var(--paper-2);}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:middle;background:var(--ink-soft);}
.status-dot.ok{background:var(--green);}
.status-dot.bad{background:var(--risk-high);}
.status-dot.soon{background:var(--amber);}
.muted{color:var(--ink-soft);}
.kv span{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-soft);padding:10px 0;border-bottom:1px dashed var(--line);align-self:center;}
.kv strong{padding:10px 0;border-bottom:1px dashed var(--line);font-size:14px;font-weight:600;align-self:center;}

/* self-serve auth: inline field errors + legal pages */
.auth-field-err{display:block;color:#c0271f;font-size:12px;margin:-6px 0 8px}
.legal-wrap{max-width:820px;margin:0 auto;padding:56px 24px 80px}
.legal-wrap h1{font-size:32px;margin:0 0 6px}
.legal-wrap .updated{color:var(--ink-soft);font-size:13px;margin-bottom:28px}
.legal-wrap h2{font-size:20px;margin:30px 0 10px}
.legal-wrap p,.legal-wrap li{color:var(--ink-soft);line-height:1.7;font-size:15px}
.legal-wrap a{color:#c0271f}
.legal-note{background:#fff6f0;border:1px solid #f2c9b4;border-radius:10px;padding:14px 16px;font-size:13px;color:#8a4b2f;margin:18px 0}
.legal-top{border-bottom:1px solid var(--line,#eee);padding:16px 24px}
.legal-top a{font-weight:700;color:var(--ink,#111);text-decoration:none}

/* ---- Premium data tables + content links (design-system) ---- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th {
    text-align: left; font-family: "IBM Plex Mono", monospace; font-size: 10.5px;
    letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
    font-weight: 500; padding: 2px 16px 11px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover td { background: var(--paper); }
.table tbody tr:last-child td { border-bottom: none; }
.table td.mono, .table .mono { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--ink-soft); }
.table a { color: var(--ink); font-weight: 600; text-decoration: none; transition: color .12s ease; }
.table a:hover { color: var(--gold); }
/* small pill for statuses/classifications */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
    letter-spacing: .01em; line-height: 1.5; }
/* breadcrumb / inline links stop looking like raw URLs */
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .12s; }
.eyebrow a:hover { border-color: currentColor; }
.prose a, .lede a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-soft); transition: border-color .12s; }
.prose a:hover, .lede a:hover { border-bottom-color: var(--gold); }
/* soft entrance so pages feel less static */
.card { animation: xrise .28s ease both; }
@keyframes xrise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
