.ug-workspace.grade-theme {
    color-scheme: dark;
    min-height: 100vh;
    background-repeat: no-repeat;
    --paper: #111427;
    --surface: #1a1e34;
    --ink: #f1f1f8;
    --line: #343a57;
    --muted: #b0b6d0;
    --gold: #f6b94f;
    --focus: #ffd17c;
    --current: #aebafa;
    background: radial-gradient(ellipse at 60% -12%, #252747 0%, transparent 53%), var(--paper);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
}
.grade-theme .shell { max-width: 1344px; }
.grade-theme .ug-bar {
    min-height: 62px;
    border: 1px solid #555b7b;
    border-radius: 16px;
    background: #24283f;
    box-shadow: 0 12px 24px #090b1550, inset 0 1px 0 #faf5ff14;
}
@supports (backdrop-filter: blur(16px)) {
    .grade-theme .ug-bar { background: #282c47d9; backdrop-filter: blur(20px) saturate(145%); }
}
.grade-theme .ug-wordmark { color: #f7f5fc; }
.grade-theme .ug-wordmark span, .grade-theme .ug-back { color: var(--gold); }
.grade-theme .ug-nav { background: #13162c94; }
.grade-theme .ug-nav a[aria-current], .grade-theme .ug-nav a:hover, .grade-theme .ug-signout:hover { background: #414664; color: #fff; }
.grade-theme .ug-avatar { box-shadow: 0 0 0 1px #9196b3; }
.grade-theme .ug-action, .grade-theme .auth-panel .button { color: #211702; background: var(--gold); }
.grade-theme .ug-action:hover { background: #ffd58d; box-shadow: 0 6px 22px #e4a64040; }
.grade-theme main.ug-main { padding-top: clamp(22px,4vw,43px); }
.grade-theme .panel { border-radius: 14px; background: var(--surface); }
.grade-heading {
    display: grid;
    grid-template-columns: 64px minmax(0,1fr) auto;
    gap: 20px;
    margin: 0 0 24px;
    align-items: center;
}
.grade-heading > img { width: 64px; height: 64px; object-fit: contain; padding: 5px; background: #fff; border-radius: 14px; }
.grade-heading h1 { margin: 0; font-size: clamp(31px,5vw,57px); letter-spacing: -.055em; overflow-wrap: anywhere; line-height: 1.05; }
.grade-heading p { color: var(--gold); font-size: 13px; font-weight: 670; margin: 0 0 5px; }
.grade-console { display: grid; gap: 14px; grid-template-columns: 224px minmax(0,1fr); align-items: start; }
.grade-console .panel { margin-bottom: 0; }
.grade-sidebar { padding: 16px 12px; }
.grade-sidebar h2 { margin: 2px 8px 14px; letter-spacing: -.02em; font-size: 17px; }
.grade-filter {
    display: grid;
    grid-template-columns: 8px minmax(0,1fr) auto;
    padding: 10px 8px;
    gap: 7px;
    align-items: center;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    transition: background .18s, color .18s;
}
.grade-filter b { font-variant-numeric: tabular-nums; font-weight: 650; }
.grade-filter:hover, .grade-filter[aria-current] { background: #2d3353; color: #fff; }
.grade-filter[aria-current] b { color: var(--gold); }
.grade-dot { display: inline-block; width: 7px; height: 7px; background: var(--current); border-radius: 50%; }
.grade-theme [data-state=submitted] { --current: #aabaf3; }
.grade-theme [data-state=review] { --current: #c5b2fa; }
.grade-theme [data-state=changes_requested] { --current: #ffc673; }
.grade-theme [data-state=certified] { --current: #85dfba; }
.grade-theme [data-state=declined] { --current: #f4a4ac; }
.grade-worklist { min-width: 0; padding: 0; overflow: hidden; }
.grade-worklist-head { padding: 21px 20px 17px; }
.grade-worklist-head h2 { margin-bottom: 4px; font-size: clamp(21px,3vw,28px); letter-spacing: -.03em; }
.grade-worklist-head p { margin: 0; color: var(--muted); font-size: 13px; }
.grade-lanes, .grade-project {
    display: grid;
    grid-template-columns: minmax(158px, 1.4fr) repeat(3, minmax(0, 1fr)) 20px;
    align-items: center;
}
.grade-lanes { background: #171a2f; color: var(--muted); font-weight: 650; font-size: 12px; padding: 0 15px; }
.grade-lanes span { padding: 9px 5px 9px 9px; }
.grade-projects { list-style: none; margin: 0; padding: 0 15px; }
.grade-projects li { border-top: 1px solid #303551; }
.grade-project {
    min-height: 76px;
    position: relative;
    text-decoration: none;
    color: var(--ink);
    transition: background .2s;
}
.grade-project:hover, .grade-project:focus-visible { background: #262a45; }
.grade-project:focus-visible { outline-offset: -2px; }
.grade-project-info { display: flex; align-items: center; gap: 9px; padding: 8px 5px; min-width: 0; }
.grade-project-info img { flex: none; width: 43px; height: 43px; object-fit: cover; border-radius: 8px; background: #2f3655; }
.grade-project-info strong { display: block; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.grade-project-info small { color: var(--muted); font-size: 11px; }
.grade-track {
    grid-column: 2/5;
    align-self: stretch;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    align-items: center;
    background: repeating-linear-gradient(to right,#383d5d 0 1px, transparent 1px calc(100%/3));
}
.grade-track-label {
    grid-column: var(--lane);
    margin: 5px 7px;
    padding: 6px 7px 6px 9px;
    border-radius: 5px;
    border-left: 2px solid var(--current);
    background: #343953;
    background: color-mix(in srgb, var(--current) 13%, #1a1e34);
    color: var(--current);
    font-weight: 690;
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    animation: grade-ticket-in .42s cubic-bezier(.2,.8,.2,1) both;
}
.grade-arrow { margin-left: 5px; color: var(--gold); transition: transform .2s; }
.grade-project:hover .grade-arrow { transform: translate(2px,-2px); }
.grade-worklist .pager { padding: 15px 20px; }
.grade-empty { padding: 29px 20px 34px; border-top: 1px solid var(--line); }
.grade-empty h3 { margin-bottom: 4px; }
.grade-empty p { color: var(--muted); }
.grade-detail-flow h2 { margin-bottom: 18px; }
.grade-detail-flow ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; margin: 0; padding: 0; gap: 8px; }
.grade-detail-flow li { border-top: 2px solid #4b5170; padding: 8px 8px 0 2px; color: var(--muted); }
.grade-detail-flow li[aria-current] { color: #fff; border-color: var(--current); animation: grade-ticket-in .4s ease-out both; }
.grade-detail-flow li:not([aria-current]) .grade-dot { background: #707792; }
.grade-detail-flow strong { display: block; color: var(--current); font-size: 13px; }
.grade-files details { border-top: 1px solid var(--line); padding: 8px 0; }
.grade-files summary { cursor: pointer; padding: 5px 0; color: var(--ink); }
.grade-files summary small { margin-inline-start: 8px; }
.grade-files details[open] ul { animation: grade-ticket-in .2s ease both; }
.grade-detail .project-image { background: #242940; }
.grade-theme .status { background: #29324c; color: #e8edfd; }
.grade-theme .status[data-status=certified] { background: #234039; color: #a7edcf; }
.grade-theme .status[data-status=declined] { background: #4b303d; color: #ffc1c7; }
.grade-theme .status[data-status=changes_requested] { background: #453723; color: #ffda90; }
.grade-theme input:not([type=checkbox]), .grade-theme select { background: #15192e; color: var(--ink); border-color: #555c7e; }
.grade-theme input::file-selector-button { background: #333a59; color: var(--ink); border: 1px solid #656b8c; border-radius: 5px; }
.grade-theme .ug-drop { background: #222740; color: var(--muted); border-color: #737b9c; }
.grade-theme .ug-drop:hover, .grade-theme .ug-drop.is-dragging, .grade-theme .ug-drop:focus-within { background: #34354a; border-color: var(--gold); box-shadow: inset 0 0 0 1px #f6b94f64; }
.grade-theme .ug-drop-content strong, .grade-theme .ug-checklist { color: var(--ink); }
.grade-theme .ug-checklist li { border-color: #373d59; }
.grade-theme .ug-upload-symbol { background: #393346; color: var(--gold); }
.grade-theme .ug-file { background: #282e49; }
.grade-theme .ug-file button { color: #fbd086; }
.grade-theme .ug-file-meter { background: #3e4564; }
.grade-theme .ug-file-meter > span { background: var(--gold); }
.grade-theme .ug-file[data-state=done] { background: #253d3b; }
.grade-theme .ug-file[data-state=done] .ug-file-meter > span { background: #7bcca6; }
.grade-theme .ug-file-error { color: #ffc0bd; }
.grade-theme .auth-panel { box-shadow: none; }
.grade-theme .ug-auth-art { background: radial-gradient(ellipse at 95% 105%, #393f66 0%, transparent 67%), repeating-linear-gradient(122deg,#323854 0 1px,transparent 1px 28px), #1b2037; }
.grade-theme .ug-auth-art p { color: #e3bf7d; }
@keyframes grade-ticket-in { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
    .grade-console { grid-template-columns: minmax(0,1fr); }
    .grade-sidebar { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; padding: 10px; }
    .grade-sidebar h2 { margin: 0 4px; }
    .grade-filter { padding: 7px; }
}
@media (max-width: 600px) {
    .grade-heading { grid-template-columns: 52px minmax(0,1fr); gap: 10px; }
    .grade-heading > img { width: 52px; height: 52px; border-radius: 9px; }
    .grade-heading .ug-action { grid-column: 1/-1; justify-self: start; }
    .grade-sidebar h2 { flex: 0 0 100%; padding-bottom: 3px; }
    .grade-lanes { display: none; }
    .grade-project { grid-template-columns: minmax(0,1fr) auto 20px; min-height: 63px; }
    .grade-project-info img { width: 36px; height: 36px; }
    .grade-track { grid-column: 2; display: flex; align-items: center; max-width: 132px; background: none; }
    .grade-track-label { margin: 4px 2px; }
    .grade-projects { padding-inline: 8px; }
}

.grade-projects li:nth-child(2) .grade-track-label { animation-delay: .055s; }
.grade-projects li:nth-child(3) .grade-track-label { animation-delay: .11s; }
.grade-projects li:nth-child(4) .grade-track-label { animation-delay: .165s; }
@media (prefers-reduced-motion: reduce) {
    .grade-projects .grade-track-label { animation: none !important; }
}
