.study-tool [hidden] { display: none; }

.study-tool h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 49px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.tool-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.planner-fields {
  grid-template-columns: minmax(150px, 2fr) repeat(3, minmax(0, 1fr));
}

.tool-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #34496b;
  font-size: 14px;
  font-weight: 700;
}

.tool-fields :is(input, select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #aebcda;
  border-radius: 9px;
  background: #fff;
  color: #17253d;
  font: inherit;
  font-size: 16px;
}

.tool-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tool-actions .button { cursor: pointer; border: 0; font-family: inherit; }

.tool-secondary {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #b9c8e9;
  border-radius: 9px;
  background: #f4f7ff;
  color: #244396;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.tool-secondary:enabled:hover { background: #e7efff; }
.tool-secondary:disabled { opacity: .5; cursor: default; }
.tool-link { color: #2046bc; font-size: 14px; font-weight: 700; text-decoration: underline; }
.study-tool :focus-visible { outline: 3px solid #2e5bff; outline-offset: 3px; }
.learn-section .tool-feedback { min-height: 1.5em; margin: 11px 0; color: #244396; font-weight: 700; }
.learn-section .tool-storage { margin: 12px 0 0; font-size: 13px; }

.planner-result {
  padding: 17px;
  border: 1px solid #dce6f6;
  border-radius: 12px;
  background: #f7f9fe;
}
.planner-result > h3 { margin-top: 0; }
.planner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.planner-list > li { padding: 10px 12px; border-radius: 8px; background: #fff; }
.planner-list > li > :is(span, strong) { display: block; overflow-wrap: anywhere; }
.planner-list > li > span { font-size: 12px; }
.planner-list .tool-actions { margin-top: 7px; }

.focus-page { padding-bottom: 56px; }
.focus-layout { display: grid; grid-template-columns: minmax(290px, .85fr) 1.15fr; align-items: start; gap: 18px; }
#focus-clock { margin-top: 20px; font-size: clamp(45px, 8vw, 88px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }

@media (max-width: 800px) {
  .focus-layout { grid-template-columns: 1fr; }
  .planner-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .planner-list { grid-template-columns: 1fr; }
}
@media print {
  body:has(#weekly-planner) :is(body > header, body > footer, main > :not(#weekly-planner), #weekly-planner > :not(#planner-output), #planner-output > :not(.planner-result), .planner-list .tool-actions) { display: none !important; }
  #weekly-planner, .planner-result { border: 0; box-shadow: none; }
  .planner-list > li { break-inside: avoid; }
}
