html,body{min-width:0!important;overflow-x:hidden}body{margin:0}main{width:auto!important;padding:0 12px!important}nav{position:sticky;top:0;padding:12px!important;z-index:5;flex-wrap:wrap}.navlinks{display:flex!important;width:100%;justify-content:space-around;gap:8px}.version{display:none}header{padding:18px!important}.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}.stats article:last-child{grid-column:span 2}.panel{padding:14px!important}.filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}input,select,button{font-size:16px!important;min-height:44px;max-width:100%;box-sizing:border-box}.course{grid-template-columns:1fr 1fr!important}.goals-row{min-width:470px;grid-template-columns:minmax(150px,1fr) repeat(3,95px)}.with-priority .goals-row{min-width:550px}.plan-scroll,.goals-grid{max-width:100%;-webkit-overflow-scrolling:touch}.plan-day{min-width:145px}#syncstatus{overflow-wrap:anywhere}#connectUax{width:100%}#recommendations{min-width:0}.hero-actions{max-width:100%}
/* Mobile 0.2: calendar and goals */
html{scroll-padding-top:130px}main{margin:12px auto!important}.hero-actions{min-width:0}header h1{font-size:26px}.navlinks a{font-size:13px}.stats{gap:8px}.stats article{padding:12px}.stats article strong{font-size:24px}.stats article:last-child strong{font-size:14px}.filters{gap:9px}.semester-row{gap:8px}.semester-row strong{min-width:0;flex-basis:100%}.semester-row select{max-width:110px}.course{grid-template-columns:1fr auto!important;gap:6px;padding:12px 4px}.course>span:first-child,.course>span:nth-child(2){grid-column:1/-1}.course>span:nth-child(2){overflow-wrap:anywhere}.goal-cards{display:grid;gap:10px;margin:12px 0}.goal-card{border:1px solid #dce5f2;border-radius:12px;padding:12px;background:#fbfdff}.goal-card strong{display:block;margin-bottom:8px}.goal-fields{display:flex;flex-wrap:wrap;gap:8px}.goal-fields label{flex:1;min-width:65px;max-width:130px}.goal-fields input{width:100%;padding:8px}.priority-label{display:flex;align-items:center;gap:8px;margin:8px 0 0!important}.priority-label input{min-height:0!important;width:20px;height:20px}.calendar-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.calendar-nav strong{font-size:13px;text-align:center}.calendar-nav button,.event-group-bar button{background:#edf3fb;color:#24559a;border:0;padding:4px 12px;margin:0}.calendar-mode{background:#eef4fc;color:#24559a;border:1px solid #dce5f2}.calendar-days{display:flex;gap:4px;overflow-x:auto;margin:8px 0}.calendar-days button{flex:1 0 auto;background:#eef4fc;color:#24559a;border:0;font-size:12px!important;padding:8px}.calendar-days .selected-day{background:#175fd0;color:white}.plan-grid{min-width:100%;gap:0}.plan-grid.day-view{width:100%;min-width:0}.plan-grid.day-view .plan-day{min-width:0}.plan-head{padding:10px 4px}.plan-axis,.plan-axis-head{position:sticky;left:0;z-index:2;background:#f8faff}.plan-axis span{left:3px;font-size:10px}.event-group{position:absolute;left:2px;right:2px;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d7e2ee;border-radius:7px;background:white}.event-group-bar{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;background:#e9f0fa;color:#234c86;font-weight:700;font-size:11px;min-height:25px}.event-group-bar button{font-size:17px!important;min-height:25px!important;padding:0 10px}.event-track{display:flex;flex:1;min-height:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.event-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;overflow-y:auto;display:flex;flex-direction:column;padding:5px 7px;line-height:1.3;font-size:11px;overflow-wrap:anywhere}.event-slide strong{font-size:12px}.event-slide.plan-fixed{border-left:3px solid #26865a}.event-slide.plan-recommended{border-left:3px solid #3279c4}.event-slide.plan-alternative{border-left:3px solid #ca922f}
/* Web 0.4 — responsive desktop and mobile */
body{background:#f3f6fb;color:#14243d}main{max-width:1180px!important;margin:26px auto!important;padding:0 24px 48px!important}.topbar{padding:14px max(24px,calc((100vw - 1132px)/2))!important;gap:22px;flex-wrap:nowrap}.navlinks{width:auto;justify-content:center;gap:24px}.navlinks a{padding:10px 12px;border-radius:9px;font-size:14px}.navlinks a:hover{background:#eef4ff}.version{display:block;white-space:nowrap}header{padding:30px!important;border-radius:20px}header h1{font-size:34px}.stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px}.stats article:last-child{grid-column:auto}.stats article{padding:20px}.panel{padding:24px!important;border-radius:16px}.filters{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px}input,select,button{font-size:14px!important;min-height:44px}.result-count{font-size:13px;font-weight:700;color:#315b95;margin:14px 0}.result-head,.course{grid-template-columns: minmax(160px,1fr) minmax(0,2fr) 80px 130px!important;gap:14px;padding:14px 12px}.course>span:first-child,.course>span:nth-child(2){grid-column:auto}.activity-tag{white-space:normal}.course:nth-child(even){background:#f9fbfe}.goal-cards{grid-template-columns:repeat(auto-fit,minmax(245px,1fr))}.goal-card{padding:16px}.calendar-nav button{min-width:42px}.plan-scroll{border-radius:14px}.plan-head{padding:14px 8px}#generate{padding:12px 24px}#connectionStatus,#syncstatus{border:1px solid #dce8fa} @media(max-width:850px){.topbar{padding:12px 18px!important;flex-wrap:wrap}.navlinks{width:100%;justify-content:space-between}.version{display:none}.filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.result-head{display:none}.course{grid-template-columns:1fr auto!important;gap:6px}.course>span:first-child,.course>span:nth-child(2){grid-column:1/-1}}@media(max-width:600px){main{margin:12px auto!important;padding:0 12px 32px!important}header{padding:20px!important}header h1{font-size:27px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.stats article{padding:12px}.stats article:last-child{grid-column:span 2}.panel{padding:15px!important}.filters{gap:10px}input,select,button{font-size:16px!important}.navlinks a{font-size:13px;padding:8px}.goal-cards{grid-template-columns:1fr}.course{padding:12px 6px}.hero-actions{width:100%}.calendar-nav{flex-wrap:wrap}#generate{width:100%}}
