:root {
    --page-bg: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #eef7f4;
    --border: #d9e1ea;
    --text: #111827;
    --muted: #667085;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --success: #168a4a;
    --warning: #d97706;
    --danger: #c24141;
    --ink: #101828;
    --shadow-sm: 0 10px 24px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 18px 44px rgba(17, 24, 39, 0.1);
}

html,
body {
    min-height: 100%;
}

body {
    background:
        linear-gradient(180deg, #f8fafc 0%, #eef3f8 44%, var(--page-bg) 100%);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: var(--accent);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.18);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
}

@keyframes typeLine {
    from {
        max-width: 0;
    }

    to {
        max-width: 100%;
    }
}

@keyframes blinkCursor {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

@keyframes floatPreview {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes glowDot {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(22, 138, 74, 0.32);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(22, 138, 74, 0);
    }
}

.wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 32px 0;
}

.main-content:has(.hero-section) {
    padding-top: 0;
}

.app-navbar {
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.05);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    font-weight: 800;
}

.navbar .nav-link {
    color: #344054;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.navbar .btn.nav-link,
.navbar .nav-link.btn {
    color: #fff;
}

.page-head {
    align-items: center;
    animation: fadeUp 0.38s ease both;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.page-head h1 {
    font-size: 32px;
    line-height: 1.15;
    margin: 0;
}

.eyebrow {
    color: var(--success);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.panel,
.feature-card,
.stat-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.panel {
    animation: fadeUp 0.42s ease both;
    padding: 24px;
}

.panel:hover,
.feature-card:hover,
.stat-item:hover {
    box-shadow: var(--shadow-md);
}

.hero-section {
    background: #f7fbff;
    border-bottom: 1px solid var(--border);
    padding: 72px 0 56px;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.hero-copy h1 {
    animation: fadeUp 0.46s ease 0.06s both;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 850;
    line-height: 0.98;
    margin: 16px 0 18px;
    max-width: 760px;
}

.hero-copy p {
    animation: fadeUp 0.46s ease 0.14s both;
    color: #475467;
    font-size: 20px;
    line-height: 1.55;
    margin: 0;
    max-width: 680px;
}

.hero-actions {
    animation: fadeUp 0.46s ease 0.22s both;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-trust {
    animation: fadeUp 0.46s ease 0.3s both;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.hero-trust span {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #475467;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-trust span:hover {
    border-color: #b8c7d9;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.review-preview {
    animation: fadeUp 0.52s ease 0.18s both, floatPreview 5.8s ease-in-out 1.2s infinite;
    background: var(--ink);
    border: 1px solid #273144;
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(16, 24, 40, 0.24);
    color: #e5e7eb;
    overflow: hidden;
}

.preview-topbar {
    align-items: center;
    background: #151f31;
    display: flex;
    gap: 8px;
    padding: 14px 16px;
}

.preview-topbar span {
    background: #fb7185;
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    width: 10px;
}

.preview-topbar span:nth-child(2) {
    background: #fbbf24;
}

.preview-topbar span:nth-child(3) {
    background: #34d399;
}

.preview-topbar strong {
    color: #cbd5e1;
    font-size: 13px;
    margin-left: 8px;
}

.preview-code {
    color: #f8fafc;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.75;
    padding: 22px;
}

.typewriter-code {
    min-height: 242px;
}

.type-line {
    display: block;
    max-width: 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    width: fit-content;
    animation: typeLine 0.9s steps(var(--chars)) var(--delay) forwards;
}

.type-line::after {
    content: "";
}

.type-line--last::after {
    animation: blinkCursor 0.72s step-end infinite;
    color: #93c5fd;
    content: "|";
    margin-left: 2px;
}

.code-muted {
    color: #64748b;
}

.code-keyword {
    color: #93c5fd;
}

.preview-review {
    align-items: center;
    background: #f8fafc;
    color: #111827;
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
}

.preview-review div {
    align-items: center;
    display: flex;
    gap: 8px;
}

.status-dot {
    animation: glowDot 1.8s ease-in-out infinite;
    background: var(--success);
    border-radius: 50%;
    height: 9px;
    width: 9px;
}

.review-preview p {
    background: #fff;
    color: #344054;
    margin: 0;
    padding: 18px;
}

.section-band {
    background: #fff;
    padding: 64px 0;
}

.section-band--soft {
    background: var(--surface-soft);
}

.section-title {
    margin-bottom: 28px;
    max-width: 760px;
}

.section-title span {
    color: var(--success);
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 820;
    line-height: 1.08;
    margin: 0;
}

.section-title p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
    margin: 14px 0 0;
}

.feature-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    padding: 24px;
    transform: translateY(0);
}

.feature-card:nth-child(1) {
    animation: fadeUp 0.44s ease 0.04s both;
}

.feature-card:nth-child(2) {
    animation: fadeUp 0.44s ease 0.12s both;
}

.feature-card:nth-child(3) {
    animation: fadeUp 0.44s ease 0.2s both;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 22px;
    margin: 18px 0 10px;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.feature-icon {
    align-items: center;
    background: #e8f0ff;
    border-radius: 8px;
    color: var(--accent);
    display: flex;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 42px;
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: #fff;
    transform: rotate(-4deg) scale(1.05);
}

.workflow-grid {
    align-items: start;
    display: grid;
    gap: 36px;
    grid-template-columns: 0.9fr 1.1fr;
}

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

.workflow-list div {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 42px 1fr;
    padding: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.workflow-list div:hover {
    border-color: #b8c7d9;
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.workflow-list b {
    align-items: center;
    background: var(--ink);
    border-radius: 8px;
    color: #fff;
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.metric-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}

.metric-row div {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.metric-row div:hover {
    border-color: var(--success);
    transform: translateY(-3px);
}

.metric-row strong {
    display: block;
    font-size: 38px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.metric-row div:hover strong {
    color: var(--accent);
    transform: scale(1.04);
}

.metric-row span {
    color: var(--muted);
}

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

.faq-list details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-list details:hover,
.faq-list details[open] {
    border-color: #b8c7d9;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.faq-list summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    list-style: none;
    padding: 18px 20px;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    background: #eef2f7;
    border-radius: 50%;
    color: var(--accent);
    content: "+";
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    line-height: 1;
    margin-left: 16px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.28s ease;
    width: 28px;
}

.faq-list details[open] summary::after {
    background: var(--accent);
    color: #fff;
    content: "-";
    transform: rotate(180deg);
}

.faq-answer {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transform-origin: top;
    transition: height 0.32s ease, opacity 0.22s ease, transform 0.32s ease;
}

.faq-list details[open] .faq-answer {
    transform: translateY(0);
}

.faq-list p {
    color: var(--muted);
    margin: 0;
    padding: 0 20px 18px;
}

.cta-band {
    background: var(--ink);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 850;
    margin: 0 0 12px;
}

.cta-band p {
    color: #cbd5e1;
    font-size: 18px;
    margin: 0 auto 24px;
    max-width: 620px;
}

.stat-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stat-item {
    overflow: hidden;
    padding: 20px;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-item::before {
    background: var(--accent);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-item--pending::before {
    background: var(--warning);
}

.stat-item--approved::before {
    background: var(--success);
}

.stat-item--rejected::before {
    background: var(--danger);
}

.stat-item--total::before {
    background: var(--accent);
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
}

.workspace-overview {
    align-items: flex-start;
    animation: fadeUp 0.38s ease both;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 24px;
}

.overview-main h1 {
    font-size: 32px;
    line-height: 1.15;
    margin: 0;
}

.overview-main p {
    color: var(--muted);
    margin: 10px 0 0;
    max-width: 760px;
}

.overview-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.role-pill {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    color: #166534;
    font-size: 12px;
    font-weight: 850;
    padding: 6px 10px;
    text-transform: uppercase;
}

.role-name {
    color: var(--text);
    font-weight: 800;
    text-align: right;
}

.section-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.section-heading h2 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
}

.section-heading p {
    color: var(--muted);
    margin: 6px 0 0;
}

.recent-panel {
    padding: 20px;
}

.filter-panel {
    padding: 20px;
}

.list-stack {
    display: grid;
    gap: 10px;
}

.submission-row {
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 16px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.submission-row:hover {
    background: #f8fafc;
    border-color: #b8c7d9;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    transform: translateY(-2px);
}

.submission-row small {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

.code-box {
    background: var(--ink);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    font-size: 14px;
    line-height: 1.6;
    max-height: 600px;
    overflow: auto;
    padding: 18px;
    white-space: pre-wrap;
}

.code-input {
    min-height: 360px;
}

.code-input--compact {
    min-height: 220px;
}

.code-editor-shell {
    border: 1px solid #1f2937;
    border-radius: 8px;
    height: 520px;
    overflow: hidden;
}

.code-copy-button.is-copied {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.mini-row {
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
}

.mini-row span {
    color: var(--muted);
    font-size: 14px;
}

.table td,
.table th {
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}

.table-hover tbody tr:hover {
    transform: translateX(2px);
}

.table-title-link {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.table-title-link:hover {
    color: var(--accent);
}

.submission-table .btn {
    margin: 2px;
}

.due-badge {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    padding: 8px 10px;
    white-space: nowrap;
}

.due-badge--soon {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.due-badge--overdue {
    background: #fff7f7;
    border-color: #fecaca;
    color: var(--danger);
}

.form-control,
.form-select,
.btn {
    border-radius: 6px;
}

.form-control,
.form-select {
    border-color: #cfd8e3;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.14);
}

.btn {
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.app-logout-button:hover {
    box-shadow: 0 10px 22px rgba(194, 65, 65, 0.18);
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.meta-list {
    display: grid;
    gap: 8px 14px;
    grid-template-columns: 130px 1fr;
    margin: 0;
}

.meta-list dt {
    color: var(--muted);
    font-weight: 500;
}

.meta-list dd {
    margin: 0;
}

.assignment-summary {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px;
}

.assignment-summary h2 {
    font-size: 22px;
    margin: 0 0 10px;
}

.assignment-summary p {
    color: var(--muted);
    margin: 0;
}

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

.test-result {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.test-result--passed {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.test-result--failed {
    background: #fff7f7;
    border-color: #fecaca;
}

.mini-code {
    background: #111827;
    border-radius: 6px;
    color: #e5e7eb;
    margin: 0;
    max-height: 180px;
    overflow: auto;
    padding: 10px;
    white-space: pre-wrap;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.48em 0.72em;
}

.reaction-cell {
    min-width: 170px;
}

.reaction-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reaction-pill {
    align-items: center;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 7px 9px;
}

.reaction-pill--helpful {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.reaction-pill--clear {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.reaction-pill--needs_work {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.reaction-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.reaction-total {
    align-items: center;
    animation: softPulse 2.4s ease-in-out infinite;
    background: var(--accent);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    min-width: 30px;
    padding: 0 9px;
}

.reaction-bar {
    display: grid;
    gap: 10px;
}

.reaction-form {
    margin: 0;
}

.reaction-chip {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 12px;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.reaction-chip:hover {
    border-color: #b8c7d9;
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}

.reaction-chip.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.reaction-label {
    font-weight: 800;
}

.reaction-count {
    align-items: center;
    background: #eef2f7;
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    min-width: 24px;
    padding: 0 8px;
}

.reaction-chip.is-active .reaction-count {
    background: var(--accent);
    color: #fff;
}

.llm-agent-card {
    align-items: center;
    animation: fadeUp 0.36s ease both;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 56%, #eef7f4 100%);
    border: 1px solid #cbdff3;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 20px;
    grid-template-columns: 150px minmax(0, 1fr);
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.llm-agent-card::before {
    background: linear-gradient(90deg, var(--accent), var(--success));
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.llm-agent-card.is-hidden {
    display: none;
}

.llm-agent-robot {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 150px;
}

.llm-bot {
    animation: botFloat 3.4s ease-in-out infinite;
    height: 150px;
    overflow: visible;
    width: 150px;
}

.llm-bot__shadow ellipse {
    animation: botShadow 3.4s ease-in-out infinite;
    fill: rgba(17, 24, 39, 0.12);
}

.llm-bot__antenna path,
.llm-bot__arm path,
.llm-bot__waves path {
    fill: none;
    stroke: #2563eb;
    stroke-linecap: round;
    stroke-width: 7;
}

.llm-bot__antenna circle {
    animation: botSignal 1.8s ease-in-out infinite;
    fill: #16a34a;
}

.llm-bot__body {
    fill: url("#botBodyGradient");
    stroke: #2563eb;
    stroke-width: 4;
}

.llm-bot__head {
    fill: #ffffff;
    stroke: #2563eb;
    stroke-width: 4;
}

.llm-bot__eye {
    animation: botBlink 4.2s ease-in-out infinite;
    fill: #111827;
    transform-box: fill-box;
    transform-origin: center;
}

.llm-bot__mouth {
    animation: botMouth 0.62s ease-in-out infinite;
    fill: #16a34a;
    transform-box: fill-box;
    transform-origin: center;
}

.llm-agent-card:not(.is-speaking) .llm-bot__mouth {
    animation-duration: 2.2s;
}

.llm-bot__badge {
    fill: #2563eb;
}

.llm-bot__arm {
    transform-box: fill-box;
}

.llm-bot__arm--left {
    animation: botLeftArm 1.65s ease-in-out infinite;
    transform-origin: 45px 93px;
}

.llm-bot__arm--right {
    animation: botRightArm 1.45s ease-in-out infinite;
    transform-origin: 135px 92px;
}

.llm-bot__waves path {
    animation: botWavePulse 1.6s ease-in-out infinite;
    opacity: 0.72;
    stroke: #16a34a;
    stroke-width: 5;
}

.llm-bot__waves path:nth-child(2) {
    animation-delay: 0.22s;
}

.llm-agent-dialog {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(203, 223, 243, 0.9);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    padding: 18px;
}

.llm-agent-dialog__top {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.llm-agent-dialog__top h2 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 5px;
}

.llm-agent-dialog__top span {
    color: var(--muted);
    font-size: 14px;
}

.llm-agent-text {
    color: #1f2937;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    min-height: 54px;
    white-space: pre-wrap;
}

.llm-agent-cursor {
    animation: blinkCursor 0.72s step-end infinite;
    color: var(--accent);
    display: inline-block;
    font-weight: 900;
    margin-left: 2px;
}

.llm-agent-cursor.is-idle {
    color: var(--success);
}

@keyframes botFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes botShadow {
    0%,
    100% {
        transform: scaleX(1);
    }

    50% {
        transform: scaleX(0.82);
    }
}

@keyframes botSignal {
    0%,
    100% {
        opacity: 0.82;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.16);
    }
}

@keyframes botBlink {
    0%,
    92%,
    100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.12);
    }
}

@keyframes botMouth {
    0%,
    100% {
        transform: scaleY(0.55);
    }

    50% {
        transform: scaleY(1.45);
    }
}

@keyframes botLeftArm {
    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(9deg);
    }
}

@keyframes botRightArm {
    0%,
    100% {
        transform: rotate(8deg);
    }

    50% {
        transform: rotate(-12deg);
    }
}

@keyframes botWavePulse {
    0%,
    100% {
        opacity: 0.24;
        transform: translateX(0);
    }

    50% {
        opacity: 0.9;
        transform: translateX(4px);
    }
}

.test-builder {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
}

.test-builder__head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.test-builder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.test-builder__hint {
    margin: 0;
}

.test-builder__list {
    display: grid;
    gap: 14px;
}

.test-builder__empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: var(--muted);
    padding: 16px;
}

.test-builder__advanced {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.test-builder__advanced summary {
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 12px;
}

.test-card {
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    padding: 14px;
}

.test-card__top {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.test-card__title {
    color: var(--text);
    font-weight: 850;
}

.test-card__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.test-field {
    display: grid;
    gap: 6px;
    margin: 0;
}

.test-field span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.test-field textarea {
    min-height: 96px;
    resize: vertical;
}

.auth-shell {
    align-items: center;
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr minmax(340px, 440px);
    margin: 36px auto;
    max-width: 1060px;
}

.auth-copy h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 850;
    line-height: 1.05;
    margin: 0 0 16px;
}

.auth-copy p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
    margin: 0;
}

.auth-note {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    margin-top: 24px;
    padding: 16px;
}

.auth-note span {
    color: var(--muted);
}

.auth-panel {
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
}

.footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding: 18px 0;
}

@media (max-width: 991px) {
    .hero-grid,
    .workflow-grid,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .metric-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .main-content {
        padding: 22px 0;
    }

    .hero-section {
        padding: 44px 0 36px;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .workspace-overview,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .overview-actions {
        align-items: flex-start;
        width: 100%;
    }

    .role-name {
        text-align: left;
    }

    .hero-copy h1,
    .section-title h2,
    .cta-band h2 {
        font-size: 36px;
    }

    .feature-grid,
    .metric-row {
        grid-template-columns: 1fr;
    }

    .meta-list {
        grid-template-columns: 1fr;
    }

    .assignment-summary {
        flex-direction: column;
    }

    .test-builder__head {
        align-items: stretch;
        flex-direction: column;
    }

    .test-builder__actions {
        justify-content: flex-start;
    }

    .test-card__grid {
        grid-template-columns: 1fr;
    }

    .reaction-cell {
        min-width: 140px;
    }

    .llm-agent-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .llm-agent-robot {
        min-height: 124px;
    }

    .llm-bot {
        height: 124px;
        width: 124px;
    }

    .llm-agent-dialog__top {
        flex-direction: column;
    }
}

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