/* Guided AI import */
.import-intro{margin:10px 0 22px;padding:12px 15px;border-left:3px solid #78a58d;background:#f3f7f4;border-radius:0 8px 8px 0;color:#587064}
.ai-steps{display:flex;flex-direction:column}
.ai-step{display:grid;grid-template-columns:46px 1fr;gap:13px;position:relative;padding-bottom:20px}
.ai-step:not(:last-child):before{content:"";position:absolute;left:18px;top:38px;bottom:3px;width:1px;background:#d6e1da}
.step-number{display:grid;place-items:center;align-self:start;width:37px;height:37px;border-radius:50%;background:#e5efe9;color:#3d725a;font-size:11px;font-weight:750;letter-spacing:1px}
.ai-step strong{display:block;font-size:15px;margin:8px 0 4px}
.ai-step p{margin:0 0 11px}
.prompt-box{display:flex;align-items:center;gap:12px;border:1px solid #d9e4dd;background:#fbfcfb;border-radius:10px;padding:12px}
.prompt-box code{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#61736a}
.prompt-box button{flex:0 0 auto;padding:9px 14px;font-size:12px}
.prompt-details{margin-top:9px}.prompt-details summary{cursor:pointer;font-size:12px;color:#587064}.prompt-details pre{max-height:230px;overflow:auto;white-space:pre-wrap;background:#203c31;color:#edf5f0;border-radius:9px;padding:14px;font-size:12px;line-height:1.7;user-select:text}
.ai-result{margin:8px 0 0}
.ai-result>span{font-size:12px;color:#667c70}
.ai-result textarea{min-height:150px;resize:vertical;background:#fbfcfb;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.manual-import{margin:16px 0 0;border-top:1px solid #e6ebe8;padding-top:15px;color:#6f8278}
.manual-import summary{cursor:pointer;font-size:13px}
.file-pick{display:inline-flex;align-items:center;gap:10px;margin-top:12px;padding:9px 13px;background:#fff;border:1px solid #d6e0d9;border-radius:7px;font-size:13px;cursor:pointer}
.file-pick input{display:none}
.manual-import .import-help{display:inline-flex;margin:10px 0 0 8px}
#import-dialog{width:min(760px,95vw)}
@media(max-width:600px){.ai-step{grid-template-columns:38px 1fr}.step-number{width:31px;height:31px}.ai-step:not(:last-child):before{left:15px}.prompt-box{align-items:stretch;flex-direction:column}.prompt-box button{width:100%}.manual-import .import-help{display:flex;margin-left:0}.dialog-actions{position:sticky;bottom:-20px;background:white;padding:12px 0 0}}

/* Uniform schedule rows and user-selected course colors */
.grid{grid-template-rows:auto repeat(6,minmax(150px,auto));width:max-content;min-width:100%}
.slot-label,.cell{min-height:150px;height:auto}
.cell{overflow:visible;padding:8px;gap:8px;justify-content:center}
.course{height:auto;min-height:104px;flex:1 1 auto;padding:11px 12px}
.course strong{font-size:13px;line-height:1.35;margin-bottom:4px}
.course .course-meta{font-size:12px;line-height:1.55;margin-top:3px;overflow:visible;white-space:normal;word-break:break-word}
.color-picker{appearance:none;-webkit-appearance:none;width:20px;height:20px;min-width:20px;padding:0;border:2px solid white;border-radius:6px;box-shadow:0 0 0 1px #cad7cf;cursor:pointer;overflow:hidden}
.color-picker::-webkit-color-swatch-wrapper{padding:0}.color-picker::-webkit-color-swatch{border:0}.color-picker::-moz-color-swatch{border:0}
.color-field input[type=color]{width:100%;height:46px;padding:4px;cursor:pointer}
@media(max-width:720px){.grid{grid-template-rows:auto repeat(6,minmax(150px,auto))}}
