.password-modal-copy {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.35;
}

.password-modal-panel {
    border: 1px solid var(--line-strong);
    background: var(--bg-shell);
    padding: 18px 20px;
}

.password-modal-body {
    display: grid;
    gap: 16px;
}

.password-modal-body .field-stack > span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.password-guidance {
    display: grid;
    gap: 2px;
}

.password-guidance strong {
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--text);
}

.password-guidance span {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.35;
}

.password-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.password-submit {
    min-width: 168px;
}

.admin-edit-modal {
    width: min(640px, calc(100vw - 32px));
    background: var(--bg-shell);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow4);
    display: grid;
    gap: 16px;
    padding: 20px;
}

.admin-edit-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-edit-modal-head strong {
    display: block;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 2px;
}

.admin-edit-modal-kicker {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.admin-edit-modal-summary {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fbfdff 0%, #f7f9fc 100%);
}

.admin-edit-summary-primary,
.admin-edit-summary-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-edit-summary-primary strong {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 600;
}

.admin-edit-summary-primary span,
.admin-edit-summary-meta span {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.admin-edit-modal-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-shell);
    padding: 18px;
}

.admin-edit-modal-section {
    display: grid;
    gap: 16px;
}

.admin-edit-modal-divider {
    height: 1px;
    background: #e5eaf2;
}

.admin-edit-section-head {
    display: grid;
    gap: 4px;
}

.admin-edit-section-head strong {
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 600;
}

.admin-edit-section-head span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.admin-edit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-edit-checkbox-row {
    align-self: end;
}

.admin-edit-inline-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-edit-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.admin-password-modal {
    width: min(560px, calc(100vw - 32px));
}

.admin-course-modal {
    width: min(1120px, calc(100vw - 32px));
}

.admin-course-instructor-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

@media (max-width: 720px) {
    .admin-edit-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-course-instructor-picker {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Instructor Picker (combobox) */
.instructor-picker {
    position: relative;
}

.instructor-picker-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.instructor-picker-input-wrap .field {
    flex: 1;
}

.instructor-picker-clear {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.instructor-picker-clear:hover {
    color: var(--text);
}

.instructor-picker-arrow {
    color: var(--muted);
    display: flex;
    align-items: center;
    pointer-events: none;
    margin-left: -24px;
}

.instructor-picker-arrow .app-icon {
    width: 16px;
    height: 16px;
}

.instructor-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1200;
    background: white;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.instructor-picker-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.instructor-picker-item:last-of-type {
    border-bottom: 0;
}

.instructor-picker-item:hover {
    background: var(--bg-subtle);
}

.instructor-picker-item.active {
    background: var(--brand-bg);
}

.instructor-picker-item strong {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.instructor-picker-item span {
    font-size: 0.75rem;
    color: var(--muted);
}

.instructor-picker-empty {
    padding: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 0.8125rem;
}

.instructor-picker-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
}

.instructor-picker-action-row .instructor-picker-add {
    width: 2.375rem;
    height: 2.375rem;
    padding: 0;
    justify-content: center;
}

.instructor-picker-action-row .instructor-picker-add:hover {
    background: var(--bg-subtle);
}

.instructor-picker-action-row .instructor-picker-add:active {
    background: var(--brand-bg);
}

.instructor-picker-action-row .instructor-picker-add:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Schedule summary display */
.schedule-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    cursor: pointer;
    transition: background 120ms ease;
}

.schedule-summary:hover {
    background: var(--bg-hover);
}

.schedule-summary .app-icon {
    width: 18px;
    height: 18px;
    color: var(--brand);
    flex: 0 0 auto;
}

.schedule-summary-text {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--text);
    line-height: 1.4;
}

.schedule-summary-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

.schedule-summary-text span {
    color: var(--muted);
    font-size: 0.75rem;
}

.schedule-summary-edit {
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    border: 0;
    background: transparent;
    display: flex;
}

.schedule-summary-edit:hover {
    color: var(--brand);
}

.schedule-preview {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.schedule-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.schedule-preview-row + .schedule-preview-row {
    border-top: 1px solid var(--line);
}

.schedule-preview-day {
    font-weight: 500;
    color: var(--text);
}

.schedule-preview-time {
    color: var(--muted);
    font-size: 0.75rem;
}

/* Schedule editor inside stacked drawer */
.schedule-editor-mode {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.schedule-editor-mode label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease;
}

.schedule-editor-mode label:hover {
    border-color: var(--brand);
    background: var(--brand-bg);
}

.schedule-editor-mode label.selected {
    border-color: var(--brand);
    background: var(--brand-bg);
}

.schedule-editor-mode label input[type="radio"] {
    margin-top: 2px;
}

.schedule-editor-mode label div {
    flex: 1;
}

.schedule-editor-mode label strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
}

.schedule-editor-mode label span {
    font-size: 0.75rem;
    color: var(--muted);
}

.schedule-editor-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-editor-day-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-editor-day-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr auto;
    gap: 8px;
    align-items: center;
}

.schedule-editor-day-row select {
    padding: 6px 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    background: white;
}

.schedule-editor-day-row .field {
    min-width: 0;
}

.schedule-editor-remove-day {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--error-text);
    padding: 4px;
    display: flex;
}

.schedule-editor-remove-day:hover {
    background: var(--error-bg);
    border-radius: var(--radius-sm);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--colorBrandBackground2);
    color: var(--brand-strong);
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.profile-copy strong,
.profile-copy span {
    display: block;
}

.profile-copy strong {
    font-size: 0.84rem;
    font-weight: 600;
}

.profile-copy span {
    font-size: 0.75rem;
    color: var(--muted);
}

.ghost,
.solid,
.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    padding: 7px 12px;
    font-size: 0.8125rem;
    cursor: pointer;
}

.ghost {
    background: white;
    border-color: var(--line-strong);
    color: var(--text);
}

.ghost:hover {
    background: var(--bg-subtle);
}

.ghost.small {
    padding: 6px 10px;
}

.icon-button {
    gap: 8px;
}

.nav-icon {
    color: var(--muted);
}

.rail-link.active .nav-icon,
.rail-subtle-link:hover .nav-icon,
.rail-link:hover .nav-icon {
    color: currentColor;
}

.solid,
.auth-submit {
    background: var(--brand);
    color: white;
}

.solid:hover,
.auth-submit:hover {
    background: var(--brand-strong);
}

.checkbox-group {
    align-content: start;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    color: var(--text);
}

.field-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
    margin: 0;
}

.panel-section {
    margin-top: 16px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

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

.summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.summary-card {
    border: 1px solid var(--line);
    background: var(--bg-shell);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: grid;
    gap: 4px;
    box-shadow: var(--shadow-card);
}

.summary-card strong {
    font-size: 1.15rem;
    font-weight: 700;
}

.summary-card span {
    color: var(--muted);
    font-size: 0.78rem;
}

.inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0 12px;
}

.icon-actions {
    margin: 0;
    flex-wrap: nowrap;
}

.icon-only-action {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    position: relative;
}

.icon-only-action[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    padding: 6px 8px;
    border-radius: 6px;
    background: var(--colorNeutralBackgroundTooltip);
    color: var(--colorNeutralForegroundInverted);
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.icon-only-action[data-tooltip]::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: var(--colorNeutralBackgroundTooltip);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.icon-only-action[data-tooltip]::after,
.icon-only-action[data-tooltip]::before {
    transition: opacity 120ms ease, transform 120ms ease;
    transition-delay: 0s;
}

.icon-only-action[data-tooltip]:hover::after,
.icon-only-action[data-tooltip]:hover::before,
.icon-only-action[data-tooltip]:focus-visible::after,
.icon-only-action[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 300ms;
}

.participant-zebra-block {
    display: grid;
    gap: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-shell);
}

.placeholder-list > .participant-zebra-block:nth-child(even) {
    background: var(--colorNeutralBackground2);
}

.placeholder-list > .participant-zebra-block:nth-child(odd) {
    background: var(--bg-shell);
}

.placeholder-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.child-row {
    margin-top: 4px;
    margin-left: 18px;
    padding-left: 12px;
    border-left: 2px solid var(--line);
}

.metric-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 12px;
}

.metric-strip-compact {
    margin: 0 0 10px;
}

.metric-strip-below-console {
    margin-top: 10px;
    margin-bottom: 0;
}

.metric-strip-inline {
    margin: 0;
}

.participant-zebra-block .metric-strip {
    margin: 8px 0 10px;
}

.participant-zebra-block .inline-actions {
    margin: 0;
    padding-top: 8px;
}

.metric-strip-indent {
    margin-left: 18px;
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-shell);
    color: var(--muted);
    font-size: 0.76rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.status-chip-running {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: color-mix(in srgb, var(--colorStatusSuccessForeground1) 12%, transparent);
}

.status-chip-stopped {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: rgba(168, 0, 0, 0.12);
}

.status-chip-empty {
    background: var(--bg-hover);
    color: var(--muted);
    border-color: var(--line);
}

.row-meta .status-chip {
    justify-self: end;
}

.course-workspace {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
}

.course-selector-panel {
    align-self: start;
}

.course-selector-list {
    display: grid;
    gap: 8px;
}

.course-selector-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-shell);
    color: var(--text);
    padding: 12px 14px;
    display: grid;
    gap: 8px;
}

.course-selector-item:hover {
    background: var(--bg-hover);
}

.course-selector-item.selected {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.course-selector-item span {
    color: var(--muted);
    font-size: 0.8rem;
}

.course-selector-main {
    display: grid;
    gap: 4px;
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
    color: inherit;
}

.course-selector-action {
    justify-self: start;
}

.placeholder-row span {
    color: var(--muted);
    font-size: 0.8rem;
}

.row-primary,
.row-meta {
    display: grid;
    gap: 4px;
}

.vm-title-with-icon,
.vm-subtitle-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.vm-title-with-icon .app-icon,
.vm-subtitle-with-icon .app-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.vm-title-with-icon span,
.vm-subtitle-with-icon span {
    min-width: 0;
}

.row-primary {
    min-width: 0;
}

.row-meta {
    text-align: right;
    flex: 0 0 auto;
}

.field-group {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.field {
    height: 38px;
    border: none;
    border-bottom: 2px solid var(--line-strong);
    border-radius: 0;
    padding: 0 12px;
    background: var(--bg-shell);
    color: var(--text);
    outline: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: border-bottom-color 120ms ease;
    /* Fluent center-expand underline */
    background-image: linear-gradient(var(--brand), var(--brand));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: center bottom;
    transition: background-size 180ms ease, border-bottom-color 120ms ease;
}

.field:focus {
    border-bottom-color: transparent;
    background-size: 100% 2px;
}

.field-area {
    min-height: 92px;
    padding: 10px 12px;
    resize: vertical;
    height: auto;
}

.field-help {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 2px;
}

.offset-caption {
    font-size: 0.7rem;
    color: var(--muted);
}

.admin-course-instructor-picker .icon-button {
    color: var(--brand);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
    padding: 0;
}

.admin-course-instructor-picker .icon-button:hover {
    background: var(--bg-subtle);
}

.error-text {
    color: var(--error-text);
    background: var(--error-bg);
    border: 1px solid rgba(168, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 12px;
}

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

.banner-dismiss {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
}

.banner-dismiss:hover {
    opacity: 1;
}

.success-banner {
    color: var(--success-text);
    background: var(--success-bg);
    border: 1px solid color-mix(in srgb, var(--colorStatusSuccessForeground1) 12%, transparent);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 12px;
}

/* ── Course Cards ── */

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

.course-card-grid-loading {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.course-card-skeleton {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-shell);
    padding: 18px;
    display: grid;
    gap: 12px;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--line) 25%, var(--bg-hover) 50%, var(--line) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-line-title {
    width: 70%;
    height: 18px;
}

.skeleton-line-text {
    width: 50%;
}

.skeleton-line-badge {
    width: 35%;
}

.skeleton-line-action {
    width: 30%;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.course-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-shell);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    position: relative;
}

.course-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-color: var(--line-strong);
}

.course-card:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.course-card-disabled {
    opacity: 0.7;
    background: var(--bg-subtle);
}

.course-card-closed {
    border-left: 3px solid var(--muted-2);
}

.course-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.course-card-title {
    flex: 1;
    min-width: 0;
}

.course-card-name {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.course-card-instructor {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.81rem;
}

.course-card-instructor-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    flex-shrink: 0;
}

.course-card-instructor-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.course-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.81rem;
}

.course-card-participants {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.course-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.course-card-menu {
    position: relative;
    flex-shrink: 0;
}

.course-card-menu-trigger {
    z-index: 1;
}

.course-card-scrim {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: transparent;
}

.course-card-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 180px;
    background: var(--bg-shell);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.course-card-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text);
    border-radius: 3px;
    text-align: left;
    font-family: var(--font-ui);
}

.course-card-dropdown-item:hover {
    background: var(--bg-hover);
}

.course-card-dropdown-item .app-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    flex-shrink: 0;
}


/* ── Admin Search ── */

.admin-search {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-shell);
    padding: 0 10px;
    width: min(320px, 100%);
    transition: border-color 0.15s ease;
}

.admin-search:focus-within {
    border-color: var(--brand);
}

.admin-search .field {
    border: none;
    background: none;
    padding: 7px 0;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.admin-search .app-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ── Admin Filter Chips ── */

.admin-filter-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 16px;
    flex-wrap: wrap;
}

.admin-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 500;
    border: 1px solid var(--line);
    background: var(--bg-shell);
    color: var(--text);
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
    font-family: var(--font-ui);
}

.admin-filter-chip:hover {
    background: var(--bg-hover);
}

.admin-filter-chip.active {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-strong);
    font-weight: 600;
}

.admin-participant-filters {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.admin-course-filter {
    width: min(15rem, 100%);
    min-width: 12rem;
}

.participant-assignment-search {
    display: grid;
    gap: 0.375rem;
}

.participant-search-results {
    display: grid;
    max-height: 14rem;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    background: var(--bg-shell);
    box-shadow: var(--shadow-card);
}

.participant-search-results > button {
    display: grid;
    gap: 0.125rem;
    padding: 0.625rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.participant-search-results > button:last-child {
    border-bottom: 0;
}

.participant-search-results > button:hover,
.participant-search-results > button:focus-visible {
    background: var(--bg-subtle);
}

.participant-search-results > button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.participant-search-results span,
.participant-search-selection small {
    color: var(--muted);
    font-size: 0.75rem;
}

.participant-search-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--line-strong);
    background: var(--bg-subtle);
}

.participant-search-selection > span {
    display: grid;
    gap: 0.125rem;
}

@media (max-width: 720px) {
    .admin-participant-filters {
        width: 100%;
        flex-direction: column;
    }

    .admin-course-filter {
        width: 100%;
    }
}

/* ── Admin Metrics ── */

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 0 0 16px;
}

.admin-metric {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-shell);
    padding: 12px 14px;
    display: grid;
    gap: 2px;
}

.admin-metric strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.admin-metric span {
    color: var(--muted);
    font-size: 0.76rem;
}

/* ── OS Card ── */

.os-card-grid,
.os-card-grid-loading {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 0;
}

.os-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.os-toolbar-select {
    max-width: 360px;
    flex: 1;
    min-width: 200px;
}

.os-toolbar-commands {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

@media (max-width: 720px) {
    .os-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .os-toolbar-select {
        max-width: none;
    }

    .os-card-grid-loading {
        grid-template-columns: 1fr;
    }
}

.os-card-grid-loading {
    padding: 0;
}

.os-card-skeleton {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-shell);
    padding: 16px;
    display: grid;
    gap: 10px;
}

.os-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-shell);
    padding: 14px 16px;
    display: grid;
    gap: 10px;
    cursor: pointer;
    transition: box-shadow .15s, border-color .15s;
}

.os-card-readonly {
    cursor: default;
}

.os-card-identity {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.os-card-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.os-card-identity .os-card-head {
    min-width: 0;
}

.os-card:hover {
    box-shadow: var(--shadow-card);
    border-color: var(--line-strong);
}

.os-card:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.os-card-disabled {
    opacity: 0.6;
    background: var(--bg-subtle);
}

.os-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.os-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-card-type-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--brand-soft);
    color: var(--brand);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.os-card-body {
    display: grid;
    gap: 4px;
}

.os-card-detail {
    display: flex;
    gap: 6px;
    font-size: 0.78rem;
}

.os-card-label {
    color: var(--muted-2);
    flex-shrink: 0;
}

.os-card-value {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.os-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.os-card-actions {
    display: flex;
    gap: 4px;
}

.instructor-card-courses {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.instructor-card-courses-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.instructor-card-course-count {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--bg-subtle);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

.instructor-card-course-list {
    display: grid;
    gap: 4px;
    max-height: 112px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.instructor-card-course-list li {
    overflow: hidden;
    color: var(--text);
    font-size: 0.78rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instructor-card-course-list li::before {
    content: "•";
    margin-right: 6px;
    color: var(--brand);
}

.instructor-card-no-courses {
    color: var(--muted-2);
    font-size: 0.78rem;
}

/* ── Admin Empty / Error States ── */

.admin-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.admin-empty-state .app-icon {
    width: 36px;
    height: 36px;
    opacity: 0.4;
}

.admin-empty-state strong {
    font-size: 0.95rem;
    color: var(--text);
}

.admin-empty-state span {
    font-size: 0.82rem;
    max-width: 360px;
}
.neo-toast-host {
    position: fixed;
    z-index: 2500;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: min(26rem, calc(100vw - 2rem));
    gap: 0.65rem;
    pointer-events: none;
}

.neo-toast {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0.75rem 0.75rem 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-left: 0.25rem solid var(--text-secondary);
    border-radius: 0.25rem;
    background: var(--bg-shell);
    box-shadow: 0 0.5rem 1.5rem rgb(15 23 42 / 18%);
    color: var(--text);
    pointer-events: auto;
}

.neo-toast-success {
    border-left-color: var(--colorStatusSuccessForeground1);
}

.neo-toast-error {
    border-left-color: var(--colorStatusDangerForeground1);
}

.neo-toast-warning {
    border-left-color: var(--colorStatusWarningForeground1);
}

.neo-toast-info {
    border-left-color: var(--colorBrandBackground);
}

.neo-toast-icon {
    display: grid;
    color: var(--text-secondary);
}

.neo-toast-success .neo-toast-icon {
    color: var(--colorStatusSuccessForeground1);
}

.neo-toast-error .neo-toast-icon {
    color: var(--colorStatusDangerForeground1);
}

.neo-toast-warning .neo-toast-icon {
    color: var(--colorStatusWarningForeground1);
}

.neo-toast-info .neo-toast-icon {
    color: #0f6cbd;
}

.neo-toast-message {
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    line-height: 1.35;
}

.neo-toast-close {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.2rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.neo-toast-close:hover {
    background: rgb(15 23 42 / 8%);
}

.neo-toast-close:focus-visible {
    outline: 2px solid #0f6cbd;
    outline-offset: 2px;
}

.neo-toast .app-icon,
.neo-toast .app-icon img,
.neo-toast svg {
    width: 1.15rem;
    height: 1.15rem;
}

@media (max-width: 640px) {
    .neo-toast-host {
        top: 0.75rem;
        right: 0.75rem;
        width: calc(100vw - 1.5rem);
    }
}
.password-requirements {
    display: grid;
    gap: 0.375rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--line);
    background: var(--bg-subtle);
    font-size: 0.78rem;
}

.password-requirements > strong {
    font-size: 0.8rem;
}

.password-requirements ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--error-text);
}

.password-requirements li.met {
    color: var(--colorStatusSuccessForeground1);
}

.password-requirements .app-icon {
    width: 0.875rem;
    height: 0.875rem;
}

@media (max-width: 520px) {
    .password-requirements ul {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   Fluent-style lifecycle badges / chips
   =========================================== */

.vm-lifecycle-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--borderRadiusSmall, 4px);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.vm-lifecycle-badge-success {
    background: var(--colorBrandBackground2, #deecf9);
    color: var(--colorBrandBackground, #0078d4);
}

.vm-lifecycle-badge-running {
    background: var(--colorStatusSuccessBackground1);
    color: var(--colorStatusSuccessForeground1);
}

.vm-lifecycle-badge-danger {
    background: var(--colorStatusDangerBackground1);
    color: var(--colorStatusDangerForeground1);
}

.vm-lifecycle-badge-accent {
    background: var(--colorBrandBackground2, #deecf9);
    color: var(--colorBrandBackground, #0078d4);
}

.vm-lifecycle-badge-neutral {
    background: var(--colorNeutralBackground2, #faf9f8);
    color: var(--colorNeutralForeground3, #605e5c);
}

.vm-lifecycle-badge-warning {
    background: var(--colorStatusWarningBackground1);
    color: var(--colorStatusWarningForeground1);
}

.vm-lifecycle-badge-processing {
    background: var(--colorNeutralBackground1Hover, #f3f6fa);
    color: var(--colorNeutralForeground2, #616161);
}
