/* ============================================================
   Schedules Page - Grid Styles
   ============================================================ */
.schedule-grid { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.grid-inner { display: grid; grid-template-columns: 50px repeat(6, 1fr); overflow-x: auto; min-width: 600px; }
.grid-day-h { padding: 10px 4px; text-align: center; font-size: 11px; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 0.5px; background: var(--surface); border-bottom: 2px solid var(--purple); position: sticky; top: 0; z-index: 2; }
.time-lbl { padding: 2px 6px; font-size: 9px; font-weight: 600; color: var(--text3); text-align: right; border-right: 1px solid var(--border); height: 32px; display: flex; align-items: flex-start; justify-content: flex-end; }
.time-lbl.hr { border-top: 1px solid var(--border); }
.grid-cell { height: 32px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); position: relative; transition: background 0.1s; }
.grid-cell:hover { background: var(--surface); }
.grid-cell.hr { border-top: 1px solid var(--border); }
.class-block { position: absolute; left: 2px; right: 2px; border-radius: 6px; padding: 3px 5px; font-size: 9px; line-height: 1.2; overflow: hidden; cursor: pointer; z-index: 2; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15); transition: transform 0.15s, box-shadow 0.15s; }
.class-block:hover { transform: scale(1.02); box-shadow: 0 2px 8px rgba(0,0,0,0.2); z-index: 3; }
.class-block.conflict { box-shadow: 0 0 0 2px var(--red), 0 2px 8px rgba(0,0,0,0.2); }
.grid-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.grid-title { font-size: 16px; font-weight: 700; }
.grid-sub { font-size: 11px; color: var(--text3); }
.grid-actions { display: flex; gap: 6px; }
.action-btn { padding: 6px 12px; border-radius: var(--radius-sm); background: var(--card); color: var(--text2); font-size: 11px; font-weight: 600; border: 1px solid var(--border); transition: var(--speed); }
.action-btn:hover { border-color: var(--purple); color: var(--purple); }

/* Selected Classes Sidebar */
.sel-sidebar { width: 320px; position: sticky; top: calc(var(--topbar-h) + 20px); height: fit-content; }
.sel-list { display: flex; flex-direction: column; gap: 6px; max-height: 400px; overflow-y: auto; }
.sel-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border-radius: var(--radius-sm); font-size: 12px; border-left: 3px solid var(--purple); }
.sel-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sel-info { flex: 1; min-width: 0; }
.sel-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-detail { font-size: 10px; color: var(--text3); }
.sel-remove { color: var(--red); font-size: 12px; padding: 2px 4px; opacity: 0.5; }
.sel-remove:hover { opacity: 1; }
