.study-empty,.study-today{border:1px solid #b6f34a35;border-radius:22px;background:linear-gradient(120deg,#b6f34a0b,#17191b);padding:26px;margin:0 0 26px}.study-empty{display:flex;align-items:center;gap:22px}.study-calendar{display:grid;place-items:center;width:60px;height:60px;flex-shrink:0;border-radius:17px;background:#b6f34a14;color:var(--green);font-size:40px}.study-empty>div:nth-child(2){flex:1}.study-empty h3,.study-today h3{font-size:22px;line-height:1.4;margin:8px 0}.study-empty p{font-size:14px;color:var(--muted);line-height:1.7;margin:0}.study-empty .auth-eyebrow,.study-today .auth-eyebrow{font-size:9px;letter-spacing:1.2px}.study-empty button{flex-shrink:0}.study-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.study-today h3 span{display:block;color:var(--muted);font-size:13px;font-weight:600;margin-top:5px}.study-today-list{display:grid;gap:12px;margin:22px 0}.study-session{display:flex;align-items:center;gap:16px;padding:17px;background:#0c0d0e75;border:1px solid var(--line);border-radius:14px}.study-session>div{flex:1;min-width:0}.study-session strong,.study-session small{display:block;overflow-wrap:anywhere}.study-session strong{font-size:16px;line-height:1.6}.study-session small{font-size:11px;color:var(--muted)}.study-time{color:var(--green);font-size:12px;font-weight:800}.study-done input{width:20px;height:20px;accent-color:var(--green);cursor:pointer}.study-session.is-done strong{text-decoration:line-through;color:var(--muted)}.study-week-strip{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--line)}.study-week-strip>span{display:grid;justify-items:center;gap:8px;min-width:45px;padding:8px;border-radius:10px;font-size:11px;color:var(--muted)}.study-week-strip .is-today{background:#b6f34a16;color:var(--green)}.study-week-strip i{width:6px;height:6px;border-radius:50%;background:var(--green)}.study-week-strip em{font-style:normal;height:6px;line-height:6px}.study-week-strip button{margin-left:auto;font-size:12px}.study-device{display:block;font-size:10px;color:var(--muted);margin-top:15px}.study-rest{font-size:14px;line-height:1.8;color:var(--muted);margin:20px 0}.study-session:focus-within,.material-item:focus{outline:2px solid var(--green);outline-offset:3px}
.schedule-dialog{width:min(1060px,calc(100% - 32px));max-width:none;max-height:92dvh;padding:0;border:1px solid #455337;border-radius:24px;background:#101412;color:var(--text);overflow:hidden}.schedule-dialog[open]{display:flex;flex-direction:column}.schedule-dialog::backdrop{background:#020504dc;backdrop-filter:blur(8px)}.schedule-header{display:flex;align-items:start;justify-content:space-between;gap:20px;padding:28px 32px 16px;flex-shrink:0}.schedule-header h2{font-size:29px;line-height:1.3;margin:8px 0 0;outline:none}.schedule-header .auth-eyebrow{font-size:9px;letter-spacing:1.3px}.schedule-close{width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:25px;cursor:pointer;flex-shrink:0}.schedule-steps{display:flex;list-style:none;gap:28px;margin:0;padding:8px 32px 22px;border-bottom:1px solid var(--line);flex-shrink:0}.schedule-steps li{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;font-weight:800}.schedule-steps li>span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);font-size:11px}.schedule-steps [aria-current],.schedule-steps .is-complete{color:var(--green)}.schedule-steps [aria-current]>span{background:var(--green);color:#152207;border-color:var(--green)}.schedule-body{overflow:auto;padding:20px 32px 24px;min-height:0;overscroll-behavior:contain}.schedule-lead{color:var(--muted);font-size:14px;line-height:1.7;margin:0 0 20px}.schedule-presets{display:flex;gap:10px;margin-bottom:18px}.schedule-presets button{padding:9px 14px;font-size:12px}.schedule-days{display:grid;gap:9px}.schedule-day{display:flex;align-items:center;gap:18px;border:1px solid var(--line);border-radius:13px;padding:12px 16px;background:var(--surface)}.schedule-day.is-selected{border-color:#b6f34a45;background:#b6f34a06}.schedule-day-choice{display:flex;align-items:center;gap:12px;min-width:130px;font-size:14px;font-weight:800;cursor:pointer}.schedule-day-choice input,.schedule-topic-check input{width:19px;height:19px;accent-color:var(--green);cursor:pointer}.schedule-day-times{flex:1;display:grid;gap:9px}.schedule-time-row{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.schedule-time-row input{width:119px;background:#101412;border:1px solid #44513c;border-radius:8px;color:var(--text);padding:8px 10px;font:inherit;font-size:13px;color-scheme:dark}.schedule-time-row>button,.schedule-add-time{border:0;background:transparent;color:var(--muted);cursor:pointer;font:inherit}.schedule-time-row>button{font-size:22px;padding:4px 10px}.schedule-add-time{font-size:11px;font-weight:800;color:var(--green);white-space:nowrap;padding:10px}.schedule-day-free{font-size:12px;color:var(--muted)}.schedule-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:18px 32px;background:#171c15;flex-shrink:0}.schedule-footer>span{font-size:12px;color:var(--muted);line-height:1.6}.schedule-footer>div{display:flex;gap:10px;flex-shrink:0}.schedule-footer button{font-size:13px;padding:12px 20px;min-height:44px}.schedule-error{color:var(--red);font-size:13px;margin:0;padding:0 32px;line-height:1.7;flex-shrink:0}.schedule-error:not(:empty){padding:10px 32px}.schedule-dialog button:disabled,.study-empty button:disabled,.study-today button:disabled{opacity:.45;cursor:not-allowed}.schedule-dialog :focus-visible{outline:2px solid var(--green);outline-offset:3px}
.schedule-picker{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:22px;align-items:start}.schedule-search{display:grid;grid-template-columns:minmax(0,1fr) 155px auto;gap:8px}.schedule-search input,.schedule-search select{min-width:0;width:100%;background:var(--surface);border:1px solid #44513c;border-radius:10px;color:var(--text);padding:12px;font:inherit;font-size:12px;height:45px}.schedule-search button{font-size:12px;padding:10px 16px;min-height:45px}.schedule-breadcrumbs{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:17px 0;color:var(--muted);font-size:11px;line-height:1.8}.schedule-breadcrumbs button{background:none;border:0;color:var(--green);font:inherit;cursor:pointer;padding:3px 0;text-align:left}.schedule-breadcrumbs [aria-current]{color:var(--text)}.schedule-topic-results{display:grid;gap:8px;min-height:160px}.schedule-topic-row{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:var(--surface);border-radius:13px;padding:14px}.schedule-topic-row:has(input:checked){background:#b6f34a09;border-color:#b6f34a65}.schedule-topic-row>div{flex:1;min-width:0}.schedule-topic-row strong{font-size:13px;line-height:1.6;display:block;overflow-wrap:anywhere}.schedule-topic-row small{font-size:10px;color:var(--muted);display:block;overflow-wrap:anywhere;margin-top:3px}.schedule-topic-symbol{color:var(--green);font-size:25px;flex-shrink:0}.schedule-explore{border:0;background:none;color:var(--green);cursor:pointer;font:inherit;font-size:11px;font-weight:800;padding:8px}.schedule-topic-check{padding:8px;display:flex}.schedule-selection{border:1px solid #b6f34a30;border-radius:15px;padding:17px;background:#b6f34a06;position:sticky;top:0}.schedule-selection h3{font-size:14px;display:flex;align-items:center;justify-content:space-between;margin:0}.schedule-selection h3 span{background:var(--green);color:#14200b;border-radius:30px;padding:3px 9px;font-size:11px}.schedule-selection>p{font-size:11px;line-height:1.7;color:var(--muted);margin:8px 0 14px}.schedule-selection [data-schedule-selected]{max-height:280px;overflow:auto;display:grid;gap:8px}.schedule-selected-item{display:flex;align-items:start;gap:5px;border-bottom:1px solid #b6f34a18;padding-bottom:8px;font-size:12px;line-height:1.7}.schedule-selected-item>span{flex:1;overflow-wrap:anywhere}.schedule-selected-item b{color:var(--green);font-size:10px}.schedule-selected-item button{border:0;background:none;color:var(--muted);font-size:19px;cursor:pointer;padding:0 4px}.schedule-selection-empty,.schedule-list-status{color:var(--muted);font-size:13px;line-height:1.8;margin:10px 0}.schedule-more{font-size:12px;margin-top:8px}.schedule-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.schedule-review-day{border:1px solid var(--line);background:var(--surface);border-radius:15px;padding:18px;min-width:0}.schedule-review-day h3{font-size:14px;margin:0 0 12px;display:flex;align-items:center;justify-content:space-between}.schedule-review-day h3>small{font-size:11px;color:var(--green)}.schedule-review-day>div{padding:12px 0;border-top:1px solid var(--line)}.schedule-review-day strong,.schedule-review-day small,.schedule-review-day span{display:block;overflow-wrap:anywhere}.schedule-review-day span{font-size:11px;font-weight:800;color:var(--green);margin-bottom:5px}.schedule-review-day strong{font-size:14px;line-height:1.6}.schedule-review-day small{font-size:10px;color:var(--muted);line-height:1.7}.schedule-review-day p{font-size:12px;color:var(--muted);margin:0}.schedule-save-note{font-size:12px;color:var(--muted);line-height:1.8;margin:20px 0 0}
@media(max-width:1100px){.study-empty{flex-wrap:wrap}.study-empty button{margin-left:82px}.schedule-picker{grid-template-columns:minmax(0,1fr) 200px}.schedule-search{grid-template-columns:minmax(0,1fr) 130px}.schedule-search button{grid-column:1/-1;justify-self:end}}
@media(max-width:700px){.schedule-dialog{width:calc(100% - 16px);max-height:96dvh;border-radius:18px}.schedule-header{padding:22px 18px 12px}.schedule-header h2{font-size:23px}.schedule-steps{gap:12px;padding:8px 18px 17px;justify-content:space-between}.schedule-steps li{font-size:10px;gap:5px}.schedule-steps li>span{width:22px;height:22px}.schedule-body{padding:18px}.schedule-footer{padding:15px 18px;flex-wrap:wrap;gap:10px}.schedule-footer>div{width:100%;justify-content:flex-end}.schedule-footer [data-schedule-next]{flex:1}.schedule-error:not(:empty){padding:8px 18px}.schedule-picker{grid-template-columns:1fr;gap:16px}.schedule-selection{position:static;grid-row:1;padding:13px}.schedule-selection>p{margin:4px 0}.schedule-selection [data-schedule-selected]{display:flex;flex-wrap:wrap;max-height:110px;gap:8px}.schedule-selected-item{border:1px solid #b6f34a30;border-radius:8px;padding:5px 8px;max-width:100%}.schedule-selection-empty{margin:0;font-size:12px}.schedule-search{grid-template-columns:minmax(0,1fr) 135px}.schedule-search button{grid-column:auto;grid-column:1/-1;justify-self:stretch}.schedule-day{gap:10px;flex-wrap:wrap;padding:12px}.schedule-day-choice{min-width:105px;flex:1}.schedule-day-times{flex:auto;width:100%;order:3}.schedule-day:not(.is-selected) .schedule-day-times{width:auto}.schedule-add-time{margin-left:auto}.schedule-time-row input{width:125px}.schedule-review{grid-template-columns:1fr}.study-empty,.study-today{padding:20px;border-radius:18px}.study-empty{gap:15px}.study-calendar{width:43px;height:43px;font-size:30px}.study-empty h3,.study-today h3{font-size:20px}.study-empty .auth-eyebrow{font-size:8px}.study-empty button{width:100%;margin:0}.study-session{flex-wrap:wrap;padding:14px;gap:12px}.study-session>div{min-width:170px}.study-session>button{margin-left:32px}.study-week-strip{gap:5px}.study-week-strip>span{min-width:32px;padding:7px}.study-week-strip button{margin:8px 0 0;width:100%;text-align:left}.study-heading{align-items:start}.study-heading>button{font-size:11px;padding:10px}.schedule-dialog .schedule-topic-row{padding:12px;gap:8px}.schedule-topic-check{padding:6px}.schedule-topic-row strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.schedule-dialog *,#study-dashboard *{scroll-behavior:auto}}
@media(max-width:700px){.schedule-time-row label{flex:1;min-width:0}.schedule-time-row input{width:100%;min-width:0}.schedule-time-row>button{padding:4px 6px}}

/* Keep the planner workspace larger than its chrome, including the shared dialog theme. */
dialog.schedule-dialog{
  width:min(1280px,calc(100% - 32px));
  height:calc(100dvh - 32px);
  max-height:calc(100dvh - 32px);
  padding:0;
  box-sizing:border-box;
  overflow:hidden;
}
.schedule-dialog .schedule-header{
  align-items:center;
  gap:12px;
  padding:10px 20px 4px;
}
.schedule-dialog .schedule-header>div{min-width:0}
.schedule-dialog .schedule-header .auth-eyebrow{display:none}
.schedule-dialog .schedule-header h2{
  font-size:22px;
  line-height:1.25;
  margin:0;
  overflow-wrap:anywhere;
}
.schedule-dialog .schedule-close{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  padding:0;
  line-height:1;
}
.schedule-dialog .schedule-steps{
  margin:0;
  padding:4px 20px 10px;
  gap:24px;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
}
.schedule-dialog .schedule-steps li{
  flex-direction:row;
  gap:6px;
  font-size:12px;
  line-height:1.25;
}
.schedule-dialog .schedule-steps li>span{
  width:24px;
  height:24px;
  flex-shrink:0;
}
.schedule-dialog .schedule-body{
  flex:1 1 0;
  min-width:0;
  min-height:0;
  padding:16px 20px;
  scrollbar-gutter:stable;
}
.schedule-dialog .schedule-lead{line-height:1.5;margin:0 0 12px}
.schedule-dialog .schedule-footer{
  margin:0;
  padding:8px 20px;
  gap:12px;
  background:#101e23;
}
.schedule-dialog .schedule-footer>span{min-width:0;line-height:1.4}
.schedule-dialog .schedule-footer>div{width:auto;gap:8px}
.schedule-dialog .schedule-footer button{
  min-height:44px;
  padding:8px 16px;
  line-height:1.25;
}
.schedule-dialog .schedule-error:not(:empty){padding:6px 20px;line-height:1.4}
@media(min-width:701px){
  .schedule-dialog .schedule-search{grid-template-columns:minmax(0,1fr) 155px auto}
  .schedule-dialog .schedule-search button{grid-column:auto;justify-self:stretch}
}
@media(max-width:700px){
  dialog.schedule-dialog{
    inset:0;
    margin:0;
    width:100%;
    height:var(--app-viewport-height,100dvh);
    max-height:100dvh;
    padding:0;
  }
  .schedule-dialog .schedule-header{
    padding:calc(6px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 2px max(12px,env(safe-area-inset-left));
  }
  .schedule-dialog .schedule-header h2{font-size:18px}
  .schedule-dialog .schedule-steps{
    justify-content:space-between;
    gap:6px;
    padding:2px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));
  }
  .schedule-dialog .schedule-steps li{font-size:10px;gap:4px;text-align:left}
  .schedule-dialog .schedule-steps li>span{width:22px;height:22px}
  .schedule-dialog .schedule-body{padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left))}
  .schedule-dialog .schedule-footer{
    flex-wrap:wrap;
    gap:4px;
    padding:6px max(12px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  }
  .schedule-dialog .schedule-footer>span{font-size:11px}
  .schedule-dialog .schedule-footer>div{width:100%}
  .schedule-dialog .schedule-footer button{font-size:12px;padding:8px 12px}
  .schedule-dialog .schedule-error:not(:empty){padding:4px 12px;font-size:11px}
  .schedule-dialog .schedule-picker{gap:12px}
  .schedule-dialog .schedule-selection{padding:10px}
  .schedule-dialog .schedule-selection>p{display:none}
  .schedule-dialog .schedule-selection [data-schedule-selected]{max-height:80px}
}
.study-week-strip .study-plan-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--green);border-radius:12px;background:var(--green);color:#162105;font-weight:700;white-space:normal;line-height:1.4;margin-left:0;text-align:center}.study-week-strip .study-plan-action:first-of-type{margin-left:auto}.study-week-strip .study-plan-action:hover{text-decoration:none;background:#c4ff62}.study-week-strip .study-plan-action:disabled{cursor:not-allowed}@media(max-width:700px){.study-week-strip .study-plan-action,.study-week-strip .study-plan-action:first-of-type{width:100%;margin:8px 0 0;text-align:center}}

/* Priority sequence: one scroll area, readable cards and keyboard/touch controls. */
.schedule-priority-info{padding:16px 18px;border:1px solid #b6f34a45;border-radius:14px;background:#b6f34a0a;margin-bottom:16px;font-size:14px;line-height:1.6}.schedule-priority-info>strong{font-size:17px;color:var(--green)}.schedule-priority-info p{margin:8px 0;color:var(--muted)}.schedule-priority-info summary,.schedule-priority-missing summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}.schedule-priority-info a{color:var(--green);overflow-wrap:anywhere}.schedule-priority-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 18px}.schedule-priority-warning{font-size:13px;line-height:1.6;color:#ffcf85;margin:12px 0}.schedule-priority-loading{padding:32px 0;font-size:16px;line-height:1.7}.schedule-priority-loading span{display:block;color:var(--muted);font-size:13px}.schedule-dialog .schedule-priority-list{max-height:none;padding:16px;margin-top:12px}.schedule-dialog .schedule-selection [data-schedule-selected]{max-height:none;overflow:visible}.schedule-dialog .schedule-selected-item{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.schedule-selected-text{flex:1;min-width:0;overflow-wrap:anywhere}.schedule-selected-text strong,.schedule-selected-text small{display:block;line-height:1.5}.schedule-selected-text strong{font-size:14px}.schedule-selected-text small{font-size:12px;color:var(--muted);margin:4px 0}.schedule-priority-badge{display:inline-block;font-size:11px;color:var(--muted);line-height:1.5}.schedule-priority-badge.is-focus{color:var(--green)}.schedule-selected-controls{display:flex;flex-wrap:wrap;gap:4px;align-items:center;justify-content:end}.schedule-dialog .schedule-selected-controls button{width:44px;height:44px;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--surface);font-size:20px;cursor:pointer;flex:none}.schedule-selected-controls button:disabled{opacity:.35;cursor:default}.schedule-selected-controls label{display:flex;align-items:center;gap:5px;min-height:44px;font-size:12px}.schedule-selected-controls input{accent-color:var(--green)}.schedule-priority-missing{margin-top:16px;padding:12px 16px;border:1px solid var(--line);border-radius:14px;font-size:13px;line-height:1.6}.schedule-priority-missing p{color:var(--muted)}.schedule-priority-missing ul{padding-left:20px}.schedule-dialog .schedule-close{width:auto;height:auto;min-height:44px;min-width:44px;padding:6px 10px;font-size:13px;white-space:nowrap}.schedule-priority-actions button:focus-visible,.schedule-selected-controls button:focus-visible,.schedule-priority-info summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}
@media(max-width:700px){.schedule-priority-info{padding:12px;font-size:13px}.schedule-dialog .schedule-selected-item{align-items:start;flex-direction:column;gap:8px}.schedule-selected-controls{width:100%;justify-content:start}.schedule-priority-actions{gap:8px}.schedule-priority-actions button{flex:1;white-space:normal;min-height:44px}.schedule-priority-missing{padding:10px}.schedule-dialog .schedule-priority-list{padding:12px}.schedule-dialog .schedule-footer>div{display:flex;gap:8px;flex-wrap:wrap}.schedule-dialog .schedule-footer button{min-height:44px}}

.schedule-topic-history{margin-top:6px;font-size:12px;line-height:1.6;color:var(--muted)}.schedule-topic-history summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--green)}.schedule-topic-history p{margin:6px 0}.schedule-topic-history summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}

.study-calendar .ui-icon{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:700px){.study-calendar .ui-icon{width:27px;height:27px}}
