.tag,
.eyebrow,
.log-kicker,
.lab-state,
.scanner-form label,
.console-prompt,
.console-state{
    font-family:Consolas,monospace;
    text-transform:uppercase;
}

.tag{
    display:inline-block;
    border:1px solid var(--blue);
    border-radius:999px;
    color:var(--blue2);
    margin-bottom:25px;
    padding:8px 18px;
    font-size:12px;
}

h1{
    color:var(--blue2);
    font-size:110px;
    line-height:1;
    text-shadow:0 0 18px rgba(70,150,255,.4);
}

.hero h1{
    position:relative;
    display:inline-block;
    letter-spacing:-.07em;
    margin:0 0 14px;
    text-shadow:
        0 0 18px rgba(103,179,255,.42),
        0 0 42px rgba(59,130,246,.28),
        0 14px 80px rgba(59,130,246,.2);
}

.hero h1::before{
    position:absolute;
    inset:-28px -48px;
    border-radius:999px;
    background:radial-gradient(circle,rgba(103,179,255,.18),transparent 66%);
    content:"";
    filter:blur(8px);
    opacity:.9;
    z-index:-1;
}

.hero-tag{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin:0 auto;
}

.hero-tag span{
    width:7px;
    height:7px;
    border-radius:999px;
    background:var(--green);
    box-shadow:0 0 14px rgba(90,242,155,.86);
}

.subtitle{
    margin:20px auto 40px;
    max-width:650px;
    color:var(--muted);
    font-size:20px;
}

.hero .subtitle{
    display:grid;
    gap:8px;
    margin:22px auto 34px;
    max-width:720px;
}

.hero .subtitle strong{
    color:var(--text);
    font-size:clamp(22px,3vw,34px);
    line-height:1.1;
    text-shadow:0 0 22px rgba(103,179,255,.2);
}

.hero .subtitle span{
    color:var(--muted-strong);
    font-family:Consolas,monospace;
    font-size:clamp(14px,1.4vw,18px);
}

.hero-particles{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:-1;
}

.hero-particles::before,
.hero-particles::after{
    position:absolute;
    inset:0;
    content:"";
    opacity:.42;
}

.hero-particles::before{
    background:
        radial-gradient(circle at 12% 28%,rgba(128,215,255,.35) 0 1px,transparent 2px),
        radial-gradient(circle at 74% 18%,rgba(103,179,255,.32) 0 1px,transparent 2px),
        radial-gradient(circle at 84% 70%,rgba(128,215,255,.26) 0 1px,transparent 2px),
        radial-gradient(circle at 22% 76%,rgba(59,130,246,.28) 0 1px,transparent 2px),
        radial-gradient(circle at 48% 20%,rgba(128,215,255,.25) 0 1px,transparent 2px);
    animation:particleDrift 13s ease-in-out infinite;
}

.hero-particles::after{
    background:linear-gradient(180deg,transparent 0%,rgba(128,215,255,.08) 50%,transparent 100%);
    height:34%;
    transform:translateY(-100%);
    animation:scanLine 7s linear infinite;
}

.card,
.log,
.observation,
.terminal-panel,
.scanner-shell,
.console-shell,
.archive-shell,
.archive-card,
.evolution-hero,
.evolution-tree-shell,
.evolution-phase,
.evolution-telemetry,
.evolution-terminal-panel,
.protocol-hero,
.protocol-intro,
.protocol-phase,
.protocol-principles,
.protocol-terminal-panel{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:var(--radius);
    backdrop-filter:blur(8px);
}

.scanner-shell{
    position:relative;
    overflow:hidden;
    padding:30px;
    background:
        linear-gradient(145deg,rgba(16,30,58,.86),rgba(5,9,19,.94)),
        var(--panel-deep);
    box-shadow:0 0 0 1px rgba(103,179,255,.04),var(--shadow);
}

.scanner-shell::after{
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg,transparent,rgba(103,179,255,.1),transparent);
    content:"";
    opacity:.45;
    pointer-events:none;
    transform:translateX(-120%);
}

.scanner-shell.is-scanning::after{
    animation:scanSweep 1.4s ease-in-out infinite;
}

.console-shell{
    position:relative;
    overflow:hidden;
    padding:28px;
    background:
        linear-gradient(160deg,rgba(12,24,48,.88),rgba(3,7,16,.95)),
        var(--panel-deep);
    box-shadow:0 0 0 1px rgba(103,179,255,.04),var(--shadow);
}

.console-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
}

.console-header h2{
    color:var(--blue2);
    font-size:36px;
    line-height:1.1;
}

.console-state{
    border:1px solid rgba(90,242,155,.36);
    border-radius:999px;
    color:var(--green);
    flex:0 0 auto;
    font-size:11px;
    padding:7px 10px;
    text-shadow:0 0 10px rgba(90,242,155,.25);
}

.card{
    position:relative;
    overflow:hidden;
    min-height:128px;
    padding:24px;
    transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease;
}

.hero .card{
    min-height:116px;
    border-color:rgba(103,179,255,.24);
    background:
        linear-gradient(180deg,rgba(16,28,52,.74),rgba(8,13,27,.9)),
        var(--panel);
    box-shadow:0 18px 60px rgba(0,0,0,.16);
}

.hero .card::before{
    position:absolute;
    inset:0;
    background:linear-gradient(105deg,transparent,rgba(128,215,255,.09),transparent);
    content:"";
    opacity:0;
    transform:translateX(-80%);
    transition:opacity .25s ease,transform .45s ease;
}

.hero .card:hover::before{
    opacity:1;
    transform:translateX(80%);
}

.card h3{
    color:var(--muted);
    margin-bottom:10px;
    font-size:15px;
    font-weight:500;
}

.card p{
    color:var(--text);
    font-size:28px;
    font-weight:700;
}

.hero .card h3{
    color:var(--muted);
    font-size:13px;
}

.hero .card p{
    color:var(--text);
    font-size:30px;
    line-height:1.1;
    text-shadow:0 0 18px rgba(103,179,255,.12);
}

.buttons a{
    position:relative;
    overflow:hidden;
    text-decoration:none;
    color:var(--text);
    background:
        linear-gradient(180deg,rgba(37,99,235,.94),rgba(29,78,216,.88)),
        rgba(8,16,36,.9);
    border:1px solid rgba(128,215,255,.28);
    border-radius:var(--radius);
    box-shadow:0 12px 34px rgba(29,78,216,.14);
    padding:14px 26px;
    transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
    font-weight:700;
}

.buttons a::before{
    position:absolute;
    inset:0;
    background:linear-gradient(110deg,transparent,rgba(255,255,255,.18),transparent);
    content:"";
    transform:translateX(-120%);
    transition:transform .45s ease;
}

.buttons a:hover::before{
    transform:translateX(120%);
}

.application-card{
    position:relative;
    overflow:hidden;
    min-height:210px;
    border:1px solid rgba(103,179,255,.22);
    border-radius:var(--radius);
    background:
        linear-gradient(160deg,rgba(12,24,48,.78),rgba(3,7,16,.96)),
        var(--panel-deep);
    box-shadow:0 0 0 1px rgba(103,179,255,.04),0 18px 54px rgba(0,0,0,.18);
    color:var(--text);
    padding:22px;
    text-decoration:none;
    transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease;
}

.application-card::before{
    position:absolute;
    inset:-1px;
    background:
        radial-gradient(circle at 20% 0,rgba(128,215,255,.16),transparent 42%),
        linear-gradient(120deg,transparent,rgba(128,215,255,.06),transparent);
    content:"";
    opacity:.8;
    pointer-events:none;
}

.application-card::after{
    position:absolute;
    right:18px;
    bottom:18px;
    width:42px;
    height:42px;
    border:1px solid rgba(103,179,255,.18);
    border-radius:999px;
    background:radial-gradient(circle,rgba(103,179,255,.14),transparent 66%);
    content:"";
}

.application-card:hover{
    border-color:rgba(128,215,255,.52);
    box-shadow:0 0 28px rgba(59,130,246,.18),0 18px 54px rgba(0,0,0,.24);
    transform:translateY(-4px);
}

.application-card>*{
    position:relative;
    z-index:1;
}

.application-card h3{
    color:var(--blue2);
    font-size:28px;
    line-height:1;
    margin:22px 0 12px;
}

.application-card p{
    color:var(--muted-strong);
    min-height:78px;
}

.application-status,
.application-link{
    font-family:Consolas,monospace;
    text-transform:uppercase;
}

.application-status{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid rgba(103,179,255,.22);
    border-radius:999px;
    color:var(--cyan);
    font-size:11px;
    padding:6px 9px;
}

.application-status::before{
    width:7px;
    height:7px;
    border-radius:999px;
    background:var(--cyan);
    box-shadow:0 0 10px rgba(128,215,255,.45);
    content:"";
}

.application-status.is-active{
    border-color:rgba(90,242,155,.32);
    color:var(--green);
}

.application-status.is-active::before{
    background:var(--green);
    box-shadow:0 0 14px rgba(90,242,155,.78);
}

.application-link{
    color:var(--muted);
    display:inline-block;
    font-size:12px;
    margin-top:12px;
}

.scanner-header{
    margin-bottom:26px;
}

.scanner-title{
    color:var(--blue2);
    font-size:48px;
    line-height:1;
    text-shadow:0 0 24px rgba(103,179,255,.28);
}

.scanner-description{
    color:var(--muted-strong);
    margin-top:14px;
    max-width:620px;
    font-size:18px;
}

.scanner-form{
    display:grid;
    gap:12px;
    margin-bottom:18px;
}

.scanner-form label{
    color:var(--cyan);
    font-size:12px;
}

.scanner-controls{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
}

.scanner-controls input{
    width:100%;
    min-height:58px;
    border:1px solid rgba(103,179,255,.28);
    border-radius:var(--radius);
    outline:none;
    background:rgba(2,6,14,.82);
    color:var(--text);
    font-family:Consolas,monospace;
    font-size:18px;
    padding:0 18px;
    transition:border-color .25s ease,box-shadow .25s ease,background .25s ease;
}

.scanner-controls input:focus{
    border-color:var(--cyan);
    background:rgba(6,13,28,.94);
    box-shadow:0 0 24px rgba(103,179,255,.16);
}

.scanner-button{
    min-height:58px;
    border:1px solid rgba(128,215,255,.32);
    border-radius:var(--radius);
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:var(--text);
    cursor:pointer;
    font-weight:800;
    padding:0 26px;
    transition:border-color .25s ease,box-shadow .25s ease,opacity .25s ease,transform .25s ease;
}

.scanner-button:disabled{
    cursor:not-allowed;
    opacity:.72;
}

.scanner-progress{
    height:10px;
    overflow:hidden;
    border:1px solid rgba(103,179,255,.22);
    border-radius:999px;
    background:rgba(59,130,246,.08);
    margin-bottom:18px;
}

.scanner-progress span{
    display:block;
    width:0;
    height:100%;
    background:linear-gradient(90deg,var(--blue),var(--cyan),var(--green));
    box-shadow:0 0 18px rgba(103,179,255,.35);
}

.scanner-terminal,
.live-terminal,
.console-output{
    min-height:178px;
    max-height:260px;
    overflow:hidden;
    border:1px solid rgba(103,179,255,.18);
    border-radius:var(--radius);
    background:rgba(2,5,12,.78);
    color:var(--muted-strong);
    font-family:Consolas,monospace;
    font-size:14px;
    padding:16px;
}

.scanner-terminal p,
.live-terminal p,
.console-output p{
    color:var(--muted-strong);
}

.console-output{
    min-height:320px;
    max-height:360px;
    overflow-y:auto;
    scroll-behavior:smooth;
}

.console-line{
    min-height:21px;
    white-space:pre-wrap;
}

.console-command{
    color:var(--cyan);
    margin-top:12px;
}

.console-response{
    color:var(--muted-strong);
}

.console-form{
    display:flex;
    align-items:center;
    gap:10px;
    border:1px solid rgba(103,179,255,.2);
    border-radius:var(--radius);
    background:rgba(2,5,12,.86);
    margin-top:12px;
    padding:12px 14px;
}

.console-prompt{
    color:var(--cyan);
    flex:0 0 auto;
    font-size:14px;
}

.console-form input{
    width:100%;
    border:0;
    outline:0;
    background:transparent;
    color:var(--text);
    caret-color:transparent;
    font-family:Consolas,monospace;
    font-size:16px;
}

.console-form input:disabled{
    opacity:.6;
}

.console-cursor{
    display:block;
    width:9px;
    height:18px;
    background:var(--cyan);
    box-shadow:0 0 12px rgba(128,215,255,.45);
}

.archive-shell{
    padding:28px;
    background:
        linear-gradient(160deg,rgba(12,24,48,.86),rgba(3,7,16,.96)),
        var(--panel-deep);
    box-shadow:0 0 0 1px rgba(103,179,255,.04),var(--shadow);
}

.archive-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:24px;
}

.archive-header h1{
    color:var(--blue2);
    font-size:54px;
    line-height:1;
    text-shadow:0 0 24px rgba(103,179,255,.28);
}

.archive-terminal{
    height:min(680px,calc(100vh - 280px));
    min-height:430px;
    overflow-y:auto;
    scrollbar-color:var(--cyan) rgba(2,5,12,.92);
    scrollbar-gutter:stable;
    border:1px solid rgba(103,179,255,.24);
    border-radius:var(--radius);
    background:
        repeating-linear-gradient(
            0deg,
            rgba(103,179,255,.035),
            rgba(103,179,255,.035) 1px,
            transparent 1px,
            transparent 28px
        ),
        rgba(2,5,12,.82);
    box-shadow:inset 0 0 28px rgba(59,130,246,.08);
    color:var(--muted-strong);
    font-family:Consolas,monospace;
    padding:22px;
    scroll-behavior:smooth;
}

.archive-terminal.is-positioning{
    opacity:0;
    scroll-behavior:auto;
}

.archive-terminal::-webkit-scrollbar{
    width:12px;
}

.archive-terminal::-webkit-scrollbar-track{
    background:rgba(2,5,12,.92);
    border-left:1px solid rgba(103,179,255,.16);
}

.archive-terminal::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,var(--cyan),var(--blue));
    border:3px solid rgba(2,5,12,.92);
    border-radius:999px;
    box-shadow:0 0 18px rgba(103,179,255,.34);
}

.archive-terminal-entry{
    border-bottom:1px solid rgba(103,179,255,.16);
    padding:0 0 22px;
    margin-bottom:22px;
}

.archive-terminal-entry:last-child{
    border-bottom:0;
    margin-bottom:0;
}

.archive-terminal-meta{
    color:var(--cyan);
    font-size:14px;
    margin-bottom:8px;
}

.archive-terminal-entry h2{
    color:var(--text);
    font-family:Inter,Segoe UI,Arial,sans-serif;
    font-size:24px;
    line-height:1.2;
    margin-bottom:10px;
}

.archive-terminal-body{
    color:var(--muted-strong);
    font-size:16px;
    white-space:pre-wrap;
}

.archive-return,
.log-link{
    border:1px solid rgba(103,179,255,.32);
    border-radius:var(--radius);
    color:var(--blue2);
    display:inline-flex;
    margin-top:16px;
    padding:9px 12px;
    text-decoration:none;
    transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.archive-return{
    flex:0 0 auto;
    margin-top:0;
}

.archive-controls{
    display:grid;
    gap:14px;
    margin-bottom:18px;
}

.archive-search-label{
    color:var(--cyan);
    font-family:Consolas,monospace;
    font-size:12px;
    text-transform:uppercase;
}

.archive-controls input{
    width:100%;
    min-height:52px;
    border:1px solid rgba(103,179,255,.28);
    border-radius:var(--radius);
    outline:none;
    background:rgba(2,6,14,.82);
    color:var(--text);
    font-family:Consolas,monospace;
    font-size:16px;
    padding:0 16px;
}

.archive-filters{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.archive-filters button{
    border:1px solid rgba(103,179,255,.22);
    border-radius:var(--radius);
    background:rgba(59,130,246,.08);
    color:var(--muted-strong);
    padding:8px 11px;
    transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}

.archive-filters button[aria-pressed="true"]{
    border-color:rgba(128,215,255,.55);
    background:rgba(59,130,246,.22);
    color:var(--text);
}

.archive-list{
    display:grid;
    gap:12px;
    height:min(620px,calc(100vh - 330px));
    min-height:360px;
    overflow-y:auto;
    padding-right:6px;
    scroll-behavior:smooth;
}

.archive-card{
    overflow:hidden;
    background:rgba(8,15,30,.84);
    transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease;
}

.archive-card-toggle{
    display:block;
    width:100%;
    border:0;
    background:transparent;
    color:inherit;
    padding:18px;
    text-align:left;
}

.archive-card-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:10px;
}

.archive-card h2{
    color:var(--text);
    font-size:22px;
    line-height:1.2;
}

.archive-summary{
    color:var(--muted-strong);
}

.archive-content{
    max-height:0;
    overflow:hidden;
    padding:0 18px;
    transition:max-height .34s ease,padding .34s ease;
}

.archive-card.is-expanded .archive-content{
    max-height:420px;
    padding:0 18px 18px;
}

.archive-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
}

.archive-tag{
    border:1px solid rgba(103,179,255,.24);
    border-radius:999px;
    color:var(--cyan);
    font-family:Consolas,monospace;
    font-size:12px;
    padding:5px 8px;
}

.archive-empty{
    border:1px solid rgba(103,179,255,.18);
    border-radius:var(--radius);
    background:rgba(2,5,12,.78);
    color:var(--muted-strong);
    padding:18px;
}

.evolution-hero{
    position:relative;
    overflow:hidden;
    padding:34px 28px;
    text-align:center;
    background:
        radial-gradient(circle at 50% 0,rgba(59,130,246,.22),transparent 42%),
        linear-gradient(160deg,rgba(10,22,44,.84),rgba(3,7,16,.96)),
        var(--panel-deep);
    box-shadow:0 0 0 1px rgba(103,179,255,.05),var(--shadow);
}

.evolution-hero h1{
    color:var(--blue2);
    font-size:64px;
    line-height:1;
    text-shadow:0 0 24px rgba(103,179,255,.32);
}

.evolution-subtitle{
    color:var(--text);
    font-size:20px;
    margin-top:16px;
}

.evolution-secondary{
    color:var(--muted);
    font-family:Consolas,monospace;
    margin-top:2px;
}

.evolution-hero-progress{
    display:inline-grid;
    grid-template-columns:auto auto minmax(130px,190px);
    align-items:center;
    gap:10px;
    margin-top:20px;
    color:var(--muted-strong);
    font-family:Consolas,monospace;
}

.evolution-hero-progress strong{
    color:var(--cyan);
    text-shadow:0 0 12px rgba(128,215,255,.34);
}

.evolution-progress-shell{
    min-width:160px;
}

.evolution-tree-shell{
    padding:22px;
    background:
        linear-gradient(160deg,rgba(12,24,48,.78),rgba(3,7,16,.96)),
        var(--panel-deep);
    backdrop-filter:none;
    box-shadow:0 0 0 1px rgba(103,179,255,.04),var(--shadow);
}

.evolution-tree{
    display:grid;
    justify-items:center;
}

.evolution-phase{
    position:relative;
    overflow:hidden;
    width:min(100%,560px);
    background:rgba(6,13,28,.78);
    backdrop-filter:none;
    contain:paint;
    transition:border-color .2s ease,box-shadow .2s ease,opacity .2s ease;
}

.evolution-phase.is-completed{
    border-color:rgba(90,242,155,.34);
    box-shadow:0 0 18px rgba(90,242,155,.12);
}

.evolution-phase.is-current{
    border-color:rgba(128,215,255,.72);
    box-shadow:0 0 34px rgba(103,179,255,.26);
}

.evolution-phase.is-future{
    border-color:rgba(103,179,255,.14);
    opacity:.58;
}

.evolution-phase-toggle{
    display:flex;
    align-items:center;
    gap:14px;
    width:100%;
    min-height:58px;
    border:0;
    background:transparent;
    color:inherit;
    padding:13px 16px;
    text-align:left;
}

.evolution-phase-marker{
    display:grid;
    width:34px;
    height:34px;
    place-items:center;
    border:1px solid rgba(103,179,255,.24);
    border-radius:999px;
    background:rgba(2,5,12,.86);
    color:var(--muted);
    flex:0 0 auto;
    font-family:Consolas,monospace;
    font-weight:800;
}

.evolution-phase.is-completed .evolution-phase-marker{
    border-color:rgba(90,242,155,.5);
    color:var(--green);
    box-shadow:0 0 16px rgba(90,242,155,.25);
}

.evolution-phase.is-current .evolution-phase-marker{
    border-color:rgba(128,215,255,.72);
    color:var(--cyan);
    box-shadow:0 0 22px rgba(128,215,255,.44);
}

.evolution-phase-text{
    display:grid;
    gap:2px;
}

.evolution-phase-title{
    color:var(--text);
    font-size:20px;
    font-weight:850;
    line-height:1.05;
}

.evolution-phase-summary{
    color:var(--muted-strong);
    font-family:Consolas,monospace;
    font-size:13px;
}

.evolution-connector{
    color:rgba(128,215,255,.56);
    font-family:Consolas,monospace;
    font-size:24px;
    line-height:1;
    padding:4px 0;
    text-shadow:0 0 14px rgba(128,215,255,.28);
}

.evolution-phase-panel{
    max-height:0;
    overflow:hidden;
    border-top:1px solid rgba(103,179,255,.14);
    transition:max-height .32s ease,padding .32s ease;
}

.evolution-phase.is-expanded .evolution-phase-panel{
    padding:14px 16px 16px 64px;
}

.evolution-phase-block+.evolution-phase-block{
    margin-top:12px;
}

.evolution-panel-label{
    color:var(--cyan);
    display:block;
    font-family:Consolas,monospace;
    font-size:12px;
    margin-bottom:4px;
    text-transform:uppercase;
}

.evolution-phase-panel p{
    color:var(--muted-strong);
}

.evolution-objectives{
    display:grid;
    gap:5px;
    list-style:none;
}

.evolution-objective{
    display:flex;
    gap:9px;
    color:var(--muted-strong);
    font-family:Consolas,monospace;
    font-size:13px;
}

.evolution-objective.is-active{
    color:var(--text);
}

.evolution-objective-marker{
    color:var(--cyan);
}

.evolution-telemetry{
    padding:22px;
    background:
        linear-gradient(180deg,rgba(15,22,40,.86),rgba(4,8,18,.94)),
        var(--panel-deep);
    backdrop-filter:none;
    box-shadow:0 0 0 1px rgba(103,179,255,.04),var(--shadow);
}

.evolution-telemetry h2{
    color:var(--blue2);
    font-size:24px;
}

.evolution-progress-fill{
    width:0;
}

.evolution-terminal-panel{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:22px;
    align-items:start;
    margin-top:22px;
    padding:20px 22px;
    background:
        linear-gradient(160deg,rgba(12,24,48,.74),rgba(3,7,16,.96)),
        var(--panel-deep);
    backdrop-filter:none;
    box-shadow:0 0 0 1px rgba(103,179,255,.04),var(--shadow);
}

.evolution-terminal-heading h2{
    color:var(--blue2);
    font-size:24px;
    white-space:nowrap;
}

.evolution-terminal-output{
    min-height:122px;
    border:1px solid rgba(103,179,255,.18);
    border-radius:var(--radius);
    background:rgba(2,5,12,.78);
    color:var(--muted-strong);
    font-family:Consolas,monospace;
    font-size:14px;
    padding:14px;
}

.evolution-terminal-output p{
    color:var(--muted-strong);
    min-height:20px;
}

.evolution-terminal-cursor{
    margin-top:5px;
}

.evolution-unavailable{
    margin-bottom:28px;
}

.protocol-hero{
    overflow:hidden;
    position:relative;
    margin-bottom:28px;
    padding:58px 28px;
    text-align:center;
    background:
        radial-gradient(circle at 50% 0,rgba(59,130,246,.18),transparent 44%),
        linear-gradient(160deg,rgba(12,24,48,.82),rgba(3,7,16,.96)),
        var(--panel-deep);
    box-shadow:0 0 0 1px rgba(103,179,255,.05),var(--shadow);
}

.protocol-hero h1{
    max-width:920px;
    margin:0 auto;
    font-size:72px;
}

.protocol-status{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid rgba(90,242,155,.34);
    border-radius:999px;
    color:var(--green);
    font-family:Consolas,monospace;
    font-size:12px;
    padding:8px 14px;
    text-shadow:0 0 12px rgba(90,242,155,.28);
}

.protocol-status::before{
    width:8px;
    height:8px;
    border-radius:999px;
    background:var(--green);
    box-shadow:0 0 14px rgba(90,242,155,.56);
    content:"";
}

.protocol-intro,
.protocol-principles,
.protocol-terminal-panel{
    margin-bottom:28px;
    background:
        linear-gradient(160deg,rgba(12,24,48,.82),rgba(3,7,16,.94)),
        var(--panel-deep);
    box-shadow:0 0 0 1px rgba(103,179,255,.04),var(--shadow);
}

.protocol-intro p+p{
    margin-top:10px;
}

.protocol-study-title{
    margin-top:22px;
}

.protocol-study-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin-top:14px;
}

.protocol-study{
    border:1px solid rgba(103,179,255,.24);
    border-radius:var(--radius);
    background:rgba(2,5,12,.62);
    color:var(--text);
    font-family:Consolas,monospace;
    padding:14px;
}

.protocol-timeline-shell{
    padding:28px;
}

.protocol-timeline{
    position:relative;
    display:grid;
    gap:18px;
}

.protocol-timeline::before{
    position:absolute;
    top:18px;
    bottom:18px;
    left:19px;
    width:1px;
    background:linear-gradient(180deg,rgba(128,215,255,.72),rgba(59,130,246,.18));
    box-shadow:0 0 16px rgba(103,179,255,.36);
    content:"";
}

.protocol-phase{
    position:relative;
    overflow:hidden;
    margin-left:48px;
    background:rgba(6,13,28,.72);
    transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease,opacity .25s ease;
}

.protocol-phase:not(.is-completed):not(.is-current){
    opacity:.68;
}

.protocol-phase.is-completed{
    border-color:rgba(103,179,255,.36);
    box-shadow:0 0 18px rgba(59,130,246,.12);
}

.protocol-phase.is-current{
    border-color:rgba(128,215,255,.62);
    box-shadow:0 0 30px rgba(103,179,255,.22);
}

.protocol-phase-toggle{
    display:block;
    width:100%;
    border:0;
    background:transparent;
    color:inherit;
    padding:20px;
    text-align:left;
}

.protocol-phase-node{
    position:absolute;
    top:26px;
    left:-39px;
    width:16px;
    height:16px;
    border:1px solid rgba(103,179,255,.4);
    border-radius:999px;
    background:rgba(2,5,12,.96);
    box-shadow:0 0 0 6px rgba(2,5,12,.88);
}

.protocol-phase.is-completed .protocol-phase-node{
    background:var(--blue);
    box-shadow:0 0 0 6px rgba(2,5,12,.88),0 0 18px rgba(59,130,246,.72);
}

.protocol-phase.is-current .protocol-phase-node{
    background:var(--cyan);
    box-shadow:0 0 0 6px rgba(2,5,12,.88),0 0 24px rgba(128,215,255,.82);
}

.protocol-phase-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
}

.protocol-phase-title-group{
    display:grid;
    gap:4px;
}

.protocol-phase-eyebrow,
.protocol-phase-status,
.protocol-objective-marker,
.protocol-principle-marker{
    color:var(--cyan);
    font-family:Consolas,monospace;
}

.protocol-phase-eyebrow{
    font-size:12px;
}

.protocol-phase-title{
    color:var(--text);
    font-size:24px;
    font-weight:800;
    line-height:1.15;
}

.protocol-phase-subtitle{
    color:var(--muted-strong);
}

.protocol-phase-status{
    border:1px solid rgba(103,179,255,.22);
    border-radius:999px;
    flex:0 0 auto;
    font-size:11px;
    padding:6px 9px;
}

.protocol-phase.is-current .protocol-phase-status{
    border-color:rgba(90,242,155,.36);
    color:var(--green);
}

.protocol-phase-content{
    max-height:0;
    overflow:hidden;
    padding:0 20px;
    transition:max-height .34s ease,padding .34s ease;
}

.protocol-phase.is-expanded .protocol-phase-content{
    padding:0 20px 20px;
}

.protocol-phase-content h4{
    color:var(--blue2);
    font-size:15px;
    margin:18px 0 10px;
}

.protocol-objectives,
.protocol-principle-list{
    display:grid;
    gap:9px;
    list-style:none;
}

.protocol-objective,
.protocol-principle-list li{
    display:flex;
    gap:10px;
    color:var(--muted-strong);
}

.protocol-phase-notes{
    border-top:1px solid rgba(103,179,255,.16);
    margin-top:16px;
    padding-top:14px;
    font-family:Consolas,monospace;
    font-size:13px;
}

.protocol-progress-fill{
    width:0;
}

.protocol-terminal-output{
    min-height:210px;
    border:1px solid rgba(103,179,255,.18);
    border-radius:var(--radius);
    background:rgba(2,5,12,.78);
    color:var(--muted-strong);
    font-family:Consolas,monospace;
    font-size:15px;
    padding:18px;
}

.protocol-terminal-output p{
    color:var(--muted-strong);
    min-height:23px;
}

.protocol-terminal-cursor{
    margin-top:8px;
}

.protocol-unavailable{
    margin-bottom:28px;
}

.scanner-report{
    margin-top:20px;
}

.scanner-report h3{
    color:var(--blue2);
    margin-bottom:12px;
}

.scanner-report-grid{
    display:grid;
    gap:10px;
}

.scanner-report-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(140px,auto);
    gap:14px;
    align-items:center;
    border:1px solid rgba(103,179,255,.18);
    border-radius:var(--radius);
    background:rgba(6,13,28,.68);
    opacity:0;
    padding:12px 14px;
    transform:translateY(10px);
    animation:reportIn .45s ease forwards;
}

.scanner-report-label{
    color:var(--muted);
    font-size:13px;
}

.scanner-report-value{
    color:var(--text);
    font-family:Consolas,monospace;
    font-weight:700;
    text-align:right;
}

.section-heading{
    margin-bottom:24px;
}

.section-heading.compact{
    margin-bottom:18px;
}

.eyebrow{
    display:block;
    color:var(--cyan);
    font-size:12px;
    margin-bottom:6px;
}

.section h2,
.terminal-panel h2{
    color:var(--blue2);
    font-size:36px;
    line-height:1.15;
}

.terminal-panel h2{
    font-size:24px;
}

.log,
.observation,
.terminal-panel{
    padding:28px;
}

.log-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
}

.log h3,
.observation h3{
    color:var(--text);
    font-size:24px;
}

.log-date{
    color:var(--muted);
    font-family:Consolas,monospace;
    font-size:13px;
    white-space:nowrap;
}

.log-kicker{
    color:var(--cyan);
    display:block;
    font-size:13px;
    margin-bottom:10px;
}

.log-body{
    color:var(--muted-strong);
    white-space:pre-line;
}

.observation{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.lab-state{
    border:1px solid rgba(103,179,255,.35);
    border-radius:999px;
    color:var(--blue2);
    flex:0 0 auto;
    font-size:11px;
    padding:7px 10px;
}

.status-list{
    display:grid;
    gap:12px;
}

.status-row{
    border-top:1px solid rgba(25,51,95,.75);
    display:grid;
    gap:4px;
    padding-top:12px;
}

.status-label{
    color:var(--muted);
    font-size:12px;
}

.status-value{
    color:var(--text);
    font-family:Consolas,monospace;
    font-size:18px;
    font-weight:700;
}

.status-value.is-online{
    color:var(--green);
    text-shadow:0 0 10px rgba(90,242,155,.25);
}

.progress-shell{
    background:rgba(59,130,246,.1);
    border:1px solid rgba(103,179,255,.18);
    border-radius:999px;
    height:8px;
    overflow:hidden;
}

.progress-fill{
    background:linear-gradient(90deg,var(--blue),var(--cyan));
    height:100%;
}

.activity-feed{
    display:grid;
}

.activity-item{
    border-top:1px solid rgba(25,51,95,.75);
    display:grid;
    gap:3px;
    padding:14px 0;
}

.activity-item.is-streaming,
.terminal-line{
    animation:terminalIn .38s ease both;
}

.activity-item:first-child{
    border-top:0;
    padding-top:0;
}

.activity-time{
    color:var(--cyan);
    font-family:Consolas,monospace;
    font-size:13px;
}

.activity-title{
    color:var(--muted-strong);
}

.panel-loading{
    color:var(--muted);
    font-family:Consolas,monospace;
}

.live-terminal-panel{
    background:linear-gradient(180deg,rgba(15,22,40,.82),rgba(4,8,18,.9));
}

@media(max-width:900px){
    h1{
        font-size:78px;
    }
}

@media(max-width:700px){
    h1{
        font-size:58px;
    }

    .subtitle{
        font-size:17px;
    }

    .card p{
        font-size:22px;
    }

    .section h2{
        font-size:28px;
    }

    .scanner-title{
        font-size:36px;
    }

    .scanner-controls,
    .scanner-report-row{
        grid-template-columns:1fr;
    }

    .scanner-report-value{
        text-align:left;
    }

    .archive-header,
    .archive-card-header,
    .log-header,
    .observation,
    .console-header{
        align-items:flex-start;
        flex-direction:column;
    }

    .archive-shell{
        padding:20px;
    }

    .archive-header h1{
        font-size:42px;
    }

    .evolution-hero{
        padding:28px 18px;
    }

    .evolution-hero h1{
        font-size:40px;
    }

    .evolution-hero-progress{
        grid-template-columns:auto auto;
    }

    .evolution-progress-shell{
        grid-column:1/-1;
        min-width:100%;
    }

    .evolution-tree-shell,
    .evolution-telemetry,
    .evolution-terminal-panel{
        padding:18px;
    }

    .evolution-terminal-panel{
        display:block;
    }

    .evolution-phase{
        width:100%;
    }

    .evolution-phase-title{
        font-size:17px;
    }

    .evolution-phase.is-expanded .evolution-phase-panel{
        padding:13px 14px 15px;
    }

    .evolution-terminal-output{
        margin-top:12px;
    }

    .protocol-hero{
        padding:38px 18px;
    }

    .protocol-hero h1{
        font-size:38px;
    }

    .protocol-study-grid{
        grid-template-columns:1fr;
    }

    .protocol-timeline-shell{
        padding:20px;
    }

    .protocol-phase{
        margin-left:36px;
    }

    .protocol-timeline::before{
        left:13px;
    }

    .protocol-phase-node{
        left:-31px;
    }

    .protocol-phase-header{
        flex-direction:column;
    }

    .archive-terminal{
        height:min(620px,calc(100vh - 280px));
        min-height:340px;
        padding:16px;
    }

    .archive-terminal-entry h2{
        font-size:20px;
    }
}
