/* Shared by the R.E.V.I.S. core pages. Header, footer and tokens are the same as /revis/. */
* { box-sizing: border-box; }

:root {
    --revis-cyan: #00cfef;
    --bg-base: #0d0e12;
    --bg-tile: #181a20;
    --bg-tile-hover: #22252d;
    --text-main: #ffffff;
    --text-muted: #9ba1a6;
    --font-main: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
    --font-nasa: "Audiowide", "Michroma", cursive;
}

body, html { 
    margin: 0; padding: 0; font-family: var(--font-main); 
    background-color: var(--bg-base); color: var(--text-main); 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    width: 100%;
}

body.menu-open { overflow: hidden; }

.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px; display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; z-index: 1000; background: rgba(13, 14, 18, 0.75); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); animation: fadeInDown 1s ease forwards;
}

.header-logo { 
    font-family: var(--font-nasa); font-size: 1.6rem; letter-spacing: 0.1em; 
    color: var(--text-main); text-decoration: none; font-weight: normal; 
    padding-left: 0.1em; 
}

.header-right { display: flex; align-items: center; gap: 25px; } 
.header-nav { display: flex; gap: 30px; }

.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: color 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--text-main); }

.auth-buttons { display: flex; align-items: center; gap: 12px; }
.btn-outline { color: var(--text-main); text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 8px 16px; transition: color 0.3s ease; border: 1px solid rgba(255,255,255,0.3); border-radius: 30px;}
.btn-outline:hover { border-color: var(--revis-cyan); color: var(--revis-cyan); }
.btn-solid { background-color: var(--text-main); color: #000; padding: 8px 20px; border-radius: 30px; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: all 0.3s ease; white-space: nowrap; }
.btn-solid:hover { background-color: var(--revis-cyan); }

#nav-guest { display: flex; align-items: center; gap: 10px; }
#nav-user { display: none; align-items: center; gap: 15px; }
.user-greeting { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.user-greeting span { color: var(--text-main); }

.lang-dropdown { position: relative; display: inline-block; }
.lang-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 15px; }
.lang-dropbtn {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-muted); padding: 6px 12px;
    font-size: 0.85rem; font-weight: bold; cursor: pointer; border-radius: 6px; display: flex; align-items: center; gap: 6px; transition: all 0.3s ease;
}
.lang-dropbtn:hover { color: var(--text-main); border-color: rgba(255, 255, 255, 0.3); }
.lang-dropbtn::after { content: '▾'; font-size: 0.7rem; }
.lang-content {
    display: none; position: absolute; right: 0; top: 100%; margin-top: 8px; background: rgba(24, 26, 32, 0.95);
    backdrop-filter: blur(20px); min-width: 140px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; z-index: 1100; overflow: hidden;
}
.lang-dropdown:hover .lang-content { display: block; }
.lang-item { color: var(--text-muted); padding: 10px 16px; text-decoration: none; display: block; font-size: 0.85rem; font-weight: 500; transition: all 0.2s ease; cursor: pointer; text-align: left; }
.lang-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--revis-cyan); }
.lang-item.active { color: var(--revis-cyan); font-weight: 700; }

.header-buy-btn { background-color: var(--revis-cyan); color: #000; padding: 8px 24px; border-radius: 20px; font-size: 0.95rem; font-weight: 700; text-decoration: none; transition: all 0.3s ease; }
.header-buy-btn:hover { box-shadow: 0 4px 15px rgba(0, 207, 239, 0.4); transform: translateY(-1px); }
.site-footer { padding: 50px 20px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-content { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-logo { font-size: 1.8rem; font-family: var(--font-nasa); font-weight: normal; letter-spacing: 0.1em; color: var(--text-main); margin-bottom: 0; margin-left: 0.2em; }
.made-in-japan { color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.05em; margin-top: -15px; }

.footer-links-row { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-bottom: 5px; }
.footer-links-sub { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 0.85em; opacity: 0.7; }

.footer-link { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s ease; }
.footer-link:hover { color: var(--revis-cyan); }

.footer-trademarks { font-size: 0.75rem; color: var(--text-muted); margin: 25px auto 0; max-width: 800px; line-height: 1.6; text-align: left; }
.footer-copyright { color: #555555; font-size: 0.85rem; line-height: 1.6; margin-top: 20px; }

.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(0); } }

.menu-toggle { display: none; }
@media (max-width: 768px) {
    .site-header { padding: 0 20px; justify-content: flex-start; }
    .header-logo { position: absolute; left: 50%; transform: translateX(-50%); font-size: 1.4rem; z-index: 1002; padding-left: 0.1em; }
    
    .menu-toggle { 
        position: relative;
        z-index: 9999;
        display: flex; flex-direction: column; justify-content: space-between; 
        width: 24px; height: 18px; background: transparent; border: none; cursor: pointer; 
        padding: 12px;
        margin-left: -12px;
        box-sizing: content-box; 
        -webkit-tap-highlight-color: transparent;
    }
    .menu-toggle span { width: 100%; height: 2px; background-color: var(--text-main); border-radius: 2px; transition: 0.3s ease; }
    .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .header-right { 
        position: fixed; top: 70px; left: 0; width: 100%; 
        background: rgba(13, 14, 18, 0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); 
        flex-direction: column; align-items: center; padding: 0 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.5); 
        transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease; z-index: 1000; overflow-y: hidden; 
        max-height: 0; opacity: 0; border-top: 1px solid rgba(255,255,255,0.05); 
        pointer-events: none;
    }
    .header-right.open { 
        max-height: calc(100vh - 70px); padding-top: 20px; padding-bottom: 40px; opacity: 1; overflow-y: auto; 
        pointer-events: auto;
    }

    .header-nav { flex-direction: column; gap: 5px; width: 100%; text-align: center; margin-bottom: 10px; margin-top: 20px; }
    .nav-link { font-size: 1.1rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; display: block; }
    
    .auth-buttons { flex-direction: column; width: 100%; gap: 10px; margin-right: 0; margin-bottom: 20px;}
    .btn-outline, .btn-solid { width: 100%; text-align: center; padding: 14px 0; font-size: 1.1rem; }
    #nav-user { flex-direction: column; width: 100%; }

    .lang-dropdown { width: 100%; text-align: center; margin-bottom: 15px; }
    .lang-dropbtn { display: none; }
    .lang-content { position: static; box-shadow: none; border: none; margin-top: 0; width: 100%; background: transparent; display: block; }
    .lang-item { padding: 12px 0; font-size: 0.95rem; text-align: center; border-bottom: 1px dotted rgba(255,255,255,0.05); }
    .lang-item:last-child { border-bottom: none; }
    
    .header-buy-btn { width: 100%; text-align: center; display: block; padding: 14px 0; }

    .footer-links-row, .footer-links-sub { flex-direction: column; gap: 15px; margin-bottom: 0; }
}

/* ---------- R.E.V.I.S. core pages (/revis/<core>/) ---------- */
:root {
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --cyan-soft: rgba(0, 207, 239, 0.12);
    --wrap: 1120px;
}

.m-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.m-kicker { font-family: var(--font-nasa); color: var(--revis-cyan); font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 18px; }
.m-title { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.25; margin: 0 0 22px; letter-spacing: 0.01em; }
.m-lead { color: var(--text-muted); font-size: 1.12rem; line-height: 1.85; margin: 0; max-width: 760px; }
.m-lead strong { color: var(--text-main); font-weight: 600; }

/* hero */
.m-hero { position: relative; padding: calc(70px + 9vh) 0 11vh; overflow: hidden; }
.m-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px; background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 0%, transparent 75%);
    opacity: 0.55;
}
.m-hero .m-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.m-crumb { display: flex; gap: 10px; align-items: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 30px; flex-wrap: wrap; }
.m-crumb a { color: var(--text-muted); text-decoration: none; }
.m-crumb a:hover { color: var(--revis-cyan); }
.m-crumb span[aria-hidden] { opacity: 0.5; }
.m-name { font-family: var(--font-nasa); font-weight: normal; font-size: clamp(2rem, 4.4vw, 4.4rem); letter-spacing: 0.04em; line-height: 1.05; margin: 0; background: linear-gradient(135deg, #ffffff 0%, #a7adb3 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; }
.m-role { font-family: var(--font-nasa); color: var(--revis-cyan); font-size: 0.9rem; letter-spacing: 0.24em; margin: 18px 0 34px; text-transform: uppercase; }
.m-catch { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.4; margin: 0 0 22px; }
.m-catch sup { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.m-hero .m-lead { font-size: 1.08rem; }
.m-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.m-tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; }
.m-tag.is-pro { color: var(--revis-cyan); border-color: rgba(0, 207, 239, 0.55); }
.m-visual { position: relative; min-width: 0; }

/* sections */
.m-section { padding: 100px 0; }
.m-section.is-tight { padding: 90px 0; }
.m-head { margin-bottom: 60px; }

/* numbered points: hairlines, not cards */
.m-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; counter-reset: point; }
.m-points.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-point { border-top: 1px solid var(--line-strong); padding: 26px 0 8px; counter-increment: point; }
.m-point::before { content: counter(point, decimal-leading-zero); display: block; font-family: var(--font-nasa); color: var(--revis-cyan); font-size: 0.85rem; letter-spacing: 0.18em; margin-bottom: 18px; }
.m-point h3 { font-size: 1.22rem; line-height: 1.5; margin: 0 0 12px; }
.m-point p { color: var(--text-muted); line-height: 1.8; margin: 0; font-size: 0.98rem; }

/* flow: steps on one line */
.m-flow { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.m-flow li { position: relative; background: var(--bg-tile); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 24px; }
.m-flow li:not(:last-child)::after { content: ''; position: absolute; right: -15px; top: 50%; width: 16px; height: 1px; background: var(--revis-cyan); opacity: 0.6; }
.m-flow b { display: block; font-family: var(--font-nasa); font-weight: normal; color: var(--revis-cyan); font-size: 0.78rem; letter-spacing: 0.18em; margin-bottom: 10px; }
.m-flow strong { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.m-flow span { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; display: block; }

/* screenshots: aspect kept, never cropped */
.m-shot { margin: 0; }
.m-shot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(0, 207, 239, 0.08)); }
.m-shot figcaption { color: var(--text-muted); font-size: 0.85rem; margin-top: 16px; text-align: center; }

.m-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.m-split.is-flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.m-split.is-flip > :first-child { order: 2; }

/* spec table */
.m-spec { width: 100%; border-collapse: collapse; }
.m-spec th, .m-spec td { text-align: left; vertical-align: top; padding: 20px 0; border-bottom: 1px solid var(--line); line-height: 1.75; }
.m-spec th { width: 30%; color: var(--revis-cyan); font-weight: 600; padding-right: 24px; font-size: 0.95rem; }
.m-spec td { color: var(--text-main); font-size: 0.98rem; }
.m-spec td small { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

/* statement */
.m-statement { text-align: center; padding: 130px 0; }
.m-statement p { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.55; margin: 0 auto; max-width: 900px; }
.m-statement em { font-style: normal; color: var(--revis-cyan); }

/* the seven cores */
.m-cores { padding: 100px 0 110px; }
.m-cores-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.m-cores-list li { border-right: 1px solid var(--line); }
.m-cores-list li:last-child { border-right: none; }
.m-cores-list a { display: block; padding: 22px 14px 24px; text-decoration: none; color: var(--text-main); transition: background-color 0.25s ease; height: 100%; }
.m-cores-list a:hover { background: var(--bg-tile); }
.m-cores-list .n { font-family: var(--font-nasa); font-size: 0.95rem; letter-spacing: 0.04em; display: block; white-space: nowrap; }
.m-cores-list .r { color: var(--text-muted); font-size: 0.68rem; letter-spacing: 0.12em; display: block; margin-top: 10px; text-transform: uppercase; line-height: 1.5; }
.m-cores-list a[aria-current="page"] { box-shadow: inset 0 2px 0 var(--revis-cyan); background: linear-gradient(180deg, var(--cyan-soft), transparent); }
.m-cores-list a[aria-current="page"] .n { color: var(--revis-cyan); }

/* cta + notes */
.m-cta { text-align: center; padding: 110px 0 70px; }
.m-cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 36px; }
.m-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.m-btn { display: inline-block; padding: 15px 32px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.m-btn.is-primary { background: var(--revis-cyan); color: #000; }
.m-btn.is-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0, 207, 239, 0.35); }
.m-btn.is-ghost { color: var(--text-main); border: 1px solid rgba(255, 255, 255, 0.35); }
.m-btn.is-ghost:hover { border-color: var(--revis-cyan); color: var(--revis-cyan); }
.m-notes { max-width: var(--wrap); margin: 0 auto; padding: 30px 32px 70px; }
.m-notes p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.75; margin: 0 0 8px; }

/* small console used by several visuals */
.m-console { background: #0a0b0e; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 207, 239, 0.05); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.m-console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.08em; }
.m-console-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3038; display: inline-block; }
.m-console-bar em { font-style: normal; margin-left: 8px; }
.m-console-body { padding: 20px 20px 22px; font-size: 0.86rem; line-height: 1.75; color: #cfd3d6; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 960px) {
    .m-hero .m-wrap, .m-split, .m-split.is-flip { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .m-split.is-flip > :first-child { order: 0; }
    .m-points { grid-template-columns: minmax(0, 1fr); }
    .m-points.is-2 { grid-template-columns: minmax(0, 1fr); }
    .m-name { font-size: clamp(2rem, 9vw, 4.4rem); }
    .m-flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .m-flow li:not(:last-child)::after { display: none; }
    .m-cores-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-cores-list li { border-bottom: 1px solid var(--line); }
    .m-cores-list li:nth-child(2n) { border-right: none; }
}
@media (max-width: 768px) {
    .m-wrap { padding: 0 20px; }
    .m-hero { padding: calc(70px + 48px) 0 72px; }
    .m-section { padding: 80px 0; }
    .m-section.is-tight { padding: 64px 0; }
    .m-head { margin-bottom: 40px; }
    .m-statement { padding: 90px 0; }
    .m-flow { grid-template-columns: minmax(0, 1fr); }
    .m-spec th { width: 36%; padding-right: 14px; font-size: 0.88rem; }
    .m-notes { padding: 24px 20px 60px; }
    .m-cta-buttons { flex-direction: column; align-items: stretch; }
    .m-btn { text-align: center; }
}

/* ---------- Q.E.L.V.A.R.I. ---------- */
.q-stack { display: grid; gap: 10px; max-width: 460px; margin-left: auto; }
.q-layer { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: 18px 22px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(24, 26, 32, 0.7); }
.q-layer strong { font-family: var(--font-nasa); font-weight: normal; font-size: 1.05rem; letter-spacing: 0.04em; }
.q-layer small, .q-layer em { color: var(--text-muted); font-size: 0.8rem; font-style: normal; white-space: nowrap; }
.q-k { font-family: var(--font-nasa); color: var(--text-muted); font-size: 0.68rem; letter-spacing: 0.18em; }
.q-layer.is-gone { border-style: dashed; background: transparent; padding-top: 10px; padding-bottom: 10px; }
.q-layer.is-gone s { color: #5c6168; font-size: 0.9rem; text-decoration-thickness: 1px; }
.q-layer.is-core { border-color: rgba(0, 207, 239, 0.7); background: linear-gradient(90deg, rgba(0, 207, 239, 0.16), rgba(0, 207, 239, 0.03)); box-shadow: 0 0 40px rgba(0, 207, 239, 0.18), inset 0 0 0 1px rgba(0, 207, 239, 0.15); padding-top: 26px; padding-bottom: 26px; }
.q-layer.is-core strong { color: var(--revis-cyan); font-size: 1.35rem; }
.q-layer.is-core .q-k { color: var(--revis-cyan); }
.q-layer.is-base { background: #121318; }

.q-aside { color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; margin: 22px 0 0; border-left: 2px solid var(--line-strong); padding-left: 14px; }
.q-row, .q-out { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 14px; }
.q-row-k { color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.14em; }
.q-cells { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.q-cells i { display: block; height: 22px; border-radius: 4px; border: 1px solid var(--line); background: transparent; transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.q-cells i:nth-child(4n+2) { transition-delay: 0.06s; }
.q-cells i:nth-child(4n+3) { transition-delay: 0.12s; }
.q-cells i:nth-child(4n+4) { transition-delay: 0.18s; }
.q-cells[data-row="draft"] i.is-on { border-color: rgba(0, 207, 239, 0.55); background: rgba(0, 207, 239, 0.08); }
.q-cells[data-row="verify"] i.is-ok { border-color: var(--revis-cyan); background: rgba(0, 207, 239, 0.55); box-shadow: 0 0 12px rgba(0, 207, 239, 0.35); }
.q-cells[data-row="verify"] i.is-fix { border-color: #ffffff; background: rgba(255, 255, 255, 0.75); }
.q-out { align-items: start; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.q-text { margin: 0; color: var(--text-main); font-family: var(--font-main); font-size: 0.98rem; line-height: 1.7; min-height: 3.4em; }

.q-bench { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.q-bench-row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 32px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.q-bench-label strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.q-bench-label span { color: var(--text-muted); font-size: 0.85rem; }
.q-bars { display: grid; gap: 8px; }
.q-bar { --max: 260; position: relative; height: 30px; width: calc(var(--v) / var(--max) * 100%); background: #2a2e36; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 0.8rem; color: var(--text-muted); min-width: 7.5rem; }
.q-bar b { color: var(--text-main); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; }
.q-bar.is-mtp { background: linear-gradient(90deg, rgba(0, 207, 239, 0.35), rgba(0, 207, 239, 0.75)); color: #e8fbff; box-shadow: 0 0 24px rgba(0, 207, 239, 0.2); }
.q-bar.is-mtp b { color: #fff; }
/* Figures not published yet: each bar is an empty slot of one width. */
.q-bar.is-pending { width: 100%; max-width: 32rem; background: transparent; border: 1px dashed var(--line-strong); box-shadow: none; color: var(--text-muted); }
.q-bar.is-pending.is-mtp { border-color: rgba(0, 207, 239, 0.45); color: var(--revis-cyan); }
.q-bar.is-pending b { color: var(--text-muted); font-weight: 400; }
.q-bench-note { color: var(--text-muted); font-size: 0.82rem; line-height: 1.75; margin: 22px 0 0; max-width: 860px; }
.q-models thead th, .q-models thead td { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; padding-top: 0; }
.q-models tbody th { color: var(--text-main); font-weight: 600; }
.q-models td { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92rem; }

@media (max-width: 960px) {
    .q-stack { margin: 0 auto; }
}
@media (max-width: 768px) {
    .q-layer { grid-template-columns: 3.8rem minmax(0, 1fr); padding: 14px 16px; }
    .q-layer small, .q-layer em { grid-column: 2; }
    .q-bench-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .q-row, .q-out { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .q-cells i { height: 18px; }
}

/* ---------- F.A.L.Q. ---------- */
.m-kicker .pro-badge, .m-tag.is-pro { font-family: var(--font-main); }
.pro-badge { font-size: 0.7rem; border: 1px solid var(--revis-cyan); color: var(--revis-cyan); padding: 1px 8px; border-radius: 12px; vertical-align: middle; margin-left: 8px; font-weight: 700; letter-spacing: 0.04em; }
.f-queue { max-width: 480px; margin-left: auto; }
.f-jobs { list-style: none; margin: 0; padding: 0; position: relative; }
.f-job { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 5.6rem; gap: 12px; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: #12141a; transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, border-color 0.3s ease, background-color 0.3s ease; font-family: var(--font-main); }
.f-dot { width: 7px; height: 7px; border-radius: 50%; background: #3a404a; }
.f-name { color: var(--text-main); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-seat { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.66rem; letter-spacing: 0.06em; color: var(--text-muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; }
.f-state { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.66rem; letter-spacing: 0.08em; color: var(--text-muted); text-align: right; }
.f-job.is-running { border-color: rgba(0, 207, 239, 0.5); background: rgba(0, 207, 239, 0.07); }
.f-job.is-running .f-dot { background: var(--revis-cyan); box-shadow: 0 0 10px var(--revis-cyan); }
.f-job.is-running .f-state { color: var(--revis-cyan); }
.f-job.is-urgent .f-name { font-weight: 700; }
.f-job.is-urgent .f-seat { color: var(--revis-cyan); border-color: rgba(0, 207, 239, 0.5); }
.f-job.is-done { opacity: 0; transform: translateY(-52px) !important; }
.f-server { margin-top: 70px; }
@media (max-width: 960px) { .f-queue { margin: 0 auto; } }
@media (max-width: 768px) { .f-job { grid-template-columns: 10px minmax(0, 1fr) auto; } .f-state { display: none; } }

/* ---------- M.μ.X.I.S. ---------- */
.x-board { max-width: 440px; margin-left: auto; background: #0f1015; border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.x-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #1a1c22; border-radius: 9px; padding: 3px; margin-bottom: 16px; font-size: 0.78rem; text-align: center; color: var(--text-muted); }
.x-tabs span { padding: 6px 0; border-radius: 7px; }
.x-tabs .is-on { background: #2b2f38; color: var(--text-main); }
.x-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-tiles li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: #181a20; transition: border-color 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease; }
.x-tiles b { font-size: 0.95rem; grid-column: 1; }
.x-tiles small { color: var(--revis-cyan); font-size: 0.74rem; grid-column: 1; }
.x-tiles small span { color: var(--text-muted); margin-right: 4px; }
.x-tiles em { grid-column: 2; grid-row: 1; font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted); }
.x-tiles li.is-run { border-color: var(--revis-cyan); box-shadow: 0 0 0 1px rgba(0, 207, 239, 0.4), 0 0 28px rgba(0, 207, 239, 0.28); animation: x-pulse 2.2s ease-in-out infinite; }
.x-tiles li.is-run em { color: var(--revis-cyan); }
.x-tiles li.is-done em { color: #3ccf6e; }
.x-tiles li.is-done { opacity: 0.72; }
@keyframes x-pulse { 50% { box-shadow: 0 0 0 1px rgba(0, 207, 239, 0.6), 0 0 40px rgba(0, 207, 239, 0.4); } }
@media (max-width: 960px) { .x-board { margin: 0 auto; } }

/* ---------- J.I.T.R.X. ---------- */
.j-compile { max-width: 470px; margin-left: auto; display: grid; gap: 16px; }
.j-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.j-in { border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 12px 14px; background: #14161c; transition: border-color 0.3s ease, box-shadow 0.3s ease; min-width: 0; }
.j-in span { display: block; font-family: var(--font-nasa); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--text-muted); margin-bottom: 6px; }
.j-in b { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j-in.is-changed { border-color: var(--revis-cyan); box-shadow: 0 0 18px rgba(0, 207, 239, 0.3); }
.j-core { position: relative; text-align: center; padding: 6px 0; }
.j-core::before { content: ''; position: absolute; left: 50%; top: -16px; bottom: -16px; width: 1px; background: linear-gradient(var(--line-strong), var(--revis-cyan), var(--line-strong)); }
.j-core span { position: relative; display: inline-block; font-family: var(--font-nasa); color: #000; background: var(--revis-cyan); border-radius: 999px; padding: 7px 18px; font-size: 0.9rem; letter-spacing: 0.06em; box-shadow: 0 0 30px rgba(0, 207, 239, 0.35); }
.j-lines { display: grid; gap: 9px; }
.j-line { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); align-items: center; gap: 10px; opacity: 0; transform: translateX(-8px); transition: opacity 0.35s ease, transform 0.35s ease; }
.j-line span { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--text-muted); }
.j-line i { display: block; height: 9px; border-radius: 5px; background: linear-gradient(90deg, rgba(0, 207, 239, 0.65), rgba(0, 207, 239, 0.18)); }
.j-lines.is-built .j-line { opacity: 1; transform: none; }
@media (max-width: 960px) { .j-compile { margin: 0 auto; } }

/* ---------- L.A.T.R.I.O. ---------- */
.l-demo { max-width: 500px; margin-left: auto; }
.l-live { margin-left: auto; color: var(--revis-cyan); font-size: 0.66rem; letter-spacing: 0.12em; }
.l-live.is-done { color: #3ccf6e; }
.l-answer { font-family: var(--font-main); height: 430px; overflow: hidden; }
.l-answer h4 { font-size: 1.05rem; margin: 0 0 8px; color: var(--text-main); }
.l-answer p { margin: 0 0 12px; font-size: 0.88rem; color: #cfd3d6; }
.l-answer table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin: 0 0 14px; }
.l-answer th, .l-answer td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.l-answer th { color: var(--text-muted); font-weight: 600; border-bottom-color: var(--line-strong); }
.l-answer tr.is-wait { visibility: hidden; }
.l-math { display: flex; align-items: center; gap: 8px; font-family: "Times New Roman", "Hiragino Mincho ProN", serif; font-size: 1.15rem !important; color: var(--text-main) !important; font-style: italic; }
.l-frac { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.l-frac > span:first-child { border-bottom: 1px solid currentColor; padding: 0 4px 2px; }
.l-frac > span:last-child { padding-top: 2px; }
.l-sum { display: inline-flex; flex-direction: column; align-items: center; font-style: normal; font-size: 1.5rem; line-height: 0.9; }
.l-sum small { font-size: 0.55rem; font-style: italic; }
.l-answer pre { margin: 0; background: #14161c; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 0.76rem; line-height: 1.6; color: #d7dade; overflow: hidden; white-space: pre; }
.l-answer pre .k { color: var(--revis-cyan); }
@media (max-width: 960px) { .l-demo { margin: 0 auto; } }
@media (max-width: 768px) { .l-answer { height: 470px; } .l-answer pre { font-size: 0.68rem; } }

/* ---------- K.E.C.H.I. ---------- */
.k-panel { max-width: 440px; margin-left: auto; background: #0f1015; border: 1px solid var(--line-strong); border-radius: 16px; padding: 20px 20px 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.k-h { font-family: var(--font-nasa); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--text-muted); margin: 0 0 10px; }
.k-profile { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.k-profile li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #181a20; font-size: 0.88rem; }
.k-profile i { color: var(--text-muted); font-style: normal; font-size: 0.9rem; }
.k-chip { font-size: 0.68rem; font-weight: 700; color: var(--revis-cyan); border: 1px solid rgba(0, 207, 239, 0.45); border-radius: 999px; padding: 1px 8px; }
.k-chip.is-fact { color: #c9ced3; border-color: var(--line-strong); }
.k-query { display: flex; align-items: center; gap: 2px; padding: 11px 14px; border-radius: 9px; border: 1px solid rgba(0, 207, 239, 0.5); background: rgba(0, 207, 239, 0.05); font-size: 0.9rem; min-height: 44px; margin-bottom: 12px; }
.k-caret { width: 1px; height: 1.1em; background: var(--revis-cyan); animation: k-blink 1s steps(1) infinite; }
@keyframes k-blink { 50% { opacity: 0; } }
.k-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.k-results li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; font-size: 0.84rem; overflow: hidden; opacity: 0.25; transition: opacity 0.5s ease; }
.k-results li::before { content: ''; position: absolute; inset: 0; width: calc(var(--s) * 100%); background: linear-gradient(90deg, rgba(0, 207, 239, 0.22), rgba(0, 207, 239, 0.04)); transform-origin: left; transform: scaleX(0); transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.k-results li > * { position: relative; }
.k-results span { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--revis-cyan); font-size: 0.78rem; }
.k-results.is-found li { opacity: 1; }
.k-results.is-found li::before { transform: scaleX(1); }
.k-results.is-found li:nth-child(2), .k-results.is-found li:nth-child(2)::before { transition-delay: 0.12s; }
.k-results.is-found li:nth-child(3), .k-results.is-found li:nth-child(3)::before { transition-delay: 0.24s; }
@media (max-width: 960px) { .k-panel { margin: 0 auto; } }

/* Japanese headings break at phrase boundaries where the browser supports it. */
.m-title, .m-catch, .m-statement p, .m-point h3 { word-break: auto-phrase; text-wrap: balance; }

/* v1.3.0 page (/revis/v1.3.0/) */
.core-v130 .m-flow .pro-badge { display: inline-block; font-family: var(--font-main); color: var(--revis-cyan); font-size: 0.62rem; line-height: 1.4; margin: 0 0 0 8px; letter-spacing: 0.04em; vertical-align: 1px; }
.core-v130 .m-point h3 .pro-badge { margin-left: 10px; }
.core-v130 .v-points-after { margin-top: 72px; }
.core-v130 .v-more { margin: 44px 0 0; }
.core-v130 .v-more a { color: var(--revis-cyan); text-decoration: none; font-weight: 600; }
.core-v130 .v-more a::after { content: ' →'; }
.core-v130 .v-more a:hover { text-decoration: underline; }
.core-v130 .m-spec small a { color: var(--revis-cyan); }
@media (max-width: 900px) {
    .core-v130 .v-points-after { margin-top: 48px; }
}
.core-v130 .v-shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 72px; }
.core-v130 .v-before { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
@media (max-width: 900px) {
    .core-v130 .v-shots, .core-v130 .v-before { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .core-v130 .v-shots { margin-top: 48px; }
}
.core-v130 .v-wide { max-width: 980px; margin: 72px auto 0; }
@media (max-width: 900px) { .core-v130 .v-wide { margin-top: 48px; } }

/* Quantization page (/revis/qelvari/quantization/) */
.core-quant .v-more { margin: 44px 0 0; }
.core-quant .v-more a { color: var(--revis-cyan); text-decoration: none; font-weight: 600; }
.core-quant .v-more a::after { content: ' →'; }
.core-quant .v-more a:hover { text-decoration: underline; }
.core-quant .m-spec th small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.82rem; margin-top: 4px; }
.core-quant .qt-aside { margin-top: 36px; }
.qt-map { background: var(--bg-tile); border: 1px solid var(--line); border-radius: 18px; padding: 28px 28px 22px; }
.qt-map-k { font-family: var(--font-nasa); color: var(--revis-cyan); font-size: 0.78rem; letter-spacing: 0.16em; margin: 0 0 18px; text-transform: uppercase; }
.qt-bar { display: flex; height: 44px; border-radius: 10px; overflow: hidden; gap: 3px; margin-bottom: 24px; }
.qt-bar i { display: block; }
.qt-bar .is-k { flex: 78; background: linear-gradient(90deg, rgba(0, 207, 239, 0.95), rgba(0, 207, 239, 0.7)); }
.qt-bar .is-n { flex: 17; background: rgba(0, 207, 239, 0.35); }
.qt-bar .is-f { flex: 5; background: rgba(255, 255, 255, 0.22); }
.qt-legend { margin: 0; display: grid; gap: 12px; }
.qt-legend div { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.qt-legend div::before { content: ''; width: 14px; height: 14px; border-radius: 4px; }
.qt-legend .is-k::before { background: rgba(0, 207, 239, 0.9); }
.qt-legend .is-n::before { background: rgba(0, 207, 239, 0.35); }
.qt-legend .is-f::before { background: rgba(255, 255, 255, 0.22); }
.qt-legend dt { color: var(--text-main); font-size: 0.95rem; line-height: 1.5; }
.qt-legend dd { margin: 0; font-family: var(--font-nasa); color: var(--revis-cyan); font-size: 0.82rem; letter-spacing: 0.08em; white-space: nowrap; }
.qt-map-note { color: var(--text-muted); font-size: 0.78rem; margin: 18px 0 0; }
.m-point-more { display: inline-block; margin-top: 14px; color: var(--revis-cyan); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.m-point-more::after { content: ' →'; }
.m-point-more:hover { text-decoration: underline; }
a.m-tag.qt-tag-link { color: var(--revis-cyan); border-color: rgba(0, 207, 239, 0.55); text-decoration: none; }
a.m-tag.qt-tag-link:hover { background: rgba(0, 207, 239, 0.08); }
.core-quant .m-flow { --steps: 3; }
.core-quant .v-points-after { margin-top: 56px; }
.qt-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.qt-chart { margin: 0; background: var(--bg-tile); border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 22px; }
.qt-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.qt-chart figcaption strong { font-size: 1.05rem; }
.qt-chart figcaption span { color: var(--text-muted); font-size: 0.82rem; }
.qt-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qt-rows li { display: grid; grid-template-columns: 5.6rem 4.6rem minmax(0, 1fr) 3.6rem; gap: 10px; align-items: center; font-size: 0.88rem; }
.qt-arm { color: var(--text-muted); white-space: nowrap; }
.qt-size { color: var(--text-muted); font-size: 0.8rem; text-align: right; white-space: nowrap; }
.qt-track { height: 14px; background: rgba(255, 255, 255, 0.04); border-radius: 7px; overflow: hidden; }
.qt-track i, .qt-size-bar i { display: block; height: 100%; width: var(--w); background: rgba(255, 255, 255, 0.3); border-radius: 7px; }
.qt-rows b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--text-muted); font-size: 0.82rem; }
.qt-rows li.is-ours .qt-arm, .qt-rows li.is-ours b { color: var(--revis-cyan); font-weight: 700; }
.qt-rows li.is-ours .qt-track i { background: var(--revis-cyan); }
.qt-findings { margin-top: 56px; }
.qt-size-fig { margin: 0 0 56px; background: var(--bg-tile); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px 22px; }
.qt-size-fig figcaption { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 18px; }
.qt-size-fig ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.qt-size-fig li { display: grid; grid-template-columns: 7rem 13rem minmax(0, 1fr) 5.2rem; gap: 14px; align-items: center; }
.qt-size-k { font-weight: 700; }
.qt-size-fig li.is-ours .qt-size-k, .qt-size-fig li.is-ours b { color: var(--revis-cyan); }
.qt-cells { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; height: 14px; }
.qt-cells::before { content: ''; grid-column: span var(--n); background: var(--revis-cyan); border-radius: 2px; opacity: 0.85; }
.qt-cells.is-16 { --n: 16; } .qt-cells.is-16::before { background: rgba(255, 255, 255, 0.5); }
.qt-cells.is-4 { --n: 4; }
.qt-cells.is-3 { --n: 3; }
.qt-size-bar { height: 14px; background: rgba(255, 255, 255, 0.04); border-radius: 7px; overflow: hidden; }
.qt-size-fig li.is-ours .qt-size-bar i { background: var(--revis-cyan); }
.qt-size-fig b { text-align: right; font-variant-numeric: tabular-nums; }
.qt-fig-note { color: var(--text-muted); font-size: 0.78rem; margin: 16px 0 0; }
.qt-vs th { width: 22%; }
.qt-vs thead td { color: var(--text-muted); font-weight: 700; font-size: 0.9rem; }
.qt-vs tbody td:last-child { color: var(--revis-cyan); }
@media (max-width: 900px) {
    .qt-charts { grid-template-columns: minmax(0, 1fr); }
    .qt-size-fig li { grid-template-columns: 5.5rem minmax(0, 1fr) 4.8rem; }
    .qt-size-fig .qt-size-bar { display: none; }
    .qt-rows li { grid-template-columns: 4.8rem minmax(0, 1fr) 3.4rem; }
    .qt-rows .qt-size { display: none; }
}
.qt-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.qt-how-card { margin: 0; background: var(--bg-tile); border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px 22px; display: flex; flex-direction: column; }
.qt-how-card.is-ours { border-color: rgba(0, 207, 239, 0.35); }
.qt-how-k { font-family: var(--font-nasa); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--text-muted); margin: 0 0 10px; text-transform: uppercase; }
.qt-how-card.is-ours .qt-how-k { color: var(--revis-cyan); }
.qt-how-card h3 { font-size: 1.08rem; line-height: 1.5; margin: 0 0 16px; word-break: auto-phrase; }
.qt-how-card figcaption { color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; margin-top: 16px; }
.qt-svg { display: block; width: 100%; height: auto; }
.qt-svg .ax { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.qt-svg .tick { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.qt-svg .snap { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.2; stroke-dasharray: 3 3; }
.qt-svg .orig { fill: rgba(255, 255, 255, 0.85); }
.qt-svg .orig.is-out { fill: #ff7b72; }
.qt-svg .q { fill: rgba(255, 255, 255, 0.4); }
.qt-svg .brace { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1.2; fill: none; }
.qt-svg .bar { fill: rgba(255, 255, 255, 0.45); }
.qt-svg .bar.is-out { fill: #ff7b72; }
.qt-svg .bar.is-ours { fill: var(--revis-cyan); }
.qt-svg .arrow { stroke: var(--revis-cyan); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.qt-svg .edge { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.qt-svg .node { fill: rgba(255, 255, 255, 0.3); }
.qt-svg .node.is-on { fill: var(--revis-cyan); }
.qt-svg .best { fill: none; stroke: var(--revis-cyan); stroke-width: 3; stroke-linejoin: round; }
.qt-svg .orig-line { fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.5; stroke-dasharray: 4 4; }
.qt-how-table { margin-top: 48px; }
@media (max-width: 900px) {
    .qt-how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .qt-vs th { width: 24%; font-size: 0.8rem; padding-right: 8px; }
    .qt-vs td { font-size: 0.85rem; padding-right: 8px; }
}
.qt-pic { margin: 0 0 40px; }
.qt-pic-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.qt-pic-cell img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.qt-pic-cell.is-ours img { border-color: rgba(0, 207, 239, 0.55); }
.qt-pic-cell p { margin: 12px 0 0; font-weight: 700; font-size: 0.95rem; }
.qt-pic-cell.is-ours p { color: var(--revis-cyan); }
.qt-pic-cell small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.82rem; margin-top: 2px; }
.qt-pic figcaption { color: var(--text-muted); font-size: 0.82rem; line-height: 1.7; margin-top: 16px; }
@media (max-width: 700px) { .qt-pic-row { grid-template-columns: minmax(0, 1fr); } }

/* Q.E.L.V.A.R.I. speed charts (scripts/make-speed-charts.py) */
.qs-block { margin-top: 56px; }
.qs-block:first-of-type { margin-top: 0; }
.qs-h { font-size: 1.25rem; margin: 0 0 6px; }
.qs-sub { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; margin: 0 0 18px; }
.qs-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; font-size: 0.85rem; color: var(--text-muted); }
.qs-legend span { display: inline-flex; align-items: center; gap: 8px; }
.qs-legend i { width: 18px; height: 3px; border-radius: 2px; background: currentColor; }
.qs-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.qs-chart { margin: 0; background: var(--bg-tile); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; min-width: 0; }
.qs-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.qs-chart figcaption strong { font-size: 1rem; }
.qs-chart figcaption span { color: var(--text-muted); font-size: 0.78rem; }
.qs-chip { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.qs-chip li { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 10px; align-items: center; }
.qs-mac { font-weight: 700; font-size: 0.9rem; line-height: 1.25; }
.qs-mac small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.75rem; }
.qs-bars { display: grid; gap: 3px; }
.qs-bar { display: grid; grid-template-columns: minmax(0, 1fr) 4.6rem; gap: 8px; align-items: center; }
.qs-bar i { display: block; height: 7px; border-radius: 4px; width: var(--w); background: currentColor; }
.qs-bar b { font-weight: 600; font-size: 0.74rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.m-q36 { color: #00cfef; }
.m-orn { color: #7a8cff; }
.m-gem { color: #e8eaed; }
.m-q38 { color: #f0a35e; }
.qs-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.qs-tab { background: transparent; border: 1px solid var(--line-strong); color: var(--text-muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.qs-tab small { opacity: 0.7; }
.qs-tab.is-active { color: var(--revis-cyan); border-color: rgba(0, 207, 239, 0.6); background: rgba(0, 207, 239, 0.08); }
.qs-panel { display: none; }
.qs-panel.is-active { display: block; }
.qs-svg { display: block; width: 100%; height: auto; overflow: visible; }
.qs-svg .grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.qs-svg .ylab, .qs-svg .xlab { fill: var(--text-muted); font-size: 10px; font-family: inherit; }
.qs-svg .ylab { text-anchor: end; }
.qs-svg .xlab { text-anchor: middle; }
.qs-svg .ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.qs-svg .pt { fill: currentColor; }
.qs-svg .range { stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.qs-svg .end { fill: currentColor; font-size: 10.5px; font-weight: 700; font-family: inherit; }
@media (max-width: 900px) { .qs-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
    .qs-svg .ylab, .qs-svg .xlab { font-size: 19px; }
    .qs-svg .end { display: none; }
    .qs-svg .ln { stroke-width: 3; }
    .qs-svg .pt { r: 3.5; }
}
.qf-box { background: var(--bg-tile); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px 22px; }
.qf-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.qf-rate { color: var(--revis-cyan); font-weight: 700; font-size: 0.95rem; }
.qf-time { color: var(--text-muted); font-size: 0.9rem; min-width: 3.5em; }
.qf-play { margin-left: auto; background: var(--revis-cyan); color: #0d0e12; border: 0; border-radius: 999px; padding: 6px 18px; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.qf-text { white-space: pre-wrap; line-height: 1.85; margin: 0; min-height: 18.5em; color: var(--text-main); font-size: 0.95rem; }
.qf-note { color: var(--text-muted); font-size: 0.85rem; margin: 12px 0 0; }
@media (max-width: 600px) { .qf-text { min-height: 30em; font-size: 0.9rem; } }
.q-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.q-split .q-layer { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.q-split .q-layer small { grid-column: auto; }

/* Safety page (/revis/safety/): the Mac / Internet boundary in the hero, tables under a lead. */
.sf-map { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; background: var(--bg-tile); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.sf-map > div { padding: 26px 24px 22px; min-width: 0; }
.sf-mac { background: rgba(0, 207, 239, 0.06); border-right: 1px dashed rgba(0, 207, 239, 0.45); }
.sf-k { font-family: var(--font-nasa); color: var(--revis-cyan); font-size: 0.74rem; letter-spacing: 0.16em; margin: 0 0 16px; text-transform: uppercase; }
.sf-net .sf-k { color: var(--text-muted); }
.sf-sub { color: var(--text-muted); font-size: 0.78rem; font-weight: 600; margin: 0 0 8px; }
.sf-map ul { list-style: none; margin: 0; padding: 0; }
.sf-map li { position: relative; padding: 7px 0 7px 22px; font-size: 0.92rem; line-height: 1.45; color: var(--text-main); }
.sf-map li::before { position: absolute; left: 0; top: 7px; font-weight: 700; }
.sf-mac li::before { content: '●'; color: var(--revis-cyan); font-size: 0.6rem; top: 12px; }
.sf-mac li small { display: inline-block; margin-left: 8px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: var(--revis-cyan); border: 1px solid rgba(0, 207, 239, 0.55); border-radius: 999px; padding: 1px 8px; vertical-align: 1px; }
.sf-net ul.is-out { margin-bottom: 18px; }
.sf-net ul.is-out li::before { content: '↗'; color: var(--text-muted); }
.sf-net ul.is-no li { color: var(--text-muted); }
.sf-net ul.is-no li::before { content: '×'; color: #ff7a7a; }
.core-safety .sf-spec { margin-top: 34px; }
.core-safety .sf-spec caption { text-align: left; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); }
.core-safety .m-head .m-lead { margin-top: 18px; }
@media (max-width: 600px) {
    .sf-map { grid-template-columns: minmax(0, 1fr); }
    .sf-mac { border-right: 0; border-bottom: 1px dashed rgba(0, 207, 239, 0.45); }
}

/* Local AI page (/revis/local-ai/): cloud vs local paths, the comparison table, weakness → answer rows. */
.la-paths { display: grid; gap: 14px; }
.la-path { background: var(--bg-tile); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 18px; }
.la-path.is-local { border-color: rgba(0, 207, 239, 0.45); background: rgba(0, 207, 239, 0.06); }
.la-k { font-family: var(--font-nasa); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--text-muted); margin: 0 0 14px; text-transform: uppercase; }
.la-path.is-local .la-k { color: var(--revis-cyan); }
.la-path ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.la-path li { font-size: 0.92rem; font-weight: 600; color: var(--text-main); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; }
.la-path li + li::before { content: '→'; color: var(--text-muted); margin: 0 10px 0 -2px; font-weight: 400; }
.la-path li + li { border: 0; padding-left: 0; }
.la-path.is-local li:last-child { color: var(--revis-cyan); }
.la-note { color: var(--text-muted); font-size: 0.85rem; margin: 14px 0 0; }
.la-table-wrap { overflow-x: auto; margin-top: 8px; }
.la-compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.la-compare th, .la-compare td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--line); line-height: 1.7; font-size: 0.96rem; }
.la-compare thead th { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.la-compare thead th.is-local { color: var(--revis-cyan); }
.la-compare tbody th { color: var(--text-muted); font-weight: 600; width: 18%; font-size: 0.9rem; padding-left: 0; }
.la-compare td { color: var(--text-muted); width: 41%; }
.la-compare td + td { color: var(--text-main); background: rgba(0, 207, 239, 0.04); }
.la-points-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.la-fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.la-fixes li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 56px; padding: 30px 0; border-top: 1px solid var(--line-strong); position: relative; }
.la-fixes li:last-child { border-bottom: 1px solid var(--line-strong); }
.la-weak b { font-family: var(--font-nasa); color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.12em; display: block; margin-bottom: 10px; }
.la-weak h3 { font-size: 1.18rem; margin: 0 0 10px; line-height: 1.5; }
.la-weak p { color: var(--text-muted); margin: 0; line-height: 1.8; font-size: 0.96rem; }
.la-answer { border-left: 2px solid var(--revis-cyan); padding-left: 24px; align-self: center; }
.la-answer p { color: var(--text-main); margin: 0; line-height: 1.85; font-size: 0.98rem; }
.la-answer .pro-badge { display: inline-block; margin-left: 8px; color: var(--revis-cyan); font-size: 0.66rem; font-weight: 700; border: 1px solid rgba(0, 207, 239, 0.55); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }
.core-local .m-head .m-lead { margin-top: 18px; }
.la-honest .m-head { max-width: 860px; }
@media (max-width: 1100px) { .la-points-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .la-points-4 { grid-template-columns: minmax(0, 1fr); }
    .la-fixes li { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .la-answer { padding-left: 18px; }
}
