:root {
    --bg: #f4faf7;
    --grid: rgba(0, 164, 95, 0.08);
    --surface: #ffffff;
    --surface-soft: #f7fbf9;
    --ink: #13231c;
    --muted: #64766d;
    --line: #d8e8df;
    --line-strong: #b7d8c8;
    --green: #00a45f;
    --mint: #6bd69f;
    --gold: #d69b24;
    --red: #d9545f;
    --blue: #3378d4;
    --violet: #8a58d6;
    --orange: #e1842b;
    --pink: #de5c9d;
    --shadow: 0 22px 55px rgba(19, 35, 28, 0.12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(0deg, var(--grid) 1px, transparent 1px),
        radial-gradient(circle at 22% 18%, rgba(0, 164, 95, 0.16), transparent 34%),
        linear-gradient(180deg, #fbfefd 0%, var(--bg) 100%);
    background-size: 36px 36px, 36px 36px, auto, auto;
}

a {
    color: inherit;
}

.cc-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(240px, 1fr);
    align-items: center;
    gap: 20px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.cc-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.cc-logo {
    width: 156px;
    max-width: 45vw;
    height: auto;
}

.cc-brand-line {
    width: 1px;
    height: 34px;
    background: var(--line-strong);
}

.cc-brand strong,
.cc-brand small {
    display: block;
    line-height: 1.1;
    white-space: nowrap;
}

.cc-brand strong {
    font-size: 15px;
    font-weight: 900;
}

.cc-brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.cc-nav {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.cc-nav a {
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.cc-nav a:hover,
.cc-nav a:focus-visible {
    background: #edf8f2;
    color: var(--green);
    outline: none;
}

.cc-freshness {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.cc-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(214, 155, 36, 0.45);
    animation: pulse 1.7s infinite;
}

.cc-live-dot.ok {
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(0, 164, 95, 0.45);
}

main {
    width: min(1380px, calc(100% - 36px));
    margin: 0 auto;
    padding: 30px 0 54px;
}

.cc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 22px;
}

.cc-eyebrow {
    margin: 0 0 9px;
    color: var(--green);
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 16px;
    font-size: 52px;
    line-height: 1.03;
    letter-spacing: 0;
}

.cc-lead {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.cc-professor-console,
.cc-panel,
.cc-core {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: var(--shadow);
}

.cc-professor-console {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
    padding: 22px;
}

.cc-console-head,
.cc-console-meta,
.cc-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cc-console-head span,
.cc-console-meta span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.cc-console-head strong {
    padding: 7px 10px;
    border-radius: 7px;
    background: #edf8f2;
    color: var(--green);
    font-size: 13px;
}

.cc-professor-console p {
    margin: 18px 0;
    font-size: 19px;
    line-height: 1.48;
    font-weight: 780;
}

.cc-command-board {
    display: grid;
    grid-template-columns: 310px minmax(420px, 1fr) 360px;
    gap: 16px;
    align-items: stretch;
}

.cc-panel {
    padding: 18px;
}

.cc-panel h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: 0;
}

.cc-source-list,
.cc-display-grid,
.cc-agent-grid {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.cc-source {
    position: relative;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    overflow: hidden;
}

.cc-source::after,
.cc-display::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    animation: scan 2.6s linear infinite;
}

.cc-source-light {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 13px rgba(0, 164, 95, 0.7);
}

.cc-source.off .cc-source-light {
    background: var(--gold);
    box-shadow: 0 0 13px rgba(214, 155, 36, 0.55);
}

.cc-source strong,
.cc-display strong,
.cc-agent strong {
    display: block;
    font-size: 14px;
}

.cc-source span,
.cc-display span,
.cc-agent span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.cc-source em {
    color: var(--ink);
    font-style: normal;
    font-size: 12px;
    font-weight: 1000;
}

.cc-flow-field {
    position: relative;
    min-height: 610px;
    border: 1px solid rgba(0, 164, 95, 0.18);
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 164, 95, 0.10) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 164, 95, 0.10) 1px, transparent 1px),
        rgba(250, 254, 252, 0.72);
    background-size: 28px 28px;
}

.cc-flow-line {
    position: absolute;
    left: 6%;
    right: 6%;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, rgba(0, 164, 95, 0.22), var(--green), rgba(0, 164, 95, 0.22), transparent);
    animation: energy 2.4s linear infinite;
}

.line-a { top: 24%; }
.line-b { top: 50%; animation-delay: -0.8s; }
.line-c { top: 76%; animation-delay: -1.5s; }

.cc-core {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(440px, calc(100% - 42px));
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.82);
}

.cc-core-ring {
    position: absolute;
    inset: 38px;
    border: 2px solid rgba(0, 164, 95, 0.18);
    border-radius: 999px;
}

.cc-core-ring::before,
.cc-core-ring::after {
    content: "";
    position: absolute;
    inset: -14px;
    border: 2px dashed rgba(0, 164, 95, 0.28);
    border-radius: inherit;
    animation: rotate 18s linear infinite;
}

.cc-core-ring::after {
    inset: 28px;
    border-color: rgba(51, 120, 212, 0.24);
    animation-duration: 11s;
    animation-direction: reverse;
}

.cc-core-center {
    position: relative;
    z-index: 2;
    width: 190px;
    min-height: 154px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.cc-core-center span,
.cc-core-center small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.cc-core-center strong {
    font-size: 24px;
    line-height: 1.08;
}

.cc-agent-orbit {
    position: absolute;
    inset: 0;
}

.cc-orbit-agent {
    position: absolute;
    display: grid;
    place-items: center;
    width: 70px;
    min-height: 86px;
    transform: translate(-50%, -50%);
    text-align: center;
}

.cc-mini-avatar,
.cc-agent-avatar {
    position: relative;
    width: 42px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef8f3;
}

.cc-mini-avatar::before,
.cc-agent-avatar::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #c89462;
    box-shadow: 0 -7px 0 #1f2b2b;
}

.cc-mini-avatar::after,
.cc-agent-avatar::after {
    content: "";
    position: absolute;
    left: 9px;
    bottom: 7px;
    width: 22px;
    height: 19px;
    border-radius: 7px 7px 4px 4px;
    background: var(--agent, var(--green));
}

.cc-orbit-agent span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 1000;
}

.cc-display {
    position: relative;
    min-height: 108px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    overflow: hidden;
}

.cc-display-value {
    margin: 8px 0 6px;
    font-size: 26px;
    font-weight: 1000;
    letter-spacing: 0;
}

.cc-display p,
.cc-agent p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 720;
}
