:root{font-family:Segoe UI,Trebuchet MS,sans-serif;color:#13212f;background:#fff;line-height:1.5;font-weight:400}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#fff}button,input,table{font:inherit}button{border:none;border-radius:999px;padding:.65rem .95rem;background:#16354a;color:#f8fbfc;cursor:pointer;transition:transform .16s ease,background .16s ease;font-size:.92rem;line-height:1.2}button:hover{transform:translateY(-1px);background:#1c4761}button:disabled{opacity:.65;cursor:wait}.secondary-button{background:#eef5fc;color:#16354a}.secondary-button:hover{background:#dfeefb}.danger-button{background:#c2473c}.danger-button:hover{background:#ad3f35}.accent-button{background:#b85f2e}.accent-button:hover{background:#a85428}input{width:100%;border:1px solid rgba(19,33,47,.14);border-radius:12px;padding:.62rem .78rem;background:#ffffffe6}label{display:flex;flex-direction:column;gap:.25rem;font-size:.88rem}.app-shell{display:grid;grid-template-columns:230px minmax(0,1fr);gap:.85rem;padding:1rem 1.1rem 1.25rem}.app-sidebar{position:sticky;top:1rem;display:grid;gap:.9rem;align-content:start;height:fit-content}.sidebar-branding{display:grid;gap:.15rem}.sidebar-branding strong{font-size:1rem}.sidebar-branding span{color:#13212f9e;font-size:.82rem}.sidebar-nav,.sidebar-group,.sidebar-sublinks,.content-shell{display:grid;gap:.45rem}.content-shell{min-width:0;max-width:1480px}.sidebar-link,.sidebar-sublink{display:flex;align-items:center;justify-content:space-between;width:100%;border-radius:14px;background:#fff;border:1px solid #cfe2f4;color:#16354a;text-align:left}.sidebar-link.active,.sidebar-sublink.active{background:#16354a;color:#f8fbfc}.sidebar-link:not(.active):hover,.sidebar-sublink:not(.active):hover{background:#eef5fc}.sidebar-sublinks{padding-left:.4rem}.sidebar-sublink{justify-content:flex-start;padding:.5rem .7rem;font-size:.84rem}.sidebar-sublink:disabled{opacity:.45;cursor:not-allowed}.sidebar-caret{min-width:1rem;text-align:center}.hero-panel,.panel{border:1px solid #cfe2f4;border-radius:22px;background:#fff;box-shadow:none}.hero-panel{position:sticky;top:1.5rem;height:fit-content;padding:2rem}.eyebrow{margin:0 0 .75rem;font-size:.8rem;letter-spacing:.18em;text-transform:uppercase;color:#b85f2e}.hero-panel h1{margin:0;font-size:clamp(2.2rem,4vw,3.4rem);line-height:.95}.hero-copy{margin:1rem 0 1.5rem;color:#13212fc7}.status-card{display:grid;gap:.2rem;margin-bottom:0;padding:.75rem .9rem;border-radius:16px;background:#fff;border:1px solid #cfe2f4}.compact-status-card{align-self:start}.neutral-status-card{background:#fff}.status-label{font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;color:#13212fa6}.stats-grid,.workspace-grid{display:grid;gap:.85rem}.stats-grid{grid-template-columns:repeat(2,1fr)}.metric-card{display:grid;gap:.2rem;padding:.9rem 1rem;border-radius:20px;background:#dbe7ecbf}.metric-card strong{font-size:1.6rem}.workspace-grid{grid-template-columns:minmax(0,1fr);align-items:start}.route-panel{min-width:0}.panel{padding:1rem}.setup-panel{display:grid;gap:.85rem}.setup-route-layout{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(220px,.58fr);gap:.85rem;align-items:start}.setup-main-panel,.setup-side-rail,.setup-side-panel{min-width:0}.setup-side-rail{display:grid;gap:.85rem}.panel-wide{grid-column:1 / -1}.setup-shell-header,.setup-flow-header,.setup-step-panel,.setup-flow-footer,.setup-step-content{display:grid;gap:.7rem}.setup-shell-header{grid-template-columns:minmax(0,1.5fr) minmax(260px,.9fr);gap:.8rem 1rem;align-items:start}.compact-shell-header,.locked-summary-header{grid-template-columns:minmax(0,1fr)}.setup-shell-header .section-title{margin-right:.5rem}.setup-shell-header .setup-summary-row{grid-column:1 / -1}.setup-sections-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.setup-category-panel:last-child{grid-column:1 / -1}.setup-flow-footer{display:flex;justify-content:end}.compact-import-panel,.compact-table-wrap{margin-top:0}.setup-stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.setup-step{display:flex;align-items:flex-start;gap:.8rem;padding:1rem;border-radius:22px;background:#dbe7ec8c;color:#16354a;text-align:left}.setup-step:hover{background:#d1dfe6d9}.setup-step.active{background:#16354a;color:#f8fbfc}.setup-step-index{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;border-radius:999px;background:#ffffffb3;color:#16354a;font-weight:700}.setup-step.active .setup-step-index{background:#ffffffeb}.setup-step-copy{display:grid;gap:.18rem}.setup-step-copy strong,.setup-step-copy small{color:inherit}.setup-step-copy small{font-size:.82rem;opacity:.8}.setup-step-panel{padding:.9rem;border-radius:18px;background:#fff;border:1px solid #cfe2f4}.saved-entry-summary,.setup-locked-state,.year-folder-group{display:grid;gap:.7rem}.saved-entry-summary-header,.year-folder-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.setup-summary-grid,.side-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.setup-summary-grid div{display:grid;gap:.15rem;padding:.7rem .8rem;border:1px solid #cfe2f4;border-radius:14px;background:#fff}.setup-summary-grid span,.year-folder-header span,.saved-setup-button span{color:#13212f9e;font-size:.8rem}.initial-entry-actions{margin-top:.1rem}.compact-step-content{gap:.7rem}.setup-summary-row{display:flex;gap:.55rem;flex-wrap:wrap}.setup-summary-row span{padding:.32rem .6rem;border-radius:999px;background:#fff;border:1px solid #cfe2f4;color:#13212fc7;font-size:.8rem}.setup-actions{align-items:center;justify-content:end;margin-top:0}.section-title h2{margin:0;font-size:1.02rem}.section-title p{margin:.15rem 0 0;color:#13212fb8;font-size:.86rem}.field-row{display:grid;gap:.7rem;grid-template-columns:repeat(2,minmax(0,1fr))}.field-row-triple{grid-template-columns:1fr 1.4fr .7fr}.button-row,.stack-form{display:grid;gap:.7rem}.button-row{grid-template-columns:repeat(2,minmax(0,max-content));margin-top:.35rem}.button-row-inline{grid-template-columns:repeat(2,minmax(0,max-content));margin-top:0}.toggle-field{display:flex;flex-direction:column;gap:.25rem;align-self:end;font-size:.88rem}.field-hint{margin:0;color:#13212fb8;font-size:.82rem}.toggle-field input{width:22px;height:22px}.file-input-row,.file-input-controls{display:flex;gap:.65rem;align-items:center;justify-content:space-between;flex-wrap:wrap}.file-input-label{display:inline-block;margin-bottom:.2rem;font-size:.88rem}.file-input-hidden{display:none}.file-input-name{min-width:200px;padding:.62rem .78rem;border-radius:12px;border:1px solid rgba(19,33,47,.1);background:#ffffffd1;color:#13212fb8;font-size:.86rem}.list-section-header{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap}.simple-list,.issue-list{display:grid;gap:.55rem;padding:0;margin:.75rem 0 0;list-style:none}.simple-list li,.issue-list li,.solution-card{padding:.78rem .9rem;border-radius:14px;background:#fff;border:1px solid #cfe2f4}.editable-list-item{display:flex;align-items:center;justify-content:space-between;gap:1rem}.issue-list li{display:grid;gap:.2rem}.issue-error{border-color:#b8392e38;background:#fff6f4}.issue-warning{border-color:#b85f2e38;background:#fffaf0}.saved-setup-library,.year-folder-list{display:grid;gap:.7rem}.saved-setup-item{position:relative}.saved-setup-button{display:grid;gap:.15rem;justify-items:start;width:100%;padding:.7rem 2.5rem .8rem .8rem;border-radius:14px;border:1px solid #cfe2f4;background:#fff;color:#16354a;text-align:left}.saved-setup-button.active{background:#eef5fc;border-color:#9fc4ea}.saved-setup-button:not(.active):hover,.year-folder-toggle:hover,.solution-tab:not(.active):hover,.conflict-item:hover,.conflict-bubble-toggle:hover{background:#e4effa;color:#16354a}.saved-setup-delete{position:absolute;top:.45rem;right:.45rem;display:inline-flex;align-items:center;justify-content:center;width:1.7rem;height:1.7rem;padding:0;border-radius:999px;border:1px solid #cfe2f4;background:#fff;color:#7f1d1d}.saved-setup-delete:hover{background:#fff4f4}.saved-setup-delete svg{width:.92rem;height:.92rem}.year-folder-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;border-radius:14px;background:#f7fbff;border:1px solid #cfe2f4;color:#16354a;text-align:left}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{padding:.62rem .55rem;border-bottom:1px solid rgba(19,33,47,.08);text-align:left;font-size:.86rem}.empty-row,.empty-state{color:#13212f9e}.solution-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.solution-meta{display:grid;gap:.15rem}.solution-meta span{color:#13212f9e;font-size:.92rem}.solution-table td{vertical-align:middle}.solution-source{display:inline-flex;align-items:center;padding:.2rem .55rem;border-radius:999px;font-size:.82rem;text-transform:capitalize;background:#13212f14}.source-fixed{background:#b85f2e29;color:#8a471f}.source-manual{background:#16536e29;color:#16536e}.source-solver{background:#13212f14;color:#16354a}.move-date-input{min-width:154px}.calendar-toolbar,.calendar-actions,.workspace-tabs,.solution-tabs,.drawer-actions,.graph-chip-row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.calendar-toolbar{justify-content:space-between;margin-bottom:.75rem}.workspace-tabs{margin-bottom:.75rem}.workspace-tab-panel{animation:fadeIn .12s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.solution-tab{padding:.42rem .8rem;background:#dbe7ece6;color:#16354a;font-size:.85rem}.solution-tab.active{background:#16354a;color:#f8fbfc}.calendar-layout{position:relative;display:block;min-width:0}.calendar-board{display:grid;gap:0;overflow-x:auto;border:1px solid rgba(19,33,47,.12);border-radius:18px;background:#fff;box-shadow:none}.calendar-board-timetable{align-items:stretch}.calendar-year-group,.calendar-semester-heading,.calendar-date-rail,.calendar-slot{min-height:74px;padding:.44rem .48rem;border-right:1px solid rgba(19,33,47,.1);border-bottom:1px solid rgba(19,33,47,.1)}.calendar-year-group,.calendar-semester-heading,.calendar-date-rail{display:grid;gap:.18rem}.calendar-year-group{min-height:52px;background:#f7fbff;text-transform:uppercase;letter-spacing:.06em}.calendar-semester-heading{min-height:58px;background:#f9fcff}.calendar-semester-heading strong,.calendar-year-group strong,.calendar-date-rail strong{font-size:.8rem}.calendar-date-rail{position:sticky;right:0;z-index:2;text-align:right;align-content:center;background:#f8f1ddfa;background:#f7fbff;border-right:none}.calendar-date-rail-header{justify-content:center}.calendar-year-group span,.calendar-semester-heading span,.calendar-date-rail span,.drawer-eyebrow,.drawer-grid span{color:#13212f9e;font-size:.72rem}.calendar-slot{position:relative;display:grid;gap:.22rem;align-content:start;min-height:82px;background:#fff;transition:opacity .16s ease,border-color .16s ease,background .16s ease}.calendar-slot:hover{background:#f9fcff}.calendar-slot.dimmed{opacity:.35}.calendar-slot.blocked,.calendar-date-rail.blocked{background:repeating-linear-gradient(135deg,#5a677214,#5a677214 10px,#faebdfe0 10px,#faebdfe0 20px)}.calendar-slot.blocked{cursor:not-allowed}.calendar-blocked-note{display:inline-flex;width:fit-content;padding:.18rem .38rem;border-radius:999px;background:#13212f14;color:#13212fb8;font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.calendar-slot.preview-green{background:#e4f6e8f5;border-color:#277e4640}.calendar-slot.preview-yellow{background:#fff7dbf5;border-color:#b88a254d}.calendar-slot.preview-red{background:#ffebe8f5;border-color:#b8392e47}.calendar-slot.preview-target{box-shadow:inset 0 0 0 2px #16354a}.preview-pulse{position:absolute;top:.48rem;right:.48rem;bottom:.48rem;left:.48rem;border-radius:10px;border:1px dashed rgba(22,53,74,.25);animation:previewPulse 1.4s ease-in-out infinite}@keyframes previewPulse{0%,to{opacity:.25}50%{opacity:.7}}.exam-chip{display:grid;gap:.1rem;width:100%;text-align:left;padding:.34rem .42rem;border-radius:8px;border:1px solid rgba(19,33,47,.08);background:#13212f12;color:#13212f;box-shadow:none}.exam-chip strong{font-size:.72rem;line-height:1.15}.exam-chip.selected{box-shadow:inset 0 0 0 2px #16354a}.exam-chip.changed{outline:2px solid rgba(184,95,46,.45)}.calendar-event-stack{display:grid;gap:.22rem}.calendar-conflict-note{padding:.35rem .45rem;border-radius:8px;font-size:.72rem;line-height:1.25;border:1px solid #cfe2f4;background:#f7fbff}.calendar-conflict-note.severity-error{border-color:#ad3f3557;background:#fde9e7;color:#7f1d1d}.calendar-conflict-note.severity-warning{border-color:#c47a2757;background:#fff1df;color:#7a4a11}.semester-tone-0{background:#4b91aa29}.semester-tone-1{background:#b85f2e29}.semester-tone-2{background:#799b662e}.semester-tone-3{background:#6d75b129}@media (max-width: 960px){.calendar-layout{grid-template-columns:minmax(0,1fr)}.calendar-board{border-radius:20px}.calendar-year-group,.calendar-semester-heading,.calendar-date-rail,.calendar-slot{min-width:144px}.calendar-date-rail{min-width:112px}}.conflict-drawer{position:fixed;right:1rem;bottom:1rem;z-index:20;display:flex;flex-direction:column-reverse;align-items:flex-end;gap:.55rem;width:min(360px,calc(100% - 2rem))}.conflict-drawer.empty{width:auto}.conflict-drawer h3{margin:0}.conflict-drawer.collapsed{width:auto}.conflict-bubble-toggle{align-self:flex-end;border-radius:999px;padding:.55rem 1rem;background:#9fc4ea;color:#16354a;box-shadow:0 10px 24px #13212f29}.conflict-bubble-toggle.severity-warning{background:#f5c98c;color:#6f4610}.conflict-bubble-toggle.severity-error{background:#ef9d94;color:#7f1d1d}.conflict-bubble-panel{display:grid;gap:.7rem;width:100%;padding:.85rem;border-radius:18px;border:1px solid #cfe2f4;background:#fffffffa;box-shadow:0 18px 42px #13212f2e}.conflict-drawer.empty .conflict-bubble-panel{width:min(360px,calc(100vw - 2rem))}.conflict-bubble-header{display:flex;align-items:start;justify-content:space-between;gap:.75rem}.conflict-close-button{padding:.38rem .65rem}.conflict-legend{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;font-size:.74rem;color:#13212fb8}.conflict-legend span{display:inline-flex;align-items:center;gap:.35rem}.conflict-dot{width:.48rem;height:.48rem;border-radius:999px;background:#9fc4ea}.conflict-dot.high{background:#d55a4f}.conflict-dot.medium{background:#d98a2b}.conflict-dot.active{background:#bdd4f4;box-shadow:inset 0 0 0 1px #16354a}.drawer-status{margin:0;font-weight:700}.status-green{color:#277e46}.status-yellow{color:#a15d12}.status-red{color:#b33b31}.drawer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}.drawer-grid div{display:grid;gap:.15rem;padding:.65rem;border-radius:14px;background:#f7fbff;border:1px solid #cfe2f4}.conflict-list{display:grid;gap:.45rem}.conflict-item{display:grid;gap:.3rem;width:100%;padding:.65rem .75rem;border-radius:12px;border:1px solid #cfe2f4;background:#fff;color:#16354a;text-align:left}.conflict-item.severity-error{border-left:4px solid #d55a4f;background:#fff7f6}.conflict-item.severity-warning{border-left:4px solid #d98a2b;background:#fffaf3}.conflict-item.active{background:#eef5fc;box-shadow:inset 0 0 0 1px #9fc4ea}.conflict-item-header{display:flex;align-items:center;justify-content:space-between;gap:.55rem}.conflict-item-header span,.conflict-item p{margin:0;font-size:.78rem;color:#13212fb8}.comparison-row{cursor:pointer}.comparison-row.active{background:#dbe7ec80}.graph-wrap{display:grid;gap:.8rem}.dependency-graph{width:100%;min-height:320px;border-radius:18px;background:linear-gradient(180deg,#ffffffe6,#eff5f3eb);border:1px solid rgba(19,33,47,.08)}.graph-edge{stroke-width:3;stroke-linecap:round}.graph-edge.dimmed,.graph-node.dimmed{opacity:.2}.edge-semester{stroke:#4b91aab3}.edge-prerequisite{stroke:#b85f2eb8}.edge-high-failure{stroke:#799b66c7;stroke-dasharray:8 6}.graph-node{cursor:pointer}.graph-node-circle{fill:#fffffff0;stroke:#16354a;stroke-width:2}.graph-node-circle.changed{stroke:#b85f2e;stroke-width:3}.graph-node-code,.graph-node-label,.graph-node-date{fill:#16354a;font-size:12px;pointer-events:none}.graph-node-code{font-weight:700}.changed-row{background:#fff7dba6}.row-actions{display:flex;align-items:center;gap:.45rem}.row-actions button{padding:.42rem .72rem}@media (max-width: 980px){.app-shell,.setup-route-layout,.setup-shell-header,.setup-sections-grid,.workspace-grid{grid-template-columns:1fr}.app-sidebar{position:static}.sidebar-sublinks{padding-left:0}.setup-category-panel:last-child{grid-column:auto}.setup-side-rail{order:-1}.panel-wide{grid-column:auto}.calendar-layout{grid-template-columns:1fr}}@media (max-width: 640px){.app-shell{min-height:0}.field-row,.field-row-triple,.button-row,.conflict-drawer{position:static;width:100%;margin-top:.75rem}.conflict-drawer.collapsed{width:100%}.conflict-bubble-toggle{justify-self:stretch}.stats-grid,.setup-sections-grid,.setup-summary-grid,.side-summary-grid{grid-template-columns:1fr}.sidebar-link,.sidebar-sublink{width:100%}.editable-list-item,.row-actions,.file-input-row,.file-input-controls,.list-section-header,.workspace-tabs,.calendar-toolbar,.calendar-actions,.solution-tabs,.drawer-actions,.conflict-bubble-header,.conflict-item-header{align-items:stretch;flex-direction:column}.setup-actions{justify-content:stretch}.drawer-grid{grid-template-columns:1fr}}
