:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background-color:#f8fafc}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh;height:100vh;display:flex;flex-direction:column}.app-header{background:#8f001a;color:#fff;padding:1.5rem 2rem;display:flex;flex-direction:column;gap:1rem;box-shadow:0 4px 16px #0000001a}.app-header h1{margin:0;font-size:1.5rem;font-weight:600}.header-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;width:100%}.header-subtitle{margin:0;color:#ffffffd9}.tab-bar{display:flex;gap:.75rem;width:100%;flex-wrap:wrap;justify-content:center}.header-tabs{padding:.25rem 0}.tab{border:1px solid rgba(255,255,255,.6);background:#ffffff29;padding:.7rem 1.4rem;border-radius:999px;cursor:pointer;font-weight:600;color:#fff;min-width:180px;text-align:center}.tab.active{background:#fff;color:#0f172a;border-color:#fff;box-shadow:0 8px 20px #0000001f}.search-button{border:1px solid #8f001a;background:#8f001a;color:#fff;padding:.55rem 1.1rem;border-radius:999px;cursor:pointer;font-weight:600}.layout{display:grid;grid-template-columns:320px 1fr 360px;gap:1.5rem;padding:1.5rem;flex:1;min-height:0;overflow:hidden}.layout>.panel{min-height:0;height:100%}.panel{background:#fff;border-radius:12px;padding:1.25rem;box-shadow:0 10px 25px #0f172a14;display:flex;flex-direction:column;max-height:100%;height:100%;overflow-y:auto}.panel h2{margin-top:0;margin-bottom:1rem;font-size:1.1rem;font-weight:600;color:#0f172a}.explore-panel{padding:0;background:transparent;box-shadow:none}.explore-panel .search-surface{margin:0;border-radius:12px}.explore-panel .results-surface{margin:0;border-radius:0 0 12px 12px;padding:1rem .5rem}.search-surface{background:#ddd;border-radius:12px;padding:1rem;margin-bottom:1rem}.results-surface{background:#fff;border-radius:12px;padding:1rem .5rem .5rem}.course-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.course-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,320px));justify-content:center;gap:.75rem}.course-item{padding:.65rem .75rem;border:1px solid #e2e8f0;border-radius:8px;display:flex;flex-direction:column;gap:.25rem;background:#f8fafc}.course-item strong{font-size:.95rem}.course-item-actions{margin-left:auto}.plan-grid{display:flex;flex-direction:column;gap:1.25rem}.progress-dashboard{display:flex;flex-direction:column;gap:.75rem}.progress-overview{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:.85rem 1rem}.progress-overview.compact{background:#fff}.progress-header{display:flex;align-items:center;justify-content:space-between;font-weight:600;color:#0f172a}.progress-percent{font-size:1.05rem}.progress-bar{width:100%;height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:.5rem 0}.progress-bar.subtle{background:#f1f5f9}.progress-bar-fill{height:100%;background:linear-gradient(90deg,#8f001a,#d94f6a)}.progress-meta{display:flex;align-items:center;justify-content:space-between;font-size:.85rem;color:#475569}.year-progress-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}@media (max-width: 1100px){.year-progress-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}.plan-year{border:1px solid #e2e8f0;border-radius:12px;padding:1rem}.plan-year h3{margin:0 0 .5rem;font-size:1rem}.term-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}.term-column h4{margin:0 0 .5rem;font-size:.95rem;color:#64748b}.term-column{max-height:600px;overflow-y:auto;padding-right:.35rem}.requirement-node{border-radius:10px;padding:.9rem;margin-bottom:.75rem;cursor:pointer;border:1px solid transparent;transition:transform .12s ease,box-shadow .12s ease}.requirement-node.met{background:#dcfce7;border-color:#16a34a}.requirement-node.pending{background:#ffe4e6;border-color:#fb7185}.requirement-node:hover{transform:translateY(-2px);box-shadow:0 6px 18px #0f172a1f}.requirement-node small{display:block;color:#475569;margin-top:.3rem}.requirement-details{display:flex;flex-direction:column;gap:.75rem}.requirement-details ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.course-card{border:1px solid #e2e8f0;border-radius:10px;padding:.75rem;display:flex;flex-direction:column;gap:.35rem;background:#fff}.course-card.status-ready{border-color:#22c55e;background:#f0fdf4}.course-card.status-blocked{border-color:#f97316;background:#fff7ed}.catalog-textarea{width:100%;min-height:100px;padding:.75rem;border-radius:10px;border:1px solid #b1b5c3;background:#fff;font-size:.95rem;color:#0f172a;resize:vertical;margin-top:.25rem;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.badge{display:inline-flex;align-items:center;gap:.25rem;padding:.15rem .5rem;border-radius:999px;font-size:.75rem;font-weight:500}.badge.success{color:#166534;background:#bbf7d0}.badge.warn{color:#9a3412;background:#ffedd5}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;border-radius:16px;padding:1.5rem;width:min(480px,90vw);max-height:90vh;overflow-y:auto;box-shadow:0 25px 50px #0f172a59;position:relative}.modal-close{position:absolute;top:.75rem;right:.75rem;border:none;background:transparent;font-size:1.4rem;cursor:pointer;line-height:1}.add-course-form{display:flex;gap:.5rem;margin-top:.75rem;margin-bottom:.75rem}.add-course-form input{flex:1;padding:.55rem .75rem;border-radius:8px;border:1px solid #cbd5f5;font-size:.95rem}.add-course-form button{border:none;background:#8f001a;color:#fff;padding:.55rem .9rem;border-radius:8px;font-weight:600;cursor:pointer}.catalog-search-row{display:flex;align-items:center;justify-content:flex-start;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}.filter-input-row{display:grid;grid-template-columns:.6fr auto 1.4fr;gap:.75rem;align-items:center;margin-bottom:1rem}.filter-input{display:flex;flex-direction:column;gap:.35rem;align-self:start}.or-separator{display:flex;align-items:center;justify-content:center;font-size:1.35rem;font-weight:600;color:#334155;padding:0 .5rem}.filters-row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top:.5rem;margin-bottom:.5rem}.filter-pill{display:inline-flex;align-items:center;gap:.25rem;background:#80746c;border:1px solid #80746c;padding:.2rem .35rem;border-radius:999px;color:#fff;font-size:.9rem}.pill-select{border:none;background:transparent;font-weight:600;color:#fff;outline:none;padding:.1rem .2rem;font-size:.9rem}.pill-select::placeholder{color:#fff;opacity:.8}.input-error{color:#b91c1c;font-size:.85rem;margin-top:.2rem}.catalog-search{width:100%;max-width:100%;margin:0;padding:.55rem .75rem;border-radius:8px;border:1px solid #b1b5c3;background:#fff;font-size:.95rem;color:#0f172a}.catalog-search.compact{padding:.4rem .6rem;font-size:.95rem;height:36px}.catalog-search::placeholder{color:#64748b;opacity:1}.catalog-select{padding:.4rem .6rem;border-radius:8px;border:1px solid #cbd5f5;font-size:.95rem;background:#fff;min-width:140px;height:36px;color:#0f172a}.catalog-select[multiple]{height:auto;min-height:120px}.combo-label{font-size:.9rem;color:#fff;margin-right:.25rem}.search-surface .combo-label.title-label{color:#0f172a}.chip-row{display:flex;flex-wrap:wrap;gap:.35rem}.chip{background:#e2e8f0;color:#0f172a;border-radius:999px;padding:.15rem .5rem;display:inline-flex;align-items:center;gap:.25rem;font-size:.88rem}.chip-close{border:none;background:transparent;cursor:pointer;font-size:.95rem;line-height:1;color:#0f172a}.select{padding:.5rem .75rem;border-radius:8px;border:1px solid #cbd5f5;min-width:220px;font-size:.95rem}.empty-state{text-align:center;padding:2rem 1rem;color:#94a3b8}@media (max-width: 1200px){.layout{grid-template-columns:1fr}}.layout.single-column{grid-template-columns:1fr}
