/* Refinement of the existing animated teacher workflow; motion is preserved. */
.teacher-tools-overview .teacher-tools-orbit-panel {
    --panel-ink: var(--ks-text, #172033);
    --panel-muted: var(--ks-muted, #526579);
    --panel-surface: var(--ks-surface-raised, #fff);
    --panel-soft: #f1f7fc;
    --panel-line: var(--ks-border, #d6e8f0);
    --panel-accent: #087fa5;
    position: relative;
    max-width: 1240px;
    margin: 28px auto 0;
    padding: 26px;
    overflow: hidden;
    background: var(--panel-surface);
    color: var(--panel-ink);
    border: 1px solid var(--panel-line);
    border-radius: 22px;
    box-shadow: var(--ks-shadow);
}
:root[data-theme="dark"] .teacher-tools-overview .teacher-tools-orbit-panel {
    --panel-soft: #102e43;
    --panel-accent: #81f1ff;
}
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-progress {
    position: absolute;
    display: block;
    inset: 0 0 auto;
    width: 100%;
    height: 4px;
    border-radius: 0;
    background: linear-gradient(90deg, var(--panel-accent), #00b9c8);
    transform-origin: left center;
    transform: scaleX(0);
    animation: none !important;
    opacity: 1;
}
.teacher-tools-orbit-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.teacher-tools-orbit-heading > span:first-child { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--panel-muted); }
.teacher-tools-orbit-counter { padding: 4px 10px; border: 1px solid var(--panel-line); border-radius: 20px; background: var(--panel-soft); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--panel-accent); }
.teacher-tools-overview .teacher-tools-orbit-panel > h2 { display: block; color: var(--panel-ink) !important; font-size: 27px; line-height: 1.3; font-weight: 700; letter-spacing: -.025em; margin: 0 0 8px; }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-summary { color: var(--panel-muted) !important; font-size: 15px; line-height: 1.65; margin: 0 0 22px; min-height: 25px; }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; list-style: none; margin: 0; padding: 0; }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-list > li {
    position: relative;
    display: grid;
    grid-template-columns: 33px minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 8px 11px;
    min-height: 115px;
    padding: 16px;
    border: 1px solid var(--panel-line);
    border-radius: 13px;
    background: var(--panel-soft);
    color: var(--panel-ink);
    box-shadow: none;
    animation: none;
}
.teacher-tools-orbit-item-number { grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; border: 1px solid var(--panel-line); background: var(--panel-surface); color: var(--panel-accent); font-size: 11px; font-weight: 650; }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-list strong { grid-column: 2; grid-row: 1; font-size: 14px; line-height: 1.4; font-weight: 650; color: var(--panel-ink); overflow-wrap: anywhere; }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-list em { grid-column: 3; grid-row: 1; padding: 3px 7px; border: 1px solid var(--panel-line); border-radius: 15px; background: var(--panel-surface); color: var(--panel-accent); font-size: 10px; line-height: 1.4; font-weight: 550; font-style: normal; white-space: nowrap; }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-list li > span { grid-column: 2 / -1; grid-row: 2; font-size: 13px; line-height: 1.6; color: var(--panel-muted); }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-start; gap: 9px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--panel-line); }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-controls button { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 8px 13px; border: 1px solid var(--panel-line); border-radius: 10px; background: var(--panel-surface); color: var(--panel-ink); font: 600 12px Inter, 'Segoe UI', sans-serif; cursor: pointer; box-shadow: none; }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-controls button:hover { background: var(--panel-soft); border-color: var(--panel-accent); }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-controls button:focus-visible { outline: 3px solid var(--panel-accent); outline-offset: 3px; }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-controls .teacher-tools-orbit-step { font-size: 20px; padding: 7px; }
.teacher-tools-orbit-navigation { display: flex; gap: 6px; margin-left: 8px; }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-controls .teacher-tools-orbit-dot { border-radius: 50%; min-width: 32px; min-height: 32px; width: 32px; height: 32px; padding: 0; font-size: 11px; }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-dot[aria-pressed="true"] { background: var(--panel-accent); border-color: var(--panel-accent); color: #fff; }
:root[data-theme="dark"] .teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-dot[aria-pressed="true"] { color: #041a2b; }
.teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-state { margin-left: auto; font-size: 11px; color: var(--panel-muted); }
/* Larger, readable orbit labels without changing rotation or its controls. */
.teacher-tools-overview .teacher-tools-orbit-core { font-size: 10px; line-height: 1.35; }
.teacher-tools-overview .teacher-tools-orbit-node { font-size: 11px; line-height: 1.25; }
.teacher-tools-overview .teacher-tools-orbit-node[aria-selected="true"] { background: color-mix(in srgb, var(--orbit-color) 55%, #062238); color: #fff; }
/* Repair inherited search colours without changing the search behaviour. */
.teacher-tools-overview .tools-search input { background: transparent !important; color: var(--ks-text) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transition: none !important; }
.teacher-tools-overview .tools-search { background: var(--ks-surface-raised); border-color: var(--ks-border); }
@media (max-width: 650px) {
    .teacher-tools-overview .teacher-tools-orbit-panel { padding: 20px 16px; border-radius: 17px; }
    .teacher-tools-overview .teacher-tools-orbit-panel > h2 { font-size: 24px; }
    .teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-summary { font-size: 14px; min-height: 47px; margin-bottom: 17px; }
    .teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-list { grid-template-columns: 1fr; gap: 10px; }
    .teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-list > li { min-height: 105px; padding: 13px; gap: 7px 9px; }
    .teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-controls { gap: 7px; }
    .teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-state { width: 100%; margin: 4px 0 0; }
    .teacher-tools-orbit-navigation { margin-left: auto; gap: 5px; }
    .teacher-tools-overview .teacher-tools-orbit-panel .teacher-tools-orbit-controls .teacher-tools-orbit-dot { min-width: 29px; min-height: 29px; width: 29px; height: 29px; }
}
