.personal-profile-card,.personal-profile-editor,.course-introduction-guide {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: clamp(1rem, 3vw, 2rem);
    margin-block: 1rem;
}
.personal-profile-card {
    background: linear-gradient(135deg, rgba(0,184,148,.17), transparent 70%), var(--panel);
}
.personal-profile-avatar {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--teal);
    color: #080b0b;
    font-weight: 800;
}
.personal-profile-card h3 { margin-block: .75rem .25rem; }
.personal-profile-bio { white-space: pre-wrap; overflow-wrap: anywhere; }
.personal-profile-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; padding: 0; list-style: none; }
.personal-profile-links[hidden] { display: none; }
.personal-profile-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: .85rem 1rem;
    margin-bottom: 1rem;
}
.personal-profile-wide { grid-column: 1 / -1; }
.course-introduction-guide { background: rgba(0,184,148,.09); }
.course-introduction-guide summary { cursor: pointer; color: var(--teal); font-weight: 700; }
.course-introduction-guide li + li { margin-top: .45rem; }
.course-introduction-guide button { margin-top: .55rem; }
.personal-profile-editor :focus-visible,.course-introduction-guide :focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
    #login .intro, #workspace .welcome, #view > .campus-view-enter {
        animation: campus-view-enter 240ms ease-out;
    }
    #view .cs-card, #view .metric, #view button {
        transition: transform 165ms ease, box-shadow 165ms ease, border-color 165ms ease, background-color 165ms ease;
    }
    #view .cs-card:focus-within, #view .metric:hover {
        box-shadow: 0 8px 24px rgba(0,184,148,.13);
    }
    #view .course-introduction-guide[open] > :not(summary) {
        animation: campus-view-enter 180ms ease-out;
    }
    @media (hover: hover) {
        #view .cs-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,184,148,.16); }
        #view button:not(:disabled):hover { transform: translateY(-1px); }
    }
    #view button:not(:disabled):active { transform: translateY(0) scale(.98); }
}
@keyframes campus-view-enter {
    from { opacity: .8; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.lesson-rich-text img[src^="/dua/"] {
    display: block;
    width: 100%;
    max-width: 60rem;
    height: auto;
    border-radius: .75rem;
}
@media (prefers-reduced-motion: no-preference) {
    .cs-index-group[open] > :not(summary) {
        animation: campus-module-reveal 260ms ease-out;
    }
}
@keyframes campus-module-reveal {
    from { opacity: .35; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.site-header {
    background: linear-gradient(110deg, #102720, #070a09 62%);
    border-bottom-color: #244b3e;
}
.site-header .brand-logo {
    width: clamp(52px, 7vw, 78px);
    height: auto;
    filter: drop-shadow(0 5px 13px #00b89432);
}
.site-header .brand-text strong {
    letter-spacing: -.025em;
}
#login .intro {
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 92% 10%, #21594a 0, transparent 51%),
        linear-gradient(140deg, #081613, #050908 68%);
}
#login .intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -25%;
    right: -24%;
    width: 76%;
    aspect-ratio: 1;
    border-radius: 27%;
    border: 1px solid #68d7b350;
    box-shadow: 0 0 0 24px #68d7b315, 0 0 0 48px #68d7b30d, 0 0 0 72px #68d7b30a;
    transform: rotate(28deg);
    pointer-events: none;
}
#login .intro h1 span {
    color: #7aefc5;
}

.cx-score-line{display:grid;gap:.35rem;margin-top:.85rem}.cx-score-line meter{width:100%;height:.85rem;accent-color:var(--teal)}

.dua-context-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.75rem}
.dua-context-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.45rem}
.dua-context-options label{display:flex;align-items:flex-start;gap:.35rem}
.dua-context-options input[type=checkbox]{width:auto;margin-top:.25rem}
.dua-individual{margin-block:1.25rem}.dua-individual-row{border:1px solid var(--line);padding:.7rem;margin-bottom:.55rem;border-radius:.55rem}.dua-individual-row summary{cursor:pointer}.dua-context-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.35rem}.dua-context-summary dt{font-weight:700}.dua-context-summary dd{margin:0;overflow-wrap:anywhere}
