/* Subject-specific selection region. Shared controls and calendar keep geometry. */
.schedule-selection-region{margin-bottom:12px;min-width:0}
.schedule-selection-entry-row,.schedule-selection-context,.schedule-selection-context-start,.schedule-selection-scope{display:flex;align-items:center;gap:8px}
.schedule-selection-entry-row{justify-content:space-between;flex-wrap:wrap;min-height:52px}
.schedule-selection-entry-row>.muted{font-size:13px}
.ui-action.schedule-selection-entry{background:var(--lemon);border-color:var(--line);color:var(--on-accent)}
.ui-action.schedule-selection-entry:hover:not(:disabled){background:var(--lemon);filter:brightness(1.04)}
.schedule-selection-context{padding:8px;background:var(--context-selected-soft);border-radius:6px;justify-content:space-between;flex-wrap:wrap}
.schedule-selection-context-start{flex:none}
.schedule-selection-context-actions{margin-left:auto}
.schedule-selection-context[hidden],.schedule-selection-entry-row[hidden],.schedule-selection-scope[hidden],.schedule-selection-list[hidden],.schedule-selection-operation-panel[hidden]{display:none}
.schedule-selection-help,.schedule-selection-notice{margin:8px 0;font-size:13px}
.schedule-selection-total{font-size:15px}
.schedule-selection-list{overflow:auto;min-height:0;max-height:55dvh;margin:8px 0}
.schedule-selection-scope{justify-content:space-between;flex-wrap:wrap;margin:10px 0}
.schedule-selection-scope>label{display:flex;align-items:center;gap:8px;font-size:13px}
.schedule-selection-scope>label>input{flex:0 0 17px;width:17px;height:17px;margin:0}
.schedule-selection-operation-panel{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:6px;margin:8px 0}
.schedule-selection-operation{display:flex;align-items:center;justify-content:space-between;gap:12px}
.schedule-selection-operation>div{display:grid;gap:3px;min-width:0}
.schedule-selection-operation strong{font-size:14px}
.schedule-selection-operation small{font-size:13px}
.schedule-selection-operation>.ui-action{flex:none}
@media(max-width:600px){.schedule-selection-context-actions{width:100%;margin-left:0}.schedule-selection-context-actions>.ui-action{flex:1 1 auto}}
.schedule-selection-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}
.schedule-selection-copy{display:grid;gap:3px;flex:1;min-width:0;overflow-wrap:anywhere;font-size:12px}
.schedule-selection-row>.ui-action{flex:none}
.schedule-selection-copy>strong{font-size:13px}
.schedule-selection-actions,.schedule-selection-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.schedule-selection-fields{display:grid;gap:12px}
.schedule-selection-fields>.schedule-form-grid{margin:0}
.schedule-selection-candidate{display:flex;align-items:flex-start;gap:9px;padding:9px 0;border-bottom:1px solid var(--line)}
.schedule-selection-candidate>input{flex:0 0 17px;width:17px;height:17px;margin-top:3px}
.schedule-selection-candidate>span{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere;font-size:13px}
.schedule-selection-dialog .schedule-selection-results,.schedule-selection-command-list{min-width:0}
.schedule-selection-warnings{color:var(--danger-ink,var(--ink));font-size:13px}
.schedule-event.schedule-selection-picked{outline:2px solid var(--context-selected-line);outline-offset:-2px;box-shadow:inset 0 0 0 2px var(--context-selected-line)}
.schedule-event.schedule-selection-picked::after{content:'✓';position:absolute;right:1px;top:1px;border-radius:4px;background:var(--context-selected-line);color:var(--ink);font-size:11px;line-height:14px;min-width:14px;text-align:center;pointer-events:none}
.knowledge-selection-tools{position:absolute;left:12px;bottom:68px;z-index:7;width:min(390px,calc(100% - 24px));display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);box-shadow:0 4px 18px color-mix(in srgb,var(--ink) 10%,transparent);font-size:12px}
.knowledge-selection-tools[hidden]{display:none}
.knowledge-selection-heading,.knowledge-selection-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.knowledge-selected-list{max-height:22dvh;overflow:auto;overscroll-behavior:contain}
.knowledge-selected-list>div{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:5px 0}
.knowledge-selected-list>div>span{min-width:0;overflow-wrap:anywhere}
.knowledge-map:has(.knowledge-select[aria-pressed=true]) .cw-board{cursor:crosshair}
@media(max-width:600px){.knowledge-selection-tools{bottom:64px}.schedule-selection-dialog .schedule-form-grid{grid-template-columns:minmax(0,1fr)}}
