/* TechTools — study-plan styles [v2.1 §4.4 S2] */
.sp-config {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.sp-config label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.tool-input-sm {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}
.tool-input-sm:focus { border-color: var(--accent-purple); }
.sp-editor {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 20px 24px;
  overflow-x: auto;
}
.sp-editor-head, .sp-row {
  display: grid;
  grid-template-columns: 76px 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.sp-editor-head {
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 8px;
}
.sp-row { margin-bottom: 8px; }
.sp-row .sp-day {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.sp-row input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s ease;
}
.sp-row input:focus { border-color: var(--accent-purple); }
.sp-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.sp-output {
  margin-top: 24px;
}
.sp-output-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
#planSheet {
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 28px;
  overflow-x: auto;
}
#planSheet .ps-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111;
}
#planSheet .ps-sub {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-bottom: 16px;
}
#planSheet table {
  width: 100%;
  border-collapse: collapse;
}
#planSheet th, #planSheet td {
  border: 1px solid #999;
  padding: 10px 8px;
  font-size: 13px;
  vertical-align: top;
  min-height: 40px;
}
#planSheet th {
  background: #f3f3f3;
  font-weight: 600;
  color: #111;
}
#planSheet td.day-cell {
  font-weight: 600;
  background: #fafafa;
  color: #111;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .sp-editor-head { display: none; }
  .sp-row { grid-template-columns: 56px 1fr; }
  .sp-row input { grid-column: 2; }
}
@media print {
  body * { visibility: hidden; }
  #spOutput, #spOutput * { visibility: visible; }
  #spOutput {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  #spOutput .sp-output-actions { display: none; }
  #planSheet {
    border-radius: 0;
    padding: 0;
  }
}
